/* Premium PDP redesign — UI/UX only. Selectors are scoped under .pdp-premium
   so the rules themselves don't leak onto other pages, but the design-token
   custom properties live on :root — the mobile sticky bar is intentionally
   rendered as a sibling of .pdp-premium (so its `position:fixed` isn't
   affected by any ancestor stacking/transform context), and custom
   properties only inherit down the DOM tree, so scoping the tokens to
   .pdp-premium itself left that bar unable to see them (var() with no
   matching property and no fallback resolves to transparent/initial, so its
   buttons rendered with no background at all). */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --pdp-bg: #FFFFFF;
  --pdp-card: #F7F7F7;
  --pdp-primary: #0F2D5C;
  --pdp-primary-hover: #0B2246;
  --pdp-gold: #C9A227;
  --pdp-gold-hover: #B08F20;
  --pdp-gold-bg: #FBF4E1;
  --pdp-ink: #1A1A1A;
  --pdp-secondary: #666666;
  --pdp-border: #E8E8E8;
  --pdp-success: #0A7D5A;
  --pdp-success-bg: #E9F6F1;
  --pdp-error: #E53935;
  --pdp-radius-lg: 14px;
  --pdp-radius-md: 12px;
  --pdp-radius-sm: 8px;
  --pdp-radius-pill: 999px;
  --pdp-gap: 24px;
  --pdp-shadow-sm: 0 2px 8px rgba(15,45,92,.06);
  --pdp-shadow-md: 0 8px 24px rgba(15,45,92,.10);
  --pdp-shadow-lg: 0 16px 48px rgba(15,45,92,.14);
  --pdp-font-heading: "Playfair Display", Georgia, serif;
  --pdp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pdp-ease: cubic-bezier(.4,0,.2,1);
}
.pdp-premium {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  background: var(--pdp-bg);
  color: var(--pdp-ink);
  font-family: var(--pdp-font-body);
}
.pdp-premium * { box-sizing: border-box; }
.pdp-premium a { text-decoration: none; color: inherit; }

/* ---------- Breadcrumb ---------- */
.pdp-premium .pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--pdp-secondary);
  padding: 20px 0 12px;
}
.pdp-premium .pdp-breadcrumb a { color: var(--pdp-secondary); transition: color .2s var(--pdp-ease); }
.pdp-premium .pdp-breadcrumb a:hover { color: var(--pdp-primary); }
.pdp-premium .pdp-breadcrumb__current { color: var(--pdp-primary); font-weight: 500; }
.pdp-premium .pdp-breadcrumb__sep { opacity: .5; }

/* ---------- Layout ---------- */
.pdp-premium .pdp-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 56px;
  align-items: flex-start;
  padding-bottom: 24px;
}
/* The base theme's own two-column split system sizes <media-gallery> via a
   plain `.media-gallery-size-medium{width:45%}` class rule (one of the
   classes already on this element, kept for compatibility with other
   theme/JS behavior) — that fights our .pdp-layout grid's own 55/45 column
   split, shrinking the whole gallery to 45% of its grid track instead of
   filling it. Our grid already owns the real proportions, so this legacy
   width needs to be neutralized. */
.pdp-premium .pdp-gallery { position: relative; width: 100% !important; }
.pdp-premium .pdp-info {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Gallery ---------- */
.pdp-premium .pdp-gallery-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pdp-premium .pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 84px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  max-height: 700px;
  overflow-y: auto;
  scrollbar-width: none;
}
.pdp-premium .pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-premium .pdp-thumb {
  display: block;
  border-radius: var(--pdp-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--pdp-card);
  cursor: pointer;
  transition: border-color .25s var(--pdp-ease), opacity .25s var(--pdp-ease);
  opacity: .7;
}
.pdp-premium .pdp-thumb:hover { opacity: 1; }
.pdp-premium .pdp-thumb.is-active { border-color: var(--pdp-primary); opacity: 1; }
.pdp-premium .pdp-thumb .img-ar { aspect-ratio: .75; }
.pdp-premium .pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-premium .pdp-main-image {
  flex: 1;
  position: relative;
  background: var(--pdp-card);
  border-radius: var(--pdp-radius-lg);
  overflow: hidden;
  height: 700px;
  box-shadow: var(--pdp-shadow-md);
}
/* The main-image <carousel-slider> (unlike the thumbnail one) doesn't carry
   the theme's "block" utility class, so as an unknown custom element it
   defaults to display:inline and shrinks to its content's width instead of
   filling this container — force it (and its inner .slider) block + full
   width explicitly. */
.pdp-premium .pdp-main-image .slider,
.pdp-premium .pdp-main-image carousel-slider {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
/* The base theme's .slider__grid is `display:grid` with a column-width
   formula (grid-auto-columns) — at some viewport widths that leaves the
   (unset) row height indeterminate, which breaks the 100% height chain
   below it and the slide renders with zero height. Flex gives an
   equivalent one-slide-at-a-time horizontal layout (still scroll-snappable
   via the .slider container) with height that reliably propagates. */
.pdp-premium .pdp-main-image .slider__grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  height: 100% !important;
}
.pdp-premium .pdp-main-image .slider__item {
  flex: 0 0 100% !important;
  height: 700px;
}
/* The <a class="show-gallery"> between .slider__item and
   .product-media-wrapper was missing from this chain — with no explicit
   height it computes to auto, and a percentage height against an
   auto-height containing block resolves to auto too (per spec), so
   everything below it collapsed to its content size instead of filling
   the 700px slide. */
.pdp-premium .pdp-main-image .slider__item > a.show-gallery,
.pdp-premium .pdp-main-image .product-media-wrapper,
.pdp-premium .pdp-main-image .product-media,
.pdp-premium .pdp-main-image .img-ar,
.pdp-premium .pdp-main-image .product-media-wrapper > div { display: block; height: 100% !important; }
.pdp-premium .pdp-main-image .img-ar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--pdp-ease);
  transform-origin: center;
}
.pdp-premium .pdp-main-image .show-gallery:hover img { transform: scale(1.06); }

/* Image load-in fade — applied to gallery/thumbnail <img> tags, toggled by
   product-gallery.js once each image actually has pixels (covers the
   already-cached case too, where a late 'load' listener would never fire). */
.pdp-premium .pdp-fade-img { opacity: 0; transition: opacity .4s var(--pdp-ease); }
.pdp-premium .pdp-fade-img.is-loaded { opacity: 1; }

/* Desktop cursor-following zoom lens — a full-size overlay inside the
   (already overflow:hidden) main image box, its background-position driven
   by mouse position in product-gallery.js. */
.pdp-premium .pdp-zoom-pane {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 220%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--pdp-ease);
  z-index: 2;
}
.pdp-premium .pdp-zoom-pane.is-visible { opacity: 1; }

/* Mobile swipe dot indicators, overlaid at the bottom of the main image. */
.pdp-premium .pdp-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.pdp-premium .pdp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(17,17,17,.25);
  cursor: pointer;
  transition: background .2s var(--pdp-ease), transform .2s var(--pdp-ease);
}
.pdp-premium .pdp-dot.is-active { background: var(--pdp-primary); transform: scale(1.3); }

.pdp-premium .pdp-main-image .slider-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--pdp-ease), background .2s var(--pdp-ease);
}
.pdp-premium .pdp-main-image .slider-nav__btn:hover { background: #fff; transform: scale(1.06); }

/* ---------- Product info ---------- */
.pdp-premium .pdp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--pdp-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pdp-premium .pdp-meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.pdp-premium .pdp-meta-row .pdp-stock--in { color: var(--pdp-success); }
.pdp-premium .pdp-meta-row .pdp-stock--out { color: var(--pdp-error); }

.pdp-premium .pdp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pdp-premium .pdp-title {
  font-family: var(--pdp-font-heading);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.22;
  margin: 0;
  color: var(--pdp-primary);
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-premium .pdp-share-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--pdp-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pdp-primary);
  transition: border-color .2s var(--pdp-ease), transform .15s var(--pdp-ease);
}
.pdp-premium .pdp-share-btn svg { width: 17px; height: 17px; }
.pdp-premium .pdp-share-btn:hover { border-color: var(--pdp-primary); transform: translateY(-1px); }

.pdp-premium .pdp-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--pdp-secondary);
}
.pdp-premium .pdp-rating-row .pdp-stars { color: var(--pdp-gold); display: inline-flex; gap: 2px; }
.pdp-premium .pdp-rating-row .pdp-stars svg { width: 14px; height: 14px; }
.pdp-premium .pdp-rating-sep { opacity: .5; }
.pdp-premium .pdp-sold-count { color: var(--pdp-secondary); }

.pdp-premium .pdp-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid var(--pdp-border);
  border-bottom: 1px solid var(--pdp-border);
  padding: 18px 0;
}
.pdp-premium .pdp-price-current { font-family: var(--pdp-font-body); font-size: 34px !important; font-weight: 700; color: var(--pdp-primary) !important; letter-spacing: -.01em; }
.pdp-premium .pdp-price-mrp { font-size: 18px !important; color: var(--pdp-secondary) !important; text-decoration: line-through; }
.pdp-premium .pdp-price-discount {
  font-size: 12px !important;
  font-weight: 700;
  color: var(--pdp-primary) !important;
  background: var(--pdp-gold-bg);
  border: 1px solid var(--pdp-gold);
  padding: 3px 10px;
  border-radius: var(--pdp-radius-pill);
}
.pdp-premium .price-descriptors { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: -8px; }
.pdp-premium .pdp-tax-note { font-size: 12.5px; color: var(--pdp-secondary); }
.pdp-premium .pdp-you-save { font-size: 12.5px; font-weight: 700; color: var(--pdp-success); }

.pdp-premium .pdp-short-desc { font-size: 14px; line-height: 1.7; color: #333; margin-bottom: 0; }

.pdp-premium .pdp-attr-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 16px;
  background: var(--pdp-card);
  border-radius: var(--pdp-radius-md);
  margin-bottom: 4px;
}
.pdp-premium .pdp-attr-row { display: flex; flex-direction: column; gap: 2px; }
.pdp-premium .pdp-attr-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--pdp-secondary); }
.pdp-premium .pdp-attr-value { font-size: 13.5px; font-weight: 600; color: var(--pdp-primary); }

/* ---------- Size selector ---------- */
.pdp-premium .pdp-size-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pdp-premium .pdp-size-guide-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pdp-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .2s var(--pdp-ease);
}
.pdp-premium .pdp-size-guide-btn:hover { color: var(--pdp-primary); }
.pdp-premium .option-selector__btns { gap: 10px; margin-top: 0; }
.pdp-premium .opt-label--btn {
  min-width: 48px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pdp-radius-pill);
  border: 1.5px solid var(--pdp-border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--pdp-ease);
}
.pdp-premium .opt-label--btn:hover { border-color: var(--pdp-primary); transform: translateY(-1px); }
.pdp-premium .js-option:checked + .opt-label--btn {
  background: var(--pdp-primary);
  border-color: var(--pdp-primary);
  color: #fff;
}
.pdp-premium .opt-label--btn.opt-label--disabled {
  color: #bbb;
  border-color: var(--pdp-border);
  background: #F5F5F5;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ---------- Quantity ---------- */
.pdp-premium .pdp-qty-row { display: flex; align-items: center; gap: 16px; }
.pdp-premium .pdp-qty-row .label { font-size: 13px; font-weight: 600; margin: 0; }
.pdp-premium quantity-wrapper.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pdp-border);
  border-radius: var(--pdp-radius-pill);
  overflow: hidden;
}
.pdp-premium .quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0 !important;
  background: transparent;
  cursor: pointer;
  transition: background .2s var(--pdp-ease);
}
.pdp-premium .quantity-btn:hover { background: var(--pdp-card); }
.pdp-premium .quantity-btn svg { width: 16px; height: 16px; }
.pdp-premium .quantity-input {
  /* main43e1.css's `.quantity-wrapper input[name=quantity]{height:35px}`
     (a type selector on top of the class) is more specific than the
     2-class selector here, so it was winning regardless of load order
     and shrinking the input to 35px next to the buttons' 44px — the
     number looked vertically off-center in the pill as a result.
     !important is the same pattern already used elsewhere in this file
     to beat legacy rules that themselves have no !important to fight. */
  width: 48px !important;
  height: 44px !important;
  border: none;
  border-left: 1.5px solid var(--pdp-border);
  border-right: 1.5px solid var(--pdp-border);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Action buttons ----------
   Note: several selectors below need higher specificity (or !important on
   the specific properties the legacy theme/custom stylesheets also set
   with !important, e.g. plain `button{font-size:12px!important;...}`) —
   otherwise those older, more specific/`!important` rules win the cascade
   and these premium buttons silently fall back to old theme colors/sizes. */
.pdp-premium .pdp-actions { display: flex; flex-direction: column; gap: 12px; }
.pdp-premium .pdp-actions .btn.add-to-cart {
  height: 56px !important;
  width: 100%;
  border-radius: var(--pdp-radius-md);
  background: var(--pdp-primary) !important;
  border-color: var(--pdp-primary) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 600;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pdp-shadow-sm);
  transition: transform .2s var(--pdp-ease), background .2s var(--pdp-ease), box-shadow .2s var(--pdp-ease);
}
.pdp-premium .pdp-actions .btn.add-to-cart:hover { background: var(--pdp-primary-hover) !important; transform: translateY(-2px); box-shadow: var(--pdp-shadow-md); }
.pdp-premium .pdp-actions .btn.add-to-cart:active { transform: translateY(0); box-shadow: var(--pdp-shadow-sm); }

.pdp-premium .pdp-actions .pdp-buy-now {
  height: 56px;
  width: 100%;
  border-radius: var(--pdp-radius-md);
  background: var(--pdp-gold) !important;
  border: none;
  color: #1A1400 !important;
  font-size: 13.5px !important;
  font-weight: 700;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--pdp-shadow-sm);
  transition: transform .2s var(--pdp-ease), background .2s var(--pdp-ease), box-shadow .2s var(--pdp-ease);
}
.pdp-premium .pdp-actions .pdp-buy-now:hover { background: var(--pdp-gold-hover) !important; transform: translateY(-2px); box-shadow: var(--pdp-shadow-md); }
.pdp-premium .pdp-actions .pdp-buy-now:active { transform: translateY(0); box-shadow: var(--pdp-shadow-sm); }

.pdp-premium .pdp-actions .btn.wishlist-toggle-btn {
  height: 52px;
  width: 100%;
  border-radius: var(--pdp-radius-md);
  border: 1.5px solid var(--pdp-border);
  background: #fff !important;
  color: var(--pdp-primary) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  transition: border-color .2s var(--pdp-ease), transform .15s var(--pdp-ease);
}
.pdp-premium .btn.wishlist-toggle-btn:hover { border-color: var(--pdp-primary); transform: translateY(-1px); }
.pdp-premium .btn.wishlist-toggle-btn.is-active { color: var(--pdp-primary) !important; border-color: var(--pdp-gold); }
.pdp-premium .btn.wishlist-toggle-btn.is-active svg { color: var(--pdp-gold); animation: pdp-heart-pop .3s var(--pdp-ease); }
@keyframes pdp-heart-pop { 0%{transform:scale(1)} 40%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* ---------- Highlights ---------- */
.pdp-premium .pdp-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--pdp-border);
}
.pdp-premium .pdp-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 11.5px;
  color: var(--pdp-secondary);
  font-weight: 500;
  padding: 14px 8px;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius-md);
  background: var(--pdp-card);
  transition: transform .2s var(--pdp-ease), box-shadow .2s var(--pdp-ease), border-color .2s var(--pdp-ease);
}
.pdp-premium .pdp-highlight:hover {
  transform: translateY(-3px);
  box-shadow: var(--pdp-shadow-sm);
  border-color: var(--pdp-gold);
  background: #fff;
}
.pdp-premium .pdp-highlight svg { width: 22px; height: 22px; color: var(--pdp-primary); }

/* ---------- Delivery checker ---------- */
.pdp-premium .pdp-delivery {
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius-md);
  padding: 16px;
  background: var(--pdp-card);
  box-shadow: var(--pdp-shadow-sm);
}
.pdp-premium .pdp-delivery__title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pdp-premium .pdp-delivery__form { display: flex; gap: 8px; align-items: center; position: relative; }
.pdp-premium .pdp-delivery__icon {
  position: absolute;
  left: 14px;
  display: flex;
  color: var(--pdp-secondary);
  pointer-events: none;
}
.pdp-premium .pdp-delivery__icon svg { width: 16px; height: 16px; }
.pdp-premium .pdp-delivery__form input {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--pdp-border);
  border-radius: var(--pdp-radius-sm);
  padding: 0 14px 0 38px;
  font-size: 13px;
  background: #fff;
}
.pdp-premium .pdp-delivery__form input:focus { outline: none; border-color: var(--pdp-primary); }
.pdp-premium .pdp-delivery__form button {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--pdp-radius-sm);
  border: none;
  background: var(--pdp-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s var(--pdp-ease);
}
.pdp-premium .pdp-delivery__form button:hover { background: #000; }
.pdp-premium .pdp-delivery__result {
  margin-top: 12px;
  font-size: 13px;
  display: none;
}
.pdp-premium .pdp-delivery__result.is-visible { display: block; animation: pdp-fade-in .3s var(--pdp-ease); }
.pdp-premium .pdp-delivery__result .pdp-delivery__available {
  color: var(--pdp-success);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pdp-premium .pdp-delivery__result .pdp-delivery__available::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--pdp-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
}
.pdp-premium .pdp-delivery__result .pdp-delivery__error { color: var(--pdp-error); margin: 0; font-weight: 600; }
.pdp-premium .pdp-delivery__result ul { margin: 8px 0 0; padding-left: 4px; color: var(--pdp-secondary); list-style: none; }
.pdp-premium .pdp-delivery__result ul li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.pdp-premium .pdp-delivery__result ul li::before { content: "\2022"; position: absolute; left: 4px; color: var(--pdp-success); }
@keyframes pdp-fade-in { from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:translateY(0)} }

/* ---------- Accordions ---------- */
.pdp-premium .product-info-accordion { border-top: 1px solid var(--pdp-border); }
/* The base theme's own `.disclosure{margin-bottom:50px}` (meant for
   standalone/spaced-out disclosure blocks elsewhere in the theme) was never
   neutralized here, so every accordion row got an extra ~50px gap stacked
   after it in addition to its border — collapsing that back to 0 so rows
   sit flush against each other, separated only by the border-bottom. */
.pdp-premium .product-info-accordion details.disclosure { border-bottom: 1px solid var(--pdp-border); margin-bottom: 0; }
.pdp-premium .disclosure__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 10px;
  margin: 0 -10px;
  border-radius: var(--pdp-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background .2s var(--pdp-ease);
}
.pdp-premium .disclosure__title:hover { background: var(--pdp-card); }
.pdp-premium .disclosure__title::-webkit-details-marker { display: none; }
.pdp-premium .disclosure__title .with-icon { display: flex; align-items: center; gap: 10px; }
.pdp-premium .disclosure__title svg.icon--small { width: 17px; height: 17px; flex-shrink: 0; color: var(--pdp-secondary); }
/* The base theme builds its own +/- glyph from :before + :after (two bars,
   one rotating to form a minus). Neutralize both so only our own :after
   chevron renders — otherwise the two overlap into a garbled shape. */
.pdp-premium .disclosure__title:before { content: none !important; }
.pdp-premium .disclosure__title:after {
  content: "" !important;
  position: static !important;
  width: 8px;
  height: 8px;
  background: none !important;
  border-right: 1.5px solid var(--pdp-primary);
  border-bottom: 1.5px solid var(--pdp-primary);
  transform: rotate(45deg);
  transition: transform .3s var(--pdp-ease);
  margin-right: 4px;
  flex-shrink: 0;
}
.pdp-premium details[open] > .disclosure__title:after { transform: rotate(-135deg); }
.pdp-premium .disclosure__panel {
  padding: 0 2px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #333;
  animation: pdp-fade-in .25s var(--pdp-ease);
}
/* The base theme's own accordion script animates this panel's height open
   via inline styles set on toggle — but that script lives in the same file
   as an unrelated MediaGallery class that throws on this page (pre-existing
   site issue, not scoped to the PDP), and an uncaught error partway through
   a script file stops everything after it in that file from running,
   including the accordion's init. Without it, closed <details> panels fall
   back to their natural content height instead of collapsing, leaving a
   dead gap under every accordion row. Force the collapse in pure CSS so it
   holds regardless of whether that script manages to run. */
.pdp-premium details:not([open]) > .disclosure__panel {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  animation: none !important;
}

/* ---------- Related products / Recently viewed ---------- */
.pdp-premium-related { max-width: 1400px; margin: 64px auto 0; padding: 0 32px; }
.pdp-premium-related h2 {
  font-family: var(--pdp-font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--pdp-primary);
  text-align: center;
  margin-bottom: 28px;
}
.pdp-recent-card {
  display: block;
  border-radius: var(--pdp-radius-md);
  overflow: hidden;
  background: var(--pdp-card);
  transition: transform .2s var(--pdp-ease), box-shadow .2s var(--pdp-ease);
}
.pdp-recent-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.pdp-recent-card__img { aspect-ratio: .8; overflow: hidden; }
.pdp-recent-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-recent-card__name {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.pdp-recent-card__price { font-size: 13.5px; font-weight: 700; padding: 0 12px 12px; }

/* ---------- Reviews ---------- */
.pdp-premium-reviews { max-width: 800px; margin: 64px auto 0; padding: 0 32px; }
.pdp-premium-reviews h2 { font-family: var(--pdp-font-heading); font-size: 28px; font-weight: 600; color: var(--pdp-primary); text-align: center; margin-bottom: 8px; }
.pdp-premium-reviews .pdp-review-summary {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pdp-premium-reviews .pdp-review-summary .pdp-avg { font-family: var(--pdp-font-body); font-size: 36px; font-weight: 700; color: var(--pdp-primary); }
.pdp-premium-reviews .pdp-review-item {
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--pdp-shadow-sm);
}
.pdp-premium-reviews .pdp-review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pdp-premium-reviews .pdp-review-stars { color: var(--pdp-gold); font-size: 13px; }
.pdp-premium-reviews .pdp-verified-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--pdp-success);
  background: var(--pdp-success-bg);
  padding: 2px 8px;
  border-radius: var(--pdp-radius-pill);
  text-transform: uppercase;
}
.pdp-premium-reviews .pdp-review-date { font-size: 12px; color: var(--pdp-secondary); margin-left: auto; }
.pdp-premium-reviews .pdp-review-title { font-weight: 600; font-size: 14px; margin: 4px 0; }
.pdp-premium-reviews .pdp-review-body { font-size: 13.5px; color: #333; line-height: 1.6; }
.pdp-premium-reviews details.disclosure summary.disclosure__title {
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--pdp-border);
}
.pdp-premium-reviews form p { margin: 0 0 14px; }
.pdp-premium-reviews form label { font-size: 12.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.pdp-premium-reviews form input,
.pdp-premium-reviews form select,
.pdp-premium-reviews form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pdp-border);
  border-radius: var(--pdp-radius-sm);
  font-size: 13.5px;
}
.pdp-premium-reviews form button[type=submit] {
  height: 48px;
  padding: 0 28px;
  border-radius: var(--pdp-radius-md);
  background: var(--pdp-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Sticky mobile bar ---------- */
.pdp-mobile-bar { display: none; }

/* ---------- Focus visibility ---------- */
.pdp-premium a:focus-visible,
.pdp-premium button:focus-visible,
.pdp-premium input:focus-visible,
.pdp-premium .opt-label--btn:has(+ :focus-visible),
.pdp-premium .js-option:focus-visible + .opt-label--btn {
  outline: 2px solid var(--pdp-primary);
  outline-offset: 2px;
}

/* =====================================================
   Tablet
===================================================== */
@media (max-width: 1023px) {
  .pdp-premium { padding: 0 20px; }
  .pdp-premium .pdp-layout { grid-template-columns: 52% 48%; gap: 32px; }
  .pdp-premium .pdp-main-image,
  .pdp-premium .pdp-main-image .slider__item { height: 550px; }
  .pdp-premium .pdp-title { font-size: 30px; }
  .pdp-premium .pdp-price-current { font-size: 34px !important; }
  .pdp-premium-related, .pdp-premium-reviews { padding: 0 20px; }
}

/* =====================================================
   Mobile — dedicated stacked layout
===================================================== */
@media (max-width: 767px) {
  .pdp-premium { padding: 0 16px; }
  .pdp-premium .pdp-breadcrumb { display: none; }

  .pdp-premium .pdp-layout { display: block; }
  /* .pdp-gallery has `width: 100% !important` further up (a fix for a
     desktop-only bug where the theme's own `.media-gallery-size-medium`
     class shrinks it to 45%) — that width fights this full-bleed technique,
     since a negative margin on a box with an explicit percentage width just
     shifts it off-position without extending it, leaving a gap on the
     right instead of true edge-to-edge. Needs `width: auto` back so the
     negative margins alone determine the box's extent. */
  .pdp-premium .pdp-gallery { width: auto !important; margin: 0 -16px 20px; }
  /* align-items:flex-start (desktop's row layout) becomes a cross-axis
     (width) constraint once flex-direction flips to column here, shrinking
     children to their content width — stretch so they fill full width.
     flex-basis from the desktop `flex: 1` shorthand also governs the main
     axis (height) in column mode, silently overriding the explicit height
     below unless flex is reset to a fixed (non-growing) box. */
  .pdp-premium .pdp-gallery-row { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .pdp-premium .pdp-main-image { flex: none; width: 100%; }
  .pdp-premium .pdp-main-image,
  .pdp-premium .pdp-main-image .slider__item { height: 420px; border-radius: 0; }
  .pdp-premium .pdp-main-image { box-shadow: none; }
  .pdp-premium .pdp-thumbs {
    flex-direction: row;
    width: auto;
    max-height: none;
    overflow-x: auto;
    padding: 0 16px;
    position: static;
  }
  .pdp-premium .pdp-thumb { width: 64px; flex-shrink: 0; }
  .pdp-premium .pdp-main-image .slider-nav { display: none; }
  .pdp-premium .pdp-zoom-pane { display: none; }

  .pdp-premium .pdp-info { position: static; padding-bottom: 96px; gap: 18px; }
  .pdp-premium .pdp-title { font-size: 24px; }
  .pdp-premium .pdp-share-btn { width: 36px; height: 36px; }
  .pdp-premium .pdp-price-current { font-size: 26px !important; }
  .pdp-premium .pdp-price-mrp { font-size: 15px !important; }
  .pdp-premium .pdp-attr-card { gap: 8px 20px; padding: 12px 14px; }

  .pdp-premium .opt-label--btn { min-width: 44px; height: 48px; }
  .pdp-premium .pdp-actions .btn.add-to-cart,
  .pdp-premium .pdp-buy-now { display: none; } /* replaced by sticky bottom bar on mobile */

  .pdp-premium .pdp-highlights { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .pdp-premium .pdp-highlight { font-size: 10.5px; }

  .pdp-premium-related h2, .pdp-premium-reviews h2 { font-size: 20px; }
  .pdp-premium-related .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pdp-premium-related, .pdp-premium-reviews { padding: 0 16px; margin-top: 40px; }

  /* Premium redesign (2026-08) — the old bar used two equal, full-height,
     uppercase-letter-spaced buttons in competing navy/solid-gold fills,
     which reads as generic template chrome rather than a considered
     checkout moment. Add to Cart stays the dominant filled action; Buy
     Now becomes an outline/ghost pill next to it (still a full tappable
     button — this is a final sticky CTA bar, not a listing card, so it
     keeps real button weight rather than shrinking to a text link) — same
     asymmetric primary/secondary language as the redesigned product-card
     buttons, just both sized for a sticky bar rather than an inline row. */
  .pdp-mobile-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 500;
    background: #fff;
    border-top: 1px solid var(--pdp-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
    box-shadow: 0 -6px 20px rgba(15,45,92,.08);
  }
  .pdp-mobile-bar__price { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; margin-right: 2px; }
  .pdp-mobile-bar__price .current { font-family: var(--pdp-font-body); font-size: 17px; font-weight: 700; color: #102A43; }
  .pdp-mobile-bar__price .mrp { font-size: 11px; color: var(--pdp-secondary); text-decoration: line-through; margin-top: 1px; }
  /* customdf2a.css has a global `button{text-transform:uppercase!important;
     letter-spacing:1.5px!important;font-size:12px!important}` reset —
     !important beats a plain declaration regardless of selector
     specificity, so every property it touches needs its own !important
     here too (confirmed necessary by testing: without these, the button
     rendered as shouty uppercase caps at the wrong size despite this rule
     otherwise "winning" on specificity). */
  .pdp-mobile-bar button {
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--pdp-font-body);
    font-size: 13.5px !important;
    font-weight: 600;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s var(--pdp-ease), border-color .18s var(--pdp-ease), transform .12s var(--pdp-ease);
  }
  .pdp-mobile-bar button svg { flex-shrink: 0; }
  .pdp-mobile-bar button:active { transform: scale(.96); }
  /* border lives on each specific button below, not the shared rule above
     — `.pdp-mobile-bar button` (element+class) outranks a single-class
     selector like `.pdp-mobile-bar__buy` on specificity, so a `border:
     none` up there would silently beat this one's `border: 1.5px solid`
     regardless of source order (confirmed by testing: the outline wasn't
     rendering until this split). */
  .pdp-mobile-bar__cart {
    flex: 1.4 1 0;
    border: none;
    background: var(--pdp-primary);
    color: #fff;
  }
  .pdp-mobile-bar__cart:active { background: #0A1F40; }
  .pdp-mobile-bar__buy {
    flex: 1 1 0;
    background: #fff;
    border: 1.5px solid var(--pdp-primary);
    color: var(--pdp-primary);
  }
  .pdp-mobile-bar__buy:active { background: #F5F7FA; }
}

/* =====================================================
   Small phones (320–480px) — tighter spacing/type only,
   layout shape is already handled by the 767px breakpoint.
===================================================== */
@media (max-width: 480px) {
  .pdp-premium { padding: 0 12px; }
  .pdp-premium .pdp-main-image,
  .pdp-premium .pdp-main-image .slider__item { height: 360px; }
  .pdp-premium .pdp-title { font-size: 21px; }
  .pdp-premium .pdp-price-current { font-size: 23px !important; }
  .pdp-premium .pdp-attr-card { gap: 6px 16px; }
  .pdp-premium .pdp-highlights { grid-template-columns: repeat(2, 1fr); }
  .pdp-premium-related, .pdp-premium-reviews { padding: 0 12px; }
  .pdp-premium-related .product-grid,
  .pdp-recently-viewed .product-grid { gap: 10px !important; }
}

/* ---------- Share fallback toast (appended to <body>, outside .pdp-premium) ---------- */
.pdp-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 99999;
  pointer-events: none;
}
.pdp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pdp-premium *,
  .pdp-toast {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
