/* Blue Sky PDP - Liquid Glass experiment (scoped to body.commerce-product only) */

/* --------------------------------------------------------------------------
   Design tokens (product page only)
   -------------------------------------------------------------------------- */
body.commerce-product {
  --pdp-r-sm: 12px;
  --pdp-r-md: 18px;
  --pdp-r-lg: 28px;
  --pdp-space-1: 8px;
  --pdp-space-2: 12px;
  --pdp-space-3: 16px;
  --pdp-space-4: 24px;
  --pdp-space-5: 32px;
  --pdp-ink: #f4f7fb;
  --pdp-ink-soft: #a8b3c7;
  --pdp-ink-faint: #7b879c;
  --pdp-line: rgba(255, 255, 255, .12);
  --pdp-line-strong: rgba(186, 214, 255, .22);
  --pdp-glass: rgba(18, 24, 36, .42);
  --pdp-glass-strong: rgba(14, 20, 32, .58);
  --pdp-glass-soft: rgba(255, 255, 255, .045);
  --pdp-sheen: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%);
  --pdp-blur: blur(28px) saturate(160%);
  --pdp-blur-soft: blur(16px) saturate(145%);
  --pdp-inset: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(120, 170, 255, .06);
  --pdp-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 1px 0 rgba(255, 255, 255, .06);
  --pdp-accent: #7eb6ff;
  --pdp-accent-deep: #3b82f6;
  --pdp-danger: #f87171;
  --pdp-ok: #4ade80;
  --pdp-track: rgba(0, 0, 0, .22);
  --pdp-track-active: rgba(255, 255, 255, .1);
  overflow-x: clip;
}

html[data-theme="light"] body.commerce-product {
  --pdp-ink: #0f172a;
  --pdp-ink-soft: #475569;
  --pdp-ink-faint: #64748b;
  --pdp-line: rgba(15, 23, 42, .1);
  --pdp-line-strong: rgba(59, 130, 246, .2);
  --pdp-glass: rgba(255, 255, 255, .55);
  --pdp-glass-strong: rgba(255, 255, 255, .72);
  --pdp-glass-soft: rgba(255, 255, 255, .42);
  --pdp-track: rgba(15, 23, 42, .06);
  --pdp-track-active: rgba(255, 255, 255, .82);
  --pdp-sheen: linear-gradient(155deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 45%);
  --pdp-inset: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(15, 23, 42, .04);
  --pdp-shadow: 0 18px 50px rgba(15, 23, 42, .08), 0 1px 0 rgba(255, 255, 255, .65);
  --pdp-accent: #2563eb;
  --pdp-accent-deep: #1d4ed8;
}

body.commerce-product .shop-product-page {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
}

body.commerce-product .shop-product-page::before,
body.commerce-product .shop-product-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

body.commerce-product .shop-product-page::before {
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  top: -4%;
  inset-inline-end: -12%;
  background: radial-gradient(circle, rgba(59, 130, 246, .34), transparent 68%);
}

body.commerce-product .shop-product-page::after {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  top: 42%;
  inset-inline-start: -14%;
  background: radial-gradient(circle, rgba(14, 165, 233, .22), transparent 70%);
}

body.commerce-product .shop-product-page > .shop-container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Stage shell
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-stage,
body.commerce-product .shop-product-detail-v3 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr) !important;
  gap: clamp(20px, 3vw, 40px) !important;
  align-items: start !important;
  padding: clamp(18px, 2.4vw, 28px) !important;
  border-radius: var(--pdp-r-lg) !important;
  border: 1px solid var(--pdp-line) !important;
  background:
    var(--pdp-sheen),
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, .08), transparent 36%),
    var(--pdp-glass) !important;
  box-shadow: var(--pdp-shadow), var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur) !important;
  -webkit-backdrop-filter: var(--pdp-blur) !important;
  color: var(--pdp-ink);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-gallery,
body.commerce-product .shop-product-gallery-v3 {
  align-self: start !important;
  gap: 12px !important;
}

body.commerce-product .shop-product-gallery-v3:not(:has(.shop-product-thumbnails)) {
  grid-template-columns: 1fr !important;
}

body.commerce-product .pdp-media,
body.commerce-product .shop-product-main-media {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: min(560px, 70vh) !important;
  aspect-ratio: 4 / 5 !important;
  border-radius: calc(var(--pdp-r-lg) - 4px) !important;
  border: 1px solid var(--pdp-line-strong) !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(96, 165, 250, .18), transparent 42%),
    var(--pdp-sheen),
    var(--pdp-glass-strong) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur-soft) !important;
  -webkit-backdrop-filter: var(--pdp-blur-soft) !important;
  cursor: zoom-in;
}

body.commerce-product .shop-product-main-media .shop-bottle,
body.commerce-product .shop-product-main-media .shop-bottle-shadow {
  display: none !important;
}

body.commerce-product .pdp-media > img,
body.commerce-product .shop-product-gallery-v3 .shop-product-main-media > img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  padding: clamp(14px, 2.5vw, 28px) !important;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  body.commerce-product .pdp-media:hover > img {
    transform: scale(1.03);
  }
}

body.commerce-product .pdp-zoom,
body.commerce-product .shop-media-zoom {
  inset-inline-end: 14px !important;
  bottom: 14px !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 11px !important;
  color: #fff !important;
  background: rgba(8, 12, 20, .45) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.commerce-product .shop-product-thumb {
  width: 68px !important;
  height: 80px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(10px) !important;
  overflow: hidden !important;
}

body.commerce-product .shop-product-thumb.active {
  border-color: color-mix(in srgb, var(--pdp-accent) 55%, transparent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pdp-accent) 35%, transparent) !important;
}

/* --------------------------------------------------------------------------
   Summary / typography
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-summary {
  display: grid !important;
  gap: var(--pdp-space-3) !important;
  padding: 4px 2px 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.commerce-product .pdp-summary > :is(.pdp-attrs, .pdp-notes, .pdp-buy, .pdp-variants, .pdp-lead, .pdp-meta, .pdp-title, .pdp-crumb) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.commerce-product .pdp-crumb,
body.commerce-product .shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--pdp-ink-faint);
  font-size: 12px;
}

body.commerce-product .pdp-crumb a {
  color: var(--pdp-ink-soft);
  text-decoration: none;
}

body.commerce-product .pdp-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: var(--pdp-space-2) !important;
  flex-wrap: nowrap !important;
}

body.commerce-product .pdp-title > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.commerce-product .pdp-title .shop-detail-favorite,
body.commerce-product .pdp-title .shop-detail-compare {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.commerce-product .pdp-title .shop-detail-compare {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(12px) !important;
  color: var(--pdp-ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

body.commerce-product .pdp-title .shop-detail-compare svg {
  width: 16px;
  height: 16px;
}

body.commerce-product .pdp-eyebrow,
body.commerce-product .shop-detail-label {
  display: inline-flex !important;
  align-items: center;
  min-height: 26px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  color: #eaf2ff !important;
  background: linear-gradient(135deg, rgba(59, 130, 246, .92), rgba(37, 99, 235, .78)) !important;
  border: 0 !important;
}

body.commerce-product .pdp-title h1 {
  margin: 10px 0 0 !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  line-height: 1.12 !important;
  font-weight: 650 !important;
  letter-spacing: -.02em;
  color: var(--pdp-ink) !important;
  overflow-wrap: anywhere;
}

body.commerce-product .pdp-icon-btn,
body.commerce-product .shop-detail-favorite {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(12px) !important;
  color: var(--pdp-ink) !important;
  transition: border-color .2s ease, transform .2s ease, background .2s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  body.commerce-product .pdp-icon-btn:hover {
    border-color: var(--pdp-line-strong) !important;
    transform: translateY(-1px);
  }
}

body.commerce-product .pdp-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  align-items: center !important;
  color: var(--pdp-ink-soft) !important;
  font-size: 12px !important;
}

body.commerce-product .pdp-stock-pill,
body.commerce-product .pdp-stock-line {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid var(--pdp-line) !important;
  background: rgba(255, 255, 255, .04) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--pdp-ink-soft) !important;
}

body.commerce-product .pdp-stock-pill::before,
body.commerce-product .pdp-stock-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pdp-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdp-ok) 22%, transparent);
}

body.commerce-product .pdp-stock-pill.is-out::before,
body.commerce-product .pdp-stock-line.is-out::before,
body.commerce-product .shop-stock-dot.out::before {
  background: var(--pdp-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdp-danger) 22%, transparent);
}

body.commerce-product .pdp-stock-pill.is-pre::before,
body.commerce-product .pdp-stock-line.is-pre::before {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .2);
}

body.commerce-product .pdp-lead,
body.commerce-product .shop-detail-description {
  margin: 0 !important;
  max-width: 54ch;
  color: var(--pdp-ink-soft) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}

/* --------------------------------------------------------------------------
   Attribute panel — one glass surface, not six heavy cards
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-attrs,
body.commerce-product .shop-scent-profile {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  margin: 4px 0 0 !important;
  padding: 4px 6px !important;
  border-radius: var(--pdp-r-md) !important;
  border: 1px solid var(--pdp-line) !important;
  background:
    var(--pdp-sheen),
    var(--pdp-glass-soft) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur-soft) !important;
  -webkit-backdrop-filter: var(--pdp-blur-soft) !important;
  overflow: hidden !important;
}

body.commerce-product .pdp-attr,
body.commerce-product .shop-scent-profile > div {
  display: grid !important;
  gap: 4px !important;
  padding: 14px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--pdp-line) 70%, transparent) !important;
}

body.commerce-product .pdp-attr:nth-last-child(-n+2),
body.commerce-product .shop-scent-profile > div:nth-last-child(-n+2) {
  border-bottom: 0 !important;
}

body.commerce-product .pdp-attr:nth-child(odd),
body.commerce-product .shop-scent-profile > div:nth-child(odd) {
  border-inline-end: 1px solid color-mix(in srgb, var(--pdp-line) 70%, transparent);
}

body.commerce-product .pdp-attr > span,
body.commerce-product .shop-scent-profile small {
  display: block !important;
  margin: 0 !important;
  color: var(--pdp-ink-faint) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
}

body.commerce-product .pdp-attr > strong,
body.commerce-product .shop-scent-profile strong {
  display: block !important;
  color: var(--pdp-ink) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* --------------------------------------------------------------------------
   Notes — quiet strip
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-notes,
body.commerce-product .shop-detail-note-pyramid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

body.commerce-product .pdp-notes > div {
  padding: 12px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.commerce-product .pdp-notes small {
  display: block;
  margin-bottom: 6px;
  color: var(--pdp-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

body.commerce-product .pdp-notes strong {
  display: block;
  color: var(--pdp-ink-soft);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Variants
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-variants {
  padding: 14px !important;
  border-radius: var(--pdp-r-md) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(12px) !important;
}

body.commerce-product .pdp-variants button,
body.commerce-product .shop-product-variants button {
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  color: var(--pdp-ink) !important;
  transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
}

body.commerce-product .shop-product-variants button.active {
  border-color: color-mix(in srgb, var(--pdp-accent) 50%, transparent) !important;
  background: linear-gradient(145deg, rgba(59, 130, 246, .2), rgba(255, 255, 255, .04)) !important;
}

/* --------------------------------------------------------------------------
   Purchase hero panel
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-buy,
body.commerce-product .shop-detail-purchase {
  display: grid !important;
  gap: var(--pdp-space-3) !important;
  margin-top: 8px !important;
  padding: 20px !important;
  border-radius: calc(var(--pdp-r-lg) - 2px) !important;
  border: 1px solid var(--pdp-line-strong) !important;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .16), transparent 42%),
    var(--pdp-glass-strong) !important;
  box-shadow: var(--pdp-shadow), var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur) !important;
  -webkit-backdrop-filter: var(--pdp-blur) !important;
}

body.commerce-product .pdp-buy-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

body.commerce-product .pdp-price > div {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

body.commerce-product .pdp-price strong {
  font-size: clamp(1.85rem, 3.4vw, 2.35rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.03em;
  color: var(--pdp-ink) !important;
  line-height: 1 !important;
}

body.commerce-product .pdp-price small {
  font-size: 13px !important;
  font-weight: 550 !important;
  color: var(--pdp-ink-soft) !important;
}

body.commerce-product .shop-product-price-off em {
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--pdp-accent) 30%, transparent) !important;
  background: rgba(59, 130, 246, .12) !important;
  color: var(--pdp-accent) !important;
}

body.commerce-product .pdp-buy-actions,
body.commerce-product .shop-detail-actions {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin-top: 0 !important;
}

body.commerce-product .pdp-qty,
body.commerce-product .shop-quantity {
  display: grid !important;
  grid-template-columns: 36px 1fr 36px !important;
  align-items: center !important;
  min-height: 52px !important;
  padding: 4px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-track) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html[data-theme="light"] body.commerce-product .pdp-qty {
  background: rgba(15, 23, 42, .05) !important;
}

body.commerce-product .pdp-qty button {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--pdp-track-active) !important;
  color: var(--pdp-ink) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease !important;
}

body.commerce-product .pdp-qty button:hover {
  background: rgba(255, 255, 255, .12) !important;
}

body.commerce-product .pdp-qty button:active {
  transform: scale(.94);
}

body.commerce-product .pdp-qty output,
body.commerce-product .shop-quantity output {
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--pdp-ink) !important;
}

body.commerce-product .pdp-cta,
body.commerce-product .shop-detail-actions .shop-button-primary {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: var(--pdp-r-sm) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #5b9dff, #2563eb 55%, #1d4ed8) !important;
  box-shadow:
    0 14px 30px rgba(37, 99, 235, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
  backdrop-filter: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  body.commerce-product .pdp-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
      0 18px 36px rgba(37, 99, 235, .34),
      inset 0 1px 0 rgba(255, 255, 255, .32) !important;
  }
}

body.commerce-product .pdp-cta:active:not(:disabled) {
  transform: translateY(1px) scale(.99);
}

body.commerce-product .pdp-cta:disabled,
body.commerce-product .shop-detail-actions .shop-button-primary:disabled {
  opacity: .55 !important;
  filter: grayscale(.25) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

body.commerce-product .pdp-cta:focus-visible,
body.commerce-product .pdp-qty button:focus-visible,
body.commerce-product .pdp-secondary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--pdp-accent) 70%, white);
  outline-offset: 2px;
}

body.commerce-product .pdp-secondary,
body.commerce-product .shop-detail-actions .shop-button-secondary {
  grid-column: 1 / -1 !important;
  min-height: 46px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: var(--pdp-ink) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(10px) !important;
}

body.commerce-product .pdp-trust,
body.commerce-product .shop-detail-benefits {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 2px !important;
  padding-top: 12px !important;
  border-top: 1px solid color-mix(in srgb, var(--pdp-line) 75%, transparent) !important;
}

body.commerce-product .pdp-trust > div {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
  color: var(--pdp-ink-soft) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

body.commerce-product .pdp-trust i {
  display: grid;
  place-items: center;
  color: var(--pdp-accent);
}

body.commerce-product .pdp-trust svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Tabs / lower sections
   -------------------------------------------------------------------------- */
body.commerce-product .pdp-info,
body.commerce-product .shop-product-information {
  grid-column: 1 / -1 !important;
  margin-top: 8px !important;
  padding: 14px !important;
  border-radius: var(--pdp-r-md) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur-soft) !important;
  -webkit-backdrop-filter: var(--pdp-blur-soft) !important;
}

body.commerce-product .pdp-tabs,
body.commerce-product .shop-product-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 40%),
    var(--pdp-track) !important;
  border: 1px solid var(--pdp-line) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
}

body.commerce-product .shop-product-tabs button {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--pdp-ink-soft) !important;
  min-height: 38px;
  padding-inline: 14px;
  font-weight: 650 !important;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

body.commerce-product .shop-product-tabs button.active {
  color: var(--pdp-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18)),
    var(--pdp-track-active) !important;
  border-color: var(--pdp-line-strong) !important;
  box-shadow: var(--pdp-inset), 0 6px 16px rgba(15, 23, 42, .08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html[data-theme="light"] body.commerce-product .shop-product-tabs button.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)),
    var(--pdp-track-active) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

body.commerce-product .shop-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

body.commerce-product .shop-spec-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--pdp-line) 80%, transparent);
  font-size: 12px;
}

body.commerce-product .shop-spec-row span { color: var(--pdp-ink-faint); }
body.commerce-product .shop-spec-row strong { color: var(--pdp-ink); font-weight: 650; }
body.commerce-product .shop-spec-empty { color: var(--pdp-ink-soft); font-size: 13px; line-height: 1.8; }

body.commerce-product .shop-scent-architecture,
body.commerce-product .shop-shipping-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.commerce-product .shop-scent-architecture article,
body.commerce-product .shop-shipping-panel article {
  padding: 16px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Experience / reviews — same glass language */
.shop-product-experience {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

body.commerce-product :where(
  .shop-product-story,
  .shop-product-accords,
  .shop-product-usage,
  .shop-product-faq,
  .shop-product-complementary,
  .shop-product-highlights,
  .shop-product-reviews,
  .shop-recently-viewed
) {
  border-radius: var(--pdp-r-md) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-sheen), var(--pdp-glass) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: var(--pdp-blur-soft) !important;
  -webkit-backdrop-filter: var(--pdp-blur-soft) !important;
  padding: 16px 18px !important;
  color: var(--pdp-ink);
  width: 100%;
  box-sizing: border-box;
}

body.commerce-product .shop-product-section-head {
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  align-items: start !important;
  justify-content: start !important;
}

body.commerce-product .shop-product-section-head > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.commerce-product .shop-product-section-head > div > span,
body.commerce-product .shop-product-section-head > div > span {
  color: var(--pdp-accent) !important;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}

body.commerce-product .shop-product-section-head h2 {
  margin: 0 !important;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
  line-height: 1.35 !important;
  color: var(--pdp-ink);
}

body.commerce-product .shop-product-section-head p {
  margin: 0 !important;
  max-width: 52ch !important;
  text-align: start !important;
  justify-self: start !important;
  color: var(--pdp-ink-soft) !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

body.commerce-product .shop-product-story {
  padding: 16px 18px !important;
  overflow: hidden !important;
}

body.commerce-product .shop-product-story-copy {
  display: grid !important;
  gap: 6px !important;
  padding: 0 !important;
  max-width: 68ch;
}

body.commerce-product .shop-product-story-copy > span {
  color: var(--pdp-accent) !important;
  font-size: 10px !important;
  letter-spacing: .12em;
  font-weight: 700;
}

body.commerce-product .shop-product-story-copy h2 {
  margin: 0 !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  line-height: 1.35 !important;
  font-family: IranSansX, IRANSansX, Vazirmatn, sans-serif !important;
}

body.commerce-product .shop-product-story-copy p {
  margin: 0 !important;
  color: var(--pdp-ink-soft) !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
}

body.commerce-product .shop-product-story figure {
  display: none !important;
}

body.commerce-product .shop-product-highlights {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  overflow: hidden !important;
  padding: 8px 10px !important;
}

body.commerce-product .shop-product-highlights:has(article:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.commerce-product .shop-product-highlights:has(article:nth-child(3)) {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

body.commerce-product .shop-product-highlights article {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px !important;
  border: 0 !important;
  border-inline-start: 0 !important;
  background: transparent !important;
}

body.commerce-product .shop-product-highlights article + article {
  border-top: 1px solid color-mix(in srgb, var(--pdp-line) 70%, transparent) !important;
}

body.commerce-product .shop-product-highlights:has(article:nth-child(2)) article + article {
  border-top: 0 !important;
  border-inline-start: 1px solid color-mix(in srgb, var(--pdp-line) 70%, transparent) !important;
}

body.commerce-product .shop-product-highlights article span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(59, 130, 246, .18);
  color: var(--pdp-accent);
  font-size: 11px;
  font-weight: 700;
}

body.commerce-product .shop-product-highlights article p {
  margin: 0 !important;
  color: var(--pdp-ink) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

body.commerce-product .shop-accord-profile {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 10px !important;
}

body.commerce-product .shop-accord-profile article {
  padding: 12px 14px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.commerce-product .shop-accord-profile em {
  background: linear-gradient(90deg, #3b82f6, #60a5fa) !important;
}

body.commerce-product .shop-product-usage > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 10px !important;
}

body.commerce-product .shop-product-usage article {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-glass-soft) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.commerce-product .shop-product-usage article > span {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
}

body.commerce-product .shop-review-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr) !important;
  gap: 14px !important;
}

body.commerce-product .shop-review-form,
body.commerce-product .shop-review-empty,
body.commerce-product .shop-review-card {
  border-radius: var(--pdp-r-md) !important;
  border: 1px solid var(--pdp-line) !important;
  background: rgba(255, 255, 255, .04) !important;
  box-shadow: var(--pdp-inset) !important;
  backdrop-filter: blur(12px) !important;
}

body.commerce-product .shop-review-form input,
body.commerce-product .shop-review-form textarea {
  border-radius: var(--pdp-r-sm) !important;
  border: 1px solid var(--pdp-line) !important;
  background: var(--pdp-track) !important;
  color: var(--pdp-ink) !important;
}

html[data-theme="light"] body.commerce-product .shop-review-form,
html[data-theme="light"] body.commerce-product .shop-review-empty,
html[data-theme="light"] body.commerce-product .shop-review-card {
  background: rgba(255, 255, 255, .55) !important;
}

html[data-theme="light"] body.commerce-product .shop-review-form input,
html[data-theme="light"] body.commerce-product .shop-review-form textarea {
  background: rgba(255, 255, 255, .72) !important;
}

body.commerce-product .shop-mobile-buybar {
  background: color-mix(in srgb, var(--pdp-glass-strong) 88%, transparent) !important;
  border-top: 1px solid var(--pdp-line) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
}

/* Header on product page stays subtle glass - does not redesign global site */
body.commerce-product .shop-header.shop-header-luxury {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.commerce-product .shop-header.shop-header-luxury::before {
  border: 1px solid var(--pdp-line) !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .14), transparent 42%),
    color-mix(in srgb, var(--pdp-glass-strong) 88%, transparent) !important;
  box-shadow: var(--pdp-shadow), var(--pdp-inset) !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
}

html[data-theme="light"] body.commerce-product .shop-header.shop-header-luxury::before {
  border-color: rgba(15, 23, 42, .1) !important;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62)),
    rgba(255, 255, 255, .78) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

html[data-theme="light"] body.commerce-product .shop-header-luxury :where(
  .shop-brand,
  .shop-brand strong,
  .shop-nav > a,
  .shop-nav > button,
  .shop-category-nav > button,
  .shop-account-link,
  .shop-icon-button,
  .theme-trigger
) {
  color: var(--pdp-ink) !important;
}

html[data-theme="light"] body.commerce-product .shop-header-luxury .shop-brand small {
  color: var(--pdp-ink-faint) !important;
}

html[data-theme="light"] body.commerce-product .shop-header-luxury .shop-nav > .active {
  color: var(--pdp-ink) !important;
  background: rgba(37, 99, 235, .08) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14) !important;
}

html[data-theme="light"] body.commerce-product .shop-header-luxury :where(.shop-icon-button, .shop-account-link, .theme-trigger) {
  border-color: rgba(15, 23, 42, .1) !important;
  background: rgba(255, 255, 255, .55) !important;
}

html[data-theme="light"] body.commerce-product .shop-mobile-buybar {
  background: rgba(255, 255, 255, .82) !important;
}

html[data-theme="light"] body.commerce-product .pdp-secondary,
html[data-theme="light"] body.commerce-product .shop-detail-actions .shop-button-secondary {
  background: rgba(255, 255, 255, .55) !important;
}

html[data-theme="light"] body.commerce-product .shop-product-tabs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22)),
    rgba(15, 23, 42, .04) !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  body.commerce-product .pdp-stage,
  body.commerce-product .shop-product-detail-v3 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  body.commerce-product .pdp-media,
  body.commerce-product .shop-product-main-media {
    max-height: min(460px, 62vh) !important;
    aspect-ratio: 1 / 1 !important;
  }
  body.commerce-product .shop-scent-architecture,
  body.commerce-product .shop-shipping-panel,
  body.commerce-product .shop-review-layout,
  body.commerce-product .shop-spec-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.commerce-product .pdp-attrs,
  body.commerce-product .shop-scent-profile {
    grid-template-columns: 1fr !important;
  }
  body.commerce-product .pdp-attr,
  body.commerce-product .shop-scent-profile > div {
    border-inline-end: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--pdp-line) 70%, transparent) !important;
  }
  body.commerce-product .pdp-attr:last-child,
  body.commerce-product .shop-scent-profile > div:last-child {
    border-bottom: 0 !important;
  }
  body.commerce-product .pdp-notes {
    grid-template-columns: 1fr !important;
  }
  body.commerce-product .pdp-buy-actions {
    grid-template-columns: 1fr !important;
  }
  body.commerce-product .pdp-qty {
    max-width: 160px;
  }
  body.commerce-product .pdp-trust {
    grid-template-columns: 1fr !important;
  }
  body.commerce-product .pdp-buy {
    padding: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.commerce-product .shop-product-page::before,
  body.commerce-product .shop-product-page::after {
    display: none !important;
  }
  body.commerce-product .pdp-media > img,
  body.commerce-product .pdp-cta,
  body.commerce-product .pdp-icon-btn {
    transition: none !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.commerce-product .pdp-stage,
  body.commerce-product .pdp-buy,
  body.commerce-product .pdp-attrs {
    background: #121826 !important;
  }
}
