/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #FFF4F1; /* peach background */
  color: #5A5553;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: #fff;
  border-bottom: 1px solid #EDE8E5;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  color: #FF6A4E;
}

.navbar nav a {
  margin-left: 22px;
  font-weight: 600;
  font-size: 15px;
}

.navbar nav a:hover {
  color: #FF8F70;
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #FFFCFB;
}

.hero h1 {
  font-size: 34px;
  color: #342F2E;
  margin-bottom: 8px;
}

.hero p {
  font-size: 18px;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =========================
   GRID – INDEX PAGE
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.product-card h3 {
  margin: 14px 0 12px;
  font-size: 18px;
  color: #342F2E;
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: #FF8F70;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #FF6A4E;
}

/* =========================
   PRODUCT DETAIL PAGE
========================= */
.product-page {
  display: grid;
  grid-template-columns: 520px 1fr; /* ✅ fixed left width */
  gap: 48px;
  align-items: flex-start;
}

/* LEFT – COMBINATION IMAGE CARD */
.product-image-large {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}

.product-image-large img {
  width: 100%;
  max-height: 620px;          /* ✅ controlled height */
  object-fit: contain;        /* ✅ no stretching */
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}

/* RIGHT – OPTIONS */
.product-options h1 {
  font-size: 24px;
  margin-bottom: 18px;
  color: #342F2E;
}

.option-block {
  margin-bottom: 32px;
}

.option-block h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #342F2E;
}

/* =========================
   ITEM THUMBNAILS
========================= */
.item-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 14px;
}

.item-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;              /* ✅ smaller & cleaner */
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.item-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: #5A5553;
  border-top: 1px solid #EDE8E5;
  margin-top: 60px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  .product-image-large {
    max-width: 520px;
    margin: 0 auto;
  }

  .product-image-large img {
    max-height: 520px;
  }
}
