: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; }
.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; }
}

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

@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; }
}

@media (max-width: 480px) {
  .new-address-form { padding: 14px; }
  .new-address-form .form-grid > span:empty { display: none; }
}

@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; }

@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; }
}

@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; }
}

@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; }
.password-field > span:last-child { position: relative; display: block; }
.password-field input { width: 100%; padding-left: 45px !important; }
.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; }
}
