/* ================================================================
   SHHEK — Product Page Styles
   Page-unique styles only — shared tokens/reset in shared.css
   ================================================================ */

/* ---- Product Layout ---- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4.5rem;            /* raised from 4rem */
  padding-top: 2.5rem;    /* raised from 2rem */
  padding-bottom: 5rem;   /* raised from 4rem */
  align-items: start;
}

/* ---- Gallery ---- */
.product-gallery {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery-thumb {
  width: 90px; height: 115px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--warm-beige);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-normal) var(--ease);
}
.gallery-thumb:hover { border-color: var(--sand); }
.gallery-thumb.active { border-color: var(--espresso); }
.gallery-thumb:hover img { transform: scale(1.05); }

.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--warm-beige);
  cursor: crosshair;
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.15s ease, transform var(--t-normal) ease;
  display: block;
}
.gallery-zoom-hint {
  position: absolute; bottom: 1rem; right: 1rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--espresso);
  background: rgba(246,242,238,0.88); padding: 0.3rem 0.7rem;
  border-radius: var(--r-full); pointer-events: none;
  opacity: 0.7;
}

/* ---- Product Info Panel ---- */
.product-info {
  display: flex;
  flex-direction: column;
  /*gap: 1.75rem;   */
  /* raised from 1.5rem — more breathing between option groups */
}
.product-info__top { display: flex; flex-direction: column; gap: 0.75rem; }
.product-category {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--clr-accent);
}
.product-title {
  font-family: var(--ff-head); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--espresso); line-height: 1.08;
  letter-spacing: -0.01em; /* editorial negative tracking */
}
.product-model-info {
  font-size: var(--fs-xs); color: var(--clr-muted);
  margin-top: 0.5rem; letter-spacing: 0.05em;
  font-style: italic;
}
.product-rating {
  display: flex; align-items: center; gap: 0.75rem;
}
.rating-stars { display: flex; gap: 2px; }
.rating-stars svg {
  width: 15px; height: 15px; fill: var(--clay); stroke: none;
}
.rating-count {
  font-size: var(--fs-xs); color: var(--clr-muted);
  text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--t-fast) var(--ease);
}
.rating-count:hover { color: var(--espresso); }
.product-price-wrap { display: flex; align-items: baseline; gap: 0.75rem; }
.product-price {
  font-family: var(--ff-head); /* use heading font for price — editorial feel */
  font-size: 1.8rem; font-weight: 500; color: var(--espresso); line-height: 1;
  letter-spacing: -0.01em;
}
.product-tax-note { font-size: var(--fs-xs); color: var(--clr-muted); letter-spacing: 0.04em; }

/* ---- Option Groups ---- */
.option-group { display: flex; flex-direction: column; gap: 0.75rem; /* raised from 0.6rem */ }
.option-label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--espresso);
  margin-top:25px;
}
.option-label strong { font-weight: 400; text-transform: none; }

.color-swatches { display: flex; gap: 0.5rem; }
.color-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  outline-offset: 3px;
  transition: all var(--t-fast) var(--ease);
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { outline: 2px solid var(--espresso); }
.dot-rose    { background: #c48a88; }
.dot-slate   { background: #5a6070; }
.dot-dusk    { background: #c9a882; }
.dot-espresso { background: var(--espresso); }

.size-header-row { display: flex; align-items: center; justify-content: space-between; }
.size-guide-link {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--clr-muted);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; transition: color var(--t-fast) var(--ease);
  background: none; border: none;
}
.size-guide-link:hover { color: var(--espresso); }

.size-row { display: flex; gap: 0.5rem; flex-wrap: wrap; 

    margin-bottom: 22px;
/* raised from 0.4rem */ }
.sz-btn {
  min-width: 52px; height: 44px; padding: 0 0.85rem; /* raised for better touch targets */
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.06em; color: var(--clr-muted); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: transparent; font-family: var(--ff-body);
  -webkit-tap-highlight-color: transparent;
}
.sz-btn:hover { border-color: var(--espresso); color: var(--espresso); }
.sz-btn:active { transform: scale(0.95); }
.sz-btn.active { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.sz-btn.sold-out { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.notify-form-wrap { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.size-note { font-size: var(--fs-xs); color: var(--clr-muted); line-height: 1.6; }
.notify-form { display: flex; align-items: center; border-bottom: 1.5px solid var(--clr-border); padding-bottom: 0.25rem; transition: border-color var(--t-fast) var(--ease); }
.notify-form:focus-within { border-color: var(--espresso); }
.notify-form input { flex: 1; border: none; background: transparent; font-size: var(--fs-xs); outline: none; color: var(--espresso); padding: 0.25rem 0; }
.notify-form input::placeholder { color: rgba(75, 71, 68, 0.4); }
.notify-form button { background: transparent; border: none; cursor: pointer; color: var(--espresso); font-size: 1rem; padding: 0 0.5rem; transition: transform var(--t-fast) var(--ease); }
.notify-form button:hover { transform: translateX(3px); }

/* ---- Delivery strip ---- */
.delivery-strip {
  display: flex; gap: 1.75rem; flex-wrap: wrap; /* raised from 1.5rem */
  padding: 1.25rem 0; /* raised from 1rem */
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.delivery-strip span {
  display: flex; align-items: center; gap: 0.5rem; /* raised from 0.4rem */
  font-size: var(--fs-xs); color: var(--clr-muted); font-weight: 500;
  letter-spacing: 0.03em;
}
.delivery-strip span svg {
  width: 15px; height: 15px; stroke: var(--clr-accent); fill: none; stroke-width: 2; /* raised from 14px */
}

/* ---- Actions ---- */
.product-actions-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.product-actions { display: flex; gap: 0.85rem; }
.add-bag-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.15rem 2rem; /* raised from 1.05rem */
  min-height: 52px; /* generous touch target */
  background: var(--espresso); color: var(--white);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-full); border: 2px solid var(--espresso);
  cursor: pointer; transition: all var(--t-normal) var(--ease);
  font-family: var(--ff-body);
  -webkit-tap-highlight-color: transparent;
}
.add-bag-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.add-bag-btn:hover { background: var(--charcoal); border-color: var(--charcoal); transform: translateY(-2px); box-shadow: var(--sh-md); }
.add-bag-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.wish-btn {
  width: 52px; height: 52px; flex-shrink: 0;
  border: 1.5px solid var(--clr-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-fast) var(--ease);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.wish-btn svg { width: 20px; height: 20px; stroke: var(--espresso); fill: none; stroke-width: 1.5; transition: all var(--t-fast) var(--ease); }
.wish-btn:hover { border-color: #e8526e; transform: scale(1.06); }
.wish-btn:active { transform: scale(0.95); }
.wish-btn.active svg { fill: #e8526e; stroke: #e8526e; }
.wish-btn:hover svg { stroke: #e8526e; }

.express-checkout-divider { display: flex; align-items: center; text-align: center; color: var(--clr-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.express-checkout-divider::before, .express-checkout-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--clr-border-light); }
.express-checkout-divider span { padding: 0 1rem; }
.express-checkout-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.75rem; }
.express-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 44px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.express-btn:active { transform: scale(0.97); }
.express-btn--apple { background: #000; color: #fff; border: 1px solid #000; pointer-events: none;}
.express-btn--google { background: #fff; color: #3c4043; border: 1px solid #dadce0; pointer-events: none; }
.express-btn--apple:hover { background: #333; }
.express-btn--google:hover { background: #f8f9fa; }

/* ---- Trust icons ---- */
.product-trust {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
      margin-top: 30px;
    margin-bottom: 30px;
}
.product-trust span {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); color: var(--clr-muted); font-weight: 500;
}
.product-trust span svg {
  width: 14px; height: 14px; stroke: var(--clr-accent); fill: none; stroke-width: 1.8; flex-shrink: 0;
}

/* ---- Accordions ---- */
.accordions { display: flex; flex-direction: column; border-top: 1px solid var(--clr-border); }
.accordion { border-bottom: 1px solid var(--clr-border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; /* raised from 1rem */
  background: none; border: none; cursor: pointer;
  font-size: var(--fs-base); /* raised from fs-sm for better readability */
  font-weight: 600; letter-spacing: 0.06em;
  color: var(--espresso); font-family: var(--ff-body);
  transition: color var(--t-fast) var(--ease);
}
.accordion-trigger:hover { color: var(--clr-accent); }
.accordion-chevron {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 2; transition: transform var(--t-normal) var(--ease); flex-shrink: 0;
}
.accordion-trigger.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-normal) var(--ease);
  padding: 0;
}
.accordion-body ul {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0 0 1.25rem; list-style: disc; padding-left: 1.2rem;
}
.accordion-body ul li { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.6; }

/* ---- Sticky Cart ---- */
.sticky-cart {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--espresso); box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform var(--t-normal) var(--ease);
  padding: 1rem 0;
}
.sticky-cart.visible { transform: translateY(0); }
.sticky-cart__inner {
  display: flex; align-items: center; gap: 1.5rem; justify-content: space-between;
}
.sticky-cart__product { display: flex; align-items: center; gap: 1rem; }
.sticky-cart__product img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; }
.sticky-cart__name { display: block; font-family: var(--ff-head); font-size: var(--fs-md); color: var(--white); font-weight: 400; }
.sticky-cart__variant { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,0.5); }
.sticky-cart__price { font-size: var(--fs-lg); font-weight: 700; color: var(--white); flex-shrink: 0; }
.sticky-cart__btn {
  padding: 0.9rem 2.2rem; background: var(--clay); color: var(--espresso); border: none;
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  flex-shrink: 0; transition: all var(--t-fast) var(--ease);
  min-height: 48px; -webkit-tap-highlight-color: transparent;
}
.sticky-cart__btn:hover { background: #a37a5a; transform: translateY(-1px); }
.sticky-cart__btn:active { transform: scale(0.97); }

/* ---- Feature Strip ---- */
.feature-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding: 3rem 0; border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.feature-item svg { width: 26px; height: 26px; stroke: var(--clay); fill: none; stroke-width: 1.5; }
.feature-item span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; color: var(--clr-muted); }

/* ---- Reviews ---- */
.reviews-section { padding: 4rem 0; background: var(--ivory); }
.reviews-title {
  font-family: var(--ff-head); font-size: var(--fs-2xl); font-weight: 400;
  color: var(--espresso); margin-bottom: 2rem;
}
.reviews-summary {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 3rem; padding: 2rem 0; border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border); margin-bottom: 2.5rem;
  align-items: center;
}
.reviews-summary__score { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.reviews-score { font-family: var(--ff-head); font-size: 4rem; font-weight: 300; color: var(--espresso); line-height: 1; }
.reviews-stars { display: flex; gap: 3px; }
.reviews-stars svg { width: 16px; height: 16px; fill: var(--clay); stroke: none; }
.reviews-total { font-size: var(--fs-xs); color: var(--clr-muted); }
.reviews-breakdown { display: flex; flex-direction: column; gap: 0.5rem; }
.breakdown-row { display: flex; align-items: center; gap: 0.75rem; }
.breakdown-row span:first-child { font-size: var(--fs-xs); color: var(--clr-muted); width: 32px; flex-shrink: 0; }
.breakdown-row span:last-child { font-size: var(--fs-xs); color: var(--clr-muted); width: 28px; flex-shrink: 0; text-align: right; }
.breakdown-bar { flex: 1; height: 6px; background: var(--warm-beige); border-radius: var(--r-full); overflow: hidden; }
.breakdown-fill { height: 100%; background: var(--clay); border-radius: var(--r-full); }

.reviews-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.review-card {
  background: var(--white); border-radius: var(--r-lg); padding: 1.75rem;
  border: 1px solid var(--clr-border);
}
.review-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.review-card__name { display: block; font-weight: 700; color: var(--espresso); font-size: var(--fs-base); }
.review-card__badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em;
  color: #2d5a27; background: rgba(45,90,39,0.08); padding: 0.2rem 0.6rem;
  border-radius: var(--r-full); margin-top: 0.2rem;
}
.review-card__stars { display: flex; gap: 2px; flex-shrink: 0; }
.review-card__stars svg { width: 14px; height: 14px; fill: var(--clay); stroke: none; }
.review-card__text { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.75; margin-bottom: 0.75rem; }
.review-card__date { font-size: var(--fs-xs); color: var(--sand); font-weight: 500; }

.write-review-btn {
  display: inline-flex; align-items: center;
  padding: 0.85rem 2rem; border: 1.5px solid var(--espresso);
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso);
  cursor: pointer; background: transparent; font-family: var(--ff-body);
  transition: all var(--t-fast) var(--ease);
}
.write-review-btn:hover { background: var(--espresso); color: var(--white); transform: translateY(-1px); }

/* ---- Complete the Set ---- */
.complete-set { padding: 4rem 0; background: var(--warm-beige); }
.complete-set-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.complete-set-header h2 { font-family: var(--ff-head); font-size: var(--fs-xl); font-weight: 400; color: var(--espresso); }
.set-nav { display: flex; gap: 0.5rem; }
.set-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--white); transition: all var(--t-fast) var(--ease);
}
.set-nav-btn svg { width: 16px; height: 16px; stroke: var(--espresso); fill: none; stroke-width: 2; }
.set-nav-btn:hover { background: var(--espresso); border-color: var(--espresso); }
.set-nav-btn:hover svg { stroke: var(--white); }
.set-scroll {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.set-scroll::-webkit-scrollbar { display: none; }
.set-card {
  flex-shrink: 0; width: 220px; scroll-snap-align: start; scroll-margin-left: var(--gutter);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform var(--t-normal) var(--ease);
}
.set-card:hover { transform: translateY(-4px); }
.set-card-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/5; background: var(--warm-beige); }
.set-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.set-card:hover .set-card-img img { transform: scale(1.05); }
.set-card-name { font-family: var(--ff-head); font-size: var(--fs-md); color: var(--espresso); font-weight: 400; }
.set-card-price { font-size: var(--fs-sm); font-weight: 700; color: var(--espresso); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; gap: 3rem; }
  .product-gallery { position: static; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .reviews-summary { grid-template-columns: 1fr; gap: 2rem; }
  .reviews-summary__score { flex-direction: row; text-align: left; }
}
@media (max-width: 768px) {
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0.5rem; padding-bottom: 0.5rem; }
  .gallery-thumb { width: 70px; height: 90px; flex-shrink: 0; }
  .gallery-main { aspect-ratio: 3/4; border-radius: var(--r-md); }
  .gallery-zoom-hint { display: none; }
  .product-info { gap: 1.5rem; }
  .product-info__top { gap: 0.6rem; }
  .product-title { font-size: 1.6rem; }
  .product-price { font-size: 1.5rem; }
  .product-actions { flex-wrap: wrap; }
  .add-bag-btn { order: 1; flex: 1 1 100%; } /* full width on mobile */
  .wish-btn { order: 2; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sticky-cart__product img { display: none; }
  .sticky-cart__inner { gap: 1rem; }
  .sticky-cart__btn { padding: 0.8rem 1.5rem; font-size: var(--fs-xs); }
  .delivery-strip { flex-direction: column; gap: 0.75rem; }
  .review-card { padding: 1.25rem; }
  .reviews-title { font-size: var(--fs-xl); margin-bottom: 1.5rem; }
}
@media (max-width: 480px) {
  .color-swatches { gap: 0.6rem; }
  .color-dot { width: 32px; height: 32px; } /* larger touch targets on small screens */
  .sz-btn { min-width: 48px; height: 44px; }
  .product-trust { flex-direction: column; gap: 0.75rem; }
  .set-card { width: 180px; }
}
