/* === PRODUCT PAGE === */
.product-page { padding: 30px 0 60px; }
.product-layout { display: grid; grid-template-columns: 55% 1fr; gap: 40px; align-items: start; max-width: 1400px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: .7rem; color: var(--gray); margin-bottom: 12px; font-family: var(--font-body); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--maroon); }

/* === GALLERY === */
.gallery { display: flex; gap: 12px; align-items: flex-start; }
.thumb-strip-v { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.thumb-strip-v::-webkit-scrollbar { width: 0; }
.thumb-item { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.thumb-item.active, .thumb-item:hover { border-color: var(--maroon); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-image-wrap { position: relative; flex: 1; border-radius: 16px; overflow: hidden; background: var(--sand); }
.main-image-wrap img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 2; transition: var(--transition); }
.gallery-arrow:hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.gallery-arrow svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

/* === PRODUCT HEADER === */
.product-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.product-detail h1 { font-size: 28px; font-weight: 700; color: var(--dark); line-height: 1.3; font-family: var(--font-heading); margin: 0; }
.share-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--sand); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.share-btn:hover { background: var(--ivory); }
.share-btn svg { width: 18px; height: 18px; stroke: var(--gray); fill: none; stroke-width: 2; }

/* === PRICING === */
.price-block { margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.big-price { font-size: 28px; font-weight: 800; color: var(--maroon); font-family: var(--font-heading); }
.mrp { text-decoration: line-through; color: var(--gray); font-size: 17px; font-family: var(--font-body); }
.discount-badge { background: #2d8f2d; color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; position: relative; top: -1px; }
.tax-notice { font-size: .75rem; color: var(--gray); font-family: var(--font-body); margin-bottom: 18px; }

/* === FEATURE ICONS GRID === */
.feature-icons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; padding: 14px; background: var(--ivory); border-radius: 10px; }
.feature-icon-item { display: flex; align-items: center; gap: 10px; }
.feature-icon-item .fi-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon-item .fi-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.feature-icon-item span { font-size: .78rem; font-family: var(--font-body); color: var(--dark); line-height: 1.3; }

/* === VARIANTS === */
.selector-label { font-weight: 600; font-size: .88rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.color-options { display: flex; gap: 10px; margin-bottom: 20px; padding-bottom: 4px; }
.color-opt { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--sand); cursor: pointer; transition: var(--transition); position: relative; }
.color-opt.active { border: 3px solid var(--maroon); box-shadow: 0 0 0 2px var(--maroon); }
.color-opt:hover { transform: scale(1.1); }
.color-opt .color-name { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .65rem; white-space: nowrap; opacity: 0; transition: .2s; pointer-events: none; }
.color-opt:hover .color-name { opacity: 1; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.size-btn { padding: 10px 20px; border: 2px solid var(--sand); border-radius: 6px; font-weight: 600; background: var(--white); cursor: pointer; transition: var(--transition); font-size: .82rem; font-family: var(--font-body); }
.size-btn:hover { border-color: var(--maroon); }
.size-btn.active { border-color: var(--maroon); background: var(--maroon); color: var(--white); }
.size-btn.out { opacity: .3; cursor: not-allowed; }
.size-chart-link { font-size: .78rem; color: var(--maroon); text-decoration: underline; cursor: pointer; font-family: var(--font-body); }
.size-helper { font-size: .78rem; color: var(--gray); font-style: italic; margin: 4px 0 18px; font-family: var(--font-body); }

/* === CTA BUTTONS === */
.cta-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.btn-add-cart { width: 100%; padding: 14px 20px; background: var(--maroon); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-heading); font-size: .92rem; font-weight: 700; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: var(--transition); letter-spacing: .5px; }
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(183,122,122,.35); }
.btn-add-cart.added { background: #2d8f2d; }
.btn-add-cart .shield-line { font-size: .7rem; font-weight: 400; opacity: .85; display: flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
.btn-add-cart .shield-line svg { width: 13px; height: 13px; }
.btn-secondary-cta { width: 100%; padding: 12px 20px; background: var(--ivory); border: 2px solid var(--sand); border-radius: 8px; cursor: pointer; font-family: var(--font-body); font-size: .84rem; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); color: var(--dark); }
.btn-secondary-cta:hover { background: var(--sand); }
.btn-secondary-cta svg { width: 20px; height: 20px; }

/* === DELIVERY BOX === */
.delivery-box { background: var(--ivory); border: 1px solid var(--sand); border-radius: 8px; padding: 12px 14px; font-family: var(--font-body); font-size: .82rem; line-height: 1.6; color: var(--dark); }
.delivery-box a { color: var(--maroon); font-weight: 600; text-decoration: none; }

/* === TRUST BADGES === */
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); margin-bottom: 16px; text-align: center; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-badge svg { width: 40px; height: 40px; stroke: var(--maroon); fill: none; stroke-width: 1.5; }
.trust-badge span { font-size: .72rem; font-weight: 600; color: var(--dark); font-family: var(--font-body); line-height: 1.3; }

/* === ACCORDION DROPDOWNS === */
.product-accordion { margin-bottom: 10px; }
.accordion-item { border-top: 1px solid var(--sand); }
.accordion-item:last-child { border-bottom: 1px solid var(--sand); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; width: 100%; background: none; border: none; font-family: var(--font-heading); font-size: .92rem; font-weight: 600; color: var(--dark); text-align: left; }
.accordion-header svg { width: 16px; height: 16px; stroke: var(--gray); transition: transform .3s; flex-shrink: 0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.accordion-header.open svg { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-content-inner { padding: 0 0 16px; font-size: .84rem; color: var(--gray); line-height: 1.6; font-family: var(--font-body); }
.accordion-content-inner p { margin: 0 0 8px; }
.accordion-content-inner ul { padding-left: 6px; margin: 6px 0 10px; }
.accordion-content-inner li { margin-bottom: 5px; list-style: none; }

/* === SIZE CHART MODAL === */
.sc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; justify-content: center; align-items: center; }
.sc-overlay.show { display: flex; }
.sc-modal { background: #fff; border-radius: 16px; max-width: 500px; width: 92%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden; }
.sc-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--sand); flex-shrink: 0; }
.sc-header h2 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); margin: 0; }
.sc-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.sc-close:hover { background: var(--ivory); }
.sc-close svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-tabs { display: flex; border-bottom: 2px solid var(--sand); flex-shrink: 0; }
.sc-tab { flex: 1; padding: 12px 20px; background: none; border: none; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--gray); font-family: var(--font-heading); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.sc-tab.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.sc-body { overflow-y: auto; flex: 1; padding: 18px 20px; }
.sc-banner { background: linear-gradient(135deg, var(--maroon), #a06060); color: #fff; padding: 14px; border-radius: 10px; margin-bottom: 14px; }
.sc-banner h3 { font-size: .95rem; font-weight: 700; font-family: var(--font-heading); margin: 0 0 4px; }
.sc-banner p { font-size: .78rem; line-height: 1.5; margin: 0; opacity: .9; }
.sc-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-family: var(--font-body); font-size: .82rem; }
.sc-table th { background: var(--ivory); font-weight: 600; padding: 8px 6px; text-align: center; }
.sc-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--sand); }
.sc-table tr:hover td { background: rgba(183,122,122,.05); }
.sc-measure-toggle { background: var(--ivory); padding: 14px; border-radius: 8px; margin-bottom: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; border: none; width: 100%; text-align: left; font-family: var(--font-body); font-size: .84rem; }
.sc-measure-toggle svg { width: 40px; height: 40px; flex-shrink: 0; }
.sc-measure-content { display: none; background: var(--ivory); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.sc-measure-content.show { display: block; }
.sc-step { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.sc-step-num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--maroon), var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; font-family: var(--font-heading); }
.sc-step-text h4 { font-size: .84rem; font-weight: 600; margin: 0 0 2px; font-family: var(--font-heading); }
.sc-step-text p { font-size: .78rem; color: var(--gray); margin: 0; }
.sc-tips { background: rgba(201,162,39,.1); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 0 8px 8px 0; }
.sc-tips strong { display: block; margin-bottom: 4px; font-size: .82rem; }
.sc-tips ul { padding-left: 16px; margin: 0; }
.sc-tips li { font-size: .78rem; color: var(--gray); margin-bottom: 3px; }
.sc-footer { padding: 14px 20px; border-top: 1px solid var(--sand); flex-shrink: 0; }
.sc-footer button { width: 100%; padding: 12px 20px; background: var(--maroon); color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: var(--font-heading); transition: var(--transition); }
.sc-footer button:hover { background: #a06060; }
.sc-panel { display: none; }
.sc-panel.active { display: block; }

/* === CUSTOMERS ALSO LOVE — SWIPABLE CAROUSEL === */
.also-love-section { padding: 50px 0; background: var(--ivory); }
.also-love-header { text-align: center; margin-bottom: 28px; }
.also-love-header h2 { font-size: 1.5rem; font-family: var(--font-heading); color: var(--dark); margin: 0 0 6px; }
.also-love-header p { font-size: .88rem; color: var(--gray); font-family: var(--font-body); margin: 0; }
.also-love-track-wrap { position: relative; }
.also-love-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0 12px; }
.also-love-track::-webkit-scrollbar { height: 0; display: none; }
.al-card { flex: 0 0 220px; scroll-snap-align: start; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: var(--transition); display: flex; flex-direction: column; }
.al-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.al-img-wrap { display: block; position: relative; overflow: hidden; background: var(--sand); }
.al-img-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .35s ease; }
.al-card:hover .al-img-wrap img { transform: scale(1.04); }
.al-badge { position: absolute; top: 10px; left: 10px; background: var(--maroon); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; z-index: 1; font-family: var(--font-body); letter-spacing: .3px; }
.al-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.al-name { font-size: .84rem; font-weight: 600; color: var(--dark); text-decoration: none; font-family: var(--font-body); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-name:hover { color: var(--maroon); }
.al-rating { display: flex; align-items: center; gap: 4px; }
.al-stars { color: var(--gold); font-size: .72rem; letter-spacing: -1px; }
.al-reviews { font-size: .68rem; color: var(--gray); font-family: var(--font-body); }
.al-prices { display: flex; align-items: baseline; gap: 6px; }
.al-price { font-size: .95rem; font-weight: 700; color: var(--maroon); font-family: var(--font-heading); }
.al-mrp { font-size: .78rem; color: var(--gray); text-decoration: line-through; font-family: var(--font-body); }
.al-atc { width: 100%; padding: 9px 10px; background: var(--maroon); color: #fff; border: none; border-radius: 6px; font-size: .78rem; font-weight: 700; font-family: var(--font-heading); cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: .4px; margin-top: auto; }
.al-atc:hover { background: #a06060; }
.al-atc.added { background: #2d8f2d; }

/* Carousel arrows */
.al-arrow { position: absolute; top: 50%; transform: translateY(-60%); width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--sand); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.1); z-index: 3; transition: var(--transition); }
.al-arrow:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); background: var(--ivory); }
.al-arrow svg { width: 18px; height: 18px; }
.al-prev { left: -18px; }
.al-next { right: -18px; }

/* === IMAGE LIGHTBOX === */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 99999; flex-direction: column; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-close svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-counter { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; font-family: var(--font-body); z-index: 3; }
.lightbox-img-wrap { position: relative; width: 100%; max-width: 700px; max-height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.lightbox-img-wrap.zoomed { cursor: grab; overflow: auto; }
.lightbox-img-wrap.zoomed.dragging { cursor: grabbing; }
.lightbox-img-wrap img { max-width: 100%; max-height: 80vh; object-fit: contain; transition: transform .3s ease; user-select: none; -webkit-user-drag: none; }
.lightbox-img-wrap.zoomed img { max-width: none; max-height: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: .2s; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-zoom { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.lightbox-zoom button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 700; transition: .2s; }
.lightbox-zoom button:hover { background: rgba(255,255,255,.25); }
.main-image-wrap { cursor: pointer; }

/* ======================================================
   RESPONSIVE — TABLET
   ====================================================== */
@media (max-width:1024px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
  .gallery { position: static; }
  .thumb-strip-v { max-height: 420px; }
  .thumb-item { width: 64px; height: 64px; }
  .product-detail h1 { font-size: 24px; }
  .big-price { font-size: 26px; }
}

/* ======================================================
   RESPONSIVE — MOBILE
   ====================================================== */
@media (max-width:768px) {
  .product-page { padding: 16px 0 40px; }
  .product-layout { grid-template-columns: 1fr; gap: 20px; }

  /* Gallery: stack vertically, thumbnails below */
  .gallery {
    position: static;
    flex-direction: column;
    gap: 10px;
  }
  .main-image-wrap {
    order: 1;
    width: 100%;
    border-radius: 10px;
  }
  .main-image-wrap img {
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
  }
  .thumb-strip-v {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    max-height: none;
    gap: 8px;
    padding-bottom: 4px;
  }
  .thumb-item { width: calc(25% - 6px); height: auto; aspect-ratio: 1; flex-shrink: 0; }

  /* Arrows */
  .gallery-arrow { width: 34px; height: 34px; }
  .gallery-arrow svg { width: 14px; height: 14px; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }

  /* Product info */
  .product-header { gap: 8px; }
  .product-detail h1 { font-size: 22px; }
  .big-price { font-size: 24px; }
  .mrp { font-size: 15px; }
  .tax-notice { margin-bottom: 14px; }

  /* Feature icons: stay 2 columns on mobile */
  .feature-icons-grid { gap: 8px; padding: 12px; }
  .feature-icon-item .fi-icon { width: 32px; height: 32px; }
  .feature-icon-item .fi-icon svg { width: 16px; height: 16px; }
  .feature-icon-item span { font-size: .75rem; }

  /* Variants */
  .color-opt { width: 34px; height: 34px; }
  .size-btn { padding: 8px 16px; font-size: .8rem; }

  /* Trust badges */
  .trust-badge svg { width: 32px; height: 32px; }
  .trust-badge span { font-size: .68rem; }

  /* Accordion */
  .accordion-header { font-size: .88rem; padding: 12px 0; }

  /* CTA */
  .btn-add-cart { padding: 13px 16px; font-size: .88rem; }
  .btn-secondary-cta { padding: 11px 16px; font-size: .82rem; }
  .delivery-box { font-size: .8rem; padding: 10px 12px; }

  /* Size chart modal — fullscreen-like on mobile */
  .sc-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
    margin-top: auto;
  }
  .sc-overlay.show { align-items: flex-end; }
  .sc-body { padding: 16px; }
  .sc-header { padding: 16px; }
  .sc-footer { padding: 12px 16px; }

  /* Carousel mobile */
  .also-love-section { padding: 36px 0; }
  .also-love-header h2 { font-size: 1.2rem; }
  .also-love-header { margin-bottom: 18px; }
  .al-card { flex: 0 0 170px; }
  .al-info { padding: 10px 10px 12px; gap: 4px; }
  .al-name { font-size: .78rem; }
  .al-price { font-size: .88rem; }
  .al-mrp { font-size: .72rem; }
  .al-atc { padding: 8px 8px; font-size: .72rem; }
  .al-arrow { display: none; }
  .al-badge { font-size: .62rem; padding: 2px 6px; }
}

/* ======================================================
   RESPONSIVE — SMALL MOBILE
   ====================================================== */
@media (max-width:400px) {
  .product-page { padding: 12px 0 30px; }
  .product-detail h1 { font-size: 20px; }
  .big-price { font-size: 22px; }
  .mrp { font-size: 14px; }
  .thumb-item { width: 52px; height: 52px; }
  .feature-icons-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .size-btn { padding: 8px 14px; font-size: .78rem; }
  .trust-badges { gap: 6px; }
  .trust-badge svg { width: 28px; height: 28px; }
  .trust-badge span { font-size: .65rem; }
}
