/* 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;800&family=Plus+Jakarta+Sans:wght@800&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: "Plus Jakarta Sans", var(--pdp-font-body);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--pdp-primary);
  letter-spacing: -.025em;
  /* Full product name always shown (no 2-line clamp / ellipsis); long names wrap instead. */
  overflow-wrap: anywhere;
}
.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;
  width: 100%;
  box-sizing: border-box;
  border-top: 0;
  border-bottom: 1px solid var(--pdp-border);
  padding: 0 0 14px;
}
.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); }
/* Size / option picker. The fieldset used to shrink to ONE pill's width (95px), so the
   grid below had a single column and every size stacked on its own line. It now takes the
   full row, and pills sit in an even grid: short values (S, M, XL...) get compact equal
   cells, long ones (colour names) get wider cells. */
.pdp-premium .option-selector { display: block; width: 100%; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.pdp-premium .option-selector__btns { display: grid; width: 100%; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; margin-top: 0; }
.pdp-premium .option-selector__btns--wide { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.pdp-premium .opt-label--btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--pdp-border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s var(--pdp-ease);
}
.pdp-premium .opt-label--btn .js-value { overflow: hidden; text-overflow: ellipsis; }
.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;
}

/* Colour tiles (same idea as the wholesale page): the colour's photo with its name under it; a colour with no
   photo keeps the plain text button. The input/label markup is unchanged, so variant-selector.js is untouched. */
.pdp-premium .option-selector__btns--tiles { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 14px 10px; align-items: start; }
.pdp-premium .option-selector__btns--tiles .opt-label--btn:not(.opt-label--tile) { grid-column: span 2; }
.pdp-premium .opt-label--tile {
  height: auto; padding: 0; border: 0; background: none; color: inherit;
  flex-direction: column; gap: 6px; align-items: center; white-space: normal;
}
.pdp-premium .opt-label--btn.opt-label--tile { border-radius: 10px; }   /* colour-photo tiles keep their own shape; size/option buttons are pills */
.pdp-premium .opt-label--tile:hover { transform: none; border-color: transparent; }
.pdp-premium .pdp-tile__box {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px;
  border: 2px solid #e2e2dd; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.pdp-premium .pdp-tile__box img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 8px; object-fit: cover; }
.pdp-premium .opt-label--tile:hover .pdp-tile__box { border-color: #c4c4be; }
.pdp-premium .pdp-tile__check {
  display: none; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pdp-primary); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.pdp-premium .js-option:checked + .opt-label--tile { background: none; color: var(--pdp-primary); }
.pdp-premium .js-option:checked + .opt-label--tile .pdp-tile__box { border-color: var(--pdp-primary); box-shadow: 0 0 0 1px var(--pdp-primary); }
.pdp-premium .js-option:checked + .opt-label--tile .pdp-tile__check { display: block; }
.pdp-premium .pdp-tile__name {
  max-width: 100%; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: #555; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdp-premium .js-option:checked + .opt-label--tile .pdp-tile__name { font-weight: 700; color: var(--pdp-primary); }
.pdp-premium .opt-label--tile.opt-label--disabled { background: none; text-decoration: none; opacity: .45; }
.pdp-premium .opt-label--tile.opt-label--disabled .pdp-tile__box img { filter: grayscale(1); }
.pdp-premium .opt-label--tile.opt-label--disabled .pdp-tile__name { text-decoration: line-through; }
.pdp-premium .pdp-opt-selected { margin-inline-start: 8px; font-weight: 600; color: var(--pdp-secondary); }
.pdp-premium .pdp-opt-selected:not(:empty)::before { content: "\2014\00a0"; }

/* ---------- 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 { box-sizing: border-box; max-width: 100%; overflow: hidden; }
.pdp-premium .pdp-delivery__title { overflow-wrap: anywhere; }
.pdp-premium .pdp-delivery__form { display: flex; gap: 8px; align-items: center; position: relative; width: 100%; min-width: 0; }
.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 1 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  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 {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  white-space: nowrap;
  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: 1; overflow: hidden; background: #f6f6f4; }
.pdp-recent-card__img img { width: 100%; height: 100%; object-fit: contain; }
.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: 1400px; margin: 64px auto 0; padding: 0 32px; font-family: var(--pdp-font-body, Inter, system-ui, sans-serif); }
.pdp-premium-reviews h2 { font-family: var(--pdp-font-heading); font-size: 28px; font-weight: 600; color: var(--pdp-primary); text-align: left; margin-bottom: 20px; }
.pdp-premium-reviews .pdp-rv-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.pdp-premium-reviews .pdp-rv-summary {
  background: var(--pdp-card, #f7f7f7); border: 1px solid var(--pdp-border); border-radius: 16px;
  padding: 24px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: sticky; top: 90px;
}
.pdp-premium-reviews .pdp-rv-score { font-size: 48px; font-weight: 700; line-height: 1; color: var(--pdp-primary); }
.pdp-premium-reviews .pdp-rv-score small { font-size: 16px; font-weight: 500; color: var(--pdp-secondary); margin-left: 6px; }
.pdp-premium-reviews .pdp-rv-count { font-size: 13px; color: var(--pdp-secondary); }
.pdp-premium-reviews .pdp-rv-empty p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--pdp-secondary); }
/* exact partial stars: grey base + gold overlay clipped to --p */
.pdp-premium-reviews .pdp-rv-stars { position: relative; display: inline-block; width: max-content; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #d6d6d0; flex-shrink: 0; }
.pdp-premium-reviews .pdp-rv-stars::before { content: '\2605\2605\2605\2605\2605'; }
.pdp-premium-reviews .pdp-rv-stars::after { content: '\2605\2605\2605\2605\2605'; position: absolute; left: 0; top: 0; width: var(--p, 0%); overflow: hidden; white-space: nowrap; color: #f59e0b; }
.pdp-premium-reviews .pdp-rv-stars--lg { font-size: 22px; }
.pdp-premium-reviews .lrv-dist { width: 100%; max-width: none; margin: 10px 0 4px; }
.pdp-premium-reviews .lrv-dist__row { font-size: 12.5px; color: var(--pdp-secondary); margin: 6px 0; }
.pdp-premium-reviews .lrv-dist__bar { height: 7px; background: #e6e6e2; }
.pdp-premium-reviews .lrv-dist__bar > span { background: #f59e0b; border-radius: 4px; }
.pdp-premium-reviews .pdp-rv-write-btn {
  margin-top: 12px; align-self: stretch; text-align: center; padding: 13px 18px; border-radius: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--pdp-primary); color: #fff; transition: background .2s;
}
.pdp-premium-reviews .pdp-rv-write-btn:hover { background: var(--pdp-primary-hover); }
.pdp-premium-reviews .pdp-rv-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.pdp-premium-reviews .pdp-review-item {
  border: 1px solid var(--pdp-border); border-radius: 16px; padding: 20px; background: #fff; box-shadow: var(--pdp-shadow-sm);
  display: flex; flex-direction: column; gap: 10px; margin: 0;
}
.pdp-premium-reviews .pdp-review-item__head { display: flex; align-items: center; gap: 12px; margin: 0; }
.pdp-premium-reviews .pdp-rv-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--pdp-primary); color: #fff;
}
.pdp-premium-reviews .pdp-rv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pdp-premium-reviews .pdp-rv-who strong { font-size: 14px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-premium-reviews .pdp-review-date { font-size: 12px; color: var(--pdp-secondary); margin: 0; }
.pdp-premium-reviews .pdp-review-title { font-weight: 700; font-size: 15px; color: #1f2937; margin: 0; }
.pdp-premium-reviews .pdp-review-body { font-size: 14px; color: #3f3f46; line-height: 1.65; margin: 0; }
.pdp-premium-reviews .lrv-imgs { margin-top: 2px; }
.pdp-premium-reviews .lrv-pager { grid-column: 1 / -1; margin: 6px 0 0; }
.pdp-premium-reviews .lrv-pager a { text-decoration: none; font-weight: 600; color: var(--pdp-primary); }
.pdp-premium-reviews details.pdp-rv-write { margin-top: 28px; border: 1px solid var(--pdp-border); border-radius: 16px; background: #fff; overflow: hidden; }
.pdp-premium-reviews details.pdp-rv-write > summary {
  list-style: none; cursor: pointer; padding: 16px 22px; font-size: 14px; font-weight: 700; color: var(--pdp-primary);
  display: flex; justify-content: space-between; align-items: center;
}
.pdp-premium-reviews details.pdp-rv-write > summary::-webkit-details-marker { display: none; }
.pdp-premium-reviews details.pdp-rv-write > summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
.pdp-premium-reviews details.pdp-rv-write[open] > summary::after { content: '\2212'; }
.pdp-premium-reviews details.pdp-rv-write[open] > summary { border-bottom: 1px solid var(--pdp-border); }
.pdp-premium-reviews .pdp-rv-form { padding: 22px; }
.pdp-premium-reviews .pdp-rv-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.pdp-premium-reviews .pdp-rv-form__full { grid-column: 1 / -1; }
.pdp-premium-reviews form label { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.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: 14px; font-family: inherit; font-weight: 400; background: #fff; box-sizing: border-box;
}
.pdp-premium-reviews form input:focus,
.pdp-premium-reviews form select:focus,
.pdp-premium-reviews form textarea:focus { outline: none; border-color: var(--pdp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdp-primary) 14%, transparent); }
.pdp-premium-reviews form button[type=submit] {
  height: 48px; padding: 0 32px; border-radius: 10px; background: var(--pdp-primary); border: none; color: #fff;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; cursor: pointer; transition: background .2s;
}
.pdp-premium-reviews form button[type=submit]:hover { background: var(--pdp-primary-hover); }
.pdp-premium-reviews .pdp-rv-msg { margin: 0 0 14px; font-size: 14px; }
.pdp-premium-reviews .pdp-rv-msg--err { color: #e53935; }
.pdp-premium-reviews .pdp-rv-msg--ok { color: #0a7d5a; }
@media (max-width: 1023px) {
  .pdp-premium-reviews .pdp-rv-layout { grid-template-columns: 1fr; }
  .pdp-premium-reviews .pdp-rv-summary { position: static; }
}
@media (max-width: 640px) {
  .pdp-premium-reviews .pdp-rv-main, .pdp-premium-reviews .pdp-rv-form__grid { grid-template-columns: 1fr; }
  .pdp-premium-reviews .pdp-rv-score { font-size: 40px; }
}

/* ---------- 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;
}

/* =====================================================
   Desktop: pinned gallery, scrolling info column
   The gallery stays in view just under the sticky header while the (often long: variants, combo pack,
   delivery, tabs) info column scrolls past it — no blank space under a gallery that has scrolled away.
   The gallery's height follows the window (max 700px) so a pinned gallery is never taller than the screen.
===================================================== */
@media (min-width: 1024px) {
  .pdp-premium .pdp-layout { align-items: start; }
  .pdp-premium .pdp-gallery {
    position: sticky;
    top: 148px;                       /* sticky header (logo row + nav, ~130px) + a little air */
    align-self: start;
    --pdp-gallery-h: clamp(420px, calc(100vh - 186px), 700px);
  }
  .pdp-premium .pdp-main-image,
  .pdp-premium .pdp-main-image .slider__item { height: var(--pdp-gallery-h); }
  .pdp-premium .pdp-thumbs { position: static; max-height: var(--pdp-gallery-h); }
  .pdp-premium .pdp-info { position: static; }
}

/* =====================================================
   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: 20px; line-height: 1.25; }
  .pdp-premium .pdp-title-row { margin-bottom: 4px; }
  .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 { height: 46px; padding: 0 8px; }
  .pdp-premium .opt-label--tile { height: auto; padding: 0; }
  .pdp-premium .option-selector__btns--tiles { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .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: 18px; }
  .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;
  }
}

/* With the breadcrumb switched off, keep breathing room between the header and the product block. */
.pdp-premium.pdp-premium--no-crumb { padding-top: 32px; }
@media (max-width: 767.98px) { .pdp-premium.pdp-premium--no-crumb { padding-top: 16px; } }

/* ---------- Social links (Instagram / YouTube / Facebook) ---------- */
.pdp-premium .pdp-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 20px; padding: 0; }
.pdp-premium .pdp-social__label { font-size: 12px; font-weight: 600; color: var(--pdp-secondary); margin-right: 2px; }
.pdp-premium .pdp-social__link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border: 1px solid var(--pdp-border); border-radius: 999px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--pdp-primary); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.pdp-premium .pdp-social__link svg { width: 18px; height: 18px; flex: none; }
.pdp-premium .pdp-social__link:hover { color: #fff; transform: translateY(-1px); }
.pdp-premium .pdp-social__link--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); border-color: transparent; }
.pdp-premium .pdp-social__link--yt:hover { background: #ff0000; border-color: #ff0000; }
.pdp-premium .pdp-social__link--fb:hover { background: #1877f2; border-color: #1877f2; }
@media (max-width: 480px) { .pdp-premium .pdp-social__link { flex: 1 1 auto; justify-content: center; } .pdp-premium .pdp-social__label { flex-basis: 100%; } }

/* Main image box follows the photo's proportions (set by pdp-premium.js): no empty bands above / below a squarer photo. */
.pdp-premium .pdp-gallery[style*="--pdp-fit-h"] .pdp-main-image,
.pdp-premium .pdp-gallery[style*="--pdp-fit-h"] .pdp-main-image .slider__item { height: var(--pdp-fit-h) !important; }

@media (max-width: 480px) { .pdp-premium .pdp-delivery { padding: 14px 12px; } .pdp-premium .pdp-delivery__form { gap: 8px; } .pdp-premium .pdp-delivery__form button { padding: 0 16px; } }

/* four highlight boxes: a tidy 2x2 on phones, one row of four on wide screens */
.pdp-premium .pdp-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .pdp-premium .pdp-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 0; } }

/* ---------- tidy spacing: info column -> related products -> reviews ---------- */
@media (max-width: 767.98px) {
  /* the extra bottom space was only there to clear the sticky Add to Cart bar; that clearance now lives once at the page end */
  .pdp-premium .pdp-info { padding-bottom: 12px; }
  .pdp-premium product-form.pdp-layout, .pdp-premium .pdp-layout { padding-bottom: 0; }
  .pdp-premium-related, .pdp-premium-reviews { margin-top: 24px; }
  body.template-product { padding-bottom: 72px; }
}
@media (min-width: 768px) { .pdp-premium-related { margin-top: 40px; } .pdp-premium-reviews { margin-top: 44px; } }

/* ---------- Customer reviews: clean empty state, no duplicate "Write a Review" bar ---------- */
.pdp-premium-reviews .pdp-rv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 0 2px; }
.pdp-premium-reviews .pdp-rv-empty .pdp-rv-stars--lg { font-size: 26px; letter-spacing: 4px; }
.pdp-premium-reviews .pdp-rv-empty p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.pdp-premium-reviews .pdp-rv-summary { text-align: center; }
.pdp-premium-reviews .pdp-rv-summary .lrv-dist { text-align: left; }
.pdp-premium-reviews .pdp-rv-write-btn { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; margin-top: 14px; }
/* the form stays hidden until "Write a Review" is pressed, then it opens right under the summary */
.pdp-premium-reviews details.pdp-rv-write:not([open]) { display: none; }
.pdp-premium-reviews details.pdp-rv-write { margin-top: 14px; }
.pdp-premium-reviews .pdp-rv-layout { gap: 16px; }
@media (min-width: 768px) { .pdp-premium-reviews .pdp-rv-layout { gap: 28px; } }
.pdp-premium-reviews { padding-bottom: 28px; }
@media (min-width: 768px) { .pdp-premium-reviews { padding-bottom: 48px; } }
.pdp-premium-reviews .pdp-rv-empty .pdp-rv-stars { display: block; margin: 0 auto; text-align: center; }
.pdp-premium-reviews .pdp-rv-empty .pdp-rv-stars::before { display: block; text-align: center; }

/* ---------- tighter rhythm: size -> size chart -> quantity -> wishlist ---------- */
.pdp-premium .option-selector { margin-bottom: 12px; }
.pdp-premium .pdp-info .input-row { margin-bottom: 12px; }
.pdp-premium .pdp-info .input-row.pdp-qty-row { margin-bottom: 14px; }
.pdp-premium .sci { margin-bottom: 12px; }

/* phones: the four highlight boxes become slim "icon + text" chips (about half the height) */
@media (max-width: 640px) {
  .pdp-premium .pdp-highlights { gap: 8px; padding: 12px 0; }
  .pdp-premium .pdp-highlight { flex-direction: row; justify-content: center; gap: 7px; padding: 9px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
  .pdp-premium .pdp-highlight svg { width: 17px; height: 17px; flex: 0 0 auto; }
  .pdp-premium .pdp-highlight:hover { transform: none; }
}

/* phones: tighten the gap between the thumbnail strip and the product title (was 20px + 20px) */
@media (max-width: 767.98px) {
  .pdp-premium .pdp-thumbs { margin-bottom: 0; padding-bottom: 0; }
  .pdp-premium .pdp-gallery { margin-bottom: 12px; }
}

/* "choose a size" cue: the missing option group blinks and the error text pulses */
@keyframes pdpFlash { 0%,100% { box-shadow: 0 0 0 0 transparent; background-color: transparent; } 25%,75% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary, #4f006b) 55%, transparent); background-color: color-mix(in oklch, var(--primary, #4f006b) 8%, #fff); } 50% { box-shadow: 0 0 0 0 transparent; background-color: transparent; } }
.pdp-flash { animation: pdpFlash 1.8s ease-in-out 1; border-radius: 12px; }
#ProductFormError.pdp-flash { color: #B91C1C; font-weight: 700; padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .pdp-flash { animation: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary, #4f006b) 55%, transparent); } }
