:root {
  --bg: #f8f5ef;
  --surface: #fffdf9;
  --surface-2: #f1eadf;
  --surface-3: #e7ddce;
  --ink: #243229;
  --muted: #6e756e;
  --line: rgba(36, 50, 41, .12);
  --brand: #1f654b;
  --brand-2: #174b3a;
  --accent: #c77649;
  --button-primary: #1f654b;
  --button-secondary: #ddb98b;
  --sand: #ddb98b;
  --danger: #b34e47;
  --success: #2a7958;
  --shadow: 0 24px 70px rgba(49, 43, 34, .1);
  --shadow-sm: 0 12px 32px rgba(49, 43, 34, .08);
  --radius: 28px;
  --radius-sm: 16px;
  --container: 1240px;
  --font: var(--site-font, "Vazirmatn"), Tahoma, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #111713;
  --surface: #182019;
  --surface-2: #202a22;
  --surface-3: #2a352d;
  --ink: #edf2ed;
  --muted: #a6afa8;
  --line: rgba(237, 242, 237, .12);
  --brand: #6fb293;
  --brand-2: #92c6aa;
  --accent: #df986d;
  --sand: #d3ad7f;
  --danger: #e47c73;
  --success: #74bd98;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin-top: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 900px; }
.section { padding: 92px 0; }
.announcement { position: relative; z-index: 50; background: var(--brand-2); color: #fff; font-size: 12px; }
.announcement-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.announcement a { color: #dfeee6; }

.site-header { position: sticky; z-index: 45; top: 0; height: 84px; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); transition: .25s; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50% 42% 50% 38%; background: var(--brand); color: #fff; font-weight: 900; font-size: 23px; box-shadow: inset -5px -4px 0 rgba(0,0,0,.08); transform: rotate(-5deg); }
.brand-mark.large { width: 76px; height: 76px; font-size: 38px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.brand strong { font-size: 20px; letter-spacing: -.5px; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.desktop-nav a { position: relative; color: var(--muted); font-size: 14px; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; width: 0; height: 2px; border-radius: 4px; background: var(--accent); transition: width .2s; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .menu-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 20px; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: inline; }
.login-link { padding: 8px 12px; font-weight: 800; font-size: 13px; }
.cart-button { min-width: 84px; height: 43px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; border-radius: 22px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 900; }
.cart-button b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; }
.menu-button { display: none; }
.mobile-cart-shortcut { display: none; }
.mobile-drawer, .drawer-backdrop { display: none; }

.hero { position: relative; min-height: 720px; overflow: hidden; padding: 70px 0 90px; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -280px; top: -180px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 70px color-mix(in srgb, var(--line) 45%, transparent), 0 0 0 140px color-mix(in srgb, var(--line) 25%, transparent); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .2px; }
.kicker i { width: 28px; height: 1px; background: currentColor; }
.kicker.light { color: #e7c8a4; }
.hero h1 { max-width: 650px; margin-bottom: 25px; font-size: clamp(46px, 5.1vw, 77px); line-height: 1.24; letter-spacing: -3px; }
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-copy > p { max-width: 600px; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 24px; border: 0; border-radius: 14px; font-weight: 900; font-size: 14px; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button.primary { background: var(--button-primary); color: #fff; }
.button.primary:hover { background: var(--brand-2); }
.button.ghost { border: 1px solid var(--line); background: var(--surface); }
.button.sand { background: var(--button-secondary); color: #243229; }
.button.block { width: 100%; }
.button.grow { flex: 1; }
.play-dot { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.hero-proof { display: flex; gap: 0; margin-top: 52px; }
.hero-proof div { min-width: 120px; display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--line); }
.hero-proof div:first-child { padding-right: 0; }
.hero-proof div:last-child { border-left: 0; }
.hero-proof strong { font-size: 17px; }
.hero-proof span { color: var(--muted); font-size: 11px; }
.hero-art { position: relative; min-height: 590px; }
.hero-arch { position: absolute; width: 88%; max-width: 530px; left: 8%; top: 0; overflow: hidden; border-radius: 260px 260px 38px 38px; background: #d9c5a9; box-shadow: var(--shadow); }
.hero-arch::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -80px 100px rgba(36,50,41,.14); pointer-events: none; }
.hero-arch img { width: 100%; aspect-ratio: .82; object-fit: cover; }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.floating-note > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.floating-note div { display: flex; flex-direction: column; line-height: 1.45; }
.floating-note strong { font-size: 12px; }
.floating-note small { color: var(--muted); font-size: 9px; }
.note-one { right: -4%; top: 21%; }
.note-two { left: 0; bottom: 14%; }

.category-strip { padding: 30px 0 70px; }
.strip-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.strip-title a { color: var(--brand); }
.category-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 30px; }
.category-list a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.category-orb { width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 50%; font-size: 35px; transition: transform .25s, border-radius .25s; }
.category-list a:hover .category-orb { transform: translateY(-5px) rotate(3deg); border-radius: 43% 57% 48% 52%; }
.tone-1 { background: #dbe9dd; color: #397053; }
.tone-2 { background: #eadcc9; color: #9d673d; }
.tone-3 { background: #e6d8d2; color: #98614e; }
.tone-4 { background: #d8e1e5; color: #4b7181; }
[data-theme="dark"] .category-orb { filter: brightness(.72) saturate(.8); }
.category-list strong { font-size: 13px; }
.category-list small { color: var(--muted); font-size: 10px; }

.products-section { background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.section-heading h2, .story-copy h2, .faq h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.5; letter-spacing: -1px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 900; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.product-image-wrap { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.product-image-wrap img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-image-wrap img { transform: scale(1.035); }
.sale-badge, .course-cover b { position: absolute; top: 15px; right: 15px; padding: 6px 10px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 900; }
.view-cue { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.88); color: #243229; font-size: 9px; font-weight: 900; opacity: 0; transform: translateY(8px); transition: .2s; }
.product-card:hover .view-cue { opacity: 1; transform: none; }
.product-card-body { padding: 21px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 900; }
.product-card h3, .course-card h3 { margin: 7px 0 8px; font-size: 17px; line-height: 1.55; }
.product-card-body > p, .course-card-body > p { min-height: 48px; margin-bottom: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.price-row > div { display: flex; flex-direction: column; }
.price-row del { color: var(--muted); font-size: 10px; }
.price-row strong { font-size: 16px; }
.price-row strong small { color: var(--muted); font-size: 9px; font-weight: 500; }
.round-add { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 23px; transition: transform .2s; }
.round-add:hover { transform: rotate(90deg); }

.story-section { overflow: hidden; background: var(--brand-2); color: #fff; padding: 100px 0; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.story-visual { position: relative; }
.story-visual img { width: 100%; border-radius: 48% 48% 18px 18px; background: #c7aa86; }
.story-seal { position: absolute; left: -35px; bottom: 25px; width: 100px; height: 100px; display: grid; place-items: center; text-align: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: var(--accent); font-size: 11px; font-weight: 900; transform: rotate(-10deg); }
.story-copy > p { max-width: 640px; color: #c9d8d0; font-size: 15px; }
.story-copy ul { list-style: none; margin: 30px 0; padding: 0; }
.story-copy li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.story-copy li b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #e5c49c; }
.story-copy li span { display: flex; flex-direction: column; }
.story-copy li small { color: #afc2b7; font-size: 11px; }

.course-section { background: var(--bg); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 35px rgba(50,45,35,.04); }
.course-cover { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.course-cover img { width: 100%; aspect-ratio: 1.52; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-cover img { transform: scale(1.04); }
.play-button { position: absolute; inset: 50% auto auto 50%; width: 54px; height: 54px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.45); border-radius: 50%; background: #fff; color: var(--brand-2); transform: translate(-50%,-50%); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.play-button.large { width: 78px; height: 78px; font-size: 25px; }
.course-card-body { padding: 22px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-bottom: 17px; color: var(--muted); font-size: 9px; }
.course-meta span::before { content: "•"; margin-left: 5px; color: var(--accent); }
.instructor { display: flex; align-items: center; gap: 9px; margin: 13px 0; }
.instructor > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.instructor div { display: flex; flex-direction: column; line-height: 1.35; }
.instructor small { color: var(--muted); font-size: 8px; }
.instructor strong { font-size: 10px; }
.instructor.large > span { width: 48px; height: 48px; }
.instructor.large strong { font-size: 13px; }

.feature-band { padding: 42px 0; border-block: 1px solid var(--line); background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-grid > div { display: grid; grid-template-columns: 44px 1fr; padding: 0 25px; border-left: 1px solid var(--line); }
.feature-grid > div:last-child { border-left: 0; }
.feature-grid > div > span { grid-row: 1/3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.feature-grid strong { font-size: 12px; }
.feature-grid small { color: var(--muted); font-size: 9px; }
.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; }
.faq-grid > div:first-child p { color: var(--muted); }
.accordion details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; font-weight: 900; }
.accordion summary::after { content: "+"; float: left; color: var(--accent); font-size: 22px; }
.accordion details[open] summary::after { content: "−"; }
.accordion p { margin: 13px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 70px 0 25px; background: #17221b; color: #ecf1ed; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-brand { margin-bottom: 20px; }
.footer-brand small { color: #8fa397; }
.footer-grid p { max-width: 360px; color: #9fb0a6; font-size: 11px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid h3 { margin-bottom: 10px; font-size: 13px; }
.footer-grid a { color: #aebcb4; font-size: 11px; }
.trust-chip { display: inline-flex; align-self: flex-start; padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #d8e4dc; font-size: 9px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #84968c; font-size: 9px; }
.footer-credit { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid rgba(255,255,255,.07); color:#aebfb5; font-size:10px; }
.footer-credit > span { font-weight:700; }
.footer-credit > a { min-height:40px; display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border:1px solid rgba(255,255,255,.16); border-radius:10px; background:rgba(255,255,255,.075); color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.15); transition:background .2s,border-color .2s,transform .2s; }
.footer-credit > a:hover { border-color:rgba(255,255,255,.34); background:rgba(255,255,255,.13); color:#fff; transform:translateY(-2px); }
.footer-credit > a > svg { width:18px; height:18px; color:#efcda5; }
.footer-credit > a strong { font-size:12px; }.footer-credit > a small { color:#c6d4cc; font-size:9px; direction:ltr; }
.mobile-bottom-nav { display: none; }

.page-hero { padding: 80px 0 72px; text-align: center; background: var(--surface-2); }
.page-hero.compact { padding-block: 65px; }
.page-hero.mini { padding-block: 43px; text-align: right; }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -1.5px; }
.page-hero p { max-width: 650px; margin: 0 auto; color: var(--muted); }
.page-hero.mini h1 { margin: 0; font-size: 38px; }
.shop-toolbar { display: grid; grid-template-columns: 1fr 210px 180px; gap: 12px; }
.shop-toolbar select, .shop-toolbar input, .course-search input, .profile-form input, .checkout-form input, .checkout-form textarea, .checkout-form select {
  width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--surface); padding: 0 15px;
}
.shop-toolbar select:focus, .shop-toolbar input:focus, .checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.search-box { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.search-box > span { padding-right: 15px; font-size: 22px; }
.search-box input { border: 0; background: transparent; }
.search-box button { height: 38px; margin-left: 6px; padding: 0 17px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; }
.result-line { display: flex; gap: 8px; margin: 32px 0 18px; color: var(--muted); font-size: 12px; }
.result-line strong { color: var(--ink); }
.empty-state { min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 55px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state > span { color: var(--accent); font-size: 55px; }
.empty-state h1, .empty-state h2 { margin: 12px 0 5px; }
.empty-state p { max-width: 500px; color: var(--muted); }
.empty-state > div { display: flex; gap: 10px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 45px; }
.pagination a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.pagination a.active { background: var(--brand); color: #fff; }

.detail-page { padding: 35px 0 85px; background: var(--surface); }
.breadcrumbs { display: flex; gap: 9px; padding-block: 20px 30px; color: var(--muted); font-size: 10px; }
.breadcrumbs a:hover { color: var(--brand); }
.product-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }
.gallery-main { overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb-list { display: flex; gap: 10px; margin-top: 12px; }
.thumb-list button { width: 68px; height: 68px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--surface-2); }
.thumb-list button.active { border-color: var(--brand); }
.thumb-list img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: 15px; }
.product-info h1 { margin: 7px 0 15px; font-size: clamp(32px, 4vw, 49px); line-height: 1.45; letter-spacing: -1px; }
.product-info .lead { color: var(--muted); font-size: 15px; }
.handmade-line { margin: 22px 0; padding: 13px 15px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.handmade-line span { color: var(--accent); }
.detail-price { display: flex; flex-direction: column; margin: 25px 0; }
.detail-price del { color: var(--muted); font-size: 13px; }
.detail-price strong { color: var(--brand); font-size: 30px; }
.detail-price small { font-size: 12px; }
.variant-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 12px; font-weight: 800; }
.variant-picker select { min-height: 52px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 0 13px; }
.buy-row { display: flex; gap: 10px; }
.quantity-control { display: inline-flex; align-items: center; height: 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.quantity-control button { width: 38px; height: 100%; border: 0; background: transparent; font-size: 19px; }
.quantity-control input { width: 43px; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; text-align: center; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { display: none; }
.stock-note { margin: 14px 0; font-size: 10px; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }
.delivery-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.delivery-cards > div { display: grid; grid-template-columns: 34px 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.delivery-cards > div > span { grid-row: 1/3; color: var(--brand); font-size: 21px; }
.delivery-cards strong { font-size: 10px; }
.delivery-cards small { color: var(--muted); font-size: 8px; }
.product-description { background: var(--bg); }
.rich-text { color: var(--muted); font-size: 14px; line-height: 2.15; }
.plain-description { white-space: pre-line; }
.rich-text h2, .rich-text h3 { color: var(--ink); }
.care-note { display: flex; gap: 18px; margin-top: 35px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.care-note > span { font-size: 30px; color: var(--brand); }
.care-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.course-hero { color: #fff; background: linear-gradient(135deg, #153a2c, #225d47); }
.course-hero .kicker { color: #e0bb8c; }
.course-hero p { color: #c5d7cd; }
.course-search { max-width: 600px; display: flex; align-items: center; margin: 30px auto 0; padding: 6px; border-radius: 15px; background: #fff; color: #253129; }
.course-search > span { padding-right: 14px; font-size: 20px; }
.course-search input { border: 0; background: transparent; }
.course-search button { min-width: 85px; height: 39px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 900; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter-chips a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); font-size: 11px; }
.filter-chips a.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.course-detail-hero { padding: 25px 0 85px; color: #fff; background: linear-gradient(140deg, #172f25, #1d533e); }
.light-breadcrumb { color: #aac0b4; }
.course-detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 75px; align-items: center; }
.course-detail-copy h1 { margin-bottom: 19px; font-size: clamp(38px, 5vw, 62px); line-height: 1.45; }
.course-detail-copy > p { max-width: 650px; color: #c2d5ca; }
.course-detail-copy .instructor > span { background: rgba(255,255,255,.1); }
.course-proof { margin-top: 35px; }
.course-proof div { border-color: rgba(255,255,255,.15); }
.course-proof span { color: #a8bdb1; }
.course-preview { position: relative; overflow: hidden; border: 7px solid rgba(255,255,255,.09); border-radius: var(--radius); background: #d8b98f; box-shadow: var(--shadow); }
.course-preview img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.course-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 35px; align-items: start; }
.content-card, .syllabus, .purchase-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.syllabus { margin-top: 25px; }
.syllabus-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.syllabus-head h2 { font-size: 24px; }
.syllabus-head > span { color: var(--muted); font-size: 10px; }
.chapter { margin-top: 25px; }
.chapter h3 { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.chapter h3 span { color: var(--accent); }
.lesson-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.lesson-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.lesson-copy { display: flex; flex-direction: column; }
.lesson-copy strong { font-size: 12px; }
.lesson-copy small { color: var(--muted); font-size: 9px; }
.lesson-copy span { color: var(--accent); font-size: 8px; }
.lesson-action { display: flex; align-items: center; gap: 7px; }
.small-button { padding: 6px 12px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; font-size: 9px; }
.small-button.outline { border: 1px solid var(--brand); background: transparent; color: var(--brand); }
.download-link, .soon-label, .lock-label { color: var(--muted); font-size: 8px; }
.purchase-card { position: sticky; top: 105px; box-shadow: var(--shadow-sm); }
.purchase-card > del { color: var(--muted); font-size: 11px; }
.purchase-price { display: flex; align-items: baseline; gap: 7px; margin: 5px 0 15px; }
.purchase-price strong { font-size: 32px; color: var(--brand); }
.purchase-price span { font-size: 10px; color: var(--muted); }
.purchase-card ul { list-style: none; padding: 0; margin: 20px 0; }
.purchase-card li { padding: 7px 0; color: var(--muted); font-size: 10px; }
.purchase-card li::before { content: "✓"; margin-left: 9px; color: var(--success); font-weight: 900; }
.secure-note { display: block; margin-top: 12px; text-align: center; color: var(--muted); font-size: 8px; }
.owned-badge { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); font-size: 10px; font-weight: 900; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; min-height: 145px; padding: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: opacity .2s; }
.cart-item.loading { opacity: .45; pointer-events: none; }
.cart-item > img { width: 120px; height: 120px; border-radius: 14px; background: var(--surface-2); object-fit: cover; }
.cart-item-copy h3 { margin: 4px 0 3px; font-size: 15px; }
.cart-item-copy p { margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.quantity-control.small { height: 34px; }
.quantity-control.small button { width: 30px; }
.cart-item-end { display: flex; min-width: 140px; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-end strong { font-size: 14px; }
.cart-item-end small { color: var(--muted); font-size: 8px; }
.remove-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); }
.order-summary { position: sticky; top: 105px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.order-summary h2 { margin-bottom: 22px; font-size: 18px; }
.order-summary > div:not(.mini-lines):not(.summary-trust) { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; color: var(--muted); font-size: 10px; }
.order-summary > div strong { color: var(--ink); font-size: 11px; }
.order-summary .discount strong { color: var(--success); }
.order-summary .summary-total { margin: 10px 0 20px; padding-top: 18px !important; border-top: 1px solid var(--line); }
.order-summary .summary-total strong { color: var(--brand); font-size: 20px; }
.summary-trust { display: flex; justify-content: center; gap: 13px; margin-top: 15px; color: var(--muted); font-size: 8px; }

.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.checkout-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-heading { display: flex; gap: 13px; margin-bottom: 25px; }
.step-heading > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.step-heading h2 { margin: 0; font-size: 17px; }
.step-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.shipping-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shipping-methods > label { position: relative; display: flex; align-items: center; gap: 9px; min-height: 92px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.shipping-methods input { position: absolute; opacity: 0; }
.shipping-methods label:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.method-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--surface-2); color: var(--brand); }
.shipping-methods label > span:last-child { display: flex; flex-direction: column; }
.shipping-methods strong { font-size: 10px; }
.shipping-methods small { color: var(--muted); font-size: 7px; }
.shipping-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.shipping-panel[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label, .profile-form label, .checkout-form label:not(.shipping-methods label):not(.pickup-options label) { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.form-grid .full { grid-column: 1/-1; }
.checkout-form textarea { min-height: 90px; padding-top: 12px; resize: vertical; }
.pickup-options { display: flex; flex-direction: column; gap: 8px; }
.pickup-options label { display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.pickup-options label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.pickup-options span { display: flex; flex: 1; flex-direction: column; }
.pickup-options small { color: var(--muted); }
.pickup-options b { color: var(--success); }
.destination-note { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }
.destination-note > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.destination-note p { margin: 0; }
.mini-lines { display: flex; flex-direction: column; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.mini-lines > div { display: flex; gap: 9px; }
.mini-lines img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.mini-lines span { display: flex; flex-direction: column; }
.mini-lines strong { font-size: 9px; }
.mini-lines small { color: var(--muted); font-size: 7px; }
.reservation-note { margin: 15px 0 0; text-align: center; color: var(--muted); font-size: 8px; }
.mobile-checkout-submit { display: none; }
.validation-summary, .field-error { color: var(--danger); font-size: 10px; }
.validation-summary:empty, .field-error:empty { display: none; }

.auth-page { min-height: calc(100vh - 35px); display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth-art { position: relative; display: grid; place-items: center; overflow: hidden; padding: 60px; color: #fff; text-align: center; background: #1a4938 url("/images/auth-craft.svg") center/cover no-repeat; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(22,61,46,.35), rgba(15,43,32,.78)); }
.auth-art > div { position: relative; max-width: 500px; }
.auth-art h2 { margin: 25px 0 5px; font-size: 40px; }
.auth-art p { color: #c9d7cf; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px; }
.auth-panel > .brand { position: absolute; top: 30px; }
.auth-card { width: min(100%, 430px); padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 27px; }
.auth-card > p { color: var(--muted); font-size: 12px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; }
.mobile-field { height: 55px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); direction: ltr; }
.mobile-field span { padding: 0 14px; border-right: 1px solid var(--line); color: var(--muted); }
.mobile-field input, .otp-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 15px; direction: ltr; }
.otp-field { height: 65px; display: block; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); }
.otp-field input { text-align: center; font-size: 25px; letter-spacing: 12px; }
.check-line { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; }
.check-line input { width: 16px !important; min-height: auto !important; }
.text-button { border: 0; background: transparent; color: var(--brand); font-size: 10px; font-weight: 800; }
.terms { display: block; margin-top: 22px; text-align: center; color: var(--muted); font-size: 8px; }

.payment-result { min-height: 650px; display: grid; place-items: center; }
.result-card { width: min(100%, 650px); margin: auto; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.result-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; font-size: 35px; }
.result-card.success .result-icon { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.result-card.failed .result-icon { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.result-card h1 { font-size: 30px; }
.result-card > p { color: var(--muted); }
.result-card dl { display: flex; justify-content: center; gap: 50px; margin: 30px 0; padding: 20px; border-radius: 15px; background: var(--surface-2); }
.result-card dl div { display: flex; flex-direction: column; }
.result-card dt { color: var(--muted); font-size: 9px; }
.result-card dd { margin: 0; font-weight: 900; }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 35px; align-items: start; }
.account-nav { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-avatar { width: 65px; height: 65px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--surface-2); color: var(--brand); font-size: 26px; font-weight: 900; }
.account-nav > small { color: var(--muted); }
.account-nav nav { width: 100%; display: flex; flex-direction: column; gap: 5px; margin: 25px 0; }
.account-nav nav a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 11px; }
.account-nav nav a.active, .account-nav nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-nav nav b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); font-size: 8px; }
.account-nav form { width: 100%; }
.logout-button { width: 100%; padding: 9px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.account-content { padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-content > p { color: var(--muted); }
.profile-form { max-width: 600px; display: flex; flex-direction: column; gap: 17px; margin-top: 30px; }
.profile-form label { font-weight: 800; }
.profile-form small { color: var(--muted); font-weight: 400; }
.alert { padding: 12px 15px; border-radius: 12px; }
.alert.success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.order-list { display: flex; flex-direction: column; gap: 15px; }
.order-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order-card header, .order-card footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; background: var(--surface-2); }
.order-card header > div { display: flex; flex-direction: column; }
.order-card header span, .order-card time { color: var(--muted); font-size: 9px; }
.order-lines { padding: 12px 20px; }
.order-lines > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.order-lines small { color: var(--muted); }
.order-card footer strong { color: var(--brand); }
.status { display: inline-flex; padding: 5px 9px; border-radius: 9px; background: var(--surface-3); font-size: 8px; }
.learning-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.learning-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.learning-grid img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.learning-grid article > div { padding: 23px; }
.learning-grid h2 { font-size: 19px; }
.learning-grid p { color: var(--muted); font-size: 11px; }
.learning-player-page { min-height: 760px; padding-bottom: 85px; background: var(--bg); }
.player-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 22px; align-items: start; }
.player-main { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.player-main video { width: 100%; aspect-ratio: 16/9; display: block; background: #080c09; }
.video-coming-soon { aspect-ratio: 16/9; display: grid; place-items: center; align-content: center; background: #101a14; color: #fff; text-align: center; }
.video-coming-soon > span { font-size: 50px; color: var(--sand); }
.video-coming-soon h2 { margin: 8px; font-size: 18px; }
.player-copy { padding: 25px; }
.player-copy h1 { margin: 5px 0; font-size: 25px; }
.player-copy p { color: var(--muted); font-size: 11px; }
.lesson-sidebar { position: sticky; top: 105px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.lesson-sidebar header { display: flex; justify-content: space-between; padding: 15px; border-bottom: 1px solid var(--line); font-size: 10px; }
.lesson-sidebar > a, .lesson-sidebar > div { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lesson-sidebar > a.active { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); color: var(--brand); }
.lesson-sidebar > .locked { color: var(--muted); opacity: .72; }
.lesson-sidebar > a > span, .lesson-sidebar > div > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 9px; }
.lesson-sidebar div div, .lesson-sidebar a div { display: flex; flex-direction: column; }
.lesson-sidebar strong { font-size: 9px; }
.lesson-sidebar small { color: var(--muted); font-size: 7px; }

.toast-region { position: fixed; z-index: 200; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 280px; max-width: min(420px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 13px; background: #20342a; color: #fff; box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(12px); transition: .25s; }
.toast.error { background: #8f403b; }
.toast.show { opacity: 1; transform: none; }
.busy { position: relative; color: transparent !important; }
.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .desktop-nav { gap: 17px; }
  .hero-grid { gap: 30px; }
  .hero h1 { letter-spacing: -2px; }
  .category-list { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { gap: 45px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 0; }
  .feature-grid > div:nth-child(2) { border-left: 0; }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
  .footer-grid > div:last-child { display: none; }
  .shipping-methods { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  body { padding-bottom: 70px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .announcement-inner { justify-content: center; }
  .announcement-inner span { display: none; }
  .site-header { height: 70px; }
  .header-inner { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .brand strong { font-size: 17px; }
  .desktop-nav, .login-link, .header-actions > .cart-button { display: none; }
  .mobile-cart-shortcut { position: relative; display: grid; }
  .mobile-cart-shortcut > b { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 8px; }
  .header-actions { margin-right: auto; }
  .menu-button { display: grid; }
  .mobile-drawer { position: fixed; z-index: 110; top: 0; right: 0; width: min(86vw, 370px); height: 100dvh; display: flex; flex-direction: column; padding: 18px; background: var(--surface); box-shadow: -25px 0 70px rgba(0,0,0,.2); transform: translateX(105%); opacity: 0; visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility .32s; }
  .mobile-drawer.open { transform: none; opacity: 1; visibility: visible; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .mobile-drawer nav { display: flex; flex-direction: column; padding: 20px 0; }
  .mobile-drawer nav a { padding: 13px 5px; border-bottom: 1px solid var(--line); font-weight: 800; }
  .drawer-note { margin-top: auto; padding: 18px; border-radius: 15px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
  .drawer-backdrop { position: fixed; z-index: 105; inset: 0; display: block; background: rgba(8,18,12,.48); opacity: 0; visibility: hidden; transition: .25s; }
  body.menu-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .mobile-bottom-nav { position: fixed; z-index: 80; right: 9px; left: 9px; bottom: max(8px, env(safe-area-inset-bottom)); height: 62px; display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 12px 45px rgba(0,0,0,.18); backdrop-filter: blur(17px); }
  .mobile-bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); }
  .mobile-bottom-nav span { font-size: 18px; line-height: 1; }
  .mobile-bottom-nav small { font-size: 8px; }
  .bottom-cart b { position: absolute; top: 6px; right: calc(50% + 7px); min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 7px; }
  .hero { min-height: auto; padding: 45px 0 60px; }
  .hero::before { display: none; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 43px; letter-spacing: -1.5px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-proof div { min-width: 98px; padding-inline: 12px; }
  .hero-art { width: 100%; min-height: 480px; margin-top: 15px; }
  .hero-arch { width: 86%; left: 7%; }
  .note-one { right: 0; }
  .note-two { left: 0; }
  .section { padding: 65px 0; }
  .category-list { grid-template-columns: repeat(3,1fr); }
  .category-orb { width: 75px; height: 75px; }
  .story-grid, .faq-grid, .product-detail-grid, .course-detail-grid { grid-template-columns: 1fr; }
  .story-grid { gap: 55px; }
  .story-visual { width: 86%; margin: auto; }
  .story-seal { left: -20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-toolbar .search-box { grid-column: 1/-1; }
  .product-detail-grid { gap: 30px; }
  .course-detail-grid { gap: 35px; }
  .course-detail-copy { order: 2; }
  .course-body-grid { grid-template-columns: 1fr; }
  .purchase-card { position: static; grid-row: 1; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .checkout-summary .desktop-submit { display: none; }
  .mobile-checkout-submit { display: block; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .player-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .auth-art { display: none; }
  .auth-panel { min-height: 100vh; padding: 85px 20px 30px; }
}

@media (max-width: 560px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 29px; }
  .category-list { gap: 20px 8px; }
  .category-list strong { font-size: 11px; }
  .product-grid, .course-grid { grid-template-columns: 1fr; }
  .product-card-body > p { min-height: auto; }
  .hero h1 { font-size: 37px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { margin-top: 35px; }
  .hero-proof div { min-width: 0; flex: 1; }
  .hero-proof strong { font-size: 13px; }
  .hero-proof span { font-size: 8px; }
  .hero-art { min-height: 390px; }
  .floating-note { padding: 8px 10px; }
  .floating-note > span { width: 30px; height: 30px; }
  .floating-note strong { font-size: 9px; }
  .story-section { padding-block: 70px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid > div { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .shop-toolbar { grid-template-columns: 1fr; }
  .shop-toolbar .search-box { grid-column: auto; }
  .page-hero { padding-block: 55px; }
  .page-hero h1 { font-size: 37px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .quantity-control { width: 100%; justify-content: space-between; }
  .delivery-cards { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 32px 1fr; }
  .lesson-action { grid-column: 2; }
  .content-card, .syllabus, .purchase-card { padding: 20px; border-radius: 20px; }
  .cart-item { grid-template-columns: 82px 1fr; min-height: 0; }
  .cart-item > img { width: 82px; height: 82px; }
  .cart-item-end { grid-column: 1/-1; min-width: 0; flex-direction: row-reverse; align-items: center; }
  .checkout-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .result-card { padding: 30px 20px; }
  .result-card dl { gap: 20px; flex-direction: column; }
  .learning-grid { grid-template-columns: 1fr; }
  .account-content { padding: 24px 18px; }
  .toast-region { right: 14px; left: 14px; bottom: 82px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Editorial FAQ, About and Contact pages */
.content-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px,8vw,124px) 0;
  background:
    radial-gradient(circle at 12% 18%,rgba(221,185,139,.2),transparent 30%),
    radial-gradient(circle at 88% 82%,rgba(70,139,108,.28),transparent 33%),
    linear-gradient(135deg,#173f32,#0d2e24 72%);
  color: #fff;
}
.content-page-hero::before,.content-page-hero::after { content:""; position:absolute; z-index:-1; border:1px solid rgba(255,255,255,.1); border-radius:50%; }
.content-page-hero::before { width:440px; height:440px; top:-270px; right:-80px; }
.content-page-hero::after { width:620px; height:620px; bottom:-480px; left:-120px; }
.content-page-hero-grid { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(280px,.72fr); align-items:center; gap:clamp(42px,7vw,100px); }
.content-page-hero h1 { max-width:850px; margin:22px 0 18px; color:#fff; font-size:clamp(38px,5vw,74px); line-height:1.33; letter-spacing:-2.4px; }
.content-page-hero h1 em { color:#efcda5; font-style:normal; }
.content-page-hero p { max-width:720px; margin:0; color:rgba(255,255,255,.78); font-size:clamp(15px,1.25vw,19px); line-height:2.05; }
.content-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.content-hero-actions .button.light { border-color:rgba(255,255,255,.25); color:#fff; }
.content-hero-symbol,.contact-quick-card { min-height:260px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:13px; padding:30px; border:1px solid rgba(255,255,255,.14); border-radius:34px; background:rgba(255,255,255,.075); text-align:center; box-shadow:0 24px 70px rgba(1,12,7,.24); }
.content-hero-symbol > svg,.contact-quick-card > svg { width:52px; height:52px; padding:12px; border-radius:17px; background:rgba(239,205,165,.14); color:#efcda5; }
.content-hero-symbol span { color:rgba(255,255,255,.7); font-size:12px; }
.content-hero-symbol a { display:inline-flex; align-items:center; gap:7px; color:#fff; font-weight:900; }
.content-hero-symbol a svg { width:17px; }

.faq-directory { min-height:55vh; background:linear-gradient(180deg,var(--surface-2),var(--bg)); }
.faq-tools { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:30px; }
.faq-tools > label { width:min(620px,100%); min-height:58px; display:flex; align-items:center; gap:11px; padding:0 15px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:0 14px 40px rgba(17,48,31,.06); }
.faq-tools > label > svg { width:21px; color:var(--brand); }
.faq-tools input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:15px; }
.faq-tools button { width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:12px; background:var(--surface-2); color:var(--muted); }
.faq-tools button[hidden] { display:none; }
.faq-tools button svg { width:17px; }
.faq-tools > span { color:var(--muted); font-size:12px; white-space:nowrap; }
.faq-tools > span b { color:var(--brand); font-size:20px; }
.faq-directory-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:14px; }
.faq-directory-list details { overflow:hidden; border:1px solid var(--line); border-radius:21px; background:var(--surface); box-shadow:0 13px 34px rgba(16,43,28,.045); }
.faq-directory-list details[hidden] { display:none; }
.faq-directory-list summary { min-height:91px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 20px; cursor:pointer; list-style:none; }
.faq-directory-list summary::-webkit-details-marker { display:none; }
.faq-directory-list summary span { display:flex; align-items:flex-start; flex-direction:column; gap:6px; }
.faq-directory-list summary small { color:var(--accent); font-size:10px; font-weight:850; }
.faq-directory-list summary strong { color:var(--ink); font-size:14px; line-height:1.8; }
.faq-directory-list summary > svg { width:34px; height:34px; flex:0 0 auto; padding:8px; border-radius:12px; background:color-mix(in srgb,var(--brand) 8%,var(--surface-2)); color:var(--brand); transition:transform .22s ease; }
.faq-directory-list details[open] summary > svg { transform:rotate(45deg); }
.faq-directory-list details > .rich-text { margin:0 20px 20px; padding:17px 18px; border-radius:15px; background:var(--surface-2); color:var(--muted); font-size:13px; line-height:2; }
.faq-directory-list details > .rich-text > :first-child { margin-top:0; }.faq-directory-list details > .rich-text > :last-child { margin-bottom:0; }
.faq-no-results { padding:60px 20px; border:1px dashed var(--line); border-radius:24px; text-align:center; }
.faq-no-results svg { width:42px; color:var(--muted); }.faq-no-results strong { display:block; margin:15px 0 4px; font-size:19px; }.faq-no-results p { color:var(--muted); }.faq-no-results a { color:var(--brand); font-weight:900; }

.about-craft-visual { position:relative; min-height:330px; display:grid; place-items:center; }
.about-craft-visual > div { position:relative; z-index:2; width:220px; height:220px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; border:1px solid rgba(255,255,255,.22); border-radius:42% 58% 54% 46% / 48% 43% 57% 52%; background:linear-gradient(145deg,rgba(221,185,139,.22),rgba(255,255,255,.08)); box-shadow:0 30px 80px rgba(0,0,0,.2); animation:craft-float 7s ease-in-out infinite; }
.about-craft-visual > div svg { width:36px; color:#efcda5; }.about-craft-visual > div strong { font-size:25px; }.about-craft-visual > div small { color:rgba(255,255,255,.65); font-size:9px; }
.craft-orbit { position:absolute; border:1px dashed rgba(255,255,255,.17); border-radius:50%; }.orbit-one { width:285px; height:285px; animation:craft-spin 24s linear infinite; }.orbit-two { width:340px; height:205px; transform:rotate(-18deg); }
@keyframes craft-float { 50% { transform:translateY(-12px) rotate(2deg); } } @keyframes craft-spin { to { transform:rotate(1turn); } }
.about-story-page { background:var(--bg); }
.about-story-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:clamp(40px,7vw,90px); align-items:start; }
.content-prose { color:var(--muted); font-size:15px; line-height:2.15; }.content-prose h2 { color:var(--ink); font-size:clamp(26px,3vw,40px); line-height:1.55; }.content-prose h3 { margin-top:32px; color:var(--ink); font-size:22px; }.content-prose li { margin-block:8px; }
.rich-text figure { max-width:100%; margin:clamp(22px,4vw,42px) auto; padding:10px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 16px 44px rgba(12,38,23,.07); text-align:center; }
.rich-text figure :is(img,video) { display:block; width:auto; max-width:100%; max-height:min(70svh,720px); margin:auto; border-radius:14px; }
.rich-text figure video { width:100%; background:#0d1712; }
.rich-text figcaption { padding:10px 8px 2px; color:var(--muted); font-size:11px; line-height:1.8; }
.rich-text table { width:100%; margin:24px 0; overflow:hidden; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:14px; }.rich-text :is(th,td) { padding:11px 13px; border-left:1px solid var(--line); border-bottom:1px solid var(--line); }.rich-text tr:last-child td { border-bottom:0; }.rich-text :is(th,td):last-child { border-left:0; }
.about-principles { display:grid; gap:12px; position:sticky; top:110px; }
.about-principles > div { display:flex; gap:14px; padding:19px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 12px 36px rgba(14,45,27,.05); }.about-principles svg { width:42px; height:42px; flex:0 0 auto; padding:10px; border-radius:14px; background:color-mix(in srgb,var(--brand) 9%,var(--surface-2)); color:var(--brand); }.about-principles span { display:flex; flex-direction:column; gap:4px; }.about-principles strong { color:var(--ink); font-size:14px; }.about-principles small { color:var(--muted); line-height:1.9; }
.about-journey-band { padding:30px 0; background:var(--brand-2); color:#fff; }.about-journey-band .container { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:22px; }.about-journey-band span { display:grid; grid-template-columns:45px 1fr; column-gap:12px; }.about-journey-band span svg { width:45px; height:45px; grid-row:1/3; padding:11px; border-radius:14px; background:rgba(255,255,255,.1); color:#efcda5; }.about-journey-band span b { font-size:14px; }.about-journey-band span small { color:rgba(255,255,255,.65); line-height:1.8; }.about-journey-band .container > svg { width:19px; opacity:.4; }
.content-page-cta > .container { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:32px 38px; border:1px solid var(--line); border-radius:28px; background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 8%,var(--surface)),var(--surface)); }.content-page-cta h2 { margin:9px 0 4px; color:var(--ink); font-size:clamp(24px,3vw,38px); }.content-page-cta p { margin:0; color:var(--muted); }

.contact-quick-card { min-height:240px; align-items:flex-start; text-align:right; }.contact-quick-card div { display:flex; flex-direction:column; gap:6px; }.contact-quick-card div strong { font-size:20px; }.contact-quick-card div small { color:rgba(255,255,255,.7); line-height:1.9; }.contact-quick-card > a { display:inline-flex; align-items:center; gap:9px; padding:10px 14px; border-radius:13px; background:#efcda5; color:#173f32; font-weight:900; }.contact-quick-card > a svg { width:17px; }
.contact-page-section { background:linear-gradient(180deg,var(--surface-2),var(--bg)); }.contact-page-grid { display:grid; grid-template-columns:minmax(0,.86fr) minmax(420px,1.14fr); gap:clamp(36px,6vw,80px); align-items:start; }.contact-channel-grid { display:grid; gap:11px; margin-top:28px; }.contact-channel-grid > :is(a,div,button) { width:100%; min-height:76px; display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:19px; background:var(--surface); color:var(--ink); text-align:right; font:inherit; }.contact-channel-grid > :is(a,div,button) > svg { width:42px; height:42px; flex:0 0 auto; padding:10px; border-radius:13px; background:color-mix(in srgb,var(--brand) 9%,var(--surface-2)); color:var(--brand); }.contact-channel-grid span { display:flex; flex-direction:column; gap:4px; }.contact-channel-grid small { color:var(--muted); font-size:10px; }.contact-channel-grid strong { font-size:13px; line-height:1.7; }
.contact-form-card { display:grid; gap:16px; padding:clamp(22px,3vw,34px); border:1px solid var(--line); border-radius:28px; background:var(--surface); box-shadow:0 24px 70px rgba(12,40,24,.09); }.contact-form-card header { display:flex; align-items:center; gap:13px; margin-bottom:4px; }.contact-form-card header > span { width:48px; height:48px; display:grid; place-items:center; border-radius:16px; background:var(--brand); color:#fff; }.contact-form-card header svg { width:21px; }.contact-form-card h2 { margin:0; color:var(--ink); font-size:23px; }.contact-form-card header p { margin:3px 0 0; color:var(--muted); font-size:11px; }.contact-form-card label { display:flex; flex-direction:column; gap:7px; color:var(--ink); font-size:12px; font-weight:800; }.contact-form-card :is(input,textarea) { width:100%; min-height:52px; padding:12px 14px; border:1px solid var(--line); border-radius:15px; outline:0; background:var(--surface-2); color:var(--ink); font:inherit; font-size:14px; transition:border-color .2s,box-shadow .2s,background .2s; }.contact-form-card textarea { min-height:145px; resize:vertical; line-height:1.9; }.contact-form-card :is(input,textarea):focus { border-color:var(--brand); background:var(--surface); box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 11%,transparent); }.contact-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.contact-privacy { display:flex; align-items:center; justify-content:center; gap:6px; color:var(--muted); text-align:center; }.contact-privacy svg { width:15px; color:var(--brand); }.contact-honeypot { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; }
.contact-form-card.is-submitting { pointer-events:none; opacity:.78; }.contact-form-card [data-contact-submit] { position:relative; }.contact-form-card [data-contact-submit]:disabled::after { content:""; width:17px; height:17px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:contact-spin .7s linear infinite; }.contact-form-card [data-contact-submit]:disabled > svg { display:none; } @keyframes contact-spin { to { transform:rotate(1turn); } }

:root:not([data-theme="dark"]) .content-page-hero {
  background:
    radial-gradient(circle at 14% 16%,rgba(208,123,72,.15),transparent 29%),
    radial-gradient(circle at 86% 84%,rgba(40,112,82,.16),transparent 34%),
    linear-gradient(135deg,#f8f2e9,#e8eee6 72%);
  color:#153b2d;
}
:root:not([data-theme="dark"]) .content-page-hero::before,
:root:not([data-theme="dark"]) .content-page-hero::after { border-color:rgba(25,76,56,.11); }
:root:not([data-theme="dark"]) .content-page-hero h1 { color:#12382a; text-shadow:0 1px 0 rgba(255,255,255,.72); }
:root:not([data-theme="dark"]) .content-page-hero h1 em { color:#a9502d; }
:root:not([data-theme="dark"]) .content-page-hero p { color:#4b6258; }
:root:not([data-theme="dark"]) .content-page-hero .kicker.light { border-color:rgba(160,80,44,.2); background:rgba(255,255,255,.58); color:#a4512d; }
:root:not([data-theme="dark"]) .content-page-hero .button.ghost.light { border-color:rgba(24,75,55,.2); background:rgba(255,255,255,.5); color:#173e30; }
:root:not([data-theme="dark"]) .about-craft-visual > div,
:root:not([data-theme="dark"]) .contact-quick-card,
:root:not([data-theme="dark"]) .content-hero-symbol { border-color:rgba(24,75,55,.16); background:rgba(255,255,255,.62); color:#173e30; box-shadow:0 24px 65px rgba(28,66,49,.12); }
:root:not([data-theme="dark"]) .about-craft-visual > div svg,
:root:not([data-theme="dark"]) .contact-quick-card > svg,
:root:not([data-theme="dark"]) .content-hero-symbol > svg { background:rgba(174,85,45,.1); color:#a9522f; }
:root:not([data-theme="dark"]) .about-craft-visual > div small,
:root:not([data-theme="dark"]) .contact-quick-card div small { color:#586d63; }
:root:not([data-theme="dark"]) .content-hero-symbol span { color:#566c61; }
:root:not([data-theme="dark"]) .content-hero-symbol a { color:#173e30; }
:root:not([data-theme="dark"]) .content-hero-symbol a:hover { color:#a9522f; }
:root:not([data-theme="dark"]) .craft-orbit { border-color:rgba(30,91,67,.18); }

html[data-theme="dark"] .content-page-hero { background:radial-gradient(circle at 15% 20%,rgba(221,185,139,.12),transparent 30%),linear-gradient(135deg,#0d271f,#071b15); }
@media (max-width:900px) {
  .content-page-hero-grid,.about-story-layout,.contact-page-grid { grid-template-columns:1fr; }
  .content-hero-symbol,.contact-quick-card { min-height:190px; }
  .about-craft-visual { min-height:270px; }.about-principles { position:static; }
  .faq-directory-list { grid-template-columns:1fr; }
}
@media (max-width:650px) {
  .content-page-hero { padding:62px 0; }.content-page-hero h1 { font-size:clamp(34px,10vw,48px); letter-spacing:-1.2px; }.content-page-hero-grid { gap:30px; }.content-hero-symbol { display:none; }
  .faq-tools { align-items:stretch; flex-direction:column; }.faq-tools > span { align-self:flex-end; }.faq-directory-list summary { min-height:82px; padding:15px; }.faq-directory-list details > .rich-text { margin:0 14px 14px; }
  .about-craft-visual { min-height:235px; }.about-craft-visual > div { width:180px; height:180px; }.orbit-one { width:225px; height:225px; }.orbit-two { width:270px; height:165px; }
  .about-journey-band .container { grid-template-columns:1fr; }.about-journey-band .container > svg { display:none; }.about-journey-band span { padding:10px 0; }
  .content-page-cta > .container { align-items:flex-start; flex-direction:column; padding:25px 22px; }
  .contact-form-row { grid-template-columns:1fr; }.contact-form-card { border-radius:23px; }.contact-form-card :is(input,textarea) { min-height:55px; font-size:16px; }
}
@media (prefers-reduced-motion:reduce) { .about-craft-visual > div,.orbit-one { animation:none; } }

/* Configurable visual identity and modern interaction layer */
.brand-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
[data-visual-style="minimal"] { --radius: 15px; --radius-sm: 10px; --shadow: 0 18px 48px rgba(34, 42, 37, .07); --shadow-sm: 0 7px 20px rgba(34, 42, 37, .06); }
[data-visual-style="minimal"] .brand-mark,
[data-visual-style="minimal"] .brand-logo,
[data-visual-style="minimal"] .product-card,
[data-visual-style="minimal"] .course-card { border-radius: 12px; transform: none; }
[data-visual-style="rounded"] { --radius: 36px; --radius-sm: 22px; }
[data-visual-style="rounded"] .button { border-radius: 999px; }

.page-progress {
  position: fixed;
  z-index: 999;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.page-progress i {
  width: 25%;
  height: 100%;
  display: block;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transform: translateX(110vw);
}
.page-progress.active { opacity: 1; }
.page-progress.active i { animation: page-progress 1.15s ease-in-out infinite; }
.page-progress.done i { width: 100%; transform: none; animation: none; transition: width .2s; }
@keyframes page-progress {
  0% { transform: translateX(110vw); }
  100% { transform: translateX(-120vw); }
}

.global-search { position: fixed; z-index: 180; inset: 0; visibility: hidden; opacity: 0; transition: opacity .22s, visibility .22s; }
.global-search.open { visibility: visible; opacity: 1; }
.global-search-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(10, 18, 13, .66); backdrop-filter: blur(10px); }
.global-search-panel {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 24px auto;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 35px 120px rgba(0, 0, 0, .35);
  transform: translateY(-18px) scale(.985);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.global-search.open .global-search-panel { transform: none; }
.global-search-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 15px; }
.global-search-head > div { display: flex; flex-direction: column; }
.global-search-head small { color: var(--accent); font-size: 11px; font-weight: 900; }
.global-search-head strong { font-size: 18px; }
.global-search-input { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 24px; padding: 0 16px; border: 2px solid var(--line); border-radius: 17px; background: var(--bg); transition: border .2s, box-shadow .2s; }
.global-search-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.global-search-input > span { color: var(--brand); font-size: 25px; }
.global-search-input input { width: 100%; height: 58px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.global-search-input kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font: 10px var(--font); direction: ltr; }
.global-search-state { min-height: 150px; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; font-size: 13px; }
.global-search.searching .global-search-state::before { content: ""; width: 22px; height: 22px; margin-left: 12px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.global-search-results { overflow: auto; padding: 12px 24px; }
.global-search-results > a,
.search-result-card { display: grid; grid-template-columns: 62px minmax(0,1fr) 24px; gap: 14px; align-items: center; padding: 11px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .18s, transform .18s; }
.global-search-results > a:hover,
.search-result-card:hover { background: var(--surface-2); transform: translateX(-3px); }
.global-search-results img,
.search-result-card img { width: 62px; height: 62px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.search-result-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-size: 25px; }
.global-search-results a > span:nth-child(2),
.search-result-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.global-search-results small,
.search-result-card small { color: var(--accent); font-size: 9px; font-weight: 900; }
.global-search-results strong,
.search-result-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-results p,
.search-result-card p { overflow: hidden; margin: 1px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-results b,
.search-result-card > b { color: var(--brand); }
.global-search-all { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 15px 25px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); color: var(--brand); font-size: 12px; font-weight: 900; }
.global-search-all[hidden] { display: none; }
body.search-open { overflow: hidden; }

.search-page { min-height: 65vh; }
.search-page-head { max-width: 850px; margin: 0 auto 45px; text-align: center; }
.search-page-head h1 { margin-bottom: 25px; font-size: clamp(34px, 5vw, 58px); }
.search-page-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-page-form input { min-width: 0; padding: 0 17px; border: 0; outline: 0; background: transparent; }
.search-results-heading { display: flex; gap: 8px; margin-bottom: 18px; }
.search-results-heading span { color: var(--muted); }
.search-page-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-result-card { border: 1px solid var(--line); background: var(--surface); }
.search-empty { min-height: 320px; display: grid; place-items: center; align-content: center; text-align: center; }
.search-empty > span { color: var(--brand); font-size: 55px; }
.search-empty h2 { margin: 7px 0; }
.search-empty p { color: var(--muted); }

.toast-region { gap: 11px; }
.toast {
  position: relative;
  min-width: 330px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 24px;
  gap: 11px;
  align-items: center;
  overflow: hidden;
  padding: 13px 13px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: #213229;
  font-size: inherit;
}
.toast.notify-error { background: #753c3a; }
.toast.notify-warning { background: #775b24; }
.toast.notify-info { background: #274c62; }
.toast-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.13); font-size: 20px; font-weight: 900; }
.toast-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.55; }
.toast-copy strong { font-size: 11px; }
.toast-copy small { color: rgba(255,255,255,.82); font-size: 10px; }
.toast > button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 18px; }
.toast > i { position: absolute; right: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255,255,255,.65); transform-origin: right; animation: toast-progress var(--toast-duration) linear forwards; }
@keyframes toast-progress { to { transform: scaleX(0); } }

@media (max-width: 800px) {
  .brand-logo { width: 41px; height: 41px; border-radius: 13px; }
  .mobile-drawer { width: min(90vw, 390px); padding: 17px; border-left: 1px solid var(--line); }
  .drawer-head { padding: 2px 2px 17px; }
  .drawer-search { width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--muted); text-align: right; font-weight: 700; }
  .drawer-search span { color: var(--brand); font-size: 22px; }
  .mobile-drawer nav { gap: 5px; padding: 13px 0; }
  .mobile-drawer nav a { padding: 12px 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 48%, transparent); }
  .mobile-bottom-nav { right: 12px; left: 12px; bottom: max(9px, env(safe-area-inset-bottom)); height: 66px; overflow: visible; border-radius: 23px; }
  .mobile-bottom-nav a,
  .mobile-bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; background: transparent; color: var(--muted); }
  .mobile-bottom-nav button span { font-size: 21px; }
  .bottom-search span { width: 48px; height: 48px; display: grid; place-items: center; margin-top: -24px; border: 5px solid var(--bg); border-radius: 50%; background: var(--button-primary); color: #fff; box-shadow: 0 9px 24px color-mix(in srgb, var(--brand) 28%, transparent); }
  .bottom-search small { margin-top: 1px; font-size: 8px; }
  .global-search-panel { width: 100%; max-height: 88dvh; margin: 12dvh 0 0; border-radius: 26px 26px 0 0; transform: translateY(30px); }
  .global-search-head { padding: 18px 17px 13px; }
  .global-search-head strong { font-size: 15px; }
  .global-search-input { margin-inline: 16px; }
  .global-search-input kbd { display: none; }
  .global-search-results { padding-inline: 10px; }
  .search-page-results { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .search-page-form { grid-template-columns: 1fr; }
  .search-page-form input { height: 50px; }
  .global-search-results > a,
  .search-result-card { grid-template-columns: 52px minmax(0,1fr) 18px; gap: 10px; }
  .global-search-results img,
  .search-result-card img,
  .search-result-icon { width: 52px; height: 52px; }
  .toast { min-width: 0; width: 100%; }
}
/* Ajax authentication keeps the account control current without rebuilding the header. */
.account-action { display: contents; }
.profile-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, color .2s, transform .2s;
}
.profile-link:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.profile-link span { font-size: 19px; }
.profile-link b { font-size: 10px; }

/* Product commerce state, favorites and advanced product details */
.validation-summary-valid,
.validation-summary-valid ul,
.validation-summary-valid li { display: none !important; }
.product-image-shell { position: relative; }
.favorite-button {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #314239;
  box-shadow: 0 8px 24px rgba(26,36,30,.12);
  backdrop-filter: blur(10px);
  transition: transform .2s, background .2s, color .2s;
}
.favorite-button span { font-size: 25px; line-height: 1; transform: translateY(-1px); }
.favorite-button:hover { transform: scale(1.08); }
.favorite-button.active { background: #ba4e58; color: #fff; }
.favorite-button.active span { font-size: 0; }
.favorite-button.active span::before { content: "♥"; font-size: 22px; }
.favorite-button:disabled { opacity: .6; }
.in-cart-badge {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(26,43,33,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(9px);
}
.in-cart-badge[hidden] { display: none; }
.in-cart-badge b { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
.card-purchase { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; }
.round-add:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; transform: none; }
.inline-cart-control { height: 40px; display: inline-grid; grid-template-columns: 34px 31px 34px; align-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.inline-cart-control.loading { opacity: .5; pointer-events: none; }
.inline-cart-control button { width: 34px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 18px; font-weight: 900; }
.inline-cart-control button:disabled { color: var(--muted); cursor: not-allowed; opacity: .45; }
.inline-cart-control b { text-align: center; font-size: 12px; }
.inline-cart-control.large { height: 48px; grid-template-columns: 42px 40px 42px; }
.inline-cart-control.large button { width: 42px; }
.card-stock-limit { color: var(--danger) !important; font-weight: 800 !important; }
.model-select-link { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--brand); font-size: 10px; font-weight: 900; }
.model-select-link b { font-size: 15px; }
.product-card.removing { opacity: 0; transform: scale(.96); }

.advanced-gallery { position: relative; min-width: 0; }
.advanced-gallery .gallery-main { position: relative; width: 100%; display: block; padding: 0; border: 0; cursor: zoom-in; }
.gallery-main img { transition: transform .45s ease; }
.gallery-main:hover img { transform: scale(1.025); }
.gallery-zoom-cue { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px; background: rgba(24,35,28,.75); color: #fff; font-size: 10px; font-weight: 800; backdrop-filter: blur(10px); }
.thumb-list { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb-list button { flex: 0 0 auto; transition: border .2s, transform .2s, opacity .2s; }
.thumb-list button:hover { transform: translateY(-2px); }
.gallery-count { margin-top: 7px; color: var(--muted); text-align: left; font-size: 10px; }
.gallery-lightbox { position: fixed; z-index: 300; inset: 0; visibility: hidden; opacity: 0; transition: opacity .22s, visibility .22s; }
.gallery-lightbox.open { visibility: visible; opacity: 1; }
.gallery-lightbox-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(5,9,7,.9); backdrop-filter: blur(18px); }
.gallery-lightbox-panel { position: relative; width: min(1180px,calc(100% - 40px)); height: calc(100dvh - 40px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; margin: 20px auto; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(15,20,17,.86); color: #fff; box-shadow: 0 35px 120px rgba(0,0,0,.55); }
.gallery-lightbox-panel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; border-bottom: 1px solid rgba(255,255,255,.1); }
.gallery-lightbox-panel header > span { color: rgba(255,255,255,.72); font-size: 12px; }
.gallery-lightbox-panel header > div { display: flex; gap: 7px; }
.gallery-lightbox-panel header button { width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.07); color: #fff; font-size: 18px; }
.gallery-lightbox-stage { min-height: 0; display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 8px; padding: 12px; }
.gallery-lightbox-stage > div { width: 100%; height: 100%; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; }
.gallery-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; transition: transform .18s; }
.gallery-lightbox-stage > button { width: 46px; height: 58px; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; font-size: 30px; }
.gallery-lightbox-panel footer { min-height: 49px; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); text-align: center; font-size: 11px; }
body.lightbox-open { overflow: hidden; }

.product-title-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.detail-favorite { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 800; }
.detail-favorite > span { font-size: 21px; line-height: 1; }
.detail-favorite.active { border-color: color-mix(in srgb, #ba4e58 35%, var(--line)); background: color-mix(in srgb, #ba4e58 8%, var(--surface)); color: #ba4e58; }
.detail-favorite.active > span { font-size: 0; }
.detail-favorite.active > span::before { content: "♥"; font-size: 18px; }
.modern-variant-picker { display: flex; flex-direction: column; gap: 17px; margin: 5px 0 22px; }
.option-choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.option-choice-group legend { width: 100%; display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.option-choice-group legend b { color: var(--brand); font-size: 11px; }
.option-choice-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.option-choice-group button { position: relative; min-width: 70px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 800; transition: border .18s, background .18s, transform .18s; }
.option-choice-group button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); }
.option-choice-group button.selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.option-choice-group button > b { display: none; }
.option-choice-group button.selected > b { display: inline; }
.option-choice-group button > i { width: 18px; height: 18px; border: 2px solid var(--surface); border-radius: 50%; background: var(--option-color); box-shadow: 0 0 0 1px var(--line); }
.option-choice-group button.sold-out { opacity: .58; }
.option-choice-group button.sold-out::after { content: ""; position: absolute; right: 9px; left: 9px; height: 1px; background: var(--danger); transform: rotate(-12deg); }
.option-choice-group button:disabled { opacity: .35; cursor: not-allowed; }
.card-action-stack { display: grid; justify-items: center; gap: 5px; }
.card-action-stack > a { color: var(--muted); font-size: 9px; font-weight: 800; }
.model-select-link.compact { min-height: 38px; padding-inline: 11px; }
.detail-purchase-shell { min-height: 52px; }
.detail-in-cart { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.detail-in-cart > span { display: flex; align-items: center; gap: 10px; }
.detail-in-cart > span > b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; }
.detail-in-cart > span > span { display: flex; flex-direction: column; }
.detail-in-cart strong { font-size: 12px; }
.detail-in-cart small { color: var(--muted); font-size: 9px; }
.product-rich-description { overflow-wrap: anywhere; }
.product-rich-description p { margin-bottom: 16px; }
.product-rich-description ul,
.product-rich-description ol { padding-right: 24px; }
.product-rich-description blockquote { margin: 25px 0; padding: 15px 20px; border-right: 4px solid var(--accent); border-radius: 13px; background: var(--surface); }
.product-rich-description a { color: var(--brand); text-decoration: underline; }
.product-rich-description table { width: 100%; overflow: hidden; border-collapse: collapse; border-radius: 12px; }
.product-rich-description td,
.product-rich-description th { padding: 10px; border: 1px solid var(--line); }
.favorites-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; color: var(--muted); }
.favorites-heading a { color: var(--brand); font-weight: 900; }
.cart-stock-limit { display: block; margin-top: 5px; color: var(--danger) !important; font-size: 9px; font-weight: 800; }
.quantity-control button:disabled { color: var(--muted); cursor: not-allowed; opacity: .35; }
.checkout-form select:disabled { cursor: not-allowed; opacity: .6; }
.checkout-validation.validation-summary-errors { padding: 14px 17px; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--danger) 8%, var(--surface)); line-height: 1.9; }
.checkout-validation ul { margin: 0; padding-right: 20px; }
.checkout-address-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.checkout-address-heading > div { display: flex; flex-direction: column; gap: 2px; }
.checkout-address-heading strong { color: var(--ink); font-size: 13px; }
.checkout-address-heading small { color: var(--muted); font-size: 9px; }
.checkout-address-heading > span { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; }
.checkout-address-actions { display: flex; align-items: center; gap: 8px; }
.checkout-address-actions > span { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; }
.checkout-address-actions > button,
.checkout-address-empty > button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: color-mix(in srgb,var(--brand) 10%,var(--surface));
  color: var(--brand);
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.checkout-address-actions svg { width: 16px; height: 16px; }
.saved-addresses { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.saved-address-card {
  position: relative;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 22px minmax(0,1fr) 28px;
  align-items: center;
  gap: 10px !important;
  min-height: 104px;
  padding: 15px !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink) !important;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.saved-address-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.saved-address-card > input { position: absolute; opacity: 0; pointer-events: none; }
.saved-address-card.selected,
.saved-address-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
.address-radio { width: 20px; height: 20px; border: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface); }
.saved-address-card:has(input:checked) .address-radio { border-color: var(--brand); background: var(--brand); }
.address-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.address-copy strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.address-copy strong b { padding: 2px 6px; border-radius: 7px; background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand); font-size: 7px; }
.address-copy small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.address-copy em { color: var(--muted); font-size: 8px; font-style: normal; }
.address-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-weight: 900; }
.saved-address-card:has(input:checked) .address-check { background: var(--brand); color: #fff; }
.new-address-choice { border-style: dashed; }
.checkout-address-empty {
  min-height: 155px;
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb,var(--brand) 35%,var(--line));
  border-radius: 17px;
  background: color-mix(in srgb,var(--brand) 4%,var(--surface));
}
.checkout-address-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--brand); color: #fff; }
.checkout-address-empty > span svg { width: 24px; height: 24px; }
.checkout-address-empty > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.checkout-address-empty strong { color: var(--ink); font-size: 12px; }
.checkout-address-empty small { color: var(--muted); font-size: 9px; line-height: 1.8; }
.new-address-form { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.new-address-form[hidden] { display: none; }
.new-address-form .form-grid > span:empty { display: block; }
.save-address-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; margin-top: 12px; color: var(--ink) !important; }
.save-address-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.empty-address-note { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding: 12px; border-radius: 13px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.empty-address-note > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 900; }
.empty-address-note p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.empty-address-note strong { font-size: 10px; }
.empty-address-note small { color: var(--muted); font-size: 8px; }
.empty-address-note.warning { margin: 0; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.empty-address-note.warning > span { background: var(--accent); color: #fff; }
.pickup-options em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
[data-shipping-price] { transition: color .2s, opacity .2s; }
[data-shipping-price].is-loading { color: var(--muted); opacity: .72; }
[data-shipping-price].has-error { max-width: 190px; color: var(--danger); text-align: left; font-size: 9px; line-height: 1.6; }

body.checkout-address-modal-open { overflow: hidden; overscroll-behavior: none; }
.checkout-address-modal {
  position: fixed;
  z-index: 1350;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.checkout-address-modal[hidden] { display: none !important; }
.checkout-address-modal-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(13,25,19,.58); backdrop-filter: blur(7px); cursor: default; }
.checkout-address-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px,100%);
  max-height: min(90dvh,820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb,var(--brand) 18%,var(--line));
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(8,22,15,.28);
  animation: checkout-address-in .22s ease-out;
}
@keyframes checkout-address-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.checkout-address-modal-card > header { min-height: 84px; display: grid; grid-template-columns: 48px minmax(0,1fr) 40px; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,color-mix(in srgb,var(--brand) 8%,var(--surface)),var(--surface)); }
.checkout-address-modal-card > header > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--brand); color: #fff; }
.checkout-address-modal-card > header > span svg { width: 23px; height: 23px; }
.checkout-address-modal-card > header > div { min-width: 0; }
.checkout-address-modal-card h2 { margin: 0; color: var(--ink); font-size: 17px; }
.checkout-address-modal-card header p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.checkout-address-modal-card > header > button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; }
.checkout-address-modal-card > header > button svg { width: 19px; height: 19px; }
.checkout-address-modal-card > form { min-height: 0; overflow: hidden; display: flex; flex: 1 1 auto; flex-direction: column; }
.checkout-address-modal-fields { min-height: 0; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.checkout-address-modal-fields > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.checkout-address-modal-fields label > span small { color: var(--muted); font-size: 8px; font-weight: 500; }
.checkout-address-modal-fields textarea { min-height: 92px; padding-top: 12px; resize: vertical; }
.checkout-default-address { min-height: 50px; align-items: center !important; flex-direction: row !important; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); color: var(--ink) !important; cursor: pointer; }
.checkout-default-address input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--brand); }
.checkout-address-form-error { margin: 16px 20px 0; padding: 11px 13px; border: 1px solid color-mix(in srgb,var(--danger) 32%,var(--line)); border-radius: 12px; background: color-mix(in srgb,var(--danger) 7%,var(--surface)); color: var(--danger); font-size: 10px; line-height: 1.8; }
.checkout-address-form-error[hidden] { display: none; }
.checkout-address-modal-card form > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid var(--line); background: color-mix(in srgb,var(--bg) 60%,var(--surface)); }
.checkout-address-modal-card form > footer .button { min-width: 120px; min-height: 44px; }
.checkout-address-modal-card form > footer svg { width: 17px; height: 17px; }
.checkout-address-modal-card form > footer button.busy { pointer-events: none; opacity: .65; }
.checkout-address-modal > .select2-container { z-index: 3; }

@media (max-width: 720px) {
  .profile-link { width: 40px; padding: 0; justify-content: center; }
  .profile-link b { display: none; }
  .saved-addresses { grid-template-columns: 1fr; }
  .checkout-address-heading { align-items: flex-start; }
  .checkout-address-heading { flex-direction: column; }
  .checkout-address-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .new-address-form { padding: 14px; }
  .new-address-form .form-grid > span:empty { display: none; }
  .checkout-address-empty { grid-template-columns: 43px minmax(0,1fr); min-height: 145px; padding: 14px; }
  .checkout-address-empty > span { width: 43px; height: 43px; }
  .checkout-address-empty > button { grid-column: 1/-1; min-height: 42px; }
  .checkout-address-modal { align-items: end; padding: 0; }
  .checkout-address-modal-card { width: 100%; max-height: calc(100dvh - max(10px,env(safe-area-inset-top))); border-radius: 24px 24px 0 0; }
  .checkout-address-modal-card > header { min-height: 76px; grid-template-columns: 42px minmax(0,1fr) 38px; gap: 9px; padding: 12px; }
  .checkout-address-modal-card > header > span { width: 42px; height: 42px; border-radius: 13px; }
  .checkout-address-modal-card h2 { font-size: 15px; }
  .checkout-address-modal-card header p { font-size: 8px; }
  .checkout-address-modal-fields { grid-template-columns: 1fr; padding: 15px 13px; }
  .checkout-address-modal-fields .full { grid-column: auto; }
  .checkout-address-modal-card form > footer { padding: 10px 13px max(10px,env(safe-area-inset-bottom)); }
  .checkout-address-modal-card form > footer .button { min-width: 0; flex: 1; }
}

@media (max-width: 800px) {
  .header-favorite-link { display: none; }
  .gallery-lightbox-panel { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .gallery-lightbox-stage { grid-template-columns: 42px minmax(0,1fr) 42px; padding: 7px; }
  .gallery-lightbox-stage > button { width: 38px; height: 52px; }
  .detail-favorite b { display: none; }
  .detail-favorite { width: 42px; padding: 0; justify-content: center; }
}

@media (max-width: 560px) {
  .favorite-button { top: 11px; left: 11px; width: 40px; height: 40px; }
  .detail-in-cart { align-items: stretch; flex-direction: column; }
  .detail-in-cart .inline-cart-control { width: 100%; grid-template-columns: 1fr 1fr 1fr; }
  .detail-in-cart .inline-cart-control button { width: 100%; }
  .option-choice-group button { min-height: 43px; }
  .gallery-lightbox-stage { grid-template-columns: 34px minmax(0,1fr) 34px; }
  .gallery-lightbox-stage > button { width: 31px; height: 48px; font-size: 24px; }
  .favorites-heading { align-items: flex-start; flex-direction: column; }
}

/* Responsive storefront refresh */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
body,
main,
main > *,
.container,
.header-inner,
.header-actions,
.product-grid,
.course-grid,
.product-card,
.product-card-body,
.course-card,
.course-card-body,
.checkout-layout > *,
.checkout-card,
.form-grid > *,
.shop-toolbar > *,
.section-heading > * {
  min-width: 0;
}
input,
textarea,
select { min-width: 0; }
svg.lucide {
  width: 1.35em;
  height: 1.35em;
  display: block;
  flex: 0 0 auto;
  stroke-width: 1.9;
}
.icon-button svg,
.menu-button svg { width: 22px; height: 22px; }
.button svg { width: 19px; height: 19px; }
.search-box > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-right: 15px;
  color: var(--brand);
}
.course-search > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-right: 13px;
  color: var(--brand);
}
.global-search-input > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--brand);
}
.search-result-icon svg { width: 25px; height: 25px; }
.search-result-card > b svg,
.global-search-results a > b svg { width: 18px; height: 18px; }
.inline-cart-control button svg { width: 17px; height: 17px; margin: auto; }
.quantity-control button svg { width: 18px; height: 18px; margin: auto; }
.mobile-account-shortcut { display: none; }
.menu-button {
  position: relative;
  overflow: hidden;
}
.menu-bars {
  position: relative;
  width: 21px;
  height: 17px;
  display: block;
}
.menu-bars i {
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  border-radius: 8px;
  background: currentColor;
  transform-origin: center;
  transition: top .25s ease, transform .25s ease, opacity .18s ease, width .25s ease;
}
.menu-bars i:nth-child(1) { top: 1px; width: 72%; }
.menu-bars i:nth-child(2) { top: 8px; }
.menu-bars i:nth-child(3) { top: 15px; width: 48%; }
.menu-button.is-active .menu-bars i:nth-child(1) { top: 8px; width: 100%; transform: rotate(45deg); }
.menu-button.is-active .menu-bars i:nth-child(2) { opacity: 0; transform: scaleX(.35); }
.menu-button.is-active .menu-bars i:nth-child(3) { top: 8px; width: 100%; transform: rotate(-45deg); }

/* Modern hero carousel */
.hero-slider {
  min-height: 0;
  padding: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 29%),
    linear-gradient(145deg, var(--bg), color-mix(in srgb, var(--surface-2) 58%, var(--bg)));
}
.hero-slider::before {
  z-index: -1;
  opacity: .8;
}
.hero-slider-track { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-22px);
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.75,.2,1), visibility .55s;
}
.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.hero-slide .hero-grid {
  min-height: 700px;
  padding-block: 65px 105px;
}
.hero-slide .hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
}
.hero-slide.is-active .hero-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .55s ease;
}
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .06s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .12s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .18s; }
.hero-slide.is-active .hero-copy > :nth-child(5) { transition-delay: .24s; }
.hero-slide-course {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent 52%);
}
.hero-slide-story {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%);
}
.hero-arch {
  border: 10px solid color-mix(in srgb, var(--surface) 68%, transparent);
}
.hero-arch-course { background: #d8b78d; }
.hero-arch-story { background: #c9aa86; }
.hero-slider-controls {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(50%);
  pointer-events: none;
}
.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.hero-dots button {
  width: 28px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.hero-dots i {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  transition: width .25s, background .25s;
}
.hero-dots button.is-active i {
  width: 27px;
  background: var(--brand);
}
.hero-arrows button {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform .2s, border-color .2s, color .2s;
}
.hero-arrows button:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.floating-note svg { width: 20px; height: 20px; }
.play-dot svg { width: 15px; height: 15px; }

/* Richer cards with shallower media */
.product-card,
.course-card {
  position: relative;
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: 0 12px 34px rgba(41, 48, 42, .055);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover,
.course-card:hover {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  box-shadow: 0 22px 52px rgba(41, 48, 42, .105);
}
.product-image-wrap img { aspect-ratio: 4 / 3; }
.course-cover img { aspect-ratio: 16 / 9; }
.product-image-wrap::after,
.course-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, rgba(20, 28, 23, .13));
  pointer-events: none;
}
.course-cover .play-button,
.product-image-shell > .in-cart-badge,
.product-image-shell > .favorite-button,
.product-image-wrap > .sale-badge,
.product-image-wrap > .view-cue { z-index: 3; }
.play-button svg { width: 22px; height: 22px; fill: currentColor; }
.round-add svg { width: 22px; height: 22px; }
.favorite-button svg {
  width: 23px;
  height: 23px;
  transition: fill .2s, transform .2s;
}
.favorite-button:hover svg { transform: scale(1.08); }
.favorite-button.active svg { fill: currentColor; }
.favorite-button.active span,
.favorite-button.active span::before { display: none; }
.product-card-body > p,
.course-card-body > p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Select2, locally hosted and RTL-ready */
.select2-container {
  width: 100% !important;
  max-width: 100%;
  direction: rtl;
  font-family: var(--font);
}
.select2-container .select2-selection--single {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px 0 38px;
  color: var(--ink);
  line-height: 1.5;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto;
  left: 11px;
  top: 11px;
}
.select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
  direction: rtl;
}
.select2-search--dropdown { padding: 9px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  font: 14px var(--font);
}
.select2-results__option { padding: 9px 12px; font-size: 13px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--brand);
  color: #fff;
}
.select2-container--default .select2-results__option--selected { background: var(--surface-2); color: var(--ink); }
.select2-container--disabled .select2-selection--single { opacity: .55; cursor: not-allowed; }

/* Checkout clarity and pickup selection */
.shipping-methods > label {
  grid-template-columns: 42px minmax(0,1fr) 22px;
  align-items: center;
  min-height: 82px;
  transition: border-color .2s, background .2s, transform .2s;
}
.shipping-methods > label:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.method-icon { width: 42px; height: 42px; border-radius: 13px; }
.method-icon svg { width: 22px; height: 22px; }
.shipping-methods strong { font-size: 12px; }
.shipping-methods small { margin-top: 2px; font-size: 9px; line-height: 1.7; }
.method-check { width: 20px; height: 20px; color: var(--brand); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.shipping-methods label:has(input:checked) .method-check { opacity: 1; transform: none; }
.pickup-options { gap: 10px; }
.pickup-options .pickup-location-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px 42px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.pickup-options .pickup-location-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
.pickup-options .pickup-location-card > input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.pickup-radio {
  width: 20px;
  height: 20px;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 4px var(--surface);
}
.pickup-location-card:has(input:checked) .pickup-radio { border-color: var(--brand); background: var(--brand); }
.pickup-icon {
  width: 42px !important;
  height: 42px !important;
  padding: 10px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--brand);
}
.pickup-copy { min-width: 0; display: flex; flex-direction: column; }
.pickup-copy strong { color: var(--ink); font-size: 12px; }
.pickup-copy small { color: var(--muted); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.pickup-copy b { margin-top: 4px; font-size: 10px; }
.pickup-location-card:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}
.reservation-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.reservation-note svg { width: 15px; height: 15px; }

/* Scroll-safe content */
.filter-chips,
.thumb-list {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
.product-rich-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.breadcrumbs,
.price-row,
.product-title-line,
.buy-row { min-width: 0; }

@media (max-width: 800px) {
  body { padding-bottom: 92px; }
  .site-header {
    height: 72px;
    background: color-mix(in srgb, var(--surface) 91%, transparent);
    box-shadow: 0 8px 30px rgba(38,45,39,.07);
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 9px;
  }
  .menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    border-radius: 15px;
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--brand);
  }
  .header-inner > .brand {
    max-width: 100%;
    overflow: hidden;
  }
  .header-inner > .brand > span:last-child { min-width: 0; }
  .header-inner > .brand strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-inner > .brand small { display: none; }
  .header-actions {
    gap: 5px;
    margin: 0;
    justify-self: end;
  }
  .header-actions > .icon-button,
  .mobile-account-shortcut {
    width: 41px;
    height: 41px;
    border-radius: 14px;
    background: var(--surface);
  }
  .header-theme-button,
  .desktop-account-link,
  .header-favorite-link { display: none; }
  .mobile-account-shortcut { display: grid; }
  .mobile-drawer {
    width: min(88vw, 380px);
    padding: max(18px, env(safe-area-inset-top)) 18px 18px;
    border-left: 1px solid var(--line);
    background:
      radial-gradient(circle at 95% 0, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
      var(--surface);
  }
  .drawer-head { min-height: 57px; padding: 0 0 16px; }
  .drawer-head .brand strong { font-size: 18px; }
  .drawer-close { border-radius: 14px; }
  .mobile-drawer nav { gap: 7px; padding: 16px 0; }
  .mobile-drawer nav a {
    min-height: 54px;
    display: grid;
    grid-template-columns: 39px minmax(0,1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-2) 61%, transparent);
    font-size: 13px;
  }
  .mobile-drawer nav a > svg:first-child {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--brand);
    box-shadow: 0 7px 18px rgba(35,45,38,.07);
  }
  .mobile-drawer nav a > svg:last-child { width: 17px; height: 17px; color: var(--muted); }
  .drawer-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
  }
  .drawer-tools a,
  .drawer-tools button {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
  }
  .drawer-tools svg { width: 22px; height: 22px; color: var(--brand); }
  .drawer-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 13px;
    font-size: 10px;
  }
  .drawer-note svg { width: 20px; height: 20px; color: var(--accent); }
  .mobile-bottom-nav {
    right: 10px;
    left: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 74px;
    grid-template-columns: repeat(4,1fr);
    overflow: hidden;
    padding: 5px;
    border-radius: 25px;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    box-shadow: 0 18px 55px rgba(16,27,20,.2);
  }
  .mobile-bottom-nav a {
    position: relative;
    gap: 4px;
    border-radius: 19px;
    color: var(--muted);
    transition: color .2s, background .2s, transform .2s;
  }
  .mobile-bottom-nav a > svg { width: 24px; height: 24px; }
  .mobile-bottom-nav small { font-size: 10.5px; font-weight: 800; }
  .mobile-bottom-nav a.active {
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
    color: var(--brand);
  }
  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 22px;
    height: 3px;
    border-radius: 9px;
    background: var(--brand);
  }
  .bottom-cart b {
    top: 5px;
    right: calc(50% + 5px);
    min-width: 18px;
    height: 18px;
    font-size: 8px;
  }
  .hero-slider::before { display: block; width: 370px; height: 370px; right: -220px; top: -150px; }
  .hero-slide .hero-grid {
    min-height: 0;
    gap: 24px;
    padding-block: 38px 102px;
  }
  .hero-slider .hero-copy { text-align: center; }
  .hero-slider .hero-copy > p { margin-inline: auto; }
  .hero-slider .hero-art { min-height: 385px; margin-top: 4px; }
  .hero-slider-controls { bottom: 28px; }
  .hero-arrows button { width: 40px; height: 40px; }
  .hero-dots button { width: 24px; }
  .hero-dots button.is-active i { width: 23px; }
  .section { padding: 58px 0; }
  .product-image-wrap img { aspect-ratio: 4 / 3; }
  .course-cover img { aspect-ratio: 16 / 9; }
  .shipping-methods { grid-template-columns: 1fr; }
  .shipping-methods > label { min-height: 78px; }
  .checkout-layout { gap: 18px; }
  .checkout-card { border-radius: 21px; }
  .checkout-summary { border-radius: 21px; box-shadow: none; }
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select,
  .select2-search__field { font-size: 16px; }
  .filter-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 2px 9px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips a { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .announcement { font-size: 10px; }
  .announcement-inner { min-height: 31px; }
  .header-inner { gap: 7px; }
  .header-actions { gap: 3px; }
  .header-actions > .icon-button,
  .mobile-account-shortcut { width: 39px; height: 39px; }
  .header-inner > .brand { gap: 7px; }
  .brand-logo { width: 39px; height: 39px; }
  .header-inner > .brand strong { max-width: 82px; font-size: 15px; }
  .hero-slider .hero h1,
  .hero-slider h1 { font-size: clamp(32px, 10vw, 39px); line-height: 1.34; letter-spacing: -1.2px; }
  .hero-slider .hero-copy > p { font-size: 13px; line-height: 1.9; }
  .hero-slider .hero-actions { gap: 9px; }
  .hero-slider .hero-actions .button { min-height: 49px; }
  .hero-slider .hero-proof { margin-top: 28px; }
  .hero-slider .hero-art { min-height: 320px; }
  .hero-slider .hero-arch { width: 84%; left: 8%; border-width: 7px; }
  .hero-slider .floating-note { max-width: 145px; }
  .hero-slider-controls { bottom: 24px; }
  .hero-arrows { display: none; }
  .hero-slider-controls { justify-content: center; }
  .category-strip { padding-bottom: 48px; }
  .category-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-orb { width: 68px; height: 68px; font-size: 29px; }
  .product-grid,
  .course-grid { gap: 14px; }
  .product-card {
    display: grid;
    grid-template-columns: minmax(126px, 38%) minmax(0,1fr);
    min-height: 214px;
    border-radius: 20px;
  }
  .product-image-shell,
  .product-image-wrap { height: 100%; }
  .product-image-wrap img {
    height: 100%;
    min-height: 214px;
    aspect-ratio: auto;
  }
  .product-card-body {
    display: flex;
    flex-direction: column;
    padding: 15px 13px;
  }
  .product-card h3 { margin-block: 4px 5px; font-size: 14px; }
  .product-card-body > p {
    margin-bottom: 10px;
    font-size: 9.5px;
    line-height: 1.7;
  }
  .product-card .price-row {
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
  }
  .product-card .price-row strong { font-size: 13px; }
  .product-card .round-add { width: 38px; height: 38px; }
  .product-card .favorite-button { width: 36px; height: 36px; }
  .product-card .favorite-button svg { width: 20px; height: 20px; }
  .product-card .in-cart-badge {
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    font-size: 7px;
  }
  .product-card .view-cue { display: none; }
  .inline-cart-control { grid-template-columns: 30px 27px 30px; }
  .inline-cart-control button { width: 30px; }
  .model-select-link.compact { min-height: 36px; padding-inline: 8px; }
  .course-card {
    display: grid;
    grid-template-columns: minmax(128px, 39%) minmax(0,1fr);
    min-height: 255px;
    border-radius: 20px;
  }
  .course-cover { height: 100%; }
  .course-cover img {
    height: 100%;
    min-height: 255px;
    aspect-ratio: auto;
  }
  .course-card-body {
    display: flex;
    flex-direction: column;
    padding: 15px 13px;
  }
  .course-card h3 { margin-block: 4px 5px; font-size: 14px; }
  .course-card-body > p { min-height: 0; margin-bottom: 8px; font-size: 9.5px; }
  .course-card .play-button { width: 42px; height: 42px; border-width: 4px; }
  .course-card .play-button svg { width: 17px; height: 17px; }
  .course-card .instructor { margin: 5px 0; }
  .course-card .instructor > span { width: 30px; height: 30px; }
  .course-card .course-meta { gap: 4px 8px; margin-bottom: 8px; font-size: 7.5px; }
  .course-card .price-row { gap: 7px; margin-top: auto; padding-top: 9px; }
  .course-card .price-row strong { font-size: 12px; }
  .course-card .text-link { font-size: 9px; }
  .course-cover b { top: 9px; right: 9px; }
  .checkout-page { padding-top: 28px; }
  .checkout-card { padding: 17px; }
  .step-heading { margin-bottom: 18px; }
  .step-heading > span { width: 31px; height: 31px; }
  .step-heading h2 { font-size: 15px; }
  .shipping-methods > label {
    grid-template-columns: 39px minmax(0,1fr) 20px;
    min-height: 73px;
    padding: 12px;
  }
  .method-icon { width: 39px; height: 39px; }
  .saved-address-card {
    grid-template-columns: 20px minmax(0,1fr) 27px;
    min-height: 96px;
    padding: 12px !important;
  }
  .pickup-options .pickup-location-card {
    grid-template-columns: 19px 38px minmax(0,1fr);
    gap: 9px;
    min-height: 96px;
    padding: 12px;
  }
  .pickup-icon { width: 38px !important; height: 38px !important; padding: 9px; }
  .new-address-form { padding: 12px; }
  .checkout-address-heading > span { display: none; }
  .checkout-address-heading strong { font-size: 12px; }
  .checkout-address-heading small { font-size: 8.5px; }
  .select2-container .select2-selection--single { height: 52px; }
  .select2-container--default .select2-selection--single .select2-selection__rendered { height: 50px; }
  .global-search-panel { max-height: 90dvh; margin-top: 10dvh; }
}

@media (max-width: 390px) {
  .header-inner > .brand strong { display: none; }
  .header-inner > .brand { justify-content: center; }
  .product-card { grid-template-columns: 120px minmax(0,1fr); }
  .course-card { grid-template-columns: 120px minmax(0,1fr); }
  .product-card-body,
  .course-card-body { padding-inline: 11px; }
  .course-card .instructor { display: none; }
  .mobile-bottom-nav small { font-size: 9.5px; }
}

/* Compact managed Hero, stable image ratios and strict mobile menu lock */
html.menu-open,
body.menu-open { overflow: hidden; overscroll-behavior: none; }
.mobile-drawer { overscroll-behavior: contain; }
.mobile-drawer nav { overflow-y: auto; overscroll-behavior: contain; }
.category-orb svg { width: 30px; height: 30px; }

.hero-slide .hero-grid {
  min-height: 540px;
  grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr);
  gap: 54px;
  padding-block: 48px 82px;
}
.hero-slider .hero-copy h1 { margin-bottom: 18px; font-size: clamp(40px,4.4vw,64px); }
.hero-slider .hero-copy > p { max-width: 570px; font-size: 15px; line-height: 1.95; }
.hero-slider .hero-actions { margin-top: 25px; }
.hero-slider .hero-art { min-height: 390px; }
.hero-slider .hero-arch {
  width: min(100%,560px);
  max-width: none;
  height: 390px;
  left: 0;
  top: 0;
  border-width: 8px;
  border-radius: 34px;
}
.hero-slider .hero-arch picture,
.hero-slider .hero-arch img { width: 100%; height: 100%; display: block; }
.hero-slider .hero-arch img { aspect-ratio: 16 / 9; object-fit: cover; }
.hero-slide-course { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent 55%); }
.hero-slide-story { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%); }
.hero-slider-controls { bottom: 24px; }
.hero-dots button { width: 34px; height: 28px; }
.hero-dots button.is-active i { width: 29px; }
.product-image-wrap img { aspect-ratio: 4 / 3; }
.gallery-main img { aspect-ratio: 4 / 3; }
.advanced-gallery .gallery-main { max-height: 610px; }
.advanced-gallery .gallery-main img { max-height: 610px; object-fit: cover; }

/* Cinematic, click-to-play homepage introduction */
.home-intro-video.section { position:relative; isolation:isolate; overflow:hidden; padding:clamp(58px,7vw,96px) 0; background:linear-gradient(180deg,var(--bg),color-mix(in srgb,var(--brand) 5%,var(--surface-2))); }
.home-intro-video::before { content:""; position:absolute; z-index:-1; width:520px; height:520px; left:-330px; top:-230px; border-radius:50%; background:color-mix(in srgb,var(--accent) 10%,transparent); filter:blur(2px); }
.home-intro-video-layout { display:grid; grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr); align-items:center; gap:clamp(34px,6vw,78px); }
.home-intro-video-copy { min-width:0; }.home-intro-video-copy h2 { margin:15px 0 12px; color:var(--ink); font-size:clamp(30px,3.7vw,50px); line-height:1.48; letter-spacing:-1.2px; }.home-intro-video-copy > p { max-width:610px; margin:0; color:var(--muted); font-size:14px; line-height:2.1; }
.home-intro-video-card { overflow:hidden; border:1px solid color-mix(in srgb,var(--brand) 17%,var(--line)); border-radius:10px; background:var(--surface); box-shadow:0 30px 90px rgba(8,35,23,.15); }
.home-intro-video-frame { position:relative; overflow:hidden; aspect-ratio:16/9; background:radial-gradient(circle at 74% 28%,rgba(221,185,139,.2),transparent 29%),linear-gradient(135deg,#173f32,#081d16); }
.home-intro-video-frame::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.07); }
.home-intro-video-frame video { width:100%; height:100%; display:block; object-fit:cover; background:#08140f; }
.home-intro-video-frame > button { position:absolute; z-index:2; inset:0; width:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:7px; border:0; background:linear-gradient(180deg,rgba(4,20,14,.07),rgba(3,16,11,.62)); color:#fff; font:inherit; cursor:pointer; transition:opacity .25s ease,visibility .25s ease; }
.home-intro-video-frame > button > span { width:78px; height:78px; display:grid; place-items:center; margin-bottom:5px; border:1px solid rgba(255,255,255,.36); border-radius:50%; background:rgba(255,255,255,.15); box-shadow:0 18px 48px rgba(0,0,0,.25); backdrop-filter:blur(14px); transition:transform .22s ease,background .22s ease; }.home-intro-video-frame > button:hover > span { transform:scale(1.06); background:rgba(255,255,255,.23); }.home-intro-video-frame > button svg { width:31px; height:31px; margin-left:-3px; fill:currentColor; }.home-intro-video-frame > button strong { font-size:17px; }.home-intro-video-frame > button small { color:rgba(255,255,255,.72); font-size:10px; }
.home-intro-video.is-started .home-intro-video-frame > button { opacity:0; visibility:hidden; pointer-events:none; }
.home-intro-video-loading { position:absolute; z-index:3; inset:0; display:grid; place-items:center; align-content:center; gap:9px; background:rgba(4,18,13,.42); color:#fff; backdrop-filter:blur(4px); }.home-intro-video-loading[hidden] { display:none; }.home-intro-video-loading > i { width:34px; height:34px; border:3px solid rgba(255,255,255,.28); border-top-color:#fff; border-radius:50%; animation:home-video-spin .75s linear infinite; }.home-intro-video-loading small { color:rgba(255,255,255,.82); }
@keyframes home-video-spin { to { transform:rotate(1turn); } }
html[data-theme="dark"] .home-intro-video.section { background:linear-gradient(180deg,var(--bg),color-mix(in srgb,var(--brand) 8%,#091711)); }.home-intro-video.is-playing .home-intro-video-frame::after { opacity:.35; }

@media (max-width: 900px) {
  .hero-slide .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding-block: 26px 76px;
  }
  .hero-slider .hero-art {
    order: -1;
    width: 100%;
    min-height: 230px;
    margin: 0;
  }
  .hero-slider .hero-arch {
    position: relative;
    width: 100%;
    height: 230px;
    left: auto;
    border-width: 6px;
    border-radius: 24px;
  }
  .hero-slider .hero-copy { text-align: right; }
  .hero-slider .hero-copy > p { margin-inline: 0; }
  .hero-slider .hero-actions { justify-content: flex-start; }
  .hero-slider { touch-action: pan-y; }
  .home-intro-video-layout { grid-template-columns:1fr; gap:26px; }.home-intro-video-copy { max-width:720px; }.home-intro-video-card { width:100%; }
}

@media (max-width: 560px) {
  .hero-slide .hero-grid { gap: 12px; padding-block: 14px 62px; }
  .hero-slider .hero-art { min-height: 148px; }
  .hero-slider .hero-arch { height: 148px; border-width: 4px; border-radius: 18px; }
  .hero-slider .hero-copy .kicker { margin-bottom: 5px; font-size: 9px; }
  .hero-slider .hero-copy h1 { margin-bottom: 7px; font-size: clamp(25px,7.7vw,31px); line-height: 1.3; letter-spacing: -.7px; }
  .hero-slider .hero-copy > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hero-slider .hero-actions { flex-direction: row; gap: 7px; margin-top: 12px; }
  .hero-slider .hero-actions .button { width: auto; min-height: 42px; padding-inline: 15px; font-size: 10px; }
  .hero-slider .hero-actions .button.ghost { display: none; }
  .hero-slider-controls { bottom: 12px; }
  .hero-dots { gap: 1px; }
  .hero-dots button { width: 36px; height: 30px; }
  .hero-dots i { width: 6px; height: 6px; }
  .hero-dots button.is-active i { width: 27px; }
  .category-orb svg { width: 25px; height: 25px; }
  .product-card { grid-template-columns: 112px minmax(0,1fr); min-height: 184px; }
  .product-image-wrap img { min-height: 184px; }
  .product-card-body > p { -webkit-line-clamp: 2; }
  .course-card { grid-template-columns: 112px minmax(0,1fr); min-height: 205px; }
  .course-cover img { min-height: 205px; }
  .course-card-body > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .course-card .course-meta span:nth-child(n+3) { display: none; }
  .gallery-main img { max-height: 290px; aspect-ratio: 4 / 3; }
  .advanced-gallery .gallery-main { max-height: 290px; }
  .home-intro-video.section { padding:42px 0; }.home-intro-video-layout { gap:19px; }.home-intro-video-copy h2 { margin:10px 0 8px; font-size:28px; letter-spacing:-.5px; }.home-intro-video-copy > p { font-size:12px; line-height:2; }.home-intro-video-card { border-radius:10px; }.home-intro-video-frame > button > span { width:62px; height:62px; }.home-intro-video-frame > button svg { width:25px; height:25px; }.home-intro-video-frame > button strong { font-size:13px; }.home-intro-video-frame > button small { font-size:9px; }
}

@media (max-width: 390px) {
  .product-card,
  .course-card { grid-template-columns: 104px minmax(0,1fr); }
  .product-card { min-height: 176px; }
  .product-image-wrap img { min-height: 176px; }
  .course-card { min-height: 196px; }
  .course-cover img { min-height: 196px; }
}

/* Compact storefront cards, featured products rail and tighter search/story layout */
.product-image-wrap img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.course-cover img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gallery-main img { aspect-ratio: 3 / 2; }
.advanced-gallery .gallery-main,
.advanced-gallery .gallery-main img { max-height: 520px; }
.product-card-body,
.course-card-body { padding: 17px 18px; }
.product-card h3,
.course-card h3 { margin-block: 5px 6px; }
.product-card-body > p,
.course-card-body > p {
  min-height: 38px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.course-card .instructor { margin-block: 9px; }
.course-card .course-meta { margin-bottom: 11px; }
.product-card .price-row,
.course-card .price-row { padding-top: 11px; }

.featured-products-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%),
    var(--bg);
}
.featured-products-heading { align-items: center; }
.product-slider-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-slider-arrows {
  display: flex;
  direction: rtl;
  gap: 7px;
}
.product-slider-arrows button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s;
}
.product-slider-arrows button:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.product-slider-arrows svg { width: 20px; height: 20px; }
.product-slider {
  position: relative;
  margin-inline: -8px;
  padding-inline: 8px;
}
.product-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 50px) / 3);
  gap: 25px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand) 35%, transparent) transparent;
}
.product-slider-track > .product-card {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.product-slider-track::-webkit-scrollbar { height: 5px; }
.product-slider-track::-webkit-scrollbar-track { background: transparent; }
.product-slider-track::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 35%, transparent);
}

.story-section { padding-block: 76px; }
.story-grid {
  grid-template-columns: minmax(320px,.72fr) minmax(0,1.28fr);
  gap: 68px;
}
.story-visual {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 3;
  overflow: visible;
  justify-self: center;
}
.story-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
  border-radius: 46% 46% 20px 20px;
}
.story-seal { width: 84px; height: 84px; left: -24px; bottom: 18px; }

.global-search-state[hidden] { display: none; }
.global-search-state { min-height: 92px; padding: 20px 24px; }
.global-search-results { padding-top: 8px; }
.search-page-head { margin-bottom: 25px; }

@media (max-width: 1050px) {
  .product-slider-track { grid-auto-columns: calc((100% - 22px) / 2); gap: 22px; }
}

@media (max-width: 800px) {
  .story-section { padding-block: 56px; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-visual {
    width: min(100%, 560px);
    max-width: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .course-grid { gap: 15px; }
  .product-card,
  .course-card {
    display: block;
    min-height: 0;
    border-radius: 19px;
  }
  .product-image-shell,
  .product-image-wrap,
  .course-cover { height: auto; }
  .product-image-wrap img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .course-cover img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .gallery-main img { max-height: 255px; aspect-ratio: 3 / 2; }
  .advanced-gallery .gallery-main { max-height: 255px; }
  .product-card-body,
  .course-card-body { padding: 14px 15px 15px; }
  .product-card-body > p,
  .course-card-body > p {
    min-height: 0;
    margin-bottom: 9px;
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
  .product-card .price-row,
  .course-card .price-row {
    align-items: center;
    margin-top: 0;
    padding-top: 10px;
  }
  .course-card .instructor { margin-block: 7px; }
  .course-card .course-meta { margin-bottom: 8px; }
  .product-slider-heading-actions > .text-link { display: none; }
  .product-slider-arrows button { width: 39px; height: 39px; border-radius: 13px; }
  .product-slider-track {
    grid-auto-columns: min(84vw, 320px);
    gap: 13px;
    margin-left: calc((100vw - 100%) / -2);
    padding-left: calc((100vw - 100%) / 2);
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .product-slider-track::-webkit-scrollbar { display: none; }
  .story-grid { gap: 27px; }
  .story-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .story-visual img { border-radius: 26px; object-position: center 46%; }
  .story-seal { width: 68px; height: 68px; left: 10px; bottom: -17px; font-size: 9px; }
  .global-search-panel { margin-top: 7dvh; max-height: 93dvh; }
  .global-search-state { min-height: 68px; padding: 14px 18px; font-size: 11px; }
  .global-search-results { padding-top: 5px; }
  .search-page-head { margin-bottom: 16px; }
  .search-page-head h1 { margin-bottom: 14px; font-size: 30px; }
}

@media (max-width: 390px) {
  .product-card,
  .course-card {
    min-height: 0;
    grid-template-columns: none;
  }
  .product-image-wrap img,
  .course-cover img { min-height: 0; }
}

/* Unified product and course favorites */
.course-favorite-button {
  top: 12px;
  left: 12px;
}
.course-card.removing {
  opacity: 0;
  transform: scale(.96);
}
.course-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.course-title-line h1 {
  min-width: 0;
  margin-bottom: 19px;
}
.course-detail-favorite {
  flex: 0 0 auto;
  min-height: 44px;
  margin-top: 9px;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(10px);
}
.course-detail-favorite svg {
  width: 20px;
  height: 20px;
}
.course-detail-favorite.active {
  border-color: rgba(255,178,188,.45);
  background: #a83f50;
  color: #fff;
}
.course-detail-favorite.active svg { fill: currentColor; }

.favorites-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
}
.favorites-intro p {
  margin: 0;
  color: var(--muted);
}
.favorites-intro span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.favorite-collection {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
}
.favorite-collection + .favorite-collection { margin-top: 32px; }
.favorite-collection .favorites-heading {
  align-items: center;
  margin-bottom: 22px;
}
.favorites-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.favorites-heading > div > span {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
}
.favorites-heading > div > span svg { width: 21px; height: 21px; }
.favorites-heading h2 {
  margin: 0 0 3px;
  font-size: 20px;
}
.favorites-heading p { margin: 0; font-size: 11px; }
.favorite-empty {
  min-height: 250px;
  padding-block: 38px;
}
.favorite-empty[hidden],
[data-favorites-grid][hidden] { display: none !important; }
.favorite-empty > span svg { width: 32px; height: 32px; }

@media (max-width: 700px) {
  .course-title-line {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .course-title-line h1 {
    width: 100%;
    margin-bottom: 4px;
  }
  .course-detail-favorite {
    min-height: 40px;
    margin: 0 0 10px;
  }
  .favorites-intro {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
  }
  .favorite-collection {
    margin-top: 20px;
    padding: 16px 13px;
    border-radius: 20px;
  }
  .favorite-collection + .favorite-collection { margin-top: 22px; }
  .favorite-collection .favorites-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
  }
  .favorites-heading > div { align-items: flex-start; }
  .favorites-heading h2 { font-size: 16px; }
  .favorites-heading p { max-width: 230px; font-size: 9px; }
  .favorites-heading > a { padding-top: 7px; font-size: 9px; }
  .favorite-empty { min-height: 215px; padding: 30px 15px; }
}

@media (max-width: 420px) {
  .course-detail-favorite b { display: none; }
  .course-detail-favorite {
    width: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .favorites-heading > div > span { width: 38px; height: 38px; border-radius: 12px; }
  .favorites-heading > a { max-width: 75px; line-height: 1.7; text-align: left; }
}

/* Account security, addresses and reviews */
.auth-method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -4px 0 24px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.auth-method-tabs button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.auth-method-tabs button.active { background: var(--surface); color: var(--brand); box-shadow: 0 5px 18px rgba(30,50,40,.08); }
.auth-method-tabs svg { width: 18px; height: 18px; }
[data-auth-panel][hidden] { display: none !important; }
.auth-card .password-field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.password-field > span:last-child { position: relative; display: block; }
.auth-card .password-field input {
  width: 100%;
  height: 49px;
  padding: 0 45px 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  direction: ltr;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0;
}
.auth-card .password-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.password-field button { position: absolute; top: 50%; left: 8px; width: 34px; height: 34px; display: grid; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-field button svg { width: 18px; height: 18px; }
.auth-switch-link { width: 100%; margin-top: 12px; }

.account-avatar { overflow: hidden; }
.account-avatar img,
.account-avatar > span { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; }
.profile-main-form { margin-bottom: 24px; }
.avatar-editor { grid-column: 1/-1; display: flex; align-items: center; gap: 17px; margin-bottom: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb,var(--brand) 4%,var(--surface)); }
.avatar-preview { width: 92px; height: 92px; overflow: hidden; display: grid; flex: 0 0 auto; place-items: center; border: 3px solid var(--surface); border-radius: 50%; background: var(--surface-2); color: var(--muted); box-shadow: 0 6px 22px rgba(30,50,40,.12); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-preview svg { width: 35px; height: 35px; }
.avatar-editor > div:last-child { min-width: 0; }
.avatar-editor strong { display: block; margin-bottom: 3px; font-size: 13px; }
.avatar-editor p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.avatar-upload-button { min-height: 36px; display: inline-flex !important; align-items: center; flex-direction: row !important; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); font-size: 10px; font-weight: 800; cursor: pointer; }
.avatar-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-upload-button svg { width: 16px; height: 16px; }
.check-line.compact { display: inline-flex !important; margin: 6px 10px 0 0; font-size: 9px; }
.account-security-card { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.account-security-card > header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.account-security-card > header > span { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; background: color-mix(in srgb,var(--brand) 10%,var(--surface)); color: var(--brand); }
.account-security-card > header svg { width: 22px; height: 22px; }
.account-security-card h2 { margin: 0 0 3px; font-size: 18px; }
.account-security-card p { margin: 0; color: var(--muted); font-size: 10px; }
.password-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.password-form > label:first-of-type:nth-last-of-type(3) { grid-column: 1/-1; }
.password-form .button { justify-self: start; }

.address-manager-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr); gap: 22px; margin-top: 25px; }
.account-page .saved-addresses { display: block; }
.saved-addresses > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.saved-addresses h2,
.address-editor h2 { margin: 0; font-size: 17px; }
.saved-addresses > header > span { padding: 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.account-address-card { min-width: 0; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.account-address-card.default { border-color: color-mix(in srgb,var(--brand) 35%,var(--line)); box-shadow: inset 3px 0 var(--brand); }
.account-address-card > header { display: flex; align-items: center; gap: 10px; }
.account-address-card > header > span { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--brand) 8%,var(--surface-2)); color: var(--brand); }
.account-address-card > header svg { width: 19px; height: 19px; }
.account-address-card > header > div { min-width: 0; display: flex; flex-direction: column; }
.account-address-card > header strong { overflow-wrap: anywhere; font-size: 12px; }
.account-address-card > header small,
.account-address-card > small { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.account-address-card > header b { margin-right: auto; padding: 4px 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 8px; white-space: nowrap; }
.account-address-card > p { margin: 12px 0 5px; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; line-height: 1.9; }
.account-address-card > footer { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-address-card footer form { display: inline-flex; }
.account-address-card footer a,
.account-address-card footer button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--brand); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.account-address-card footer .danger { color: var(--danger); }
.account-address-card footer svg { width: 14px; height: 14px; }
.address-editor { align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.address-editor > header { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 17px; }
.address-editor > header > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--brand); color: #fff; }
.address-editor > header svg { width: 20px; height: 20px; }
.address-editor > header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.address-form textarea { resize: vertical; }
.address-empty { min-height: 230px; display: grid; place-items: center; align-content: center; padding: 25px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.address-empty svg { width: 40px; height: 40px; color: var(--muted); }
.address-empty strong { margin-top: 10px; font-size: 13px; }
.address-empty p { margin: 3px 0; color: var(--muted); font-size: 10px; }

.reviews-section { border-top: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 65%,var(--bg)); }
.reviews-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.reviews-heading h2 { margin: 5px 0 4px; font-size: clamp(23px,3vw,36px); }
.reviews-heading p { margin: 0; color: var(--muted); }
.rating-summary { min-width: 155px; display: grid; padding: 14px 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.rating-summary > strong { font-size: 27px; line-height: 1; }
.rating-summary .stars,
.review-stars,
.admin-review-rating > span { color: #e6a21a; letter-spacing: 2px; }
.rating-summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.reviews-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,.42fr); gap: 25px; align-items: start; }
.review-list { display: grid; gap: 13px; }
.review-card { padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.review-card > header { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--brand) 12%,var(--surface-2)); color: var(--brand); font-weight: 900; }
.review-card > header > div:nth-child(2) { display: flex; flex-direction: column; }
.review-card > header strong { font-size: 11px; }
.review-card time { color: var(--muted); font-size: 8px; }
.review-stars { margin-right: auto; font-size: 13px; white-space: nowrap; }
.review-card h3 { margin: 14px 0 3px; font-size: 13px; }
.review-card > p { margin: 8px 0 0; font-size: 11px; line-height: 2; }
.review-reply { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding: 12px; border-radius: 13px; background: color-mix(in srgb,var(--brand) 6%,var(--surface-2)); }
.review-reply > svg { width: 18px; height: 18px; color: var(--brand); }
.review-reply strong { color: var(--brand); font-size: 9px; }
.review-reply p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.9; }
.review-empty { min-height: 280px; display: grid; place-items: center; align-content: center; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.review-empty svg { width: 45px; height: 45px; color: var(--muted); }
.review-empty strong { margin-top: 10px; }
.review-empty p { margin: 3px; color: var(--muted); font-size: 10px; }
.review-form-card { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 14px 45px rgba(30,50,40,.06); }
.review-form-card > header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.review-form-card > header > span { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; background: color-mix(in srgb,var(--accent) 14%,var(--surface-2)); color: var(--accent); }
.review-form-card h3 { margin: 0; font-size: 15px; }
.review-form-card header p { margin: 2px 0; color: var(--muted); font-size: 9px; }
.review-form { display: grid; gap: 12px; }
.review-form textarea { resize: vertical; }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; border: 0; padding: 0; }
.star-rating legend { width: 100%; margin-bottom: 5px; font-size: 10px; font-weight: 800; }
.star-rating input { position: absolute; opacity: 0; }
.star-rating label { color: color-mix(in srgb,#e6a21a 25%,var(--line)); font-size: 28px; cursor: pointer; transition: .15s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #e6a21a; transform: translateY(-1px); }
.review-state { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 9px; border-radius: 10px; font-size: 9px; }
.review-state svg { width: 16px; height: 16px; }
.review-state.pending { background: #fff8df; color: #8a6416; }
.review-state.rejected { background: #fff0f1; color: var(--danger); }
.review-login { text-align: center; }
.review-login p { color: var(--muted); font-size: 10px; }

/* SignalR support widget */
.support-chat-fab { position: fixed; z-index: 80; right: 22px; bottom: 24px; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 15px; border: 0; border-radius: 99px; background: var(--brand); color: #fff; box-shadow: 0 12px 35px color-mix(in srgb,var(--brand) 35%,transparent); font: inherit; cursor: pointer; }
.support-chat-fab > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.support-chat-fab svg { width: 23px; height: 23px; }
.support-chat-fab b { font-size: 10px; }
.support-chat-fab em { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); border-radius: 99px; background: #d94255; color: #fff; font-size: 8px; font-style: normal; }
.support-chat-fab.has-unread { animation: support-pulse 1.8s infinite; }
@keyframes support-pulse { 50% { transform: translateY(-3px); box-shadow: 0 16px 38px color-mix(in srgb,var(--brand) 50%,transparent); } }
.support-chat-panel { position: fixed; z-index: 101; right: 22px; bottom: 88px; width: min(390px,calc(100vw - 32px)); height: min(650px,calc(100dvh - 120px)); overflow: hidden; display: flex; visibility: hidden; flex-direction: column; transform: translateY(18px) scale(.97); transform-origin: bottom right; opacity: 0; border: 1px solid color-mix(in srgb,var(--brand) 16%,var(--line)); border-radius: 25px; background: var(--surface); box-shadow: 0 24px 75px rgba(18,38,30,.24); transition: .25s ease; }
.support-chat-panel.open { visibility: visible; transform: none; opacity: 1; }
.support-chat-head { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg,var(--brand),var(--brand-2)); color: #fff; }
.support-agent-avatar { position: relative; width: 45px; height: 45px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 15px; background: rgba(255,255,255,.15); }
.support-agent-avatar svg { width: 23px; height: 23px; }
.support-agent-avatar span { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid var(--brand); border-radius: 50%; background: #62d487; }
.support-chat-head > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.support-chat-head strong { font-size: 12px; }
.support-chat-head small { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.75); font-size: 8px; }
.support-chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: #e0ad62; }
.support-chat-head small.online i { background: #67dc8d; }
.support-chat-head > button { width: 36px; height: 36px; display: grid; margin-right: auto; place-items: center; border: 0; border-radius: 11px; background: rgba(255,255,255,.11); color: #fff; cursor: pointer; }
.support-chat-head > button svg { width: 19px; height: 19px; }
.support-chat-intro { display: flex; align-items: flex-start; gap: 8px; margin: 10px 11px 0; padding: 10px; border-radius: 13px; background: color-mix(in srgb,var(--brand) 6%,var(--surface-2)); }
.support-chat-intro > svg { flex: 0 0 17px; color: var(--accent); }
.support-chat-intro strong { display: block; font-size: 9px; }
.support-chat-intro p { margin: 2px 0 0; color: var(--muted); font-size: 8px; line-height: 1.7; }
.support-visitor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 11px 0; transition: .2s; }
.support-visitor-fields.compact { display: none; }
.support-visitor-fields input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 8px; }
.support-messages,
.support-admin-messages { min-height: 0; overflow-y: auto; flex: 1; padding: 13px 11px; scroll-behavior: smooth; }
.support-loading,
.support-empty-thread { min-height: 100%; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.support-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.support-empty-thread > svg { width: 38px; height: 38px; }
.support-empty-thread strong { margin-top: 9px; font-size: 11px; }
.support-empty-thread p { max-width: 240px; margin: 3px 0; font-size: 8px; line-height: 1.8; }
.support-message { display: flex; margin: 7px 0; }
.support-message.from-user { justify-content: flex-end; }
.support-message > div { max-width: 82%; padding: 9px 11px 6px; border-radius: 15px 15px 4px; background: var(--brand); color: #fff; box-shadow: 0 5px 15px rgba(30,60,45,.08); }
.support-message.from-support > div { border: 1px solid var(--line); border-radius: 15px 15px 15px 4px; background: var(--surface-2); color: var(--ink); }
.support-message p { margin: 0; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.support-message time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 7px; }
.support-message.from-support time { color: var(--muted); }
.support-message time svg { width: 12px; height: 12px; }
.support-image-attachment { position: relative; display: block; overflow: hidden; margin: 2px 0 5px; border-radius: 10px; }
.support-image-attachment img { width: 190px; max-width: 100%; max-height: 160px; display: block; object-fit: cover; }
.support-image-attachment > span { position: absolute; top: 6px; left: 6px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; }
.support-image-attachment svg { width: 14px; height: 14px; }
.support-file-attachment { min-width: 210px; display: flex; align-items: center; gap: 8px; margin: 2px 0 5px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.13); color: inherit; }
.from-support .support-file-attachment { background: var(--surface); }
.support-file-attachment > svg { width: 23px; height: 23px; }
.support-file-attachment > span { min-width: 0; display: flex; flex-direction: column; }
.support-file-attachment strong { max-width: 180px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.support-file-attachment small { opacity: .7; font-size: 7px; }
.support-typing { display: flex; align-items: center; gap: 3px; padding: 0 14px 7px; color: var(--muted); }
.support-typing[hidden] { display: none; }
.support-typing > span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1s infinite alternate; }
.support-typing > span:nth-child(2) { animation-delay: .18s; }
.support-typing > span:nth-child(3) { animation-delay: .36s; }
.support-typing b { margin-right: 4px; font-size: 7px; font-weight: 500; }
@keyframes typing-bounce { to { transform: translateY(-3px); opacity: .4; } }
.support-file-preview,
.support-admin-file-preview { display: flex; align-items: center; gap: 7px; margin: 0 10px 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.support-file-preview[hidden],
.support-admin-file-preview[hidden] { display: none; }
.support-file-preview > svg,
.support-admin-file-preview > svg { width: 18px; height: 18px; color: var(--brand); }
.support-file-preview > span,
.support-admin-file-preview > span { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.support-file-preview strong,
.support-admin-file-preview strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.support-file-preview small,
.support-admin-file-preview small { color: var(--muted); font-size: 7px; }
.support-file-preview button,
.support-admin-file-preview button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.support-composer { display: flex; align-items: flex-end; gap: 6px; margin: 0 9px 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.support-composer textarea { min-height: 38px; max-height: 110px; flex: 1; resize: none; padding: 9px 3px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 10px; line-height: 1.8; }
.support-attach,
.support-composer > button { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 12px; color: var(--muted); cursor: pointer; }
.support-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.support-composer > button { background: var(--brand); color: #fff; }
.support-composer svg { width: 18px; height: 18px; }
.support-chat-panel > footer { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px 8px; color: var(--muted); font-size: 7px; }
.support-chat-panel > footer svg { width: 12px; height: 12px; }
.support-chat-backdrop { display: none; }

@media (max-width: 900px) {
  .address-manager-grid,
  .reviews-layout { grid-template-columns: 1fr; }
  .address-editor,
  .review-form-card { position: static; }
}
@media (max-width: 700px) {
  .password-form { grid-template-columns: 1fr; }
  .reviews-heading { align-items: flex-start; flex-direction: column; }
  .rating-summary { width: 100%; grid-template-columns: auto 1fr; align-items: center; text-align: right; }
  .rating-summary > strong { grid-row: 1/3; margin-left: 12px; }
  .review-card { padding: 15px; }
  .review-stars { font-size: 11px; letter-spacing: 1px; }
  .support-chat-fab { right: 13px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 49px; min-height: 49px; padding: 4px; justify-content: center; }
  .support-chat-fab > span { width: 41px; height: 41px; }
  .support-chat-fab > b { display: none; }
  .support-chat-panel { right: 0; bottom: 0; width: 100%; height: min(720px,92dvh); transform: translateY(100%); transform-origin: bottom; border-width: 1px 0 0; border-radius: 25px 25px 0 0; }
  .support-chat-panel.open { transform: none; }
  .support-chat-backdrop { position: fixed; z-index: 100; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(12,25,20,.42); transition: .2s; }
  .support-chat-open .support-chat-backdrop { visibility: visible; opacity: 1; }
  .support-chat-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .avatar-editor { align-items: flex-start; padding: 13px; }
  .avatar-preview { width: 76px; height: 76px; }
  .account-security-card { padding: 16px 13px; }
  .address-editor { padding: 16px 13px; }
  .account-address-card > footer { flex-wrap: wrap; }
  .review-card > header { align-items: flex-start; }
  .review-stars { margin-top: 4px; }
}

/* v10: OTP, password recovery, resilient address cards and mobile support */
.otp-resend-button { display: flex; align-items: center; justify-content: center; gap: 5px; }
.otp-resend-button:disabled { cursor: not-allowed; opacity: .48; }
.auth-card .otp-resend-form { margin-top: 4px; }
.auth-card .otp-resend-form .otp-resend-button { width: 100%; }
.password-reset-divider { position: relative; display: flex; justify-content: center; margin: 22px 0 16px; }
.password-reset-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: var(--line); }
.password-reset-divider span { position: relative; z-index: 1; padding: 0 10px; background: var(--surface); color: var(--muted); font-size: 10px; }
.password-reset-request { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border: 1px dashed color-mix(in srgb,var(--brand) 26%,var(--line)); border-radius: 14px; background: color-mix(in srgb,var(--brand) 4%,var(--bg)); }
.password-reset-request > span,
.password-reset-notice { display: flex; align-items: center; gap: 9px; }
.password-reset-request > span > svg,
.password-reset-notice > svg { width: 23px; height: 23px; flex: 0 0 auto; color: var(--brand); }
.password-reset-request > span > span,
.password-reset-notice > span { display: flex; flex-direction: column; }
.password-reset-request strong,
.password-reset-notice strong { font-size: 11px; }
.password-reset-request small,
.password-reset-notice small { color: var(--muted); font-size: 9px; }
.password-reset-request button { flex: 0 0 auto; }
.password-reset-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.password-reset-notice { grid-column: 1/-1; padding: 11px; border-radius: 12px; background: color-mix(in srgb,var(--brand) 7%,var(--bg)); }
.password-reset-form > .button { justify-self: start; }
.password-reset-form > .otp-resend-button { align-self: center; }

.account-address-card { min-width: 0; overflow: hidden; }
.account-address-card > header > div,
.account-address-card > p,
.account-address-card > small { min-width: 0; overflow-wrap: anywhere; }
.account-address-card footer form { margin: 0; }

@media (max-width: 700px) {
  .support-chat-panel {
    top: var(--support-vtop,0);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--support-vh,100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(100%);
    background:
      linear-gradient(180deg,color-mix(in srgb,var(--brand) 4%,var(--surface)),var(--surface) 24%),
      var(--surface);
  }
  .support-chat-head {
    min-height: 68px;
    flex: 0 0 auto;
    padding-top: max(11px,env(safe-area-inset-top));
    box-shadow: 0 8px 25px rgba(12,35,25,.12);
  }
  .support-agent-avatar { border-radius: 50%; }
  .support-chat-head strong { font-size: 14px; }
  .support-chat-head small { font-size: 10px; }
  .support-chat-intro { flex: 0 0 auto; margin: 10px 12px 0; padding: 11px 12px; }
  .support-chat-intro strong { font-size: 11px; }
  .support-chat-intro p { font-size: 9px; }
  .support-visitor-fields { flex: 0 0 auto; padding-inline: 12px; }
  .support-visitor-fields input { height: 42px; font-size: 11px; }
  .support-messages { min-height: 0; flex: 1 1 auto; padding: 14px 12px; overscroll-behavior: contain; }
  .support-message > div { max-width: 88%; padding: 10px 12px 7px; }
  .support-message p { font-size: 12px; }
  .support-message time { font-size: 8px; }
  .support-typing,
  .support-file-preview { flex: 0 0 auto; }
  .support-composer {
    flex: 0 0 auto;
    margin: 0 10px max(8px,env(safe-area-inset-bottom));
    padding: 7px;
    border-radius: 19px;
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(20,43,32,.12);
  }
  .support-composer textarea { min-height: 42px; padding-block: 10px; font-size: 13px; }
  .support-attach,
  .support-composer > button { width: 42px; height: 42px; border-radius: 14px; }
  .support-chat-panel > footer { flex: 0 0 auto; padding-bottom: max(8px,env(safe-area-inset-bottom)); font-size: 9px; }
  .support-chat-panel.keyboard-open .support-chat-intro,
  .support-chat-panel.keyboard-open .support-visitor-fields,
  .support-chat-panel.keyboard-open > footer { display: none; }
  .support-chat-panel.keyboard-open .support-chat-head { min-height: 58px; padding-block: 7px; }
  .support-chat-panel.keyboard-open .support-agent-avatar { width: 39px; height: 39px; }
  .password-reset-form { grid-template-columns: 1fr; }
  .password-reset-request { align-items: stretch; flex-direction: column; }
  .password-reset-request button { align-self: flex-start; }
}

@media (max-width: 520px) {
  .account-address-card { padding: 14px 12px; border-radius: 16px; }
  .account-address-card > header {
    display: grid;
    grid-template-columns: 39px minmax(0,1fr) auto;
    align-items: start;
    gap: 9px;
  }
  .account-address-card > header > span { grid-column: 1; grid-row: 1; }
  .account-address-card > header > div { grid-column: 2; grid-row: 1; }
  .account-address-card > header > b { grid-column: 3; grid-row: 1; margin: 0; white-space: nowrap; }
  .account-address-card > header strong { font-size: 13px; }
  .account-address-card > header small { display: block; margin-top: 2px; line-height: 1.7; white-space: normal; }
  .account-address-card > p { margin-top: 10px; font-size: 11px; }
  .account-address-card > footer {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
  }
  .account-address-card footer form,
  .account-address-card footer a,
  .account-address-card footer button { width: 100%; }
  .account-address-card footer a,
  .account-address-card footer button { min-height: 38px; justify-content: center; }
  .account-address-card footer form:last-child:nth-child(3) { grid-column: 1/-1; }
}

/* AJAX catalog explorer */
.catalog-page { position: relative; }
.catalog-toolbar { position: relative; z-index: 12; margin: -2px 0 25px; }
.catalog-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.catalog-search-box {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow: 0 12px 35px rgba(29,50,39,.055);
  transition: border-color .2s,box-shadow .2s;
}
.catalog-search-box:focus-within {
  border-color: color-mix(in srgb,var(--brand) 55%,var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 9%,transparent),0 15px 38px rgba(29,50,39,.07);
}
.catalog-search-box > svg { width: 21px; height: 21px; flex: 0 0 auto; margin-right: 8px; color: var(--brand); }
.catalog-search-box input {
  min-width: 0;
  height: 44px;
  flex: 1;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.catalog-search-box input::-webkit-search-cancel-button { display: none; }
.catalog-search-clear {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}
.catalog-search-clear[hidden] { display: none; }
.catalog-search-clear svg { width: 16px; height: 16px; }
.catalog-search-submit {
  min-width: 86px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: var(--button-primary,var(--brand));
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.catalog-filter-fab {
  position: relative;
  min-width: 120px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb,var(--brand) 28%,var(--line));
  border-radius: 18px;
  background: color-mix(in srgb,var(--brand) 7%,var(--surface));
  color: var(--brand);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(29,50,39,.045);
  cursor: pointer;
}
.catalog-filter-fab svg { width: 19px; height: 19px; }
.catalog-filter-fab b {
  position: absolute;
  top: -6px;
  left: -5px;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 3px solid var(--bg);
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
}
.catalog-filter-fab b[hidden] { display: none; }
.catalog-filter-backdrop {
  position: fixed;
  z-index: 205;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  border: 0;
  background: rgba(9,20,14,.55);
  backdrop-filter: blur(6px);
  transition: .22s;
}
.catalog-filter-drawer {
  position: fixed;
  z-index: 206;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px,calc(100vw - 30px));
  overflow: hidden;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  transform: translateX(105%);
  opacity: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -25px 0 70px rgba(9,24,16,.18);
  transition: transform .28s ease,opacity .2s,visibility .28s;
}
.catalog-filter-drawer.open { visibility: visible; transform: none; opacity: 1; }
.catalog-filter-drawer.open + * { pointer-events: none; }
.catalog-toolbar:has(.catalog-filter-drawer.open) .catalog-filter-backdrop { visibility: visible; opacity: 1; }
body.catalog-filters-open .catalog-filter-backdrop { visibility: visible; opacity: 1; }
.catalog-filter-drawer > header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb,var(--brand) 5%,var(--surface));
}
.catalog-filter-drawer > header > div { display: flex; flex-direction: column; }
.catalog-filter-drawer > header small { color: var(--brand); font-size: 9px; font-weight: 900; }
.catalog-filter-drawer > header strong { font-size: 17px; }
.catalog-filter-drawer > header button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.catalog-filter-drawer > header button svg { width: 18px; height: 18px; }
.catalog-filter-fields { min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 16px; flex: 1; padding: 20px; }
.catalog-filter-fields > label { display: grid; gap: 7px; }
.catalog-filter-fields > label > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.catalog-filter-fields select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.catalog-filter-fields select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand) 9%,transparent); }
.catalog-toggle-list { display: grid; gap: 9px; padding-top: 3px; }
.catalog-toggle-list > label { position: relative; cursor: pointer; }
.catalog-toggle-list input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-toggle-list label > span {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: .18s;
}
.catalog-toggle-list label > span > svg {
  width: 42px;
  height: 42px;
  grid-column: 1;
  grid-row: 1/3;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
}
.catalog-toggle-list b { align-self: end; font-size: 11px; }
.catalog-toggle-list small { align-self: start; color: var(--muted); font-size: 8px; }
.catalog-toggle-list input:checked + span {
  border-color: color-mix(in srgb,var(--brand) 50%,var(--line));
  background: color-mix(in srgb,var(--brand) 8%,var(--surface));
  box-shadow: inset 3px 0 var(--brand);
}
.catalog-filter-drawer > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px 18px max(14px,env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.catalog-filter-drawer > footer .button { min-height: 46px; border: 0; font: inherit; font-size: 10px; font-weight: 900; }
.catalog-reset-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-reset-button svg { width: 16px; height: 16px; }
html.search-open,
body.search-open,
body.catalog-filters-open { overflow: hidden; overscroll-behavior: none; }
.catalog-results { position: relative; min-height: 220px; transition: opacity .18s; }
.catalog-results.reloading { opacity: .45; pointer-events: none; }
.catalog-results.reloading::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 105px;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid color-mix(in srgb,var(--brand) 18%,var(--line));
  border-top-color: var(--brand);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(18,37,27,.12);
  animation: spin .7s linear infinite;
}
.catalog-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.catalog-result-heading > div { display: flex; flex-direction: column; }
.catalog-result-heading small { color: var(--muted); font-size: 9px; }
.catalog-result-heading strong { font-size: 14px; }
.catalog-result-heading strong b { color: var(--brand); font-size: 18px; }
.catalog-result-heading > span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.catalog-result-heading > span svg { width: 14px; height: 14px; }
.catalog-empty > span { display: grid; place-items: center; }
.catalog-empty > span svg { width: 42px; height: 42px; }
.catalog-empty button { border: 0; font: inherit; }
.catalog-load-more { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 9px; margin-top: 20px; }
.catalog-load-more button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-loader { display: flex; gap: 5px; opacity: .45; }
.catalog-loader i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.catalog-load-more.loading .catalog-loader i { animation: catalog-dot .65s infinite alternate; }
.catalog-load-more.loading .catalog-loader i:nth-child(2) { animation-delay: .15s; }
.catalog-load-more.loading .catalog-loader i:nth-child(3) { animation-delay: .3s; }
.catalog-load-more.loading button { opacity: .45; pointer-events: none; }
@keyframes catalog-dot { to { transform: translateY(-5px); opacity: .35; } }
.catalog-end { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 35px 0 5px; color: var(--muted); font-size: 9px; }
.catalog-end svg { width: 17px; height: 17px; color: var(--success); }

@media (max-width: 700px) {
  .catalog-page.section { padding-top: 28px; }
  .catalog-search-row { grid-template-columns: minmax(0,1fr) 56px; gap: 7px; }
  .catalog-search-box { min-height: 54px; padding: 5px 7px 5px 5px; border-radius: 16px; }
  .catalog-search-box > svg { margin-right: 5px; }
  .catalog-search-box input { height: 42px; font-size: 12px; }
  .catalog-search-submit { display: none; }
  .catalog-filter-fab { min-width: 56px; min-height: 54px; width: 56px; padding: 0; border-radius: 16px; }
  .catalog-filter-fab span { display: none; }
  .catalog-filter-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(82dvh,720px);
    transform: translateY(105%);
    border: 0;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -25px 70px rgba(9,24,16,.2);
  }
  .catalog-filter-drawer > header { min-height: 70px; padding: 12px 16px; }
  .catalog-filter-fields { padding: 16px; }
  .catalog-result-heading { align-items: flex-start; margin-bottom: 16px; }
  .catalog-result-heading strong { font-size: 12px; }
  .catalog-result-heading strong b { font-size: 16px; }
  .catalog-result-heading > span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 420px) {
  .catalog-search-clear { width: 31px; height: 31px; }
  .catalog-filter-drawer > footer { grid-template-columns: 1fr; }
  .catalog-filter-drawer > footer .button { grid-row: 1; }
  .catalog-result-heading > span { display: none; }
}

/* v17 — readable craft UI, adaptive chrome, keyboard-safe address sheet and mobile price dock */
body:not(.admin-body) {
  font-size: 16px;
  line-height: 1.75;
}
body:not(.admin-body) p { font-size: 14px; line-height: 1.95; }
body:not(.admin-body) small { font-size: 12px; line-height: 1.75; }
body:not(.admin-body) :is(input,select,textarea,button) { font-size: 14px; }
body:not(.admin-body) :is(input,select,textarea) { line-height: 1.6; }
body:not(.admin-body) .hero-copy > p { font-size: 17px; }
body:not(.admin-body) :is(.eyebrow,.kicker,.trust-chip,.status) { font-size: 11px; letter-spacing: 0; }

.site-header {
  transform-origin: top center;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
  transition: transform .48s cubic-bezier(.22,.84,.28,1), opacity .25s ease, box-shadow .28s ease, background .28s ease;
}
.mobile-bottom-nav {
  transform-origin: bottom center;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
  will-change: transform, opacity;
  transition: transform .5s cubic-bezier(.22,.84,.28,1), opacity .26s ease;
}
body.chrome-header-hidden .site-header { transform: translate3d(0,calc(-100% - 12px),0); opacity: 0; pointer-events: none; }
body.chrome-bottom-hidden .mobile-bottom-nav { transform: translate3d(0,calc(132% + env(safe-area-inset-bottom)),0); opacity: 0; pointer-events: none; }

[data-parallax] {
  backface-visibility: hidden;
  transform: translate3d(0,var(--parallax-y,0px),0);
  transform-style: preserve-3d;
  will-change: transform;
}
.featured-products-section {
  background-position: center var(--parallax-surface-y,0), center;
  background-image:
    radial-gradient(circle at 10% calc(15% + var(--parallax-surface-y,0)),color-mix(in srgb,var(--accent) 12%,transparent),transparent 29%),
    linear-gradient(135deg,color-mix(in srgb,var(--brand) 3%,var(--bg)),var(--bg));
}
.hero-slider::after,
.story-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(45deg,currentColor 1px,transparent 1px),
    linear-gradient(-45deg,currentColor 1px,transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom,transparent,black 24%,black 76%,transparent);
  pointer-events: none;
}
.hero-slider::after { color: color-mix(in srgb,var(--brand) 34%,transparent); }
.story-section { position: relative; }
.story-section::after { color: rgba(255,255,255,.25); opacity: .08; }
.hero-slider-track,
.hero-slider-controls,
.story-grid { position: relative; z-index: 1; }
.product-card,
.course-card,
.checkout-card,
.order-summary {
  box-shadow: 0 14px 42px rgba(20,42,31,.055);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
@media (hover:hover) and (pointer:fine) {
  .product-card:hover,
  .course-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb,var(--brand) 24%,var(--line)); box-shadow: 0 23px 60px rgba(20,42,31,.11); }
}

.checkout-address-modal-card { max-height: min(92dvh,860px); }
.checkout-address-modal-card h2 { font-size: 21px; }
.checkout-address-modal-card header p { font-size: 13px; }
.checkout-address-modal-fields { gap: 16px; padding: 24px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--brand) 32%,transparent) transparent; }
.checkout-address-modal-fields > label { gap: 8px; color: color-mix(in srgb,var(--ink) 72%,var(--muted)); font-size: 13px; }
.checkout-address-modal-fields label > span { color: var(--ink); }
.checkout-address-modal-fields label > span small { font-size: 11px; }
.checkout-address-modal-fields :is(input,textarea,select),
.checkout-address-modal-fields .select2-selection--single {
  min-height: 52px;
  border: 1.5px solid color-mix(in srgb,var(--ink) 13%,var(--line));
  border-radius: 14px;
  background: color-mix(in srgb,var(--surface-2) 54%,var(--surface));
  color: var(--ink);
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.checkout-address-modal-fields :is(input,textarea,select) { padding-inline: 14px; }
.checkout-address-modal-fields textarea { min-height: 108px; padding-block: 13px; }
.checkout-address-modal-fields :is(input,textarea,select):focus,
.checkout-address-modal-fields label:has(.select2-container--open) .select2-selection--single {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 11%,transparent);
}
.checkout-address-modal-fields .select2-container .select2-selection--single .select2-selection__rendered { height: 50px; display: flex; align-items: center; padding-inline: 14px 35px; font-size: 15px; }
.checkout-address-modal-fields .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; }
.checkout-default-address { min-height: 56px; font-size: 13px !important; }
.checkout-address-form-error { font-size: 13px; }
.checkout-address-modal-card form > footer .button { min-height: 50px; font-size: 14px; }

.mobile-price-dock { display: none; }

@media (max-width: 800px) {
  body.has-mobile-price-dock { padding-bottom: calc(184px + env(safe-area-inset-bottom)); }
  body.has-mobile-price-dock .mobile-checkout-submit { display: none; }
  .mobile-price-dock {
    position: fixed;
    z-index: 78;
    right: 10px;
    left: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    min-height: 69px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 11px 9px 9px;
    border: 1px solid color-mix(in srgb,var(--brand) 20%,var(--line));
    border-radius: 21px;
    background: color-mix(in srgb,var(--surface) 94%,transparent);
    box-shadow: 0 18px 55px rgba(12,29,20,.2);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: bottom .44s cubic-bezier(.2,.78,.22,1), transform .3s ease, opacity .26s ease;
  }
  body[data-mobile-bottom-visible="true"].chrome-bottom-hidden .mobile-price-dock { bottom: max(9px,env(safe-area-inset-bottom)); }
  body[data-mobile-bottom-visible="false"] .mobile-price-dock { bottom: max(9px,env(safe-area-inset-bottom)); }
  .mobile-price-dock > div { min-width: 0; display: flex; flex-direction: column; }
  .mobile-price-dock > div small { color: var(--muted); font-size: 11px; }
  .mobile-price-dock > div strong { overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-price-dock > div strong :is(small,span) { color: var(--muted); font-size: 11px; font-weight: 700; }
  .mobile-price-dock > :is(a,button) {
    min-width: 126px;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-inline: 15px;
    border: 0;
    border-radius: 15px;
    background: var(--button-primary);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 9px 22px color-mix(in srgb,var(--button-primary) 28%,transparent);
  }
  .mobile-price-dock > :is(a,button) svg { width: 18px; height: 18px; }
  body.checkout-address-modal-open :is(.mobile-price-dock,.mobile-bottom-nav) { opacity: 0; pointer-events: none; }
  body.has-mobile-price-dock .support-chat-fab { bottom: calc(174px + env(safe-area-inset-bottom)); }
  body[data-mobile-bottom-visible="false"].has-mobile-price-dock {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }
  body[data-mobile-bottom-visible="false"].has-mobile-price-dock .support-chat-fab {
    bottom: calc(91px + env(safe-area-inset-bottom));
  }

  .checkout-address-modal { display: block; padding: 0; }
  .checkout-address-modal-card {
    position: absolute;
    top: calc(var(--checkout-modal-top,0px) + max(6px,env(safe-area-inset-top)));
    right: 0;
    left: 0;
    width: 100%;
    height: calc(var(--checkout-modal-vh,100dvh) - max(6px,env(safe-area-inset-top)));
    max-height: none;
    border-width: 1px 0 0;
    border-radius: 25px 25px 0 0;
  }
  .checkout-address-modal-card > header { min-height: 78px; flex: 0 0 auto; }
  .checkout-address-modal-card h2 { font-size: 19px; }
  .checkout-address-modal-card header p { font-size: 12px; line-height: 1.65; }
  .checkout-address-modal-card > form { height: 0; flex: 1 1 auto; }
  .checkout-address-modal-fields { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 17px 14px 24px; -webkit-overflow-scrolling: touch; scroll-padding-block: 18px; }
  .checkout-address-modal-fields .full { grid-column: auto; }
  .checkout-address-modal-card form > footer { flex: 0 0 auto; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card { top: var(--checkout-modal-top,0px); height: var(--checkout-modal-vh,100dvh); border-radius: 17px 17px 0 0; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card > header { min-height: 60px; padding-block: 7px; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card > header > span { width: 39px; height: 39px; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card header p { display: none; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-fields { padding-block: 12px 20px; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card form > footer { padding-block: 6px; }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card form > footer .button { min-height: 44px; }
}

@media (max-width: 430px) {
  .mobile-price-dock { right: 7px; left: 7px; gap: 8px; padding-inline: 10px 7px; }
  .mobile-price-dock > :is(a,button) { min-width: 112px; padding-inline: 11px; font-size: 12px; }
  .mobile-price-dock > div strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Parallax is already bounded and scroll-driven; keep the requested depth
     effect while the global reduced-motion rule removes timed animations. */
  [data-parallax] { transition: none !important; }
  .site-header,
  .mobile-bottom-nav,
  .mobile-price-dock { transition-duration: .01ms !important; }
}

/* v18 — expressive craft storefront with stronger type and low-cost visual depth */
body:not(.admin-body) {
  font-size: clamp(16px,calc(15.45px + .18vw),17.25px);
  line-height: 1.86;
  text-rendering: optimizeLegibility;
}
body:not(.admin-body) p { color: color-mix(in srgb,var(--ink) 82%,var(--muted)); font-size: clamp(15px,calc(14.7px + .09vw),15.75px); line-height: 1.95; }
body:not(.admin-body) small { font-size: 13px; }
body:not(.admin-body) :is(input,select,textarea,button) { font-size: 15.5px; }
body:not(.admin-body) :is(h1,h2,h3,strong) { text-wrap: balance; }
body:not(.admin-body) :is(h1,h2,h3) { color: color-mix(in srgb,var(--ink) 96%,var(--brand)); font-weight: 900; }
body:not(.admin-body) :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid color-mix(in srgb,var(--accent) 42%,transparent);
  outline-offset: 3px;
}
body:not(.admin-body) ::selection { background: color-mix(in srgb,var(--accent) 34%,transparent); color: var(--ink); }

.announcement {
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--accent) 24%,transparent),transparent 38%),
    var(--brand-2);
}
.site-header {
  border-bottom-color: color-mix(in srgb,var(--brand) 9%,transparent);
  box-shadow: 0 8px 35px rgba(25,52,38,.035);
}
.brand-mark {
  background: linear-gradient(145deg,color-mix(in srgb,var(--brand) 78%,#fff),var(--brand-2));
  box-shadow: inset -6px -5px 0 rgba(0,0,0,.08),0 9px 22px color-mix(in srgb,var(--brand) 20%,transparent);
}
.desktop-nav a { color: color-mix(in srgb,var(--ink) 68%,var(--muted)); font-size: 14.5px; }
.icon-button,
.menu-button { box-shadow: 0 7px 19px rgba(30,48,38,.045); transition: transform .22s ease,border-color .22s ease,background .22s ease; }

.hero-slider {
  background:
    radial-gradient(circle at 84% 14%,color-mix(in srgb,var(--accent) 17%,transparent),transparent 26%),
    radial-gradient(circle at 12% 72%,color-mix(in srgb,var(--brand) 13%,transparent),transparent 31%),
    linear-gradient(135deg,color-mix(in srgb,var(--surface) 62%,var(--bg)),var(--bg));
}
.hero-slider .hero-arch {
  border: 8px solid color-mix(in srgb,var(--surface) 86%,transparent);
  box-shadow: 0 35px 85px rgba(31,55,41,.17),0 0 0 1px color-mix(in srgb,var(--brand) 9%,transparent);
}
.hero-slider h1 {
  color: color-mix(in srgb,var(--ink) 96%,var(--brand));
  letter-spacing: -.35px;
  text-shadow: 0 2px 0 color-mix(in srgb,var(--surface) 65%,transparent);
}
.hero-slider h1 em {
  background: linear-gradient(95deg,var(--accent),color-mix(in srgb,var(--brand) 56%,var(--accent)));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero-copy > p { color: color-mix(in srgb,var(--ink) 70%,var(--muted)); font-size: 17px; }
.kicker {
  min-height: 31px;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb,currentColor 18%,transparent);
  border-radius: 999px;
  background: color-mix(in srgb,currentColor 7%,transparent);
  font-size: 12px;
}
.kicker i { width: 18px; height: 2px; border-radius: 99px; }
.kicker.light { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }

.button { position: relative; overflow: hidden; border-radius: 16px; }
.button.primary {
  background: linear-gradient(135deg,color-mix(in srgb,var(--button-primary) 88%,#fff),var(--button-primary));
  box-shadow: 0 12px 26px color-mix(in srgb,var(--button-primary) 22%,transparent);
}
.button.primary::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -28%;
  width: 24%;
  background: rgba(255,255,255,.2);
  transform: rotate(16deg) translateX(-240%);
  transition: transform .55s ease;
  pointer-events: none;
}

.category-list a { padding-block: 10px; border-radius: 22px; transition: background .25s ease,transform .25s ease; }
.category-orb {
  border: 1px solid color-mix(in srgb,currentColor 12%,transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.7),0 15px 34px rgba(42,55,45,.08);
}
.category-list strong { font-size: 14px; }
.category-list small { font-size: 11px; }

.section-heading h2,
.story-copy h2,
.faq h2 {
  font-size: clamp(31px,3.15vw,45px);
  letter-spacing: -.15px;
}
.section-heading h2::after {
  content: "";
  width: 46px;
  height: 4px;
  display: block;
  margin-top: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--brand) 55%,var(--accent)));
}
.text-link { font-size: 14px; }

.product-card,
.course-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: color-mix(in srgb,var(--brand) 10%,var(--line));
  background: linear-gradient(180deg,color-mix(in srgb,var(--surface) 97%,var(--brand)),var(--surface));
}
.product-card::before,
.course-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 12%;
  left: 12%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg,transparent,var(--accent),transparent);
  opacity: .7;
  pointer-events: none;
}
.product-image-wrap::after,
.course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,rgba(18,35,25,.12),transparent 42%);
  pointer-events: none;
}
.product-card h3,
.course-card h3 { font-size: 18px; }
.product-card-body > p,
.course-card-body > p { color: color-mix(in srgb,var(--ink) 75%,var(--muted)); font-size: 14px; line-height: 1.85; }
.course-meta { color: color-mix(in srgb,var(--ink) 72%,var(--muted)); font-size: 12px; }
.price-row strong { color: var(--brand-2); font-size: 18px; }
.round-add { box-shadow: 0 10px 25px color-mix(in srgb,var(--brand) 24%,transparent); }

.products-section,
.course-section,
.faq { position: relative; isolation: isolate; overflow: hidden; }
.products-section::before,
.course-section::before,
.faq::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(38vw,520px);
  aspect-ratio: 1;
  border-radius: 47% 53% 62% 38%;
  background: radial-gradient(circle,color-mix(in srgb,var(--accent) 10%,transparent),transparent 68%);
  pointer-events: none;
}
.products-section::before { top: 4%; left: -12%; }
.course-section::before { right: -14%; bottom: -18%; background: radial-gradient(circle,color-mix(in srgb,var(--brand) 11%,transparent),transparent 68%); }
.faq::before { top: -22%; left: 4%; opacity: .75; }

.story-section {
  background:
    radial-gradient(circle at 12% 16%,color-mix(in srgb,var(--accent) 25%,transparent),transparent 30%),
    linear-gradient(145deg,var(--brand-2),color-mix(in srgb,var(--brand-2) 88%,#07150e));
}
.story-visual img { box-shadow: 0 34px 82px rgba(0,0,0,.26); }
.story-copy > p { color: rgba(240,248,243,.79); font-size: 16px; }
.story-copy li small { color: rgba(232,243,236,.68); font-size: 12.5px; }
.feature-grid strong { font-size: 13.5px; }
.feature-grid small { color: color-mix(in srgb,var(--ink) 72%,var(--muted)); font-size: 12.5px; }
.accordion summary { font-size: 15px; }
.accordion p { font-size: 14px; }

body:not(.admin-body) :is(
  .view-cue,
  .floating-note small,
  .global-search-results small,
  .search-result-card small,
  .catalog-result-heading > span,
  .catalog-load-more button,
  .catalog-end
) { font-size: 11.5px; }
body:not(.admin-body) :is(.catalog-result-heading strong,.search-result-card strong) { font-size: 13.5px; }

@supports (content-visibility:auto) {
  .category-strip,
  .products-section,
  .course-section,
  .feature-band,
  .faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
  }
}

@media (hover:hover) and (pointer:fine) {
  .button.primary:hover::after { transform: rotate(16deg) translateX(700%); }
  .category-list a:hover { background: color-mix(in srgb,var(--surface) 76%,transparent); transform: translateY(-3px); }
  .icon-button:hover,
  .menu-button:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--brand) 28%,var(--line)); }
}

@media (max-width: 800px) {
  body:not(.admin-body) { font-size: 16px; }
  body:not(.admin-body) p { font-size: 15px; }
  .mobile-bottom-nav {
    border: 1px solid color-mix(in srgb,var(--brand) 12%,var(--line));
    background: color-mix(in srgb,var(--surface) 95%,transparent);
    box-shadow: 0 18px 52px rgba(18,39,27,.2);
    backdrop-filter: blur(20px) saturate(1.25);
  }
  .mobile-bottom-nav small { font-size: 11.5px; }
  .mobile-bottom-nav a.active { color: var(--brand); }
  .mobile-bottom-nav a.active::before {
    content: "";
    position: absolute;
    top: 4px;
    width: 34px;
    height: 24px;
    border-radius: 99px;
    background: color-mix(in srgb,var(--brand) 11%,transparent);
    z-index: -1;
  }
  .section { padding-block: 72px; }
  .section-heading h2,
  .story-copy h2,
  .faq h2 { font-size: clamp(27px,7.8vw,35px); }
  .product-card h3,
  .course-card h3 { font-size: 16.5px; }
  .product-card-body > p,
  .course-card-body > p { font-size: 13.5px; }
  .course-meta { font-size: 11.5px; }
}

@media (max-width: 560px) {
  .hero-slider .hero-copy .kicker { min-height: 29px; margin-bottom: 8px; padding: 4px 9px; font-size: 11.5px; }
  .hero-slider .hero-copy > p { font-size: 14px; line-height: 1.9; }
  .hero-slider .hero-actions .button { min-height: 46px; font-size: 13px; }
  .category-list strong { font-size: 13.5px; }
  .category-list small { font-size: 11.5px; }
  .products-section::before,
  .course-section::before,
  .faq::before { width: 78vw; opacity: .68; }
}

@media (prefers-reduced-motion: reduce) {
  .button.primary::after { display: none; }
  .category-list a,
  .icon-button,
  .menu-button { transition-duration: .01ms !important; }
}

/* Light theme contrast: these sections use illustration-heavy backgrounds and
   therefore need their own palette instead of inheriting the global text mix. */
:root:not([data-theme="dark"]) .hero-slider {
  background:
    radial-gradient(circle at 84% 14%,rgba(199,118,73,.16),transparent 27%),
    radial-gradient(circle at 10% 76%,rgba(31,101,75,.11),transparent 32%),
    linear-gradient(135deg,#fffdf9 0%,#f7f2e9 54%,#f0f5ef 100%);
}
:root:not([data-theme="dark"]) .hero-slide.is-active,
:root:not([data-theme="dark"]) .hero-slide.is-active .hero-copy > * {
  opacity: 1;
}
:root:not([data-theme="dark"]) .hero-slider .hero-copy h1 {
  color: #183126;
  text-shadow: 0 2px 0 rgba(255,255,255,.82),0 12px 35px rgba(25,58,42,.08);
}
:root:not([data-theme="dark"]) .hero-slider .hero-copy h1 em {
  background-image: linear-gradient(95deg,#a6512f 5%,#bd7046 48%,#256448 100%);
}
:root:not([data-theme="dark"]) .hero-slider .hero-copy > p {
  color: #53635a;
}
:root:not([data-theme="dark"]) .hero-slider .hero-copy .kicker {
  border-color: rgba(166,81,47,.22);
  background: rgba(255,250,244,.78);
  color: #a14f30;
}
:root:not([data-theme="dark"]) .hero-slider .button.ghost {
  border-color: rgba(31,101,75,.17);
  background: rgba(255,253,249,.9);
  color: #244236;
  box-shadow: 0 10px 28px rgba(36,66,54,.06);
}
:root:not([data-theme="dark"]) .hero-slider .hero-arch img {
  opacity: 1;
  filter: saturate(1.06) contrast(1.045);
}

:root:not([data-theme="dark"]) .story-section {
  background:
    radial-gradient(circle at 12% 16%,rgba(216,133,83,.22),transparent 31%),
    linear-gradient(145deg,#18543f 0%,#104431 58%,#0b3325 100%);
}
:root:not([data-theme="dark"]) body:not(.admin-body) .story-section .story-copy h2 {
  color: #fffaf2;
  text-shadow: 0 3px 20px rgba(0,0,0,.18);
}
:root:not([data-theme="dark"]) body:not(.admin-body) .story-section .story-copy > p {
  color: #d8e8df;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .story-section .story-copy li strong {
  color: #fffdf8;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .story-section .story-copy li small {
  color: #c5d9cd;
}
:root:not([data-theme="dark"]) .story-section .kicker.light {
  border-color: rgba(255,225,194,.24);
  background: rgba(255,255,255,.075);
  color: #f1c796;
}

/* v18.1 — explicit contrast for dark surfaces used inside the light theme */
:root:not([data-theme="dark"]) body:not(.admin-body) .page-hero.course-hero h1 {
  color: #fffaf2;
  text-shadow: 0 3px 24px rgba(0,0,0,.18);
}
:root:not([data-theme="dark"]) body:not(.admin-body) .page-hero.course-hero > .container > p {
  color: #d4e4db;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .page-hero.course-hero .kicker {
  border-color: rgba(242,199,145,.26);
  background: rgba(255,255,255,.07);
  color: #f2c791;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero .course-detail-copy h1,
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero .instructor strong,
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero .course-proof strong {
  color: #fffaf2;
  text-shadow: 0 3px 22px rgba(0,0,0,.17);
}
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero .course-detail-copy > p {
  color: #d7e7de;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero :is(.light-breadcrumb,.light-breadcrumb a,.instructor small,.course-proof span) {
  color: #c1d6ca;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .course-detail-hero .kicker.light {
  border-color: rgba(244,205,158,.27);
  background: rgba(255,255,255,.075);
  color: #f2ca99;
}
:root:not([data-theme="dark"]) .hero-slider .hero-copy h1 em {
  background: none;
  color: #9b4b2d;
  -webkit-text-fill-color: #9b4b2d;
  text-shadow: none;
}

:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer :is(h3,strong) {
  color: #f4faf6;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .footer-brand small {
  color: #c2d4c8;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .footer-grid p {
  color: #bdcec3;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .footer-grid a {
  color: #d7e5dc;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .footer-grid a:hover {
  color: #fff;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .trust-chip {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.045);
  color: #edf6f0;
}
:root:not([data-theme="dark"]) body:not(.admin-body) .site-footer .footer-bottom {
  color: #adc1b4;
}

/* Shared bottom-sheet behavior: stable scroll lock and a single layer above
   layout chrome, mobile price docks, and the public support launcher. */
html.bottom-sheet-open,
body.bottom-sheet-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.bottom-sheet-open :is(.mobile-bottom-nav,.mobile-price-dock,.support-chat-fab,.support-chat-panel) {
  z-index: 70;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
body[data-bottom-sheet-owner="catalog-filters"] .catalog-toolbar {
  z-index: 420;
  isolation: isolate;
}
.catalog-filter-backdrop,
.checkout-address-modal { z-index: 410; }
.catalog-filter-drawer { z-index: 411; }

.checkout-address-modal {
  display: flex;
  visibility: hidden;
  align-items: flex-end;
  justify-content: center;
  padding: 18px clamp(16px,3vw,40px) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease,visibility .24s;
}
.checkout-address-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.checkout-address-modal-backdrop {
  background: rgba(8,20,13,.6);
  backdrop-filter: blur(7px) saturate(.9);
}
.checkout-address-modal-card {
  width: min(820px,100%);
  height: min(86dvh,800px);
  max-height: min(86dvh,800px);
  animation: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -28px 85px rgba(8,22,15,.3);
  transform: translate3d(0,calc(100% + 26px),0);
  transition: transform .3s cubic-bezier(.2,.82,.25,1);
}
.checkout-address-modal.is-open .checkout-address-modal-card { transform: translate3d(0,0,0); }
.checkout-address-modal-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 99px;
  background: color-mix(in srgb,var(--muted) 38%,transparent);
  transform: translateX(-50%);
}
.checkout-address-modal-card > header { padding-top: 21px; }
.checkout-address-modal > .select2-container { z-index: 4; }

.gallery-lightbox.single-image .gallery-lightbox-stage {
  grid-template-columns: minmax(0,1fr);
}
.gallery-lightbox.single-image .gallery-lightbox-stage > div { grid-column: 1; }
.gallery-lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-bottom-nav[hidden] { display: none !important; }
@media (max-width: 800px) {
  body[data-mobile-bottom-visible="false"]:not(.has-mobile-price-dock) { padding-bottom: 0; }
  body[data-mobile-bottom-visible="false"]:not(.has-mobile-price-dock) .support-chat-fab {
    bottom: max(14px,env(safe-area-inset-bottom));
  }
  .checkout-address-modal { top: 0; align-items: flex-end; padding: 0; }
  .checkout-address-modal-card {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(88dvh,780px);
    max-height: min(88dvh,780px);
    border-radius: 27px 27px 0 0;
  }
  .checkout-address-modal.keyboard-open .checkout-address-modal-card {
    top: var(--checkout-modal-top,0px);
    bottom: auto;
    height: var(--checkout-modal-vh,100dvh);
    max-height: var(--checkout-modal-vh,100dvh);
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-address-modal,
  .checkout-address-modal-card { transition-duration: .01ms !important; }
}

/* Unified account navigation, address bottom sheet and review composer */
[data-cart-count][hidden],
[data-support-unread][hidden],
.review-form-status[hidden] { display: none !important; }

.account-action { position: relative; display: inline-flex; }
.header-account-menu { position: relative; }
.header-account-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.header-account-menu > summary::-webkit-details-marker,
.drawer-account-group > summary::-webkit-details-marker { display: none; }
.header-account-menu .account-menu-chevron { width: 15px; height: 15px; transition: transform .2s ease; }
.header-account-menu[open] .account-menu-chevron { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  z-index: 180;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  width: min(340px,calc(100vw - 28px));
  overflow: hidden;
  padding: 10px;
  border: 1px solid color-mix(in srgb,var(--line) 82%,var(--brand));
  border-radius: 20px;
  background: color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow: 0 24px 70px rgba(7,24,15,.2);
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  backdrop-filter: blur(22px) saturate(1.15);
  pointer-events: none;
  transition: opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1);
}
.header-account-menu[open] .account-dropdown { opacity: 1; transform: none; pointer-events: auto; }
.account-dropdown > header { display: flex; align-items: center; gap: 11px; padding: 10px 9px 14px; border-bottom: 1px solid var(--line); }
.account-dropdown > header > span { width: 43px; height: 43px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; background: color-mix(in srgb,var(--brand) 13%,var(--surface-2)); color: var(--brand); }
.account-dropdown > header > span svg { width: 22px; height: 22px; }
.account-dropdown > header > div { min-width: 0; display: flex; flex-direction: column; }
.account-dropdown > header strong { color: var(--ink); font-size: 12px; }
.account-dropdown > header small { overflow: hidden; color: var(--muted); font-size: 9px; direction: ltr; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown nav { display: grid; gap: 3px; padding: 8px 0; }
.account-dropdown nav a { min-height: 52px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; padding: 6px 8px; border-radius: 13px; color: var(--ink); transition: background .18s,color .18s,transform .18s; }
.account-dropdown nav a:hover { background: var(--surface-2); color: var(--brand); transform: translateX(-2px); }
.account-dropdown nav a > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: color-mix(in srgb,var(--brand) 8%,var(--surface-2)); color: var(--brand); }
.account-dropdown nav a > span { min-width: 0; display: flex; flex-direction: column; }
.account-dropdown nav strong { font-size: 11px; }
.account-dropdown nav small { color: var(--muted); font-size: 8px; }
.account-dropdown > form { padding-top: 8px; border-top: 1px solid var(--line); }
.account-dropdown > form button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: color-mix(in srgb,var(--danger) 10%,var(--surface)); color: var(--danger); font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.account-dropdown > form svg { width: 18px; height: 18px; }

.drawer-account-group > summary { min-height: 54px; display: grid; grid-template-columns: 39px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid color-mix(in srgb,var(--brand) 24%,var(--line)); border-radius: 15px; background: color-mix(in srgb,var(--brand) 7%,var(--surface-2)); color: var(--ink); font-size: 13px; font-weight: 900; list-style: none; cursor: pointer; }
.drawer-account-group > summary > svg:first-child { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--surface); color: var(--brand); box-shadow: 0 7px 18px rgba(35,45,38,.07); }
.drawer-account-group > summary > svg:last-child { width: 17px; height: 17px; color: var(--muted); transition: transform .2s; }
.drawer-account-group[open] > summary > svg:last-child { transform: rotate(180deg); }
.mobile-drawer nav .drawer-account-group > div { display: grid; gap: 4px; margin: 7px 12px 2px 0; padding: 6px 10px 7px 0; border-right: 2px solid color-mix(in srgb,var(--brand) 28%,var(--line)); }
.mobile-drawer nav .drawer-account-group > div a { min-height: 42px; grid-template-columns: 31px minmax(0,1fr); padding: 5px 8px; border-radius: 11px; background: transparent; color: var(--muted); font-size: 11px; }
.mobile-drawer nav .drawer-account-group > div a:hover { background: var(--surface-2); color: var(--brand); }
.mobile-drawer nav .drawer-account-group > div a > svg:first-child { width: 31px; height: 31px; padding: 7px; border-radius: 10px; box-shadow: none; }
.drawer-account-group form { padding: 6px 8px 0; }
.drawer-account-group form button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; background: color-mix(in srgb,var(--danger) 10%,var(--surface)); color: var(--danger); font: inherit; font-size: 10px; font-weight: 900; }
.drawer-account-group form svg { width: 17px; height: 17px; }

.account-layout-single { grid-template-columns: minmax(0,1fr); }
.account-layout-single .account-content { width: 100%; }
.account-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-page-heading h1 { margin-bottom: 5px; }
.account-page-heading p { margin: 0; color: var(--muted); }
.account-page-heading > .button { flex: 0 0 auto; gap: 8px; }
.account-page-heading > .button svg { width: 18px; height: 18px; }
.address-manager-single { grid-template-columns: minmax(0,1fr); }
.address-manager-single .saved-addresses { min-width: 0; }
.address-manager-single .account-address-card { box-shadow: 0 10px 28px rgba(20,45,31,.045); }
.account-address-card footer > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 12px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 9px; font-weight: 900; cursor: pointer; transition: transform .18s,background .18s,border-color .18s; }
.account-address-card footer > button svg { width: 15px; height: 15px; }
.account-address-card footer > button:hover { transform: translateY(-1px); }
.account-address-card footer > .address-action-edit { border-color: color-mix(in srgb,var(--brand) 20%,var(--line)); background: color-mix(in srgb,var(--brand) 10%,var(--surface)); color: var(--brand); }
.account-address-card footer > .address-action-edit:hover { background: color-mix(in srgb,var(--brand) 16%,var(--surface)); }
.account-address-card footer > .address-action-delete { border-color: color-mix(in srgb,var(--danger) 17%,var(--line)); background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); }
.account-address-card footer > .address-action-delete:hover { background: color-mix(in srgb,var(--danger) 15%,var(--surface)); }
.account-address-sheet .validation-summary,
.account-address-inline-error { margin: 0; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); font-size: 10px; line-height: 1.8; }
.account-address-inline-error[hidden] { display: none !important; }
.account-address-sheet .select2-container { z-index: 4; }

.address-delete-sheet { z-index: 430; }
.address-delete-sheet-card { width: min(520px,100%); height: auto; min-height: 0; max-height: min(82dvh,520px); overflow: hidden; border-radius: 26px 26px 0 0; }
.address-delete-sheet-card > header { min-height: 82px; }
.address-delete-sheet-card > header > .danger-icon { background: color-mix(in srgb,var(--danger) 13%,var(--surface)); color: var(--danger); }
.address-delete-confirm-copy { display: flex; align-items: flex-start; gap: 13px; margin: 20px; padding: 17px; border: 1px solid color-mix(in srgb,var(--danger) 18%,var(--line)); border-radius: 16px; background: color-mix(in srgb,var(--danger) 7%,var(--surface)); }
.address-delete-confirm-copy > span { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--danger) 12%,var(--surface)); color: var(--danger); }
.address-delete-confirm-copy > span svg { width: 21px; height: 21px; }
.address-delete-confirm-copy strong { color: var(--ink); font-size: 12px; line-height: 1.9; }
.address-delete-confirm-copy strong b { color: var(--danger); }
.address-delete-confirm-copy p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.9; }
.address-delete-sheet-card > form { height: auto; flex: 0 0 auto; }
.address-delete-sheet-card form > footer { display: grid; grid-template-columns: 1fr 1fr; }
.address-delete-sheet-card form > footer .button { min-width: 0; }
.address-delete-confirm { border-color: transparent; background: var(--danger); color: #fff; }
.address-delete-confirm:hover { background: color-mix(in srgb,var(--danger) 88%,#000); }

.review-form-card { overflow: hidden; padding: 23px; border-radius: 24px; background: linear-gradient(145deg,color-mix(in srgb,var(--brand) 3%,var(--surface)),var(--surface)); }
.review-form { gap: 14px; }
.review-field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 900; }
.review-field > span:first-child { display: flex; align-items: center; gap: 6px; }
.review-field > span:first-child svg { width: 17px; height: 17px; color: var(--brand); }
.review-field > span:first-child small { margin-right: auto; padding: 3px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 8px; font-weight: 600; }
.review-field :is(input,textarea) { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid color-mix(in srgb,var(--line) 88%,var(--brand)); border-radius: 14px; outline: 0; background: color-mix(in srgb,var(--bg) 70%,var(--surface)); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.9; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s,box-shadow .2s,background .2s; }
.review-field textarea { min-height: 142px; padding-block: 12px; resize: vertical; }
.review-field :is(input,textarea)::placeholder { color: color-mix(in srgb,var(--muted) 72%,transparent); }
.review-field :is(input,textarea):focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 12%,transparent),0 12px 28px rgba(20,52,34,.06); }
.review-submit { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; border-radius: 14px; }
.review-submit svg { width: 18px; height: 18px; }
.review-form.is-submitting { opacity: .82; }
.review-form-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid; border-radius: 12px; font-size: 9px; line-height: 1.8; }
.review-form-status svg { width: 18px; height: 18px; flex: 0 0 auto; }
.review-form-status.success { border-color: color-mix(in srgb,var(--success) 25%,var(--line)); background: color-mix(in srgb,var(--success) 9%,var(--surface)); color: var(--success); }
.review-form-status.error { border-color: color-mix(in srgb,var(--danger) 25%,var(--line)); background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); }

@media (max-width: 800px) {
  .header-account-menu > summary.profile-link { width: 41px; height: 41px; min-height: 41px; display: grid; place-items: center; padding: 0; border-radius: 14px; }
  .header-account-menu > summary b,
  .header-account-menu > summary .account-menu-chevron { display: none; }
  .header-account-menu > summary > svg:first-child { width: 21px; height: 21px; }
  .account-dropdown { position: fixed; top: calc(max(70px,env(safe-area-inset-top)) + 9px); right: 14px; left: 14px; width: auto; max-height: calc(100dvh - 100px); overflow-y: auto; transform-origin: top center; }
  .account-page.section { padding-top: 24px; }
  .account-layout-single { width: min(calc(100% - 20px),var(--container)); }
  .account-layout-single .account-content { padding: 22px 16px; border-radius: 22px; }
  .account-page-heading { align-items: stretch; flex-direction: column; gap: 15px; }
  .account-page-heading > .button { width: 100%; }
  .address-manager-single .saved-addresses > header { align-items: center; }
  .account-address-card footer > .address-action-edit,
  .account-address-card footer > .address-action-delete { width: 100%; }
  .account-address-card footer > .address-action-delete:nth-child(3) { grid-column: 1/-1; }
  .address-delete-sheet-card { width: 100%; border-radius: 24px 24px 0 0; }
  .address-delete-confirm-copy { margin: 16px 13px; padding: 14px; }
  .address-delete-sheet-card form > footer { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
  .review-form-card { padding: 18px 15px; border-radius: 21px; }
  .review-field :is(input,textarea) { font-size: 16px; }
  .review-field textarea { min-height: 132px; }
}

/* Professional product gallery, PhotoSwipe viewer and post-cart actions */
.advanced-gallery {
  --product-gallery-height: clamp(390px,calc(100svh - 230px),610px);
  position: relative;
}
.advanced-gallery .gallery-main {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: var(--product-gallery-height);
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb,var(--brand) 13%,var(--line));
  border-radius: clamp(22px,2vw,31px);
  outline: 0;
  background:
    radial-gradient(circle at 50% 44%,color-mix(in srgb,var(--surface) 96%,#fff) 0 33%,transparent 67%),
    linear-gradient(145deg,color-mix(in srgb,var(--surface-2) 88%,var(--brand) 12%),var(--surface-2));
  box-shadow: 0 24px 65px rgba(13,38,24,.11),inset 0 0 0 1px color-mix(in srgb,#fff 35%,transparent);
  cursor: zoom-in;
}
.advanced-gallery .gallery-main:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent),0 24px 65px rgba(13,38,24,.11);
}
.gallery-main-media {
  position: absolute;
  isolation: isolate;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px,1.7vw,24px);
}
.gallery-main-media::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -9%;
  background-image: var(--gallery-image);
  background-position: center;
  background-size: cover;
  filter: blur(25px) saturate(.82);
  opacity: .18;
  transform: scale(1.08);
  transition: background-image .2s ease,opacity .25s ease;
}
.gallery-main-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb,var(--surface-2) 68%,transparent);
  backdrop-filter: blur(3px);
}
.advanced-gallery .gallery-main .gallery-main-media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 20px 30px rgba(9,27,18,.15));
  transform: translateZ(0) scale(1);
  opacity: 1;
  transition: transform .48s cubic-bezier(.2,.75,.22,1),filter .4s ease,opacity .2s ease;
}
.advanced-gallery .gallery-main .gallery-main-media > img.gallery-image-arriving {
  opacity: .72;
  transform: translateZ(0) scale(.985);
}
.advanced-gallery.gallery-switching .gallery-main-media::after {
  background: color-mix(in srgb,var(--surface-2) 56%,transparent);
}
.advanced-gallery .gallery-main:hover .gallery-main-media > img {
  filter: drop-shadow(0 24px 38px rgba(9,27,18,.2));
  transform: translateZ(0) scale(1.025);
}
.gallery-main-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg,transparent 56%,rgba(4,15,9,.28));
  pointer-events: none;
}
.gallery-zoom-cue {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: rgba(14,31,21,.76);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(14px) saturate(1.2);
}
.gallery-zoom-cue { position: static; }
.gallery-zoom-cue svg { width: 18px; height: 18px; }
.gallery-position-badge {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 17px;
  min-width: 58px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb,var(--line) 70%,transparent);
  border-radius: 99px;
  background: color-mix(in srgb,var(--surface) 88%,transparent);
  color: var(--muted);
  font-size: 10px;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px rgba(9,28,17,.1);
  backdrop-filter: blur(13px);
}
.gallery-position-badge b { color: var(--brand); font-size: 13px; }
.gallery-position-badge i { opacity: .45; font-style: normal; }
.advanced-gallery .thumb-list {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb,var(--surface-2) 64%,transparent);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.advanced-gallery .thumb-list button {
  position: relative;
  width: 76px;
  height: 66px;
  flex: 0 0 76px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--surface);
  opacity: .68;
  scroll-snap-align: start;
  transition: opacity .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.advanced-gallery .thumb-list button:hover { opacity: 1; transform: translateY(-2px); }
.advanced-gallery .thumb-list button.active {
  border-color: var(--brand);
  opacity: 1;
  box-shadow: 0 7px 18px color-mix(in srgb,var(--brand) 15%,transparent);
}
.advanced-gallery .thumb-list img { border-radius: 9px; object-fit: cover; }
.advanced-gallery.gallery-loading .gallery-main { cursor: progress; }
.advanced-gallery.gallery-loading .gallery-main::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px;
  border: 3px solid color-mix(in srgb,var(--brand) 22%,transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: gallery-loader .7s linear infinite;
}
@keyframes gallery-loader { to { transform: rotate(1turn); } }

body.lightbox-open { overflow: hidden; overscroll-behavior: none; }
.product-photoswipe {
  --pswp-bg: rgba(5,13,9,.975);
  font-family: var(--font);
}
.product-photoswipe .pswp__top-bar {
  height: 58px;
  align-items: center;
  padding: max(5px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) 0 max(7px,env(safe-area-inset-left));
  background: linear-gradient(180deg,rgba(2,8,5,.78),transparent);
}
.product-photoswipe .pswp__counter {
  height: 42px;
  display: flex;
  align-items: center;
  margin: 0 10px;
  color: rgba(255,255,255,.78);
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
  text-shadow: none;
}
.product-photoswipe .pswp__button {
  width: 46px;
  height: 46px;
  margin: 5px 3px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background-color: rgba(255,255,255,.075);
  opacity: 1;
}
.product-photoswipe .pswp__button:is(:hover,:active,:focus-visible) {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.13);
  box-shadow: none;
}
.product-photoswipe .pswp__button > .pswp__icn {
  top: 7px;
  left: 7px;
  width: 30px;
  height: 30px;
}
.product-photoswipe .pswp__button--arrow {
  width: 50px;
  height: 58px;
  border-radius: 17px;
}
.product-photoswipe .pswp__button--arrow > .pswp__icn {
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  transform: translate(-50%,-50%);
}
.product-photoswipe .pswp__button--arrow--next > .pswp__icn {
  right: auto;
  transform: translate(-50%,-50%) scale(-1,1);
}
.product-photoswipe .pswp__img { filter: drop-shadow(0 14px 32px rgba(0,0,0,.28)); }
.product-pswp-caption {
  position: absolute;
  z-index: 10;
  right: 50%;
  bottom: max(13px,env(safe-area-inset-bottom));
  width: min(640px,calc(100% - 28px));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(11,24,16,.7);
  color: #fff;
  text-align: center;
  transform: translateX(50%);
  pointer-events: none;
}
.product-pswp-caption strong { font-size: 12px; }

.detail-favorite-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.detail-favorite-icon svg { width: 20px; height: 20px; stroke-width: 2; transition: fill .2s ease,transform .2s ease; }
.detail-favorite:hover .detail-favorite-icon svg { transform: scale(1.08); }
.detail-favorite.active > .detail-favorite-icon { font-size: inherit; }
.detail-favorite.active > .detail-favorite-icon::before { content: none; }
.detail-favorite.active .detail-favorite-icon svg { fill: currentColor; }

.detail-cart-next {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 9px;
  margin-top: 10px;
}
.detail-cart-next .button { min-height: 49px; gap: 7px; }
.detail-cart-next .button svg { width: 18px; height: 18px; }

.shipping-methods > label { display: grid; }
.shipping-methods .method-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}
.shipping-methods .method-copy strong,
.shipping-methods .method-copy small { display: block; margin: 0; }
.shipping-methods .method-copy strong { color: var(--ink); line-height: 1.55; }
.shipping-methods .method-copy small { line-height: 1.8; overflow-wrap: anywhere; }

@media (max-width: 1050px) and (min-width: 801px) {
  .advanced-gallery { --product-gallery-height: clamp(350px,53svh,510px); }
  .advanced-gallery .gallery-main { min-height: 340px; }
  .gallery-main-media { padding: 14px; }
}

@media (max-width: 800px) {
  .site-footer { padding-bottom:calc(165px + env(safe-area-inset-bottom)); }
  body[data-mobile-bottom-visible="false"] .site-footer { padding-bottom:calc(95px + env(safe-area-inset-bottom)); }
  body.has-mobile-price-dock .site-footer { padding-bottom:calc(225px + env(safe-area-inset-bottom)); }
  .footer-credit { align-items:center; flex-direction:column; gap:8px; margin-top:22px; padding-top:20px; text-align:center; }
  .footer-credit > a { min-height:44px; padding-inline:15px; }
  .advanced-gallery { --product-gallery-height: min(76vw,520px); }
  .advanced-gallery .gallery-main { min-height: 320px; border-radius: 24px; }
  .gallery-main-media { padding: clamp(8px,2.8vw,16px); }
  .gallery-main-overlay { padding: 13px; }
  .gallery-zoom-cue { min-height: 37px; padding-inline: 11px; font-size: 10px; }
  .gallery-position-badge { top: 12px; right: 12px; height: 33px; }
  .advanced-gallery .thumb-list { margin-top: 10px; padding: 6px; border-radius: 15px; }
  .advanced-gallery .thumb-list button { width: 67px; height: 59px; flex-basis: 67px; }
  .product-photoswipe .pswp__button--arrow { display: none; }
  .product-photoswipe .pswp__img { filter: none; }
  .product-pswp-caption { bottom: max(10px,env(safe-area-inset-bottom)); min-height: 48px; padding-inline: 14px; background: rgba(11,24,16,.86); }
  .product-pswp-caption strong { font-size: 11px; }
  .detail-favorite { width: 44px; height: 44px; border-radius: 15px; }
  .detail-favorite-icon svg { width: 22px; height: 22px; }
  .detail-cart-next { grid-template-columns: 1fr 1.15fr; }
  .product-price-dock { grid-template-columns: minmax(84px,.7fr) minmax(180px,1.25fr); gap: 7px; }
  .product-price-dock > .mobile-price-actions {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr);
    flex-direction: row;
    gap: 6px;
  }
  .mobile-price-actions > :is(a,button) {
    min-width: 0;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border: 0;
    border-radius: 15px;
    background: var(--button-primary);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 9px 22px color-mix(in srgb,var(--button-primary) 25%,transparent);
  }
  .mobile-price-actions > button:only-child { grid-column: 1/-1; }
  .mobile-price-actions .mobile-dock-cart {
    padding: 0;
    border: 1px solid color-mix(in srgb,var(--brand) 26%,var(--line));
    background: var(--surface-2);
    color: var(--brand);
    box-shadow: none;
  }
  .mobile-price-actions svg { width: 18px; height: 18px; }
}

@media (max-width: 560px) {
  .advanced-gallery { --product-gallery-height: min(86vw,410px); }
  .advanced-gallery .gallery-main { min-height: 278px; }
  .gallery-main-overlay { background: linear-gradient(180deg,transparent 52%,rgba(4,15,9,.34)); }
  .detail-cart-next { grid-template-columns: 1fr; }
  .detail-cart-next .button { min-height: 47px; }
  .product-price-dock { right: 7px; left: 7px; grid-template-columns: minmax(80px,.64fr) minmax(174px,1.36fr); padding-inline: 9px 7px; }
  .product-price-dock > .mobile-price-copy small { font-size: 9px; }
  .product-price-dock > .mobile-price-copy strong { font-size: 14px; }
  .mobile-price-actions > :is(a,button) { padding-inline: 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .advanced-gallery .gallery-main .gallery-main-media > img,
  .advanced-gallery .thumb-list button { transition-duration: .01ms !important; }
  .advanced-gallery.gallery-loading .gallery-main::after { animation-duration: 1.4s; }
}

/* Address form validation and resilient account actions */
.checkout-address-modal-card > form > .checkout-address-form-error {
  min-height: 48px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin: 12px 20px 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb,var(--danger) 34%,var(--line));
  border-radius: 12px;
  background: color-mix(in srgb,var(--danger) 8%,var(--surface));
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  box-shadow: 0 8px 24px color-mix(in srgb,var(--danger) 8%,transparent);
}
.checkout-address-modal-card > form > .checkout-address-form-error[hidden] { display: none !important; }
.checkout-address-form-error > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.checkout-address-form-error > span { min-width: 0; }
.checkout-address-modal-fields { scroll-padding-block: 20px 28px; }
.checkout-address-modal-fields .address-field-invalid > :is(input,textarea,select),
.checkout-address-modal-fields .address-field-invalid .select2-selection--single {
  border-color: var(--danger) !important;
  background: color-mix(in srgb,var(--danger) 5%,var(--surface)) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--danger) 10%,transparent) !important;
}
.address-client-error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.75;
}
.address-client-error::before { content: "!"; width: 16px; height: 16px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--danger) 12%,var(--surface)); font-size: 9px; }
.address-delete-error { display: flex; align-items: center; gap: 8px; margin: 0 20px 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb,var(--danger) 30%,var(--line)); border-radius: 12px; background: color-mix(in srgb,var(--danger) 8%,var(--surface)); color: var(--danger); font-size: 10px; line-height: 1.8; }
.address-delete-error[hidden] { display: none !important; }
.address-delete-error svg { width: 18px; height: 18px; flex: 0 0 auto; }
.alert.error { border: 1px solid color-mix(in srgb,var(--danger) 25%,var(--line)); background: color-mix(in srgb,var(--danger) 9%,var(--surface)); color: var(--danger); }

/* Auth artwork keeps deliberate contrast in both site themes. */
.auth-art { isolation: isolate; color: #fff; }
.auth-art::before { z-index: 0; background: linear-gradient(160deg,rgba(12,53,37,.56),rgba(6,30,20,.9)); }
.auth-art > div { z-index: 1; }
.auth-art h2 { color: #fff; text-shadow: 0 3px 20px rgba(0,0,0,.36); }
.auth-art p { color: #edf7f1; text-shadow: 0 2px 14px rgba(0,0,0,.32); }
.auth-art .brand-mark { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.24); backdrop-filter: blur(10px); }
html[data-theme="light"] .auth-art::before { background: linear-gradient(160deg,rgba(12,58,39,.62),rgba(5,27,18,.92)); }

@media (max-width: 800px) {
  .checkout-address-modal-card > form > .checkout-address-form-error { margin: 9px 13px 0; padding: 9px 11px; font-size: 11px; }
  .address-client-error { font-size: 10px; }
  .address-delete-error { margin-inline: 13px; }
}
