@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn%5Bwght%5D.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f8f9fa;
  --surface: #ffffff;
  --surface-raised: #f1f3f4;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1a73e8;
  --gemini-blue: #4285f4;
  --gemini-red: #ea4335;
  --gemini-yellow: #fbbc05;
  --gemini-green: #34a853;
  --gemini-depth-display: none;
  --gemini-depth-filter: none;
  --accent-text: #ffffff;
  --coral: #d93025;
  --jade: #188038;
  --hero: #ffffff;
  --hero-glow: rgba(66, 133, 244, 0.08);
  --closing: #202124;
  --closing-text: #f8f9fa;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px rgba(32, 33, 36, 0.06);
  background: var(--page);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #111315;
    --surface: #1b1d20;
    --surface-raised: #25282c;
    --text: #f1f3f4;
    --muted: #aeb4bd;
    --line: #383c42;
    --accent: #8ab4f8;
    --gemini-blue: #5e9cff;
    --gemini-red: #ff6555;
    --gemini-yellow: #ffd23c;
    --gemini-green: #53d779;
    --gemini-depth-display: inline-block;
    --gemini-depth-filter: brightness(0.62);
    --accent-text: #061121;
    --coral: #f28b82;
    --jade: #81c995;
    --hero: #111315;
    --hero-glow: rgba(138, 180, 248, 0.12);
    --closing: #1b1d20;
    --closing-text: #f1f3f4;
    --glass-bg: rgba(27, 29, 32, 0.82);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111315;
  --surface: #1b1d20;
  --surface-raised: #25282c;
  --text: #f1f3f4;
  --muted: #aeb4bd;
  --line: #383c42;
  --accent: #8ab4f8;
  --gemini-blue: #5e9cff;
  --gemini-red: #ff6555;
  --gemini-yellow: #ffd23c;
  --gemini-green: #53d779;
  --gemini-depth-display: inline-block;
  --gemini-depth-filter: brightness(0.62);
  --accent-text: #061121;
  --coral: #f28b82;
  --jade: #81c995;
  --hero: #111315;
  --hero-glow: rgba(138, 180, 248, 0.12);
  --closing: #1b1d20;
  --closing-text: #f1f3f4;
  --glass-bg: rgba(27, 29, 32, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
}

button,
a,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site {
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site > :is(main, .ds-main, .site-content, [role="main"]) {
  flex: 1 0 auto;
}

/* =========================================
   Site Header & Liquid Glass
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 var(--glass-border);
  transition:
    min-height 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header-inner {
  width: min(100%, 1240px);
  min-height: 64px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition:
    min-height 220ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled .site-header-inner {
  min-height: 52px;
  padding: 6px 24px;
}

/* Header Start (Right side in RTL): Brand + Products + Expanding Search */
.header-start {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 var(--glass-border);
}

.header-nav {
  display: flex;
  align-items: center;
}

/* H3 Restrained Active Cue on Products */
.nav-link.nav-products {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link.nav-products:hover,
.nav-link.nav-products:focus-visible {
  color: var(--text);
  background: var(--surface-raised);
}

.nav-link.nav-products.is-active {
  color: var(--accent);
  font-weight: 700;
}

.nav-link.nav-products::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}

.nav-link.nav-products:is(.is-active,:hover,:focus-visible)::after {
  transform: scaleX(1);
}

/* H2 Icon-Triggered Expanding Search */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-btn:hover,
.header-search-btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.header-search-form {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0.85);
  transform-origin: right center;
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 50;
}

.header-search-wrap.is-open .header-search-form {
  width: clamp(200px, 25vw, 300px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scaleX(1);
}

.header-search-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.header-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  margin-inline-end: 4px;
  font-size: 14px;
}

.header-search-close:hover {
  color: var(--coral);
}

/* Header Actions (Left side in RTL): Account, Cart, Theme Toggle */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-inline-start: auto;
}

.account-entry {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.account-entry:hover,
.account-entry:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

/* C1 Cart Toggle & C3 Truthful Badge */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-cart-btn:hover,
.header-cart-btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.header-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-cart-count.is-counting { font-size: 0; overflow: hidden; }
.header-cart-count.is-counting::before,
.header-cart-count.is-counting::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  color: var(--accent-text);
  pointer-events: none;
}
.header-cart-count.is-counting::before {
  content: attr(data-previous);
  animation: ds-count-out 280ms ease both;
}
.header-cart-count.is-counting::after {
  content: attr(data-next);
  animation: ds-count-in 280ms ease both;
}
@keyframes ds-count-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes ds-count-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .header-cart-count.is-counting { font-size: 11px; }
  .header-cart-count.is-counting::before,
  .header-cart-count.is-counting::after { display: none; }
  .nav-link.nav-products::after { transition: none; }
}

.ds-login-dialog {
  width: min(440px, calc(100vw - 28px));
  max-height: min(740px, calc(100dvh - 28px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 22px 70px rgb(0 0 0 / .2);
  overflow-y: auto;
}
.ds-login-dialog::backdrop { background: rgb(0 0 0 / .58); backdrop-filter: blur(5px); }
.account-entry[aria-busy="true"] { cursor: progress; opacity: .7; }
.ds-login-dialog[open] { animation: ds-login-arrive 240ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes ds-login-arrive { from { opacity: .4; transform: translateY(12px); } }
.ds-login-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ds-login-dialog-head h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.4; }
.ds-login-dialog-kicker { color: var(--accent); font-size: 12px; font-weight: 700; }
.ds-login-dialog-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--text); font-size: 22px; cursor: pointer; }
.ds-login-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 6px; background: var(--surface-raised); font-size: 13px; text-align: center; }
.ds-login-methods span { padding: 9px 4px; border-radius: 4px; }
.ds-login-methods .is-current { background: var(--surface); box-shadow: 0 1px 4px rgb(0 0 0 / .09); font-weight: 700; }
.ds-login-methods .is-unavailable { color: var(--muted); opacity: .7; }
.ds-login-form { display: grid; gap: 8px; margin-top: 20px; }
.ds-login-form > label:not(.ds-login-remember) { font-size: 13px; font-weight: 700; }
.ds-login-form > input:not([type=hidden]) { width: 100%; min-height: 44px; margin-bottom: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--text); font: inherit; }
.ds-login-form :is(input,button):focus-visible,.ds-login-dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ds-login-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; }
.ds-login-remember input { accent-color: var(--accent); }
.ds-login-submit { min-height: 46px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; transition: filter 160ms ease, transform 160ms ease; }
.ds-login-submit:hover { filter: brightness(1.08); }
.ds-login-submit.is-submitting { cursor: progress; opacity: .7; }
.ds-login-recovery { display: inline-block; margin-top: 17px; color: var(--accent); font-size: 13px; text-underline-offset: 3px; }
@media (max-width: 480px) { .ds-login-dialog { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .ds-login-dialog[open] { animation: none; } .ds-login-submit { transition: none; } }

/* H4 Animated Theme Toggle Button */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:active .theme-toggle-icon {
  transform: rotate(45deg) scale(0.9);
}

/* C1 Cart Sheet / Drawer */
.ds-cart-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ds-cart-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ds-cart-sheet {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(100%, 400px);
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

[dir="rtl"] .ds-cart-sheet {
  inset-inline-end: 0;
  border-inline-start: none;
  border-inline-end: 1px solid var(--line);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
}

.ds-cart-sheet-backdrop.is-open .ds-cart-sheet {
  transform: translateX(0) !important;
}

.ds-cart-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.ds-cart-sheet-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.ds-cart-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.ds-cart-sheet-close:hover {
  background: color-mix(in srgb, var(--coral) 12%, var(--surface));
  color: var(--coral);
}

.ds-cart-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.ds-cart-empty-message {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
}

.ds-cart-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ds-cart-item-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.ds-cart-item-info span {
  font-size: 13px;
  color: var(--muted);
}

.ds-cart-item-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  font-size: 13px;
}

.ds-cart-item-remove:hover {
  color: var(--coral);
}

.ds-cart-sheet-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

.ds-cart-sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
}

.ds-cart-sheet-total strong {
  font-size: 17px;
  color: var(--accent);
}

.ds-cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}

.ds-cart-checkout-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* C4 Stateful Button states */
button[data-state="loading"] {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

button[data-state="success"] {
  background-color: var(--jade) !important;
  color: #fff !important;
}

button[data-state="error"] {
  background-color: var(--coral) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 8px 16px;
  }
  .brand-title {
    display: none;
  }
  .account-entry span {
    display: none;
  }
  .theme-toggle-text {
    display: none;
  }
}

.woocommerce-account .ds-main {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 32px 24px 80px;
}

.woocommerce-account .ds-page-title {
  font-size: 26px;
  margin: 0 0 24px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 220px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-inline-start: 1px solid var(--line);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: var(--text);
  background: var(--surface-raised);
  border-inline-start: 3px solid var(--accent);
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: calc(100% - 252px);
  color: var(--text);
}

.ds-account-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 24px;
}

.ds-account-shortcuts a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
}

.ds-account-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.ds-account-ticket-list,
.ds-account-thread {
  list-style: none;
  padding: 0;
}

.ds-account-ticket-list li,
.ds-account-thread li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.ds-account-ticket-list a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.ds-account-ticket-list span,
.ds-account-thread time {
  color: var(--muted);
  font-size: 12px;
}

.ds-account-thread time {
  display: block;
  margin-top: 3px;
}

.ds-account-thread p {
  margin-bottom: 0;
  line-height: 1.8;
}

.ds-account-ticket-form {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin-block: 24px;
}

.ds-account-ticket-form label {
  margin-top: 10px;
  font-weight: 700;
}

.ds-account-ticket-form input,
.ds-account-ticket-form select,
.ds-account-ticket-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.ds-account-ticket-form button {
  width: fit-content;
  min-height: 44px;
  margin-top: 12px;
  padding: 9px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 24px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li {
    flex: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
  }

  .ds-account-ticket-list a {
    flex-direction: column;
    gap: 3px;
  }
}

/* Single-Button Theme Toggle */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--glass-border);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 160ms ease,
    box-shadow 180ms ease;
}

.theme-toggle-btn:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--surface-raised);
  color: var(--text);
  flex-shrink: 0;
  transition: transform 220ms ease;
}

.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(15deg);
}

.theme-toggle-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  height: min(740px, calc(100svh - 110px));
  min-height: 530px;
  overflow: hidden;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 26% 46%, var(--hero-glow) 0%, transparent 64%),
    radial-gradient(
      circle at 22% 28%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 34% 68%,
      rgba(56, 189, 248, 0.12) 0%,
      transparent 52%
    );
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to left, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at 65% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(
    ellipse at 65% 50%,
    black 40%,
    transparent 85%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100%, 1240px);
  height: 100%;
  margin: auto;
  padding: 36px 32px 58px;
}

.hero-copy {
  width: min(60%, 660px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--jade);
}

.kicker-line {
  width: 28px;
  height: 2px;
  background: var(--coral);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: 60px;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero h1 bdi {
  color: var(--text);
}

.hero-subheading {
  display: inline-block;
  color: var(--accent);
  font-size: 0.58em;
  font-weight: 700;
  margin-top: 4px;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 12px;
  color: var(--text);
}

.hero-price strong {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
}

.hero .hero-price span {
  font-size: 17px;
  font-weight: 700;
}

.hero-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-inline-start: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

.hero-copy p {
  max-width: 40ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero .hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-highlights svg {
  color: var(--jade);
}

.hero-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 7px;
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.hero-link:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.hero-preview {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  inset-inline: max(32px, calc((100% - 1176px) / 2));
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-bottom-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* =========================================
   3D Canvas & Particle Scene
   ========================================= */
.license-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.license-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateX(-23%);
}

.license-scene.is-ready .scene-fallback {
  display: none;
}

.fallback-card {
  position: absolute;
  display: block;
  width: 180px;
  height: 260px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fallback-card::before,
.fallback-card::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.fallback-card::before {
  top: 26px;
}

.fallback-card::after {
  bottom: 26px;
}

.fallback-card-one {
  background: #2563eb;
  transform: translate(-100px, 18px) rotate(-14deg);
}

.fallback-card-two {
  background: #0f766e;
  transform: translate(95px, 26px) rotate(14deg);
}

.fallback-card-three {
  background: #4f46e5;
  transform: translate(0, -12px) rotate(-2deg);
}

/* =========================================
   Catalog Section
   ========================================= */
.catalog {
  background: var(--surface);
  scroll-margin-top: 74px;
}

.catalog-inner {
  width: min(100%, 1240px);
  margin: auto;
  padding: 68px 32px 90px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  display: block;
  margin-bottom: 8px;
  direction: ltr;
  text-align: right;
  color: var(--jade);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.35;
}

.catalog-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 430px);
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--page);
  color: var(--muted);
  transition: border-color 150ms ease;
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-field input::placeholder {
  color: var(--muted);
}

.clear-search {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.clear-search:hover {
  color: var(--text);
}

.category-switch {
  display: inline-flex;
  flex: none;
  gap: 4px;
  min-inline-size: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  overflow-x: auto;
}

.category-switch button {
  min-width: 68px;
  min-height: 36px;
  padding: 4px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.category-switch button.active {
  background: var(--text);
  color: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* =========================================
   Featured Product: Gemini Pro AI
   ========================================= */
.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-column: 1 / -1;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: var(--card-shadow);
  scroll-margin-top: 92px;
  position: relative;
}

.product-feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  pointer-events: none;
}

.product-feature-art {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  padding: 24px;
}

.product-feature-art img {
  display: block;
  width: min(88%, 430px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.14));
}

.product-feature-copy {
  padding: 38px clamp(24px, 5vw, 68px);
  position: relative;
  z-index: 5;
}

.product-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 700;
}

.product-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.product-feature h3 {
  margin: 14px 0 6px;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
}

.product-feature-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.product-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.spec-pill svg {
  color: var(--jade);
}

.product-feature-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.product-feature-price strong {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.product-feature .product-feature-price span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.product-feature .product-feature-price .price-period {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.product-feature-copy .availability-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.product-buy,
.product-card-bottom button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
}

.product-buy {
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 22px;
}

/* =========================================
   Secondary Products
   ========================================= */
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.product-card-visual {
  display: grid;
  place-items: center;
  height: 165px;
  background: #dcece7;
  color: #16705e;
}

.product-card-visual img {
  display: block;
  width: min(76%, 175px);
  height: 140px;
  object-fit: contain;
}

.product-card-soundcloud .product-card-visual {
  background: #f9e9df;
  color: #ad562a;
}

.product-card-apple-music .product-card-visual {
  background: #f8e2e4;
  color: #b14858;
}

.product-card-capcut .product-card-visual {
  background: #e8eaf5;
  color: #394a8d;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
}

.product-card h3 {
  margin: 6px 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

.product-card p {
  min-height: 25px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 54px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card .product-card-bottom span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-card .product-card-bottom strong.product-card-price {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
}

.product-card .product-card-bottom .preview-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(140, 150, 160, 0.12);
  color: var(--muted);
  border: 1px solid var(--line);
}

.product-card-bottom button {
  min-height: 34px;
  padding: 5px 12px;
  white-space: nowrap;
}

.catalog-disclaimer {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.catalog-empty[hidden] {
  display: none;
}

.catalog-empty p {
  margin: 18px 20px 0;
  color: var(--muted);
  font-size: 16px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.site-footer-inner {
  width: min(100%, 1240px);
  margin: auto;
  padding: 34px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.site-footer-info strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}

.site-footer-info p {
  margin: 0;
}

.site-footer-note {
  max-width: 44ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================
   Scroll Reveal Animation
   ========================================= */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    width: 62%;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .category-switch {
    align-self: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
    padding: 10px 18px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .site-header nav {
    display: none;
  }

  .theme-control {
    margin-inline-start: auto;
  }

  .theme-control span {
    display: none;
  }

  .theme-control select {
    min-width: 82px;
    font-size: 12px;
  }

  .hero {
    height: min(650px, calc(100svh - 100px));
    min-height: 440px;
  }

  .hero-inner {
    align-items: flex-start;
    padding: 48px 20px 0;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-kicker {
    font-size: 12px;
  }

  .hero h1 {
    margin: 14px 0 10px;
    font-size: 34px;
  }

  .hero-price strong {
    font-size: 28px;
  }

  .hero-price span {
    font-size: 14px;
  }

  .hero-copy p {
    max-width: 32ch;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-highlights {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-highlights span {
    font-size: 12px;
    padding: 4px 10px;
  }

  .hero-link {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero-bottom {
    inset-inline: 20px;
    bottom: 14px;
    font-size: 9px;
  }

  .scene-fallback {
    transform: translateY(22%);
  }

  .fallback-card {
    width: 120px;
    height: 170px;
  }

  .fallback-card-one {
    transform: translate(-65px, 18px) rotate(-14deg);
  }

  .fallback-card-two {
    transform: translate(65px, 20px) rotate(14deg);
  }

  .catalog {
    scroll-margin-top: 64px;
  }

  .catalog-inner {
    padding: 48px 20px 64px;
  }

  .catalog-heading h2 {
    font-size: 26px;
  }

  .catalog-tools {
    gap: 14px;
    padding: 18px 0;
  }

  .category-switch {
    width: 100%;
    max-width: 100%;
  }

  .category-switch button {
    flex: 0 0 auto;
    min-width: 74px;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }

  .product-feature-art {
    min-height: 220px;
    max-height: 250px;
    padding: 16px;
  }

  .product-feature-art img {
    width: min(64%, 250px);
  }

  .product-feature-copy {
    padding: 4px 20px 24px;
  }

  .product-feature h3 {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .featured-curated-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
    perspective: none;
  }

  .product-card-visual {
    height: 100%;
    min-height: 170px;
    overflow: hidden;
    border-start-end-radius: inherit;
    border-end-end-radius: inherit;
  }

  .product-card-visual img {
    width: min(90%, 96px);
    height: 140px;
  }

  .product-card .quick-view-trigger-btn {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 12px);
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .catalog-empty {
    min-height: 260px;
  }

  .catalog-empty p {
    font-size: 14px;
  }

  .site-footer-inner {
    flex-direction: column;
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .will-reveal,
  .will-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-link {
    transition: none;
  }
}

/* =========================================
   Commerce CTA & Hero Action Row
   ========================================= */
.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  position: relative;
  isolation: isolate;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.hero-buy-btn::before,
.curated-btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 80%, transparent) 0%,
    color-mix(in srgb, var(--gemini-blue) 45%, transparent) 55%,
    transparent 80%
  );
  filter: blur(10px);
  opacity: 0.52;
  z-index: -1;
  pointer-events: none;
  animation: order-glow-pulse 3.8s ease-in-out infinite;
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.hero-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hero-buy-btn:hover::before,
.curated-btn-primary:hover::before {
  opacity: 0.85;
  filter: blur(14px);
}

:root[data-theme="dark"] .hero-buy-btn::before,
:root[data-theme="dark"] .curated-btn-primary::before {
  opacity: 0.62;
  filter: blur(12px);
}

@keyframes order-glow-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-buy-btn::before,
  .curated-btn-primary::before {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

.product-buy {
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 150ms ease;
}

.product-buy:hover {
  transform: translateY(-2px);
}

.product-feature-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.product-feature-actions .product-buy {
  margin-top: 0;
}

.product-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 var(--glass-border);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 160ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.product-details-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* =========================================
   Checkout Modal (Persian RTL)
   ========================================= */
.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.checkout-card {
  position: relative;
  width: min(100%, 480px);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 32px 28px;
}

.checkout-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  transition: color 150ms ease;
}

.checkout-close:hover {
  color: var(--text);
}

.checkout-preview-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.checkout-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.checkout-preview-link,
.checkout-preview-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.checkout-preview-link {
  color: var(--accent);
}

.checkout-preview-dismiss {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.checkout-header {
  margin-bottom: 20px;
}

.checkout-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jade) 12%, transparent);
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 850;
}

.checkout-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 16px;
  margin-bottom: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.summary-price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
}

.summary-features {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--jade);
  font-weight: 600;
}

.checkout-summary-box .summary-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group .req {
  color: var(--coral);
}

.form-group input {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--page);
  color: var(--text);
  font-size: 14px;
  transition: border-color 150ms ease;
}

.form-group input:focus {
  border-color: var(--accent);
  outline: none;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
}

.form-terms {
  margin: 4px 0 8px;
}

.checkout-consents {
  display: grid;
  gap: 8px;
}

.checkout-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  line-height: 1.75;
}

.checkout-consent-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.checkout-terms-link {
  margin-inline-start: auto;
  flex: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-consent-row:focus-within {
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
}

.checkbox-label input {
  margin-top: 3px;
}

@media (max-width: 480px) {
  .checkout-consent-row {
    flex-wrap: wrap;
  }

  .checkout-terms-link {
    margin-inline-start: 28px;
  }
}

.checkout-form .checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.checkout-error {
  padding: 10px 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkout-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  transition: background 150ms ease;
}

.checkout-submit-btn:hover:not(:disabled) {
  background: #15803d;
}

.checkout-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.checkout-cancel-btn {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.checkout-cancel-btn:hover {
  color: var(--text);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   Receipt & License Reveal Page
   ========================================= */
.receipt-page,
.terms-page {
  min-height: 100vh;
  background: var(--page);
}

.receipt-container,
.terms-container {
  width: min(100%, 860px);
  margin: auto;
  padding: 44px 24px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

.receipt-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 38px 32px;
}

.receipt-status-header {
  text-align: center;
  margin-bottom: 28px;
}

.status-icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jade) 15%, transparent);
  color: var(--jade);
  margin-bottom: 14px;
}

.status-icon.failed {
  background: color-mix(in srgb, var(--coral) 15%, transparent);
  color: var(--coral);
}

.receipt-status-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 850;
}

.receipt-status-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.receipt-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 18px;
  margin-bottom: 26px;
}

.receipt-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  color: var(--muted);
  font-size: 12px;
}

.detail-val {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.license-box {
  border: 2px dashed var(--jade);
  border-radius: 10px;
  background: color-mix(in srgb, var(--jade) 5%, var(--surface));
  padding: 22px;
  margin-bottom: 26px;
}

.license-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.license-title {
  font-size: 14px;
  font-weight: 750;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--jade);
  font-weight: 700;
}

.license-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
}

.license-code {
  font-family: Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--surface-raised);
}

.license-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.instruction-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
}

.instruction-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 750;
}

.instruction-box ol {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 7px;
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary:hover {
  color: var(--text);
}

.failed-info-box {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* =========================================
   Terms & Disclosures Page
   ========================================= */
.terms-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 36px;
}

.terms-content h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
}

.terms-intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.terms-section {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.text-coral {
  color: var(--coral);
}
.text-jade {
  color: var(--jade);
}
.text-accent {
  color: var(--accent);
}

.terms-section p,
.terms-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.terms-section ul {
  padding-inline-start: 22px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  background: var(--surface-raised);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
}

.faq-item p {
  margin: 0;
}

.terms-footer-action {
  margin-top: 32px;
}

@media (max-width: 640px) {
  .checkout-card {
    padding: 24px 18px;
  }

  .receipt-card,
  .terms-content {
    padding: 26px 18px;
  }

  .receipt-details-grid {
    grid-template-columns: 1fr;
  }

  .license-key-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================
   Tracking Page
   ========================================= */
.tracking-page {
  min-height: 100vh;
  background: var(--page);
}

.tracking-container {
  width: min(100%, 720px);
  margin: auto;
  padding: 48px 24px 80px;
}

.tracking-card {
  padding: 0;
}

.tracking-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tracking-section-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.tracking-section-nav a:hover,
.tracking-section-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.tracking-form,
.general-support-card,
#dlm_recovery_section {
  scroll-margin-top: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.general-support-card,
#dlm_recovery_section {
  margin-top: 24px;
}

#dlm_recovery_section {
  overflow-wrap: anywhere;
}

#dlm_recovery_section .ds-recovery-box {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#dlm_recovery_section .ds-recovery-box h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

#dlm_recovery_section .ds-recovery-box p {
  margin: 0 0 20px;
  color: var(--muted) !important;
  line-height: 1.7;
}

#dlm_recovery_section .ds-input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}

#dlm_recovery_section .ds-primary-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#dlm_recovery_section .ds-primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .tracking-form,
  .general-support-card,
  #dlm_recovery_section {
    padding: 18px;
  }
}

.tracking-header {
  margin-bottom: 24px;
}

.tracking-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tracking-header h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 850;
}

.tracking-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.tracking-error {
  padding: 10px 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  border: 1px solid var(--coral);
  color: var(--coral);
  font-size: 13px;
  font-weight: 600;
}

.tracking-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.tracking-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tracking-result {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.tracking-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tracking-result-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 16px;
  margin-bottom: 20px;
}

.tracking-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.tracking-card .tracking-item span {
  color: var(--muted);
}

.tracking-item strong {
  color: var(--text);
  font-size: 14px;
}

.pending-notice {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* =========================================
   Admin Dashboard & Login
   ========================================= */
.admin-login-page,
.admin-dashboard-page {
  min-height: 100vh;
  background: var(--page);
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 36px 28px;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-login-header h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 850;
}

.admin-login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-card .admin-login-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
}

.admin-login-card .admin-login-footer a {
  color: var(--muted);
}

.admin-login-card .admin-login-footer a:hover {
  color: var(--text);
}

.admin-loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
  font-size: 15px;
}

.admin-container {
  width: min(100%, 1240px);
  margin: auto;
  padding: 36px 32px 80px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline-start: auto;
}

.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.admin-logout-btn:hover {
  background: color-mix(in srgb, var(--coral) 10%, transparent);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.stat-icon.revenue {
  background: color-mix(in srgb, var(--jade) 15%, transparent);
  color: var(--jade);
}

.stat-icon.orders {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.stat-icon.keys {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #f59e0b;
}

.stat-icon.allocated {
  background: color-mix(in srgb, #8b5cf6 15%, transparent);
  color: #8b5cf6;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-tabs button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 150ms ease;
}

.admin-tabs button.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.admin-tabs .refresh-btn {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
}

.admin-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 850;
}

.admin-card-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: right;
}

.admin-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-raised);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.table-bold {
  font-weight: 800;
}

.table-code {
  font-family: Consolas, monospace;
  color: var(--accent);
  font-size: 12px;
}

.admin-table td.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 36px;
}

.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.status-ok {
  background: color-mix(in srgb, var(--jade) 15%, transparent);
  color: var(--jade);
}

.status-pending {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #f59e0b;
}

.status-err {
  background: color-mix(in srgb, var(--coral) 15%, transparent);
  color: var(--coral);
}

.inventory-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--page);
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}

.admin-success-msg {
  padding: 10px 14px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--jade) 12%, transparent);
  border: 1px solid var(--jade);
  color: var(--jade);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-container {
    padding: 24px 16px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .tracking-grid {
    grid-template-columns: 1fr;
  }
}

/* Quiet product-first hero: crisp particles, clear price, generous space. */
.hero-v2 {
  height: min(690px, calc(100svh - 92px));
  min-height: 570px;
  background: #f8faf9;
}

.hero-v2::before,
.hero-v2::after {
  content: none;
}

.hero-v2 .license-scene {
  opacity: 0.72;
  mask-image: linear-gradient(to left, transparent 5%, black 45%);
  -webkit-mask-image: linear-gradient(to left, transparent 5%, black 45%);
}

.hero-v2 .hero-art {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(4%, calc((100% - 1240px) / 2));
  width: min(32%, 410px);
  aspect-ratio: 900 / 822;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-v2 .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(25, 47, 57, 0.16));
  animation: hero-art-float 6s ease-in-out infinite;
}

.hero-v2 .hero-art-gemini {
  width: min(27%, 320px);
  aspect-ratio: 1;
}

.hero-v2 .hero-art-gemini img {
  filter: none;
  animation: none;
}

@keyframes hero-art-float {
  50% {
    transform: translateY(-12px);
  }
}

.hero-v2 .license-scene .scene-fallback {
  transform: none;
  background-image:
    radial-gradient(circle, #3268e8 1px, transparent 1.5px),
    radial-gradient(circle, #ee514b 1px, transparent 1.5px),
    radial-gradient(circle, #f5aa18 1px, transparent 1.5px);
  background-size:
    87px 73px,
    119px 103px,
    151px 127px;
  background-position:
    8px 13px,
    34px 58px,
    68px 31px;
  opacity: 0.38;
}

.hero-v2 .hero-inner {
  padding-block: 52px 66px;
}

.hero-v2 .hero-copy {
  width: min(100%, 650px);
}

.hero-v2 .hero-kicker {
  color: var(--jade);
  font-size: 13px;
}

.hero-v2 h1 {
  margin: 18px 0 0;
  font-size: 58px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-v2 .hero-subheading {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.55;
}

.hero-v2 .hero-lead {
  margin: 18px 0 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-v2 .hero-price {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin: 0 0 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-v2 .hero-price-label {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hero-v2 .hero-price strong {
  font-size: 43px;
  line-height: 1.1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.hero-v2 .hero-price span:last-child {
  font-size: 16px;
}

.hero-v2 .hero-buy-btn {
  min-width: 164px;
  background: var(--text);
  color: var(--surface);
  box-shadow: none;
}

.hero-v2 .hero-buy-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
}

.hero-v2 .hero-link {
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.hero-v2 .hero-link:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  box-shadow: none;
}

.hero-v2 .hero-preview {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-v2 .hero-bottom {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-v2 h1 {
    font-size: 44px;
  }

  .hero-v2 .hero-art {
    left: 2%;
    width: min(34%, 290px);
  }

  .hero-v2 .hero-art-gemini {
    width: min(31%, 270px);
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    height: min(680px, calc(100svh - 76px));
    min-height: 570px;
  }

  .hero-v2 .hero-inner {
    padding: 52px 20px 72px;
  }

  .hero-v2 .hero-copy {
    width: 100%;
  }

  .hero-v2 h1 {
    font-size: 36px;
  }

  .hero-v2 .hero-subheading {
    font-size: 20px;
  }

  .hero-v2 .hero-lead {
    max-width: 30ch;
    font-size: 14px;
  }

  .hero-v2 .hero-price strong {
    font-size: 36px;
  }

  .hero-v2 .hero-cta-row {
    gap: 8px;
  }

  .hero-v2 .hero-buy-btn,
  .hero-v2 .hero-link {
    min-height: 44px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero-v2 .license-scene {
    opacity: 0.38;
    mask-image: linear-gradient(to bottom, transparent 5%, black 92%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 92%);
  }

  .hero-v2 .hero-art {
    top: auto;
    bottom: 32px;
    left: 16px;
    width: 185px;
    transform: none;
    opacity: 0.92;
  }

  .hero-v2 .hero-art-gemini {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2 .hero-art img {
    animation: none;
  }
}

/* Product-led editorial hero with restrained glass navigation. */
.site-header {
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border-bottom-color: color-mix(in srgb, var(--line) 65%, transparent);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}

.site-header-inner {
  width: min(100%, 1320px);
  min-height: 66px;
}
.brand-mark {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.site-header.is-scrolled,
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--glass-bg) 95%, var(--surface));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 var(--glass-border);
}

.site-header.is-scrolled .site-header-inner,
.site-header[data-scrolled="true"] .site-header-inner {
  min-height: 56px;
  padding: 6px 32px;
}

.hero-v2 {
  height: min(760px, calc(100svh - 118px));
  min-height: 520px;
  background: var(--hero);
}
.hero-v2 .hero-inner {
  width: min(100%, 1220px);
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 6vh, 62px) 24px 30px;
}
.hero-v2 .hero-copy {
  width: min(100%, 980px);
  text-align: center;
}
.hero-v2 .hero-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-v2 h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 780;
  line-height: 1.18;
}
.hero-v2 .hero-subheading {
  margin-top: 4px;
  font-size: clamp(19px, 2.15vw, 31px);
  font-weight: 600;
  line-height: 1.45;
}
.hero-v2 .hero-art-gemini {
  z-index: 2;
  top: 42%;
  left: 50%;
  bottom: auto;
  width: clamp(116px, 14vw, 182px);
  transform: translate(-50%, -50%);
}
.hero-v2 .hero-art-gemini img {
  filter: drop-shadow(0 18px 28px rgba(68, 113, 186, 0.13));
}
.hero-v2 .license-scene {
  opacity: 0.72;
  mask-image: radial-gradient(
    ellipse at center,
    transparent 7%,
    rgba(0, 0, 0, 0.44) 38%,
    black 77%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    transparent 7%,
    rgba(0, 0, 0, 0.44) 38%,
    black 77%
  );
}
.hero-v2 .hero-lead {
  max-width: 65ch;
  margin: clamp(210px, 29vh, 286px) auto 10px;
  font-size: 15px;
  line-height: 1.65;
}
.hero-v2 .hero-price {
  justify-content: center;
  width: auto;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
}
.hero-v2 .hero-price-label {
  width: auto;
  margin-inline-end: 8px;
  font-size: 13px;
}
.hero-v2 .hero-price strong {
  font-size: clamp(35px, 3.5vw, 49px);
  letter-spacing: 0;
}
.hero-v2 .hero-cta-row {
  justify-content: center;
}
.hero-v2 .hero-buy-btn {
  border-radius: 8px;
  background: #1768d8;
  color: #fff;
}
.hero-v2 .hero-link {
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-v2 .hero-preview {
  margin: 11px auto 0;
}
.hero-v2 .hero-bottom {
  display: none;
}

.catalog {
  background: var(--page);
}
.catalog-inner {
  width: min(100%, 1220px);
  padding-block: 66px 92px;
}
.catalog-heading h2 {
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
}
.category-switch {
  position: relative;
  isolation: isolate;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.category-switch-indicator {
  position: absolute;
  z-index: 0;
  border-radius: 6px;
  background: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  transition:
    left 240ms cubic-bezier(0.16, 1, 0.3, 1),
    width 240ms cubic-bezier(0.16, 1, 0.3, 1),
    top 240ms cubic-bezier(0.16, 1, 0.3, 1),
    height 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-switch button {
  position: relative;
  z-index: 1;
  background: transparent;
  transition:
    color 180ms ease,
    background 150ms ease;
}

.category-switch:not([data-ready="true"]) button.active {
  background: var(--text);
  color: var(--surface);
}

.category-switch[data-ready="true"] button.active {
  background: transparent;
  color: var(--surface);
}
.product-feature {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--surface-raised);
}
.product-feature::before {
  content: none;
}

.product-feature-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 1.5px;
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.product-feature-beam::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center center;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 310deg,
    var(--gemini-blue) 325deg,
    var(--gemini-red) 338deg,
    var(--gemini-yellow) 348deg,
    var(--gemini-green) 358deg,
    transparent 360deg
  );
  animation: product-feature-beam-spin 7s linear infinite;
}

@keyframes product-feature-beam-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-card {
  border-radius: 8px;
  box-shadow: none;
  perspective: 800px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.product-card .product-card-visual {
  position: relative;
  transition: transform 180ms ease-out;
  will-change: transform;
}

@media (hover: hover) and (min-width: 1024px) {
  .product-card .product-card-visual {
    transform-style: preserve-3d;
  }
  .product-card:hover {
    transform: none;
  }
}

.product-card:hover {
  box-shadow: 0 14px 30px color-mix(in srgb, var(--text) 9%, transparent);
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
    padding: 10px 18px;
    gap: 14px;
  }

  .site-header.is-scrolled .site-header-inner,
  .site-header[data-scrolled="true"] .site-header-inner {
    min-height: 52px;
    padding: 6px 16px;
  }

  .hero-v2 {
    height: calc(100svh - 160px);
    min-height: 520px;
  }
  .hero-v2 .hero-inner {
    padding: 28px 18px 20px;
  }
  .hero-v2 h1 {
    font-size: clamp(32px, 8vw, 40px);
  }
  .hero-v2 .hero-subheading {
    font-size: 19px;
    line-height: 1.5;
  }
  .hero-v2 .hero-art-gemini {
    top: 36%;
    left: 50%;
    bottom: auto;
    width: clamp(86px, 23vw, 116px);
    transform: translate(-50%, -50%);
  }
  .hero-v2 .hero-lead {
    max-width: 38ch;
    margin: clamp(138px, 22vh, 198px) auto 8px;
    font-size: 13px;
  }
  .hero-v2 .hero-price {
    gap: 6px;
    margin-bottom: 14px;
  }
  .hero-v2 .hero-price-label {
    width: 100%;
    margin: 0;
  }
  .hero-v2 .hero-cta-row {
    gap: 8px;
  }
  .catalog-inner {
    padding-block: 52px 70px;
  }
}
/* =========================================
   Persian Word-Level Text Reveals
   ========================================= */
.word-reveal-group {
  display: inline;
}

.word-reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  white-space: pre-wrap;
}

.word-reveal-word {
  display: inline-block;
  transition:
    opacity 850ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 850ms cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity;
}

.will-reveal .word-reveal-word {
  opacity: 0;
  transform: translateY(105%);
}

.will-reveal.is-visible .word-reveal-word,
[data-reveal].is-visible .word-reveal-word {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy .hero-lead .word-reveal-word,
.hero-copy.is-visible .hero-lead .word-reveal-word {
  animation: hero-word-enter 1050ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--word-delay, 0ms);
}

@keyframes hero-word-enter {
  from {
    opacity: 0;
    transform: translateY(44%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-copy .hero-lead .word-reveal-word {
    animation-name: none;
    opacity: 1;
    transform: none;
  }
}

.catalog-heading.will-reveal {
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-heading.is-visible .catalog-title-animated .word-reveal-word {
  animation: catalog-word-enter 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--word-delay, 0ms);
}

.detail-info-card .detail-summary.is-visible .word-reveal-word,
.product-detail-page [data-detail-reveal].is-visible .word-reveal-word {
  animation: catalog-word-enter 880ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--word-delay, 0ms);
}

@keyframes catalog-word-enter {
  from {
    opacity: 0;
    transform: translateY(40%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Product Quick View Preview
   ========================================= */
.product-card .quick-view-trigger-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0.9;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    opacity 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.product-card:hover .quick-view-trigger-btn,
.product-card .quick-view-trigger-btn:focus-visible {
  opacity: 1;
  background: var(--text);
  color: var(--surface);
  transform: translateX(-50%) translateY(-2px);
}

.quick-view-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: quick-view-fade-in 180ms ease;
}

.quick-view-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100%, 480px);
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-view-dialog .quick-view-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.quick-view-dialog .quick-view-close:hover {
  color: var(--text);
  background: var(--line);
}

.quick-view-header {
  margin-bottom: 2px;
}

.quick-view-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--jade);
  margin-bottom: 4px;
}

.quick-view-dialog .quick-view-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.quick-view-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-view-art {
  display: grid;
  place-items: center;
  height: 140px;
  border-radius: 8px;
  background: var(--surface-raised);
  overflow: hidden;
}

.quick-view-dialog .quick-view-art img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.quick-view-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-view-summary {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.quick-view-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-view-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.quick-view-meta-row .meta-label {
  color: var(--muted);
}

.quick-view-meta-row .meta-val {
  color: var(--text);
  font-weight: 700;
}

.quick-view-notice {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.quick-view-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.quick-view-close-btn {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease;
}

.quick-view-close-btn:hover {
  background: var(--line);
}

@keyframes quick-view-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* =========================================
   Checkout 3-Step Process & Trust Timeline
   ========================================= */
.checkout-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 750;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-desc {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.5;
}

.checkout-timeline .step-desc strong {
  color: var(--text);
  font-size: 12.5px;
}

.checkout-timeline .step-desc span {
  color: var(--muted);
  font-size: 11.5px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header-inner,
  .site-header.is-scrolled,
  .site-header.is-scrolled .site-header-inner,
  .site-header[data-scrolled="true"] .site-header-inner {
    transition: none;
  }

  .product-feature-beam {
    display: none;
  }

  .product-card {
    transition: none;
  }
  .product-card:hover {
    transform: none;
  }

  .word-reveal-mask {
    overflow: visible;
  }
  .word-reveal-word,
  .will-reveal .word-reveal-word,
  .will-reveal.is-visible .word-reveal-word {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .hero-copy .hero-lead .word-reveal-word,
  .hero-copy.is-visible .hero-lead .word-reveal-word,
  .catalog-heading.is-visible .catalog-title-animated .word-reveal-word,
  .detail-info-card .detail-summary.is-visible .word-reveal-word,
  .product-detail-page [data-detail-reveal].is-visible .word-reveal-word {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .category-switch-indicator {
    transition: none;
  }

  .product-card-visual {
    transform: none;
    transition: none;
  }

  .quick-view-backdrop {
    animation: none;
  }

  .theme-toggle-btn,
  .theme-toggle-icon {
    transition: none;
  }
}

/* =========================================
   Curated Featured-Products Row
   ========================================= */
.featured-curated-section {
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-curated-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-curated-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.featured-curated-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.featured-curated-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.curated-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.curated-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.curated-card.is-highlight {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-raised));
}

.curated-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.curated-badge.highlight {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.curated-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.curated-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curated-card-content h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  margin: 0;
}

.curated-card-content p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.curated-card-price {
  font-size: 13.5px;
  color: var(--text);
  margin-top: 4px;
}

.curated-card .curated-card-price strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.curated-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.curated-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.curated-btn-primary:hover {
  opacity: 0.92;
}

.curated-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.curated-btn-link:hover {
  background: var(--surface-raised);
}

.quick-view-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.quick-view-full-btn:hover {
  opacity: 0.92;
}

/* =========================================
   Product Detail Page (/products/[id])
   ========================================= */
.product-detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
}

.product-detail-page .site-header .site-header-inner {
  justify-content: space-between;
  gap: 8px;
}

.product-detail-page .header-actions {
  flex-shrink: 0;
  gap: 8px;
}

@media (max-width: 640px) {
  .single-product .back-link,
  .single-product .theme-toggle-btn,
  .product-detail-page .back-link,
  .product-detail-page .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .single-product .back-link span,
  .single-product .theme-toggle-text,
  .product-detail-page .back-link span,
  .product-detail-page .theme-toggle-text {
    display: none !important;
  }
}

.product-detail-container {
  width: min(100%, 1100px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 480px) {
  .product-detail-container {
    padding-inline: 14px;
  }
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-detail-page .detail-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.product-detail-page .detail-breadcrumb a:hover {
  color: var(--accent);
}

.detail-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .detail-visual-card {
    width: min(100%, 420px);
    justify-self: center;
  }
}

.detail-visual-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.detail-gemini-visual,
.detail-artwork-visual,
.detail-placeholder-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid var(--line);
  padding: clamp(12px, 2vw, 24px);
}

.detail-artwork-img,
.detail-gemini-icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-gemini-icon,
.detail-artwork-img {
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .detail-visual-card:hover .detail-gemini-icon,
  .detail-visual-card:hover .detail-artwork-img {
    transform: translateY(-4px) scale(1.02);
  }
}

.visual-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
}

.visual-badge.preview {
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-security-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.security-item svg {
  color: var(--jade);
}

.detail-info-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 14px;
}

.detail-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-category-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-category-tag.verified {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.detail-duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.detail-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.detail-summary {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.detail-price-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
}

.price-label {
  font-size: 12px;
  color: var(--muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
}

.detail-price-box .price-amount strong {
  font-size: 30px;
  font-weight: 850;
  color: var(--text);
}

.price-pending {
  font-size: 18px;
  font-weight: 750;
  color: var(--muted);
}

.price-subtext {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.detail-buy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 20%, transparent);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.detail-buy-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.detail-cart-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.detail-cart-btn:hover,
.detail-cart-btn:focus-visible {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.detail-cart-feedback:not(:empty) {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.cta-disclaimer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.detail-specs-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-specs-section h2 {
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
  margin: 0;
  transition:
    opacity 450ms ease,
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-specs-section.will-reveal h2 {
  opacity: 0;
  transform: translateY(10px);
}

.detail-specs-section.will-reveal.is-visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.detail-specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-specs-section.will-reveal .detail-specs-list li {
  opacity: 0;
  transform: translateY(8px);
}

.detail-specs-section.will-reveal.is-visible .detail-specs-list li {
  opacity: 1;
  transform: translateY(0);
}

.detail-specs-section.will-reveal.is-visible
  .detail-specs-list
  li:nth-child(1) {
  transition-delay: 80ms;
}
.detail-specs-section.will-reveal.is-visible
  .detail-specs-list
  li:nth-child(2) {
  transition-delay: 150ms;
}
.detail-specs-section.will-reveal.is-visible
  .detail-specs-list
  li:nth-child(3) {
  transition-delay: 220ms;
}
.detail-specs-section.will-reveal.is-visible
  .detail-specs-list
  li:nth-child(4) {
  transition-delay: 290ms;
}

.detail-info-icon {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.detail-specs-section .detail-specs-list li strong {
  color: var(--text);
}

.detail-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.detail-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-sticky-action {
  display: none;
}

@media (max-width: 860px) {
  .product-detail-container {
    gap: 16px;
    padding: 20px 18px 110px;
  }

  .product-detail-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .detail-info-card {
    display: contents;
  }

  .detail-header-row {
    order: 1;
  }

  .detail-title {
    order: 2;
    margin: 0;
  }

  .detail-summary {
    order: 3;
  }

  .detail-price-box {
    order: 4;
    padding: 14px 0;
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
  }

  .detail-action-group {
    order: 5;
  }

  .detail-visual-card {
    order: 6;
    margin-block: 12px 18px;
  }

  .detail-specs-section {
    order: 7;
  }

  .detail-gemini-visual,
  .detail-artwork-visual,
  .detail-placeholder-visual {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .detail-sticky-action {
    position: fixed;
    z-index: 20;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px max(18px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
  }

  .detail-sticky-price {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 2px;
    font-size: 12px;
    color: var(--muted);
  }

  .detail-sticky-price strong {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
  }

  .detail-sticky-action button {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-gemini-icon,
  .detail-artwork-img,
  .detail-specs-section h2 {
    transition: none;
    transform: none;
  }

  .detail-specs-section.will-reveal h2 {
    opacity: 1;
  }
}

/* Storefront hero: keep the product mark in the document flow. */
.hero-v2 .hero-inner {
  align-items: center;
  padding-block: 22px 32px;
}

.hero-v2 .hero-copy {
  width: min(100%, 940px);
  margin-inline: auto;
}

.hero-v2 .hero-art-gemini {
  position: relative;
  inset: auto;
  width: clamp(96px, 10vw, 132px);
  margin: 20px auto 12px;
  transform: none;
  aspect-ratio: 1;
}

.hero-v2 .hero-art-gemini img {
  filter: none;
}

.hero-v2 .hero-lead {
  margin: 0 auto 9px;
}

.hero-v2 .license-scene {
  opacity: 0.88;
  mask-image: radial-gradient(
    ellipse 58% 54% at center,
    transparent 32%,
    black 84%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 58% 54% at center,
    transparent 32%,
    black 84%
  );
}

@media (max-width: 640px) {
  .hero-v2 .hero-inner {
    padding: 20px 18px 26px;
  }

  .hero-v2 .hero-art-gemini {
    position: relative;
    inset: auto;
    width: 94px;
    margin: 15px auto 10px;
    transform: none;
  }

  .hero-v2 .hero-lead {
    margin: 0 auto 8px;
  }

  .hero-v2 .license-scene {
    opacity: 0.68;
    mask-image: radial-gradient(
      ellipse 75% 60% at center,
      transparent 28%,
      black 95%
    );
    -webkit-mask-image: radial-gradient(
      ellipse 75% 60% at center,
      transparent 28%,
      black 95%
    );
  }
}

.featured-curated-section {
  margin-bottom: 38px;
}

.featured-curated-title {
  font-size: 21px;
  transition:
    opacity 900ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.will-reveal .featured-curated-title {
  opacity: 0;
  transform: translateY(12px);
}

.will-reveal.is-visible .featured-curated-title {
  opacity: 1;
  transform: translateY(0);
}

.curated-card {
  min-height: 300px;
  gap: 0;
  padding: 0 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}

.curated-card.is-highlight {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.curated-card-visual {
  height: 130px;
  margin-bottom: 12px;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: color-mix(in srgb, #4285f4 8%, var(--surface));
}

.curated-card:nth-child(2) .curated-card-visual {
  background: color-mix(in srgb, #1db954 12%, var(--surface));
}

.curated-card:nth-child(3) .curated-card-visual {
  background: color-mix(in srgb, #5478e7 11%, var(--surface));
}

.featured-curated-section .curated-card-visual img {
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.curated-card-content {
  min-height: 94px;
  padding-inline: 18px;
}

.curated-card-actions {
  padding: 12px 18px 0;
}

.curated-card .curated-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  inset-inline-start: 18px;
}

.curated-btn-primary,
.curated-btn-link {
  min-height: 44px;
}

.product-card-duration {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
}

.quick-view-dialog {
  border-radius: 8px;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal .featured-curated-title {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   Magic UI Dock Prototype (Mobile Navigation)
   ========================================= */
.mobile-dock-container {
  display: none;
}

@media (max-width: 768px) {
  .mobile-dock-container {
    display: block;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
    transition: bottom 260ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
  }

  .mobile-dock {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.12);
  }

  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 48px;
    min-height: 48px;
    padding: 4px 6px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: color 150ms ease;
  }

  .mobile-dock-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .mobile-dock-item.is-highlight {
    color: var(--accent);
    font-weight: 750;
  }

  .dock-icon-wrap {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
  }

  .dock-label {
    font-size: 10px;
    line-height: 1.1;
    color: inherit;
    white-space: nowrap;
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-dock-item {
      transition:
        transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
        color 150ms ease;
    }
    .mobile-dock-item.is-magnified {
      transform: scale(1.18) translateY(-4px);
      color: var(--text);
    }
    .mobile-dock-item.is-neighbor {
      transform: scale(1.08) translateY(-2px);
    }
  }

  @media (hover: none) {
    .mobile-dock-item {
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-dock-container {
      transition: none;
    }
    .mobile-dock-item {
      transform: none;
      transition: none;
    }
  }

  .mobile-dock-container:is(.dock-hidden-by-sticky, .dock-hidden-by-footer) {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.product-detail-page .site-header {
  background: var(--surface);
}

.product-detail-page .back-link {
  display: none;
}

.quick-view-icon {
  display: none;
}

@media (max-width: 768px) {
  .product-detail-page .back-link {
    display: inline-flex;
  }

  .site-footer-inner {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 351px) and (max-width: 640px) {
  .product-card .quick-view-trigger-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .product-card .quick-view-label {
    display: none;
  }

  .product-card .quick-view-icon {
    display: block;
  }
}

@media (max-width: 350px) {
  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-card-visual {
    height: 138px;
    min-height: 138px;
    border-radius: 0;
  }

  .product-card-visual img {
    width: min(62%, 158px);
    height: 122px;
  }

  .product-card .quick-view-trigger-btn {
    max-width: calc(100% - 24px);
    min-height: 44px;
  }
}

.gemini-order-guide {
  display: grid;
  gap: 38px;
  min-width: 0;
  margin-top: 28px;
}

.gemini-order-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.gemini-order-heading {
  max-width: 670px;
}

.gemini-order-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.gemini-order-title {
  margin: 6px 0 8px;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.4;
}

.gemini-order-heading p,
.gemini-order-steps p,
.gemini-order-faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gemini-order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.gemini-order-step {
  display: flex;
  gap: 12px;
  min-width: 0;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}

.gemini-order-step-number {
  flex: none;
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}

.gemini-order-step-title {
  margin: 0 0 7px;
  font-size: 15px;
}

.gemini-order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.gemini-order-facts > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.gemini-order-facts svg {
  flex: none;
  color: var(--accent);
}

.gemini-order-fact-copy {
  display: grid;
  gap: 4px;
}

.gemini-order-fact-title {
  color: var(--text);
}

.gemini-order-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.gemini-order-faq {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.gemini-order-faq details {
  border-bottom: 1px solid var(--line);
}

.gemini-order-faq summary {
  padding: 17px 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.gemini-order-faq details p {
  max-width: 740px;
  padding: 0 2px 17px;
}

@media (max-width: 700px) {
  .gemini-order-guide {
    gap: 26px;
    margin-top: 12px;
  }

  .gemini-order-section {
    padding-top: 22px;
  }

  .gemini-order-steps,
  .gemini-order-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .gemini-order-step {
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
}

.gemini-order-terms-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.gemini-order-terms-sublink {
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gemini-order-terms-sublink:hover {
  color: var(--accent);
}

.gemini-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .gemini-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gemini-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.gemini-feature-item {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.gemini-feature-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gemini-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gemini-feature-icon-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}

.gemini-feature-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
}

.gemini-order-section .gemini-feature-item h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
}

.gemini-order-section .gemini-feature-item p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.gemini-feature-points {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.gemini-feature-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

.gemini-feature-points .point-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.gemini-features-disclaimer {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gemini-source-url {
  display: inline-block;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.checkout-terms-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-inline-start: auto;
  text-align: end;
}

.checkout-terms-sublink {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-terms-sublink:hover {
  color: var(--accent);
}


.depth-text {
  display: inline-block;
  max-width: 100%;
  perspective: 900px;
  perspective-origin: 50% 48%;
  isolation: isolate;
  direction: ltr;
  animation: depth-text-gradient 5.5s linear infinite;
}

@property --depth-gradient-progress {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.depth-text__stage {
  position: relative;
  display: inline-grid;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: var(--depth-rotation, rotateX(-4.5deg) rotateY(6.5deg));
  will-change: transform;
}

.depth-text__layer,
.depth-text__face {
  grid-area: 1 / 1;
  display: inline-block;
  font: inherit;
  font-size: 1em;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.depth-text__layer {
  position: absolute;
  inset: 0;
  display: var(--gemini-depth-display);
  color: var(--text);
  pointer-events: none;
}

.depth-text__face {
  position: relative;
  color: var(--text);
  transform: translateZ(1px);
}

:root[data-theme="light"] .depth-text__face {
  -webkit-text-stroke: 0;
  transform: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .depth-text__face {
    -webkit-text-stroke: 0;
    transform: none;
  }
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .depth-text__layer,
  .depth-text__face {
    background-image: linear-gradient(
      90deg,
      var(--gemini-blue) 0%,
      var(--gemini-red) 12.5%,
      var(--gemini-yellow) 25%,
      var(--gemini-green) 37.5%,
      var(--gemini-blue) 50%,
      var(--gemini-red) 62.5%,
      var(--gemini-yellow) 75%,
      var(--gemini-green) 87.5%,
      var(--gemini-blue) 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-position: var(--depth-gradient-progress) 50%;
  }

  .depth-text__layer {
    filter: var(--gemini-depth-filter);
  }
}

@keyframes depth-text-gradient {
  from {
    --depth-gradient-progress: 0%;
  }
  to {
    --depth-gradient-progress: 100%;
  }
}

:root[data-theme="light"] .depth-text {
  perspective: none;
}

:root[data-theme="light"] .depth-text__stage {
  transform: none;
  transform-style: flat;
  will-change: auto;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .depth-text {
    perspective: none;
  }

  :root:not([data-theme="dark"]) .depth-text__stage {
    transform: none;
    transform-style: flat;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depth-text {
    animation: none;
  }

  .depth-text__stage {
    transform: none;
    will-change: auto;
  }

  .depth-text__layer {
    display: none;
  }

  .depth-text__face {
    background-position: 0% 50%;
  }
}



/* =========================================
   WordPress & WooCommerce Parity Integration
   ========================================= */

/* Admin Bar Adjustments */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Backward compatibility variables for plugins */
:root {
  --ds-page: var(--page);
  --ds-surface: var(--surface);
  --ds-raised: var(--surface-raised);
  --ds-text: var(--text);
  --ds-muted: var(--muted);
  --ds-line: var(--line);
  --ds-accent: var(--accent);
  --ds-accent-text: var(--accent-text);
  --ds-shadow: var(--card-shadow);
  --ds-glass: var(--glass-bg);
  --ds-spark-1: var(--gemini-blue);
  --ds-spark-2: var(--gemini-red);
  --ds-spark-3: var(--gemini-yellow);
  --ds-spark-4: var(--gemini-green);
}

/* Quick View Dialog */
.quick-view-dialog {
  width: min(calc(100vw - 30px), 560px);
  max-height: min(calc(100dvh - 30px), 700px);
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 25px 90px rgba(0,0,0,.22);
  padding: 36px;
  direction: rtl;
}
.quick-view-dialog::backdrop {
  background: rgba(10, 15, 22, 0.62);
  backdrop-filter: blur(4px);
}
.quick-view-dialog h2 {
  font-size: clamp(23px, 4vw, 33px);
  margin: 12px 0;
}
.quick-view-dialog p {
  color: var(--muted);
}
.quick-dialog-price {
  display: block;
  margin: 20px 0 8px;
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
}
.quick-dialog-close-form {
  position: absolute;
  top: 14px;
  left: 14px;
}
.quick-dialog-close {
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 540px) {
  .quick-view-dialog {
    padding: 24px 18px;
  }
}

/* Product Detail Page Styling */
.product-detail-page {
  min-height: 100vh;
  background: var(--page);
}
.product-detail-container {
  width: min(100%, 1240px);
  margin: auto;
  padding: 32px 24px 80px;
}
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.detail-breadcrumb a:hover {
  color: var(--accent);
}
.detail-breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--jade);
}
.detail-title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
.detail-subheading {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-top: -8px;
}
.detail-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.detail-meta-pill svg {
  color: var(--jade);
}
.detail-pricing-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.detail-price-label {
  font-size: 13px;
  color: var(--muted);
}
.detail-price-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
}
.detail-price-period {
  font-size: 14px;
  color: var(--muted);
}
.detail-buy-button {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.detail-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.detail-buy-button.is-disabled {
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.detail-guarantee-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.detail-disclaimer-note {
  font-size: 12px;
  color: var(--coral);
  text-align: center;
  margin: 0;
}
.detail-specs-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.detail-specs-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
}
.detail-desc-content {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.detail-disclosures-box {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.detail-disclosures-box h3 {
  font-size: 15px;
  font-weight: 750;
  margin: 0 0 10px;
}
.detail-disclosures-box ul {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.detail-disclosures-box a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Artwork Stage */
.detail-visual-stage {
  position: sticky;
  top: 96px;
}
.detail-stage-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 28px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.detail-stage-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.14));
}
.detail-stage-glow {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(66, 133, 244, 0.18), rgba(234, 67, 53, 0.08), rgba(251, 188, 5, 0.13), rgba(52, 168, 83, 0.16), rgba(66, 133, 244, 0.18));
  filter: blur(40px);
  pointer-events: none;
}

/* Sticky Mobile Purchase Bar */
.sticky-buy-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--glass-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform 250ms ease-in-out;
  display: none;
}
.sticky-buy-bar.is-visible {
  transform: translateY(0);
}
.sticky-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 600px);
  margin: auto;
  gap: 14px;
}
.sticky-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.sticky-info strong {
  font-size: 14px;
  color: var(--text);
}
.sticky-info span {
  color: var(--accent);
  font-weight: 700;
}
.sticky-btn {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-detail-info {
    order: 1;
  }
  .detail-visual-stage {
    order: 2;
    position: static;
    max-width: 360px;
    margin: auto;
  }
  .sticky-buy-bar {
    display: block;
  }
  .single-product .mobile-dock-container {
    display: none !important;
  }
}

/* WooCommerce Standard Element Resets */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  list-style: none;
}
.woocommerce-message {
  border-right: 4px solid var(--jade);
}
.woocommerce-error {
  border-right: 4px solid var(--coral);
  color: var(--coral);
}
.woocommerce-info {
  border-right: 4px solid var(--accent);
}
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 24px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.woocommerce table.shop_table th {
  background: var(--surface-raised);
  font-weight: 750;
}

.checkout-backdrop[hidden] { display: none !important; }

/* Gemini path: responsive content aligned to the Next.js structure, without
   promising provider features not verified for the supplied account. */
.gemini-order-guide{max-width:1180px;margin:36px auto;padding:30px 28px;border:1px solid var(--line,var(--ds-line,#d0d8e3));border-radius:20px;background:var(--surface,var(--ds-surface,#fff));color:var(--text,var(--ds-text,#1e293b))}
.gemini-order-heading{max-width:750px;margin-bottom:22px}.gemini-order-eyebrow{display:inline-block;font-size:12px;color:var(--accent,var(--ds-accent,#2563eb));font-weight:700;margin-bottom:8px}.gemini-order-heading h2{font-size:clamp(22px,3vw,32px);margin:0 0 10px}.gemini-order-heading p{font-size:14px;line-height:1.9;color:var(--muted,var(--ds-muted,#64748b))}
.gemini-order-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:0}.gemini-order-step,.gemini-feature-card{border:1px solid var(--line,var(--ds-line,#d0d8e3));border-radius:15px;padding:18px;background:var(--surface-raised,var(--ds-raised,#f8fafc))}.gemini-order-step-number{display:block;font:800 21px/1.3 system-ui;color:var(--accent,var(--ds-accent,#2563eb));direction:ltr;text-align:right}.gemini-order-step h3,.gemini-feature-card h3{font-size:16px;margin:11px 0 8px}.gemini-order-step p,.gemini-feature-card p,.gemini-faq-item p{font-size:13px;line-height:1.9;color:var(--muted,var(--ds-muted,#64748b));margin:0}
.gemini-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gemini-faq-list{display:grid;gap:9px}.gemini-faq-item{border:1px solid var(--line,var(--ds-line,#d0d8e3));border-radius:12px;background:var(--surface-raised,var(--ds-raised,#f8fafc));padding:14px 17px}.gemini-faq-item summary{cursor:pointer;font-weight:650;line-height:1.7}.gemini-faq-item p{margin-top:12px}.gemini-links{margin:18px 0 0}.gemini-links a{color:var(--accent,var(--ds-accent,#2563eb));text-decoration:underline}
.ds-order-ticket-panel{margin:28px 0;padding:22px;border:1px solid var(--line,var(--ds-line,#d0d8e3));border-radius:16px;background:var(--surface-raised,var(--ds-raised,#f8fafc))}.ds-order-ticket-panel h2{font-size:19px;margin:0 0 12px}.ds-order-ticket-panel button{margin:6px;min-height:44px}.ds-order-ticket-panel #ds-ticket-conversation{margin-top:20px}.ds-ticket-messages{display:grid;gap:12px;padding:10px 0}.ds-ticket-message{border:1px solid var(--line,var(--ds-line,#d0d8e3));border-radius:10px;padding:12px;background:var(--surface,var(--ds-surface,#fff))}.ds-ticket-message strong{font-size:13px}.ds-ticket-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.ds-order-ticket-panel textarea{display:block;width:100%;padding:12px;border:1px solid var(--line,var(--ds-line,#d0d8e3));background:var(--surface,var(--ds-surface,#fff));color:inherit;border-radius:8px}
@media(max-width:768px){.gemini-order-guide{margin:20px 12px;padding:18px}.gemini-order-steps,.gemini-feature-grid{grid-template-columns:1fr}.gemini-order-step{display:flex;gap:18px}.gemini-order-step-number{flex:0 0 auto}.ds-order-ticket-panel{padding:15px}}
@media(prefers-reduced-motion:reduce){.gemini-order-guide *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Private receipt: actual statuses, not assumed payment/dispatch/activation. */
.ds-receipt-header,.ds-receipt-timeline,.ds-receipt-summary,.ds-receipt-access{background:var(--surface,var(--ds-surface,#fff));border:1px solid var(--line,var(--ds-line,#cbd5e1));padding:22px;margin-bottom:18px;border-radius:16px}
.ds-receipt-header h1{font-size:clamp(23px,3vw,32px);margin:12px 0}.ds-receipt-header p,.ds-receipt-access p{line-height:1.9;color:var(--muted,var(--ds-muted,#64748b))}
.ds-receipt-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0;list-style:none}.ds-receipt-steps li{padding:12px;border:1px solid var(--line,var(--ds-line,#cbd5e1));border-radius:12px}.ds-receipt-steps strong,.ds-receipt-steps span{display:block}.ds-receipt-steps strong{font-size:13px}.ds-receipt-steps span{font-size:12px;line-height:1.8;margin-top:7px}.ds-receipt-steps .is-done{border-color:#16a34a}.ds-receipt-steps .is-pending{opacity:.75}.ds-receipt-summary dl div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line,var(--ds-line,#cbd5e1))}.ds-receipt-summary dd{margin:0;text-align:left;overflow-wrap:anywhere}.ds-receipt-access a{display:inline-flex;margin:8px}
@media(max-width:768px){.ds-receipt-steps{grid-template-columns:1fr}.ds-receipt-steps li{display:flex;justify-content:space-between;gap:15px}.ds-receipt-steps li span{margin-top:0}}

/* October 2026: verified product facts, native dialog and evidence-led receipt. */
.gemini-facts-heading { margin-top: 30px; }
.gemini-order-facts > .gemini-order-fact {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-raised);
}
.gemini-order-fact strong { color: var(--text); font-size: 15px; }
.gemini-order-fact p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 0; }
.gemini-order-terms-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.gemini-order-terms-links a { color: var(--accent); text-underline-offset: 4px; font-size: 13px; }
dialog.quick-view-dialog:not([open]) { display: none !important; }
dialog.quick-view-dialog[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: reduce) {
  dialog.quick-view-dialog { animation: none !important; transition: none !important; }
}
.ds-receipt-steps { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.ds-receipt-steps .is-failed { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 8%, var(--surface)); }
.ds-receipt-steps .is-active { border-color: var(--accent); }
.ds-receipt-steps .is-not-applicable { opacity: 0.65; }

/* Price is formatted by WooCommerce; keep its currency unit at a readable sub-size. */
.hero-price strong .woocommerce-Price-currencySymbol,
.product-feature-price strong .woocommerce-Price-currencySymbol { font-size: .45em; font-weight: 700; }
.curated-card-price strong .woocommerce-Price-currencySymbol { font-size: .68em; font-weight: 600; }
.hero-price .woocommerce-Price-amount,
.product-feature-price .woocommerce-Price-amount { white-space: nowrap; }

/* Woo amount wrapper should inherit the large numeric size, not the generic span unit style. */
.hero .hero-price strong > .woocommerce-Price-amount,
.product-feature .product-feature-price strong > .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.hero .hero-price strong .woocommerce-Price-currencySymbol,
.product-feature .product-feature-price strong .woocommerce-Price-currencySymbol { font-size: .45em; font-weight: 700; }

/* Receipt timeline: never squeeze Persian status labels into unreadable cards. */
.ds-receipt-steps li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ds-receipt-steps { grid-template-columns: minmax(0, 1fr); }
  .ds-receipt-steps li { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: start; }
  .ds-receipt-steps li span { margin-top: 0; text-align: start; }
}

/* ==========================================================================
   L3 Checkout Step Progress Bar
   ========================================================================== */
.ds-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 16px;
}

.ds-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #64748b);
}

.ds-step.is-complete {
  color: #10b981;
}

.ds-step.is-active {
  color: var(--primary, #1e40af);
  font-weight: 700;
}

.ds-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  background: var(--line, #e2e8f0);
  color: var(--muted, #64748b);
}

.ds-step.is-complete .ds-step-num {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.ds-step.is-active .ds-step-num {
  background: var(--primary, #1e40af);
  color: #ffffff;
}

.ds-step-line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--line, #e2e8f0);
  border-radius: 1px;
}

.ds-step-line.is-active {
  background: var(--primary, #1e40af);
}

@media (max-width: 640px) {
  .ds-checkout-steps {
    gap: 8px;
    padding: 12px 14px;
  }
  .ds-step-label {
    font-size: 11px;
  }
  .ds-step-line {
    max-width: 30px;
  }
}

/* ==========================================================================
   Persian RTL Cart & Empty Cart Template Styles
   ========================================================================== */
.ds-empty-cart-stage {
  padding: 40px 16px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.ds-empty-cart-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 40px);
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ds-empty-cart-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

.ds-empty-cart-title {
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.ds-empty-cart-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 28px;
}

.ds-empty-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.25);
}

.ds-empty-cart-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: var(--accent-text);
}

.ds-empty-cart-perks {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ds-perk-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.ds-perk-item svg {
  color: var(--jade);
  flex-shrink: 0;
}

/* Cart Drawer Empty State Box */
.ds-cart-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  gap: 16px;
}

.ds-cart-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.ds-cart-empty-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ds-cart-empty-catalog-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

/* Cart Page with Items */
.ds-cart-page-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin: 32px 0 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .ds-cart-page-wrap {
    grid-template-columns: 1fr;
  }
}

.ds-cart-table-card,
.ds-cart-totals-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.ds-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.ds-cart-table th {
  background: var(--surface-raised);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.ds-cart-table td {
  padding: 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ds-cart-table tr:last-child td {
  border-bottom: none;
}

.ds-cart-item-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.ds-cart-item-link:hover {
  color: var(--accent);
}

.ds-cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
}

.ds-cart-remove-btn:hover {
  background: color-mix(in srgb, var(--coral) 15%, var(--surface));
  color: var(--coral);
  border-color: var(--coral);
}

.ds-cart-totals-card {
  padding: 24px;
}

.ds-cart-totals-card h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.ds-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text);
}

.ds-cart-final-total {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
}

.ds-cart-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce .ds-checkout-action-btn.button.alt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.woocommerce .ds-checkout-action-btn.button.alt:hover {
  background: var(--accent);
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: var(--accent-text);
}

.ds-back-catalog-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px;
}

.ds-back-catalog-link:hover {
  color: var(--text);
}

/* Catalog: restrained, scannable commerce layout using existing theme tokens. */
.ds-shop { width: min(100%, 1280px); margin-inline: auto; padding: 38px clamp(16px, 3vw, 32px) 72px; }
.ds-shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ds-shop-heading > div { min-width: 0; }
.ds-shop-heading h1 { margin: 3px 0 7px; font-size: clamp(26px, 2rem, 34px); line-height: 1.35; }
.ds-shop-heading p { margin: 0; color: var(--muted); }
.ds-shop-eyebrow { color: var(--jade) !important; font-size: 12px; font-weight: 800; }
.ds-shop-count { flex: none; color: var(--muted); font-size: 13px; }
.ds-shop-search { display: flex; gap: 10px; align-items: center; padding-inline: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); }
.ds-shop-search input { border: 0; outline: 0; min-width: 0; padding: 0; }
.ds-shop-categories { display: flex; gap: 8px; overflow-x: auto; padding-block: 20px 24px; scrollbar-width: thin; }
.ds-shop-categories a { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; }
.ds-shop-categories a[aria-current="page"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.ds-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ds-shop-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); transition: transform .22s ease, box-shadow .22s ease; }
.ds-shop-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.ds-shop-card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-raised); text-decoration: none; }
.ds-shop-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.ds-shop-card:hover .ds-shop-card-media img { transform: scale(1.035); }
.ds-shop-card-body { padding: 18px; }
.ds-shop-card-category { color: var(--jade); font-size: 12px; font-weight: 700; }
.ds-shop-card h2 { margin: 6px 0 8px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.ds-shop-card h2 a { color: var(--text); text-decoration: none; }
.ds-shop-card-body > p { min-height: 48px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ds-shop-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.ds-shop-card-price { display: grid; gap: 2px; }
.ds-shop-card-price small { color: var(--muted); }
.ds-shop-card-price strong { font-size: 15px; color: var(--text); }
.ds-shop-card-price .amount { color: inherit; }
.ds-shop-card-foot > a { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); text-decoration: none; font-size: 22px; }
.ds-shop-empty { padding: 64px 20px; text-align: center; border-top: 1px solid var(--line); }
.ds-shop-empty p { color: var(--muted); }
.ds-shop-empty a { color: var(--accent); }
.ds-shop-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 28px 0 0; }
.ds-shop-pagination a, .ds-shop-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; }
.ds-shop-pagination .current { background: var(--accent); color: var(--accent-text); }
.nav-category-menu { position: relative; display: inline-flex; align-items: center; }
.nav-category-menu summary { display: grid; place-items: center; width: 30px; height: 32px; cursor: pointer; list-style: none; color: var(--muted); }
.nav-category-menu summary::-webkit-details-marker { display: none; }
.nav-category-list { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: 210px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--card-shadow); }
.nav-category-list a { display: block; padding: 9px 11px; border-radius: 4px; text-decoration: none; color: var(--text); font-size: 13px; }
.nav-category-list a:hover, .nav-category-list a:focus-visible { background: var(--surface-raised); }

/* Catalog: compact controls, fully framed artwork, and readable buying states. */
.ds-shop { width: min(100%, 1280px); padding: 34px clamp(18px, 3vw, 36px) 88px; }
.ds-shop-heading { align-items: center; margin-bottom: 25px; }
.ds-shop-heading h1 { font-size: 30px; line-height: 1.35; }
.ds-shop-heading > div > p:last-child { font-size: 14px; line-height: 1.8; }
.ds-shop-count { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 700; }
.ds-shop-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 12px; align-items: stretch; }
.ds-shop-search { min-width: 0; min-height: 52px; gap: 12px; padding-inline: 16px 5px; border-radius: 8px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.ds-shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.ds-shop-search input { flex: 1; width: auto; height: 48px; background: transparent; color: var(--text); font-size: 14px; }
.ds-shop-search button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ds-shop-toolbar-actions { display: flex; gap: 10px; }
.ds-shop-sort { display: flex; align-items: center; gap: 8px; min-width: 200px; min-height: 52px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.ds-shop-sort span { color: var(--muted); white-space: nowrap; }
.ds-shop-sort select { flex: 1; min-width: 90px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.ds-shop-filters { position: relative; z-index: 12; }
.ds-shop-filters summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding-inline: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.ds-shop-filters summary::-webkit-details-marker { display: none; }
.ds-shop-filters[open] summary, .ds-shop-filters summary:hover { border-color: var(--accent); color: var(--accent); }
.ds-shop-filters summary b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 11px; }
.ds-shop-filter-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 7px); width: min(310px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 16px 42px rgb(0 0 0 / .14); }
.ds-shop-filter-panel p { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.ds-shop-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-shop-price-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.ds-shop-price-fields input { min-width: 0; width: 100%; height: 42px; padding-inline: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 13px; }
.ds-shop-filter-submit { width: 100%; min-height: 42px; margin-top: 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
.ds-shop-categories { flex-wrap: wrap; gap: 8px; overflow: visible; padding: 18px 0 16px; }
.ds-shop-categories a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 13px; border-radius: 6px; font-weight: 600; transition: border-color .18s, color .18s, background-color .18s; }
.ds-shop-categories a:hover { border-color: var(--accent); color: var(--accent); }
.ds-shop-categories a[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--surface); }
.ds-shop-results { display: flex; align-items: center; gap: 16px; min-height: 37px; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.ds-shop-results a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.ds-shop-grid { gap: 20px; }
.ds-shop-card { display: flex; flex-direction: column; border-radius: 8px; box-shadow: 0 2px 9px rgb(0 0 0 / .025); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.ds-shop-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 10px 28px rgb(0 0 0 / .09); }
.ds-shop-card-media { position: relative; display: flex; align-items: center; justify-content: center; flex: none; aspect-ratio: 1.48; background: var(--surface-raised); }
.ds-shop-card-media img { display: block; width: min(77%, 310px); height: 82%; object-fit: contain; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.ds-shop-card-media img[src*="shop-"] { width: 100%; height: 100%; object-fit: contain; }
.ds-shop-card-media:has(img[src*="shop-"]) { background: #f2f4f7; }
.ds-shop-card-status { position: absolute; inset-block-start: 13px; inset-inline-start: 13px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--surface) 91%, transparent); color: var(--muted); font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.ds-shop-art-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; color: var(--text); font-size: 21px; font-weight: 800; text-align: center; }
.ds-shop-card-body { display: flex; flex: 1; flex-direction: column; min-height: 218px; padding: 17px 18px 18px; }
.ds-shop-card-category { color: var(--jade); font-size: 12px; font-weight: 800; }
.ds-shop-card h2 { min-height: 29px; margin: 4px 0 6px; font-size: 18px; line-height: 1.4; }
.ds-shop-card h2 a:hover { color: var(--accent); }
.ds-shop-card-body > p { min-height: 42px; margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-shop-card-foot { align-items: center; margin-top: auto; padding-top: 14px; }
.ds-shop-card-price { gap: 1px; min-width: 0; }
.ds-shop-card-price small { font-size: 11px; }
.ds-shop-card-price strong { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.ds-shop-card-action { display: inline-flex !important; align-items: center; justify-content: center; gap: 5px; width: auto !important; min-width: 126px; min-height: 40px; height: auto !important; padding: 7px 10px; border-radius: 6px; color: var(--accent); font-size: 12px !important; font-weight: 700; white-space: nowrap; }
.ds-shop-card-action:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: var(--accent); }
.ds-shop-card-action svg { flex: none; }
.ds-shop :is(a,button,select,input,summary):focus-visible, .nav-category-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-nav:has(.nav-category-menu) { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.header-nav:has(.nav-category-menu) .nav-link.nav-products { min-height: 40px; padding-block: 9px; }
.nav-category-menu summary { width: 40px; height: 40px; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0 7px 7px 0; background: transparent; color: var(--text); transition: color .18s, background-color .18s; }
.nav-category-menu[open] summary, .nav-category-menu summary:hover { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--accent); }
.nav-category-menu[open] summary svg { transform: rotate(180deg); }
.nav-category-list { width: 225px; padding: 7px; border-radius: 8px; }
.nav-category-list a { min-height: 39px; display: flex; align-items: center; font-weight: 600; }
@media (max-width: 768px) {
  .site-header nav.header-nav { display: none; }
}
@media (max-width: 900px) {
  .ds-shop-toolbar { grid-template-columns: 1fr; }
  .ds-shop-toolbar-actions { justify-content: flex-start; }
  .ds-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ds-shop { padding: 24px 16px 88px; }
  .ds-shop-heading { display: flex; align-items: flex-start; gap: 8px; }
  .ds-shop-heading h1 { font-size: 24px; }
  .ds-shop-heading > div > p:last-child { font-size: 12px; }
  .ds-shop-count { margin-top: 10px; padding: 5px 7px; font-size: 11px; }
  .ds-shop-toolbar { gap: 9px; }
  .ds-shop-search { min-height: 48px; }
  .ds-shop-search input { font-size: 13px; }
  .ds-shop-search button { padding-inline: 9px; font-size: 12px; }
  .ds-shop-toolbar-actions > * { flex: 1; min-width: 0; }
  .ds-shop-sort { min-width: 0; min-height: 46px; }
  .ds-shop-sort span { display: none; }
  .ds-shop-filters summary { min-height: 46px; }
  .ds-shop-filter-panel { width: calc(100vw - 32px); }
  .ds-shop-categories { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ds-shop-categories::-webkit-scrollbar { display: none; }
  .ds-shop-categories a { scroll-snap-align: start; white-space: nowrap; }
  .ds-shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .ds-shop-card-media { aspect-ratio: 1.65; }
  .ds-shop-card-body { min-height: 194px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-shop-card, .ds-shop-card-media img, .ds-shop-categories a { transition: none; }
}
.ds-product-description { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text); line-height: 1.9; }

/* Shop discovery controls. */
.ds-shop-enhanced .ds-shop-categories { position: relative; }
.ds-shop-category-indicator { display: none; }
.ds-shop-enhanced .ds-shop-category-indicator {
  display: block;
  position: absolute;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  pointer-events: none;
  transition: left 320ms cubic-bezier(.2,.7,.2,1), width 320ms cubic-bezier(.2,.7,.2,1);
}
.ds-shop-enhanced .ds-shop-categories a::after { display: none; }
.ds-shop-availability, .ds-shop-drawer-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.ds-shop-availability:has(input:checked), .ds-shop-drawer-availability:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}
.ds-shop-availability input, .ds-shop-drawer-availability input {
  appearance: none;
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--muted);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.ds-shop-availability input::after, .ds-shop-drawer-availability input::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  inset: 2px 6px auto auto;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 200ms cubic-bezier(.2,.8,.2,1);
}
.ds-shop-availability input:checked, .ds-shop-drawer-availability input:checked { border-color: var(--accent); background: var(--accent); }
.ds-shop-availability input:checked::after, .ds-shop-drawer-availability input:checked::after { transform: rotate(45deg) scale(1); }
.ds-shop-availability input:focus-visible, .ds-shop-drawer-availability input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ds-shop-duration { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.ds-shop-duration select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; padding-inline: 8px; background: var(--surface-raised); color: var(--text); font: inherit; }
.ds-shop-search { position: relative; z-index: 15; }
.ds-shop-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 7px);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgb(0 0 0 / .13);
  animation: ds-filter-open 180ms ease-out both;
}
.ds-shop-suggestions[hidden] { display: none; }
.ds-shop-suggestions a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.ds-shop-suggestions a:hover, .ds-shop-suggestions a:focus-visible { background: var(--surface-raised); }
.ds-shop-suggestions img { width: 38px; height: 38px; object-fit: contain; flex: none; border-radius: 4px; }
.ds-shop-suggestions mark { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--text); }
.ds-shop-suggestions p { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
.ds-shop-enhanced .ds-shop-grid .ds-shop-card { animation: none; }
.ds-shop-mobile-filter-open { display: none; }
.ds-shop-filter-dialog, .ds-shop-compare-dialog {
  width: min(100% - 24px, 720px);
  max-width: none;
  max-height: min(84dvh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgb(0 0 0 / .22);
}
.ds-shop-filter-dialog::backdrop, .ds-shop-compare-dialog::backdrop { background: rgb(0 0 0 / .46); backdrop-filter: blur(5px); }
.ds-shop-filter-dialog[open], .ds-shop-compare-dialog[open] { animation: ds-filter-open 270ms cubic-bezier(.2,.7,.2,1) both; }
.ds-shop-drawer-form { display: flex; flex-direction: column; max-height: inherit; }
.ds-shop-drawer-head, .ds-shop-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.ds-shop-drawer-head h2, .ds-shop-compare-head h2 { margin: 0; font-size: 19px; }
.ds-shop-drawer-close, .ds-shop-compare-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.ds-shop-drawer-fields { display: grid; gap: 18px; overflow-y: auto; padding: 20px; }
.ds-shop-drawer-fields > label:not(.ds-shop-drawer-availability) { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.ds-shop-drawer-fields select, .ds-shop-drawer-fields input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}
.ds-shop-drawer-fields fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-shop-drawer-fields legend { margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.ds-shop-drawer-availability { width: fit-content; }
.ds-shop-drawer-foot { display: flex; align-items: center; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.ds-shop-drawer-foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ds-shop-drawer-foot button { flex: 1; min-height: 48px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 800; cursor: pointer; }
.ds-shop-compare-select { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 28px; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.ds-shop-compare-select input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ds-shop-compare-select:has(input:checked) { color: var(--accent); }
.ds-shop-compare-select:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ds-shop-compare-tray {
  position: fixed;
  z-index: 40;
  inset-inline: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 800px;
  margin-inline: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 14px 40px rgb(0 0 0 / .15);
  backdrop-filter: blur(18px);
  animation: ds-filter-open 230ms cubic-bezier(.2,.7,.2,1) both;
}
.ds-shop-compare-tray[hidden] { display: none; }
.ds-shop-compare-items { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds-shop-compare-items > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; }
.ds-shop-compare-items img { width: 31px; height: 31px; object-fit: contain; flex: none; }
.ds-shop-compare-items b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ds-shop-compare-items button, .ds-shop-compare-clear { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.ds-shop-compare-items button { font-size: 21px; line-height: 1; }
.ds-shop-compare-tray > div { display: flex; align-items: center; gap: 8px; }
.ds-shop-compare-open { min-height: 42px; padding-inline: 14px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ds-shop-compare-open:disabled { opacity: .55; cursor: not-allowed; }
.ds-shop-compare-content { overflow-x: auto; padding: 18px 20px 24px; }
.ds-shop-compare-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ds-shop-compare-content th, .ds-shop-compare-content td { padding: 13px 9px; border-bottom: 1px solid var(--line); text-align: start; overflow-wrap: anywhere; font-size: 13px; }
.ds-shop-compare-content th:first-child { width: 24%; }
.ds-shop-compare-content thead th { vertical-align: bottom; }
.ds-shop-compare-content thead a { display: grid; justify-items: start; gap: 6px; color: var(--text); text-decoration: none; }
.ds-shop-compare-content thead img { width: 64px; height: 55px; object-fit: contain; }
@media (max-width: 700px) {
  .ds-shop-enhanced .ds-shop-availability, .ds-shop-enhanced .ds-shop-filters { display: none; }
  .ds-shop-enhanced .ds-shop-mobile-filter-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .ds-shop-mobile-filter-open b { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 11px; }
  .ds-shop-filter-dialog { position: fixed; inset: auto 0 0; width: min(100%, 560px); max-height: min(88dvh, 780px); margin: auto auto 0; border-radius: 8px 8px 0 0; }
  .ds-shop-filter-dialog[open] { animation: ds-shop-sheet-enter 300ms cubic-bezier(.2,.7,.2,1) both; }
  .ds-shop-compare-tray { bottom: calc(85px + env(safe-area-inset-bottom)); inset-inline: 12px; flex-wrap: wrap; }
  .ds-shop-compare-items { width: 100%; }
  .ds-shop-compare-tray > div { width: 100%; justify-content: space-between; }
  .ds-shop-compare-dialog { width: calc(100% - 20px); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .ds-shop-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .ds-shop-categories a { flex: none; white-space: nowrap; scroll-snap-align: start; }
}
@keyframes ds-shop-sheet-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .ds-shop-enhanced .ds-shop-category-indicator,
  .ds-shop-availability input, .ds-shop-drawer-availability input,
  .ds-shop-availability input::after, .ds-shop-drawer-availability input::after { transition: none; }
  .ds-shop-suggestions, .ds-shop-filter-dialog[open], .ds-shop-compare-dialog[open], .ds-shop-compare-tray { animation: none; }
}

/* Shop filters: clear hierarchy and motion that follows the selected state. */
.ds-shop-toolbar {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-raised) 54%, var(--surface));
}
.ds-shop-search { background: var(--surface); }
.ds-shop-search input::-webkit-search-cancel-button { display: none; }
.ds-shop-search .ds-shop-search-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}
.ds-shop-search .ds-shop-search-clear[hidden] { display: none; }
.ds-shop-search .ds-shop-search-clear:hover { background: var(--surface-raised); color: var(--text); }
.ds-shop-search > button[type="submit"] { transition: transform 160ms ease, background-color 160ms ease; }
.ds-shop-search > button[type="submit"]:hover { transform: translateY(-2px); }
.ds-shop-sort { background: var(--surface); transition: border-color 180ms ease, box-shadow 180ms ease; }
.ds-shop-sort:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.ds-shop-filters summary { background: var(--surface); transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.ds-shop-filters summary svg { transition: transform 240ms cubic-bezier(.2,.7,.2,1); }
.ds-shop-filters[open] summary svg { transform: rotate(-90deg); }
.ds-shop-filters[open] .ds-shop-filter-panel { animation: ds-filter-open 220ms cubic-bezier(.2,.7,.2,1) both; }
.ds-shop-price-fields input:focus-visible { border-color: var(--accent); }
.ds-shop-filter-submit { transition: transform 160ms ease, filter 160ms ease; }
.ds-shop-filter-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ds-shop-categories { align-items: center; gap: 5px; padding-block: 16px 12px; border-bottom: 1px solid var(--line); }
.ds-shop-categories-label { flex: none; margin-inline-end: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ds-shop-categories a {
  position: relative;
  min-height: 44px;
  padding-inline: 14px;
  border-color: transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  transition: color 180ms ease, background-color 180ms ease;
}
.ds-shop-categories a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}
.ds-shop-categories a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: transparent; }
.ds-shop-categories a:hover::after, .ds-shop-categories a[aria-current="page"]::after { transform: scaleX(1); }
.ds-shop-categories a[aria-current="page"] {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  color: var(--accent);
}
.ds-shop-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; }
.ds-shop-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding-inline: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  animation: ds-filter-open 240ms cubic-bezier(.2,.7,.2,1) both;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.ds-shop-active-filters a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.ds-shop-active-filters a span { color: var(--accent); font-size: 19px; line-height: 1; }
.ds-shop-results { margin-top: 7px; }
.ds-shop-grid .ds-shop-card { animation: ds-shop-card-enter 420ms cubic-bezier(.2,.7,.2,1) backwards; }
.ds-shop-grid .ds-shop-card:nth-child(3n + 2) { animation-delay: 55ms; }
.ds-shop-grid .ds-shop-card:nth-child(3n) { animation-delay: 110ms; }
@keyframes ds-filter-open {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ds-shop-card-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .ds-shop-toolbar { padding: 10px; }
  .ds-shop-categories { margin-inline: -16px; padding-inline: 16px; }
  .ds-shop-categories-label { margin-inline-end: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-shop-filters[open] .ds-shop-filter-panel,
  .ds-shop-active-filters a,
  .ds-shop-grid .ds-shop-card { animation: none; }
  .ds-shop-categories a::after,
  .ds-shop-filters summary svg,
  .ds-shop-search > button[type="submit"] { transition: none; }
}
.ds-product-description h2 { font-size: 19px; margin: 0 0 10px; }
.ds-duration-options { display: grid; gap: 8px; margin-block: 18px; }
.ds-duration-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ds-duration-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ds-duration-option input { accent-color: var(--accent); }
@media (max-width: 860px) {
  .ds-duration-options { order: 5; }
  .detail-action-group { order: 6; }
  .detail-visual-card { order: 7; }
  .ds-product-description { order: 8; }
  .detail-specs-section { order: 9; }
}


