* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; font-family: Arial, sans-serif; overflow-x: hidden; }

.info { background-color: navy; color: white; width: 100%; }
.info td { padding: 8px 10px; vertical-align: middle; }
.info h4 { margin: 5px 0; }
.info img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; margin: 2px; }

.hero { color: white; background-color: #F8F1E8; padding: 15px; width: 100%; }
.hero td, .hero th { padding: 8px; vertical-align: middle; }
.heroimg { border-radius: 50%; background-color: navy; width: 140px; height: 140px; padding: 8px; object-fit: cover; }
.name { color: navy; font-size: clamp(32px, 5vw, 60px); font-style: oblique; margin: 0; }

nav { color: ivory; background-color: navy; padding: 15px; text-align: right; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
nav a { color: white; text-decoration: none; padding: 10px 15px; transition: 0.3s; }
nav a:hover { color: navy; background-color: #F8F1E8; }

.search-box { margin: 0; text-align: center; }
.search-box input { padding: 10px; width: min(300px, 100%); height: 48px; border: 2px solid navy; border-radius: 5px; outline: none; }
.search-box button { padding: 10px; background-color: navy; border: none; cursor: pointer; color: #F8F1E8; border-radius: 5px; width: 200px; max-width: 100%; height: 48px; }
.search-box button:hover { background-color: royalblue; color: #F8F1E8; }

.message { color: white; background-color: navy; padding: 15px; margin: 20px 0; }

.product-table { width: 100%; border-collapse: separate; border-spacing: 12px; table-layout: fixed; }
.product-table td { border: 5px solid navy; border-radius: 5px; padding: 15px; background-color: ivory; text-align: center; vertical-align: top; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.productcard { border: 5px solid navy; border-radius: 5px; padding: 15px; background-color: ivory; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.12); margin: 10px; }
.imgs { width: 100%; max-width: 220px; height: 220px; padding: 10px; background-color: navy; border-radius: 40%; object-fit: contain; }
.product-table h3 { color: navy; min-height: 48px; margin: 0 0 10px; }
button { margin-top: 10px; }
.details-btn, .cart-btn { background-color: navy; color: white; border: 2px outset royalblue; padding: 9px 12px; cursor: pointer; font-weight: bold; border-radius: 4px; }
.details-btn:hover, .cart-btn:hover { background-color: royalblue; }
.old { text-decoration: line-through; font-size: 18px; color: red; margin-right: 8px; }
.new { color: green; font-size: 20px; font-weight: bolder; }
.price { margin-top: 5px; }
footer { color: whitesmoke; background-color: navy; font-style: italic; padding: 15px; font-size: large; }

@media (max-width: 992px) {
  .info tr, .hero tr { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .info td, .hero td, .hero th { width: auto !important; text-align: center; }
  .hero td:last-child { grid-column: 1 / -1; }
  .product-table { border-spacing: 10px; }
  .product-table tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .product-table td { width: auto !important; }
}

@media (max-width: 576px) {
  .info tr, .hero tr { grid-template-columns: 1fr; }
  .info td, .hero td, .hero th { padding: 6px 10px; }
  .info img { width: 34px; height: 34px; }
  .heroimg { width: 75px; height: 75px; }
  .name { font-size: 34px; }
  nav { justify-content: center; padding: 10px; }
  nav a { padding: 8px 10px; font-size: 13px; }
  .search-box input, .search-box button { width: min(100%, 280px); }
  .product-table { border-spacing: 8px; }
  .product-table tr { grid-template-columns: 1fr; gap: 10px; }
  .product-table td { padding: 12px; }
  .imgs { max-width: 250px; height: 220px; }
  .details-btn, .cart-btn { width: 100%; max-width: 250px; }
  .message { font-size: 26px; }
}

