/* ==========================================================================
   Salty Pumpkin — Phase 7 additions
   Reviews, Buy Now, OTP auth, Order Tracking timeline.
   Loaded after style.css on the pages that need it.
   ========================================================================== */

/* ---- Product page CTA row (Task 3 – Buy Now) ---- */
.product-cta-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}
.product-cta-row .btn{padding:14px 20px;font-size:15px}
.product-cta-row .btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.product-info-card{margin-top:20px}
.chip .oos-hint{font-size:11px;color:#98a2b3;margin-left:6px;font-weight:700}

@media(max-width:620px){
  .product-cta-row{grid-template-columns:1fr;gap:10px}
}

/* ---- Reviews (Task 4) ---- */
.rating-inline{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:850;color:#111827}
.rating-inline.muted{color:var(--muted);font-weight:750}
.rating-inline b{font-size:15px}
.rating-inline-link{color:var(--pink2);text-decoration:underline;font-size:13px;font-weight:900}

.stars{color:#f59e0b;letter-spacing:1px;font-size:15px;line-height:1}
.stars-lg{font-size:24px}

.review-layout{display:grid;grid-template-columns:320px 1fr;gap:22px;align-items:start}
.review-sort-row{display:flex;align-items:center;gap:8px}
.review-sort-row label{font-weight:850;font-size:13px;color:#475467;display:flex;align-items:center;gap:8px}
.review-sort-row select{max-width:200px;padding:10px 14px}

@media(max-width:1050px){
  .review-layout{grid-template-columns:1fr}
}

.review-summary-head{display:flex;align-items:center;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.review-avg{font-size:44px;font-weight:950;letter-spacing:-.05em;line-height:1;color:#111827}
.review-summary-total{margin:4px 0 0}
.rating-bars{display:grid;gap:10px}
.rating-bar-row{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:10px;font-size:13px;font-weight:850;color:#475467}
.rating-bar{height:8px;background:#f0dbe2;border-radius:999px;overflow:hidden}
.rating-bar>span{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#f65f8f);border-radius:999px;transition:width .3s}
.rating-bar-count{text-align:right;color:#98a2b3;font-weight:700}
.rating-bar-label{font-weight:900;color:#111827}

.reviews-list{display:grid;gap:14px;margin-top:16px}
.review-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px 20px;box-shadow:0 8px 24px rgba(16,18,26,.04)}
.review-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:8px}
.review-title{margin:6px 0 0;font-size:16px;letter-spacing:-.02em}
.review-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:12px;font-weight:800;color:#475467;flex:none;text-align:right}
.review-meta b{font-size:13px;color:#111827}
.verified-pill{background:#dcfce7;color:#166534;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:950}
.review-date{color:var(--muted);font-weight:700}
.review-body{margin:10px 0 12px;line-height:1.65;color:#344054}
.review-media-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.review-media-item{width:110px;height:110px;border-radius:14px;overflow:hidden;background:#f8fafc;display:block;box-shadow:0 6px 16px rgba(16,18,26,.06);border:1px solid var(--line)}
.review-media-thumb img{width:100%;height:100%;object-fit:cover}
video.review-media-item{width:160px;height:110px;object-fit:cover;background:#000}

@media(max-width:620px){
  .review-card{padding:16px}
  .review-card-head{flex-direction:column}
  .review-meta{align-items:flex-start;text-align:left}
  .review-media-item{width:88px;height:88px}
  video.review-media-item{width:140px;height:88px}
}

.review-login-prompt{margin-bottom:18px;padding:20px}
.review-login-prompt b{font-size:15px}
.review-login-prompt a{color:var(--pink2);font-weight:950;text-decoration:underline}
.review-form{display:grid;gap:14px;margin-bottom:18px;padding:22px}
.review-form h3{margin:0;font-size:20px;letter-spacing:-.03em}
.review-form .section-sub{margin:0}
.review-form .textarea-field{min-height:110px}

.star-picker{display:flex;align-items:center;gap:6px}
.star-btn{border:0;background:transparent;font-size:30px;line-height:1;color:#d9d9d9;cursor:pointer;padding:0 2px}
.star-btn:hover,.star-btn.active{color:#f59e0b}
.star-picker-hint{margin-left:12px;font-weight:900;font-size:13px;color:#475467}

.review-media-picker{display:grid;gap:10px}
.review-media-picker .upload-drop{cursor:pointer}
.review-media-preview{display:flex;gap:10px;flex-wrap:wrap}
.review-media-chip{position:relative;width:88px;height:88px;border-radius:14px;overflow:hidden;background:#f8fafc;border:1px solid var(--line)}
.review-media-chip img,.review-media-chip video{width:100%;height:100%;object-fit:cover}
.review-media-remove{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(16,18,26,.75);color:#fff;font-weight:950;line-height:1;cursor:pointer;font-size:14px}
.review-media-remove:hover{background:#111}

.review-form-actions{display:flex;justify-content:flex-end;gap:10px}
.review-form-actions .btn{min-width:160px}

/* ---- OTP auth (Task 5) ---- */
.otp-label{display:block;font-size:13px;font-weight:900;color:#475467;margin-bottom:8px;text-transform:uppercase;letter-spacing:.08em}
.firebase-auth-message{margin:16px 0 0;padding:12px 14px;border-radius:14px;background:#fef2f2;color:#991b1b;font-size:14px;font-weight:800;line-height:1.5}
.firebase-auth-message.success{background:#f0fdf4;color:#166534}
.auth-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:22px 0;padding:5px;border:1px solid var(--line);border-radius:18px;background:#fff8fa}
.auth-method-tabs button{border:0;border-radius:13px;padding:11px 8px;background:transparent;color:#667085;font-size:13px;font-weight:900;cursor:pointer}
.auth-method-tabs button.active{background:#fff;color:#10121a;box-shadow:0 5px 18px rgba(16,18,26,.09)}
.password-help{display:block;margin:7px 3px 0;color:#667085;font-size:12px;font-weight:700;line-height:1.45}
.otp-sent-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.otp-sent-line b{color:#111827;font-weight:950}
.otp-code-input{letter-spacing:.5em;font-size:24px;font-weight:900;text-align:center;font-variant-numeric:tabular-nums}
.otp-actions-row{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:13px}
.tiny-hint{font-size:12px;margin:6px 0 0}
.link-btn{border:0;background:transparent;color:var(--pink2);font-weight:900;cursor:pointer;padding:0;font-size:13px;font-family:inherit}
.link-btn:hover{text-decoration:underline}
.link-btn:disabled{color:#98a2b3;cursor:not-allowed;text-decoration:none}
[data-otp-timer]{color:#98a2b3;font-weight:700;margin-left:4px}

/* ==========================================================================
   Task 6 — Order Tracking timeline + track.html
   ========================================================================== */

.track-layout{display:grid;grid-template-columns:1fr 1.4fr;gap:22px;align-items:start}
@media(max-width:900px){
  .track-layout{grid-template-columns:1fr}
}

.tab-row{display:flex;gap:0;margin-bottom:16px;background:#f8fafc;border-radius:999px;padding:4px;border:1px solid var(--line)}
.tab-btn{flex:1;border:0;background:transparent;padding:10px 14px;border-radius:999px;font-weight:900;font-size:13px;cursor:pointer;color:#475467;transition:.15s}
.tab-btn.active{background:#fff;color:#111827;box-shadow:0 4px 14px rgba(16,18,26,.08)}

.track-form,.track-result{padding:22px}
.track-result .empty{margin:8px 0 0}

/* Order confirmation embed (compact) */
.tracking-inline{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#fff9fb 0%,#fff 100%)}
.tracking-head{margin-bottom:14px}
.order-cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* Timeline */
.tracking-timeline{list-style:none;padding:0;margin:0;display:grid;gap:0}
.tracking-timeline .stage{position:relative;display:grid;grid-template-columns:34px 1fr;gap:14px;padding:0 0 18px 0;align-items:start}
.tracking-timeline .stage:last-child{padding-bottom:0}
.stage-dot{width:30px;height:30px;border-radius:50%;background:#f0dbe2;color:#98a2b3;display:grid;place-items:center;font-weight:950;font-size:13px;flex:none;border:2px solid transparent;transition:.2s;z-index:1}
.stage.reached .stage-dot{background:#dcfce7;color:#166534}
.stage.active .stage-dot{background:linear-gradient(135deg,var(--pink),#ff966f);color:#fff;border-color:#fff;box-shadow:0 0 0 4px rgba(246,95,143,.18)}
.stage.cancelled .stage-dot{background:#fee2e2;color:#991b1b}
.stage-connector{position:absolute;left:14px;top:30px;bottom:0;width:2px;background:#f0dbe2;z-index:0}
.stage.reached ~ .stage .stage-connector,
.stage.reached .stage-connector{background:#a7e3bc}
.tracking-timeline.is-cancelled .stage.cancelled ~ .stage .stage-connector,
.tracking-timeline.is-cancelled .stage.cancelled .stage-connector{background:#fecaca}
.stage-body{display:grid;gap:2px;padding-top:4px}
.stage-label{font-weight:900;color:#111827;font-size:14px}
.stage.active .stage-label{color:var(--pink2)}
.stage.reached:not(.active) .stage-label{color:#166534}
.stage-time{font-size:12px;color:#475467;font-weight:700}
.stage-loc{font-size:12px;color:#98a2b3;font-weight:700}

.scan-details{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.scan-details summary{cursor:pointer;font-weight:900;font-size:13px;color:var(--pink2);padding:4px 0}
.scan-details ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:10px}
.scan-details li{background:#f8fafc;border-radius:12px;padding:10px 14px;font-size:13px}
.scan-details li b{color:#111827}
.scan-loc{color:#475467;margin-left:6px}
.scan-time{color:#98a2b3;margin-left:6px;font-weight:700}
.scan-note{margin-top:4px;color:#475467}

/* ==========================================================================
   Phase 7 second wave — wishlist, autocomplete, gallery, zoom, size chart,
   related products
   ========================================================================== */

/* ---- Wishlist heart on cards + big button --------------------------------- */
.product-card{ position: relative; }
.card-heart{
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; z-index: 3;
  transition: transform .15s ease, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(16,18,26,.10);
}
.card-heart:hover{ transform: scale(1.08); box-shadow: 0 6px 22px rgba(246,95,143,.30); }
.card-heart-icon{
  font-size: 18px; line-height: 1; color: #cbd5e1;
  transition: color .15s, transform .15s;
}
.card-heart.is-saved .card-heart-icon{ color: #e11d48; transform: scale(1.15); }
.card-heart.is-saved{ background: #fff; }

.wishlist-btn-large{
  flex: 0 0 auto;
  width: 52px; padding: 0 !important;
  background: #fff !important; color: #cbd5e1 !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.wishlist-btn-large .card-heart-icon{ font-size: 22px; }
.wishlist-btn-large.is-saved{
  background: linear-gradient(135deg, #fff1f5, #fff) !important;
  border-color: #f6b6c7 !important;
}
.wishlist-btn-large.is-saved .card-heart-icon{ color: #e11d48 !important; }

/* Wishlist icon in header — badge */
[data-wishlist-count]{
  background: #e11d48; color: #fff;
  font-size: 10px; font-weight: 950;
  min-width: 16px; height: 16px;
  border-radius: 999px; padding: 0 5px;
  display: inline-grid; place-items: center;
  margin-left: 4px; line-height: 1;
}

/* ---- Search autocomplete dropdown ---------------------------------------- */
.search-autocomplete{
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 22px 60px rgba(16,18,26,.14);
  padding: 8px; z-index: 100;
  max-height: 480px; overflow-y: auto;
  min-width: 320px;
}
.sa-group{ padding: 4px 0; }
.sa-group + .sa-group{ border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.sa-group-head{
  font-size: 11px; text-transform: uppercase;
  color: var(--muted); font-weight: 950; letter-spacing: .06em;
  padding: 4px 10px 6px;
}
.sa-row{
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px;
  transition: background .1s;
  color: inherit;
}
.sa-row:hover, .sa-active{ background: #fff6f8; }
.sa-cat{ font-weight: 850; font-size: 14px; }
.sa-cat-icon{ font-size: 15px; }
.sa-thumb{
  width: 42px; height: 42px; object-fit: cover;
  border-radius: 10px; background: #f8fafc; flex: none;
}
.sa-prod-body{ min-width: 0; flex: 1; }
.sa-prod-name{
  font-weight: 900; font-size: 13.5px; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sa-prod-price{ font-size: 12.5px; color: var(--muted); font-weight: 800; }
.sa-prod-price s{ opacity: .6; margin-left: 4px; }
.sa-see-all{
  display: block; text-align: center;
  padding: 10px; border-top: 1px solid var(--line);
  margin-top: 4px; font-weight: 900;
  color: var(--pink2); font-size: 13px;
}
.sa-see-all:hover{ background: #fff6f8; }
.sa-empty{
  padding: 24px 16px; text-align: center;
  color: var(--muted); font-size: 13px;
}

/* Ensure search-mini can host absolute dropdown */
.search-mini{ position: relative; }

/* ---- Product image gallery + zoom ---------------------------------------- */
.product-gallery-wrap{ min-width: 0; }
.product-gallery{ display: grid; gap: 12px; }
.gallery-main{
  position: relative;
  border-radius: 30px;
  background: #f8fafc;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
}
.gallery-main img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  cursor: zoom-in;
  transition: transform .4s ease;
}
.gallery-main:hover img{ transform: scale(1.04); }
.gallery-zoom-btn{
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 0;
  font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,18,26,.10);
}
.gallery-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0;
  font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,18,26,.10);
  z-index: 2;
}
.gallery-arrow.prev{ left: 14px; }
.gallery-arrow.next{ right: 14px; }
.gallery-arrow:hover{ background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-thumbs{
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}
.gallery-thumb{
  flex: none; width: 74px; height: 74px;
  border-radius: 14px; overflow: hidden;
  border: 2px solid transparent; padding: 0;
  cursor: pointer; background: #f8fafc;
  transition: border-color .12s, transform .12s;
}
.gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active{ border-color: var(--pink); }
.gallery-thumb:hover:not(.active){ border-color: #e5e7eb; transform: scale(1.03); }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(10,12,20,.94);
  z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
}
.lightbox img{
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-nav{
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff;
  border-radius: 50%;
  transition: background .15s;
}
.lightbox-close{
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  font-size: 26px; line-height: 1;
}
.lightbox-nav{
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 32px; line-height: 1;
}
.lightbox-nav.prev{ left: 20px; }
.lightbox-nav.next{ right: 20px; }
.lightbox-close:hover, .lightbox-nav:hover{ background: rgba(255,255,255,.28); }
.lightbox-counter{
  position: absolute; bottom: 24px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-weight: 900; font-size: 13px;
  background: rgba(0,0,0,.4); padding: 6px 14px;
  border-radius: 999px;
}

/* ---- Size chart modal ---------------------------------------------------- */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(10,12,20,.55);
  z-index: 150;
  display: grid; place-items: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: modalFade .18s ease;
}

/* Author display rules override the browser's default [hidden] styling.
   Keep product overlays out of the layout until they are explicitly opened. */
.lightbox[hidden],
.modal-overlay[hidden]{
  display: none;
}
@keyframes modalFade{ from { opacity: 0 } to { opacity: 1 } }
.modal-card{
  background: #fff; border-radius: 30px;
  padding: 30px;
  max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,.25);
  position: relative;
  animation: modalRise .22s ease;
}
@keyframes modalRise{
  from { transform: translateY(20px); opacity: 0 }
  to   { transform: translateY(0); opacity: 1 }
}
.modal-close{
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0; background: #f6f8fb; border-radius: 50%;
  cursor: pointer; font-size: 22px; line-height: 1;
}
.modal-close:hover{ background: #eef1f5; }
.size-chart-table th, .size-chart-table td{ text-align: center !important; }
.size-chart-table th:first-child, .size-chart-table td:first-child{ text-align: left !important; }
.size-modal h2{ margin: 4px 0 6px; letter-spacing: -.04em; }

/* ---- Size Guide link on chip row ---------------------------------------- */
.chip-row-label{
  font-weight: 900; font-size: 13px;
  color: #475467; margin: 14px 0 8px;
  text-transform: uppercase; letter-spacing: .06em;
  display: flex; justify-content: space-between; align-items: center;
}
.size-guide-link{
  border: 0; background: transparent;
  color: var(--pink2); font-weight: 900;
  font-size: 12px; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.size-guide-link:hover{ text-decoration: underline; }

/* ---- Related products section-more link ---------------------------------- */
.section-more{ color: var(--pink2); font-weight: 900; font-size: 14px; }

/* ---- Review summary card ------------------------------------------------- */
.review-summary-card{ background: linear-gradient(180deg, #fff9fb 0%, #fff 100%); }

/* ---- Product detail grid tweaks ------------------------------------------ */
.product-detail-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media(max-width:900px){
  .product-detail-grid{ grid-template-columns: 1fr; gap: 24px; }
  .gallery-main{ border-radius: 22px; }
  .modal-card{ padding: 24px 20px; border-radius: 22px; }
  .search-autocomplete{ position: fixed; top: 60px; left: 12px; right: 12px; min-width: 0; }
}

.product-info h1{
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.05em;
  line-height: 1.1;
  margin: 4px 0 12px;
}
.price-row{
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin: 14px 0 18px;
}
.price-big{ font-size: 28px; letter-spacing: -.02em; }
.price-strike{ color: #98a2b3; text-decoration: line-through; font-size: 16px; }
.discount-pill{
  background: #fee2e2; color: #b91c1c;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 950;
}

/* Premium refresh alignment (loaded after the base visual system). */
.rating-inline-link,.link-btn,.sa-see-all,.stage.active .stage-label,.scan-details summary{color:var(--pink2)}
.rating-bar>span,.stage.active .stage-dot{background:var(--pink)}
.card-heart.is-saved .card-heart-icon,.wishlist-btn-large.is-saved .card-heart-icon{color:var(--pink2)!important}
.wishlist-btn-large.is-saved{background:#f6eeea!important;border-color:#d7b8ae!important}
[data-wishlist-count]{background:var(--pink2)}
.search-autocomplete{border-color:var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(34,29,24,.13)}
.sa-row{border-radius:9px}.sa-row:hover,.sa-active,.sa-see-all:hover{background:#f4efe9}
.review-card,.review-form,.review-login-prompt{border-radius:16px;box-shadow:none}
.tab-row{background:#f1ede7;border-color:var(--line);border-radius:12px}.tab-btn{border-radius:8px}
.tracking-inline{background:#fbfaf8;border-radius:16px}
.gallery-main,.related-card,.size-chart-modal{border-radius:18px}

/* Includ-inspired alignment for Phase 7 storefront features. */
.card-heart{border:0!important;background:rgba(255,255,255,.95)!important;box-shadow:0 6px 18px rgba(18,26,39,.10)!important}
.card-heart:hover{box-shadow:0 8px 22px rgba(18,26,39,.14)!important}
.card-heart-icon{color:#a3aab5}.card-heart.is-saved .card-heart-icon{color:var(--pink2)!important}
.wishlist-btn-large{border-color:#dde2e8!important;border-radius:12px!important}.wishlist-btn-large.is-saved{background:#fff1e9!important;border-color:#f3b08f!important}
[data-wishlist-count]{background:var(--pink)!important}
.search-autocomplete{top:calc(100% + 9px);border:1px solid #dfe4ea;border-radius:15px;box-shadow:0 20px 50px rgba(18,27,42,.14)}
.sa-row{border-radius:10px}.sa-row:hover,.sa-active,.sa-see-all:hover{background:#fff5ef}.sa-see-all{color:var(--pink2)}
.gallery-main{border:1px solid #e0e4e9;border-radius:22px;background:#f5f6f7;box-shadow:none}
.gallery-main img{transition:transform .24s ease}.gallery-main:hover img{transform:scale(1.025)}
.gallery-arrow,.gallery-zoom-btn{border:1px solid #e0e4e9;background:rgba(255,255,255,.95);box-shadow:0 7px 20px rgba(18,27,42,.1)}
.gallery-thumb{border-radius:11px;background:#f5f6f7}.gallery-thumb.active{border-color:var(--pink)}
.modal-card{border:1px solid #e1e5ea;border-radius:20px;box-shadow:0 28px 72px rgba(15,22,34,.22)}
.modal-close{background:#f5f6f8}.modal-close:hover{background:#fff0e8;color:var(--pink2)}
.chip-row-label{color:#4e5868}.size-guide-link,.section-more,.rating-inline-link,.link-btn,.stage.active .stage-label,.scan-details summary{color:var(--pink2)}
.rating-bar>span,.stage.active .stage-dot{background:var(--pink)}
.review-summary-card{background:#fff;border:1px solid #e1e5ea}
.review-card,.review-form,.review-login-prompt{border-color:#e1e5ea;border-radius:16px;box-shadow:none}
.tab-row{background:#f5f6f8;border-color:#e2e6eb;border-radius:12px}.tab-btn{border-radius:8px}
.tracking-inline{background:#fafbfc;border-color:#e1e5ea;border-radius:16px}
.discount-pill{background:#fff0e8;color:var(--pink2)}

@media(max-width:900px){
  .product-detail-grid{gap:30px}.gallery-main{border-radius:18px}
  .search-autocomplete{top:96px;border-radius:14px}
}


/* Mobile-safe product gallery and full-screen image viewer */
.gallery-main img{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media(max-width:900px){
  .product-gallery-wrap{width:100%;overflow:hidden}
  .gallery-main{aspect-ratio:4/5;max-height:72svh;background:#fff;touch-action:pan-y}
  .gallery-main img{object-fit:contain;object-position:center;transform:none!important}
  .gallery-thumbs{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-bottom:7px}
  .gallery-thumb{width:64px;height:76px;scroll-snap-align:start;background:#fff}
  .gallery-thumb img{object-fit:contain}
  .gallery-zoom-btn{top:10px;right:10px;width:44px;height:44px;z-index:4}
  .gallery-arrow{width:40px;height:40px}
  .gallery-arrow.prev{left:8px}.gallery-arrow.next{right:8px}
  .lightbox{width:100vw;height:100dvh;padding:max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:hidden;touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
  .lightbox img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;box-shadow:none}
  .lightbox-close{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:44px;height:44px;z-index:5;background:rgba(0,0,0,.52)}
  .lightbox-nav{width:42px;height:54px;border-radius:14px;font-size:28px;z-index:4;background:rgba(0,0,0,.42)}
  .lightbox-nav.prev{left:max(8px,env(safe-area-inset-left))}.lightbox-nav.next{right:max(8px,env(safe-area-inset-right))}
  .lightbox-counter{bottom:max(14px,env(safe-area-inset-bottom));z-index:4}
}
@media(max-width:420px){
  .gallery-main{aspect-ratio:3/4;max-height:68svh}
  .lightbox-nav{width:38px;height:50px}
}

/* 2026-07-31: show the complete product image without cropping */
.product-gallery .gallery-main{
  aspect-ratio: 4 / 5;
  background: #fff;
  display: grid;
  place-items: center;
}
.product-gallery .gallery-main > img{
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain !important;
  object-position: center center !important;
}
.product-gallery .gallery-main:hover > img{
  transform: scale(1.02);
}
.product-gallery .gallery-thumb{
  background: #fff;
}
.product-gallery .gallery-thumb img{
  object-fit: contain !important;
  object-position: center center;
}
@media (max-width: 900px){
  .product-gallery .gallery-main{
    aspect-ratio: 4 / 5;
    width: 100%;
    max-height: none;
    min-height: 0;
  }
  .product-gallery .gallery-main > img{
    padding: 6px;
  }
}
@media (max-width: 420px){
  .product-gallery .gallery-main{
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}


/* 2026-07-31: product description, fabric, wash care and Excel-backed details */
.product-details-section{
  grid-column:1/-1;
  margin-top:34px;
  padding:28px;
  border:1px solid #e7e9ee;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 30px rgba(17,24,39,.045);
}
.product-details-heading{margin-bottom:18px}
.product-details-heading h2{margin:3px 0 0;font-size:clamp(24px,3vw,34px);letter-spacing:-.045em}
.product-description-panel{padding:18px 20px;margin-bottom:16px;border-radius:18px;background:#faf7f5;border:1px solid #f0e6e1}
.product-description-panel h3{margin:0 0 8px;font-size:17px}
.product-description-panel p{margin:0;color:#515967;line-height:1.75;white-space:normal}
.product-spec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.product-spec-item{min-width:0;padding:16px 18px;border:1px solid #e8ebef;border-radius:16px;background:#fbfcfd}
.product-spec-item span{display:block;margin-bottom:6px;color:#747d8b;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.product-spec-item strong{display:block;color:#202632;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:900px){
  .product-details-section{margin-top:24px;padding:20px;border-radius:20px}
  .product-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .product-details-section{padding:16px;margin-left:0;margin-right:0}
  .product-spec-grid{grid-template-columns:1fr}
  .product-description-panel{padding:15px}
}

/* Keep all dynamically rendered product sections full-width inside the legacy host grid. */
.product-detail > .product-detail-grid,
.product-detail > .product-details-section,
.product-detail > .section,
.product-detail > [data-reviews-host]{grid-column:1/-1;width:100%}


/* 2026-07-31: complete Myntra-style product details from Admin/Excel */
.complete-product-details{max-width:900px;margin-left:auto;margin-right:0;padding:28px 30px;background:#fff}
.product-detail-copy-block{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #eceff3}
.product-detail-copy-block:last-child{border-bottom:0}.product-detail-copy-block h2,.product-detail-copy-block h3,.product-specifications-block h3{margin:0 0 10px;color:#20242c;letter-spacing:-.02em}
.product-detail-copy-block h2{font-size:17px;font-weight:900}.product-detail-copy-block h2 span{margin-left:5px;color:#6b7280}.product-detail-copy-block h3,.product-specifications-block h3{font-size:16px;font-weight:900}
.product-detail-copy-block p{margin:4px 0;color:#3f4652;line-height:1.65}.product-detail-copy-block p strong{color:#20242c}.muted-detail{color:#8b93a1!important;font-style:italic}
.product-specifications-block{padding-bottom:20px;border-bottom:1px solid #eceff3}.product-reference-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px}
.product-reference-spec-grid .product-spec-item{padding:12px 0;border:0;border-bottom:1px solid #edf0f3;border-radius:0;background:transparent}
.product-reference-spec-grid .product-spec-item span{margin-bottom:3px;color:#808795;font-size:11px;text-transform:none;letter-spacing:0;font-weight:650}
.product-reference-spec-grid .product-spec-item strong{font-size:14px;font-weight:700;color:#303641}.product-spec-extra[hidden]{display:none!important}
.product-see-more{margin-top:14px;border:0;background:transparent;color:#e34a3b;font-weight:900;cursor:pointer;padding:4px 0}
.product-legal-information{display:grid;gap:9px;padding-top:20px}.product-legal-information>div{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start}.product-legal-information span{color:#6b7280;font-size:13px}.product-legal-information strong{color:#303641;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:900px){.complete-product-details{max-width:none;margin-right:auto}.product-reference-spec-grid{gap:0 24px}}
@media(max-width:560px){.complete-product-details{padding:18px}.product-reference-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.product-legal-information>div{grid-template-columns:110px 1fr}.product-detail-copy-block p{font-size:14px}}


/* Google authentication */
.auth-google-wrap{margin-top:20px}
.google-auth-btn{width:100%;min-height:48px;border:1px solid #d0d5dd;border-radius:14px;background:#fff;color:#10121a;display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 16px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(16,18,26,.05);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.google-auth-btn:hover{transform:translateY(-1px);border-color:#98a2b3;box-shadow:0 8px 22px rgba(16,18,26,.09)}
.google-auth-btn:focus-visible{outline:3px solid rgba(66,133,244,.24);outline-offset:2px}
.google-auth-btn:disabled{cursor:wait;opacity:.72;transform:none}
.google-auth-icon{width:20px;height:20px;flex:0 0 20px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#98a2b3;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}
.auth-divider span{white-space:nowrap}
@media(max-width:420px){.auth-divider span{font-size:10px}.google-auth-btn{min-height:46px}}
