/* product.css — Product detail page */

.product-page {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  gap: 20px;
  background: var(--white);
  min-height: 80vh;
}

/* ── LEFT: IMAGE PANEL ───────────────────────────────── */
.product-images {
  width: 38%;
  position: sticky;
  top: 76px;
  align-self: flex-start;
  display: flex;
  gap: 8px;
}
.product-images__thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 64px;
}
.product-images__thumb {
  width: 64px;
  height: 64px;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
  display: flex; align-items: center; justify-content: center;
}
.product-images__thumb:hover,
.product-images__thumb.active { border-color: #e77600; }
.product-images__thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-images__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
}
.product-images__main img {
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}

/* ── MIDDLE: DESCRIPTION ─────────────────────────────── */
.product-info {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.product-info__brand {
  font-size: 14px;
  color: #0066c0;
  cursor: pointer;
  margin-bottom: 6px;
}
.product-info__brand:hover { color: #c45500; text-decoration: underline; }

.product-info__title {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0f1111;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.product-info__stars { color: #e77600; }
.product-info__rating a { color: #0066c0; font-size: 14px; }
.product-info__rating a:hover { color: #c45500; text-decoration: underline; }

.product-info__bought {
  font-size: 14px;
  margin-bottom: 10px;
  color: #0f1111;
}

.product-info__divider { border: none; border-top: 1px solid #e7e7e7; margin: 10px 0; }

.product-info__price-block { margin-bottom: 10px; }
.product-info__discount {
  display: inline-block;
  background: #cc0c39;
  color: var(--white);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  font-weight: 600;
}
.product-info__price {
  font-size: 28px;
  color: #0f1111;
}
.product-info__price sup { font-size: 14px; vertical-align: super; }
.product-info__price-mrp {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}
.product-info__price-mrp s { color: #666; }
.product-info__inclusive {
  font-size: 12px;
  color: #007600;
  margin-top: 2px;
}
.product-info__emi { font-size: 13px; margin-top: 4px; }

/* OFFERS */
.offers-box {
  margin: 14px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.offers-box__header {
  padding: 8px 12px;
  background: #f3f3f3;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
}
.offers-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px;
}
.offer-chip {
  flex-shrink: 0;
  width: 180px;
  border: 1px solid #007185;
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.offer-chip h4 { font-size: 13px; margin-bottom: 4px; color: #0f1111; }

/* SPECS TABLE */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.specs-table tr:nth-child(odd)  { background: #f7f7f7; }
.specs-table tr:nth-child(even) { background: var(--white); }
.specs-table td { padding: 8px 12px; border: 1px solid #e7e7e7; }
.specs-table td:first-child { font-weight: 700; width: 40%; }

.product-info__about h3 { font-size: 17px; margin: 14px 0 8px; }
.product-info__about ul { padding-left: 18px; }
.product-info__about li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }

/* ── RIGHT: BUY BOX ──────────────────────────────────── */
.buy-box {
  width: 280px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  align-self: flex-start;
  position: sticky;
  top: 76px;
}
.buy-box__price {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}
.buy-box__price sup { font-size: 14px; vertical-align: super; }

.buy-box__delivery { font-size: 13px; line-height: 1.6; color: #0f1111; margin-bottom: 8px; }
.buy-box__delivery b { font-weight: 700; }
.buy-box__delivery .free { color: #007600; }

.buy-box__location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 10px;
  color: #0f1111;
}
.buy-box__location a { color: #0066c0; }
.buy-box__location a:hover { text-decoration: underline; color: #c45500; }

.buy-box__stock {
  color: #007600;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.buy-box__table { font-size: 13px; width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.buy-box__table td { padding: 4px 6px; }
.buy-box__table td:first-child { color: #555; }

.buy-box__plan { margin-bottom: 12px; }
.buy-box__plan h4 { font-size: 14px; margin-bottom: 6px; }
.buy-box__plan label { font-size: 13px; display: block; margin: 4px 0; }

.buy-box__qty {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #f0f2f2;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 8px;
  transition: background .15s, border-color .15s;
}
.buy-box__qty:hover { background: #e3e6e6; }

.buy-box__btn {
  width: 100%;
  padding: 9px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  margin-bottom: 8px;
  transition: filter .15s;
}
.buy-box__btn:hover { filter: brightness(.93); }
.buy-box__btn--cart    { background: #ffd814; }
.buy-box__btn--buy     { background: #ffa41c; }
.buy-box__btn--wish {
  background: var(--white);
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  color: #0f1111;
}

.buy-box__divider { border: none; border-top: 1px solid #e7e7e7; margin: 10px 0; }

/* OTHER SELLERS */
.other-sellers {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  font-size: 13px;
}
.other-sellers h4 { font-size: 14px; margin-bottom: 6px; }
.other-sellers p { font-size: 15px; color: #0f1111; }
.other-sellers a { color: #0066c0; }
