/* ==========================================================================
   SUPER BOBA — shop
   Colours from the logo: red wordmark, yellow circle, black pearl.
   ========================================================================== */
:root {
    --red: #d6302b;
    --red-dark: #b5241f;
    --red-soft: #fdeceb;
    --yellow: #f6d65e;
    --yellow-soft: #fdf6dc;
    --ink: #161616;
    --text: #3a3a3a;
    --muted: #7c7c7c;
    --line: #ececec;
    --bg: #ffffff;
    --warm: #faf7f1;
    --green: #1f8a4c;
    --green-soft: #e8f6ee;
    --amber: #a8640a;
    --amber-soft: #fdf3e2;
    --blue: #1f5fbf;
    --blue-soft: #eaf1fd;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(22, 22, 22, .04), 0 6px 20px rgba(22, 22, 22, .05);
    --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(214, 48, 43, .35); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding-block: 56px; }
.section-sm { padding-block: 32px; } /* top / bottom only, so ".container section" keeps its side padding */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #d6d6d6; background: var(--warm); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.link { color: var(--red); font-weight: 600; }
.link:hover { color: var(--red-dark); }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Header ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--text); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--warm); }
.header-search { position: relative; flex: 0 1 280px; }
.header-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--warm); padding: 0 16px 0 42px; outline: none; }
.header-search input:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(214, 48, 43, .12); }
.header-search > .icon { position: absolute; left: 14px; top: 11px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { border: none; background: none; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-weight: 500; }
.icon-btn:hover { background: var(--warm); }
.cart-badge { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-badge[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* ── Flash messages ─────────────────────────────────────── */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0 0; font-size: 14px; }
.flash-info { background: var(--blue-soft); color: var(--blue); }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: var(--red-dark); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--warm); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: 460px; padding: 48px 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: 18px; color: var(--text); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .disc { position: absolute; inset: 6%; border-radius: 50%; background: var(--yellow); }
.hero-art .pearl { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #555 0 6%, #111 30%); }
.hero-art .p1 { width: 16%; height: 16%; right: 4%; top: 10%; }
.hero-art .p2 { width: 9%; height: 9%; left: 6%; bottom: 14%; }
.hero-art .p3 { width: 6%; height: 6%; right: 16%; bottom: 4%; }
.hero-art .shot { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ── Category tiles ──────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: #dedede; box-shadow: var(--shadow); }
.cat-tile img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--warm); }
.cat-tile b { display: block; color: var(--ink); font-weight: 600; }
.cat-tile span { font-size: 13px; color: var(--muted); }

/* ── Product cards ───────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop-grid { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; }
.product-media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--warm); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 12px 2px 0; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.product-name { font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .15s, transform .1s; }
.add-btn:hover { background: var(--red); }
.add-btn:active { transform: scale(.94); }
.add-btn.added { background: var(--green); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.badge-out { background: var(--ink); color: #fff; }
.badge-low { background: var(--yellow); color: var(--ink); }
.product-card.is-out .product-media img { opacity: .55; filter: grayscale(.4); }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--warm); }
.step-no { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── Shop listing ────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.shop-layout > *, .account-layout > *, .cart-layout > *, .pdp > * { min-width: 0; }
.filters { position: sticky; top: 92px; }
.filters h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.filter-list { list-style: none; margin: 0 0 24px; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); }
.filter-list a:hover { background: var(--warm); }
.filter-list a.active { background: var(--ink); color: #fff; }
.filter-list a span { color: inherit; opacity: .6; font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 6px 2px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar h1 { font-size: 28px; margin: 0; }
.select { height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 36px 0 16px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.empty { text-align: center; padding: 64px 20px; border-radius: var(--radius); background: var(--warm); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-weight: 500; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: #d6d6d6; background: var(--warm); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border-color: transparent; }

/* ── Product page ───────────────────────────────────────── */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-media { border-radius: 22px; overflow: hidden; background: var(--warm); aspect-ratio: 1; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(24px, 3vw, 34px); }
.pdp-price { font-size: 30px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.pdp-unit { color: var(--muted); font-size: 14px; }
.pdp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 24px 0; }
.fact { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warm); }
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact b { color: var(--ink); font-weight: 600; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--amber); }
.stock-out { color: var(--red-dark); }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 100%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.qty button:hover { background: var(--warm); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 52px; height: 100%; border: none; text-align: center; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 38px; }
.qty-sm button { width: 36px; }
.qty-sm input { width: 40px; }
.pdp-total { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose { color: var(--text); line-height: 1.7; }
.prose img { border-radius: var(--radius-sm); margin: 12px 0; max-width: 100%; height: auto; }
/* images placed left / right of the text in the CRM editor */
.prose img[style*="float: left"], .prose img[style*="float:left"] { margin: 4px 18px 10px 0; }
.prose img[style*="float: right"], .prose img[style*="float:right"] { margin: 4px 0 10px 18px; }
.prose::after { content: ''; display: block; clear: both; }
@media (max-width: 560px) { .prose img[style*="float"] { float: none !important; width: 100% !important; margin: 12px 0; } }
.prose ul, .prose ol { padding-left: 1.2em; }

/* ── Cart / checkout ─────────────────────────────────────── */
.page-title { padding: 32px 0 8px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--warm); }
.cart-line .name { font-weight: 600; color: var(--ink); }
.cart-line .meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cart-line .line-right { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 10px; }
.remove-btn { border: none; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 0; }
.remove-btn:hover { color: var(--red); }
.warn { font-size: 13px; color: var(--amber); margin-top: 6px; }
.summary { position: sticky; top: 92px; padding: 24px; border-radius: 20px; background: var(--warm); }
.summary h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.sum-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid #e6e1d6; margin-top: 10px; padding-top: 14px; font-size: 17px; }
.sum-total b { font-size: 20px; }
.summary .btn { margin-top: 18px; }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.form-card { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; margin-bottom: 20px; }
.form-card h3 { display: flex; align-items: center; gap: 10px; }
.form-card h3 .step-no { width: 28px; height: 28px; font-size: 14px; margin: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.input, .textarea, .field select { width: 100%; height: 48px; border-radius: 12px; border: 1px solid #e2e2e2; padding: 0 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 48, 43, .12); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid #e2e2e2; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #cfcfcf; }
.option input { position: absolute; opacity: 0; }
.option:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.option .icon { color: var(--red); margin-top: 2px; }
.option b { display: block; color: var(--ink); }
.option span { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--warm); gap: 4px; }
.seg label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.hidden { display: none !important; }

/* ── Order page ──────────────────────────────────────────── */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-amber { background: var(--amber-soft); color: var(--amber); }
.st-blue { background: var(--blue-soft); color: var(--blue); }
.st-green { background: var(--green-soft); color: var(--green); }
.st-red { background: var(--red-soft); color: var(--red-dark); }
.st-gray { background: #f1f1f1; color: #555; }
.pay-card { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); margin-bottom: 24px; }
.pay-card h3 { color: var(--ink); margin-top: 0; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-of-type { border-bottom: none; }
.pay-row span { color: var(--muted); font-size: 13px; }
.pay-row b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.copy-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; height: 28px; padding: 0 11px; font-size: 12px; cursor: pointer; margin-left: 8px; }
.copy-btn:hover { border-color: var(--red); color: var(--red); }
.deadline { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 14px; margin-top: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 1px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.timeline b { display: block; color: var(--ink); font-weight: 600; }
.timeline span { font-size: 13px; color: var(--muted); }
.items-mini { list-style: none; margin: 0; padding: 0; }
.items-mini li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items-mini li:last-child { border-bottom: none; }
.items-mini img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--warm); }

/* ── Account ─────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; }
.account-nav a:hover { background: var(--warm); }
.account-nav a.active { background: var(--ink); color: #fff; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .15s; }
.order-row:hover { border-color: #d6d6d6; }
.order-row .no { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.addr { padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.addr b { color: var(--ink); }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* ── Auth ────────────────────────────────────────────────── */

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); margin-top: 72px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; display: flex; gap: 10px; align-items: center; transition: opacity .2s, transform .2s; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--yellow); font-weight: 600; margin-left: 4px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search { display: none; }
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 44px; }
    .hero-art { max-width: 300px; order: -1; }
    .shop-layout, .account-layout, .pdp, .cart-layout { grid-template-columns: 1fr; gap: 24px; }
    .filters, .summary { position: static; }
    .steps { grid-template-columns: 1fr; }
    .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); display: none; margin: 0; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 14px; }
    .menu-toggle { display: inline-flex; }
    .header-row { gap: 12px; }
    .brand img { height: 38px; }
    .account-nav { flex-direction: row; overflow-x: auto; }
    .filters h4 { display: none; }
    .filter-list { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
    .filter-list a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; gap: 6px; padding: 7px 14px; }
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .section { padding-block: 40px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .option-grid, .pdp-facts { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-line img { width: 72px; height: 72px; }
    .cart-line .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .order-row { grid-template-columns: 1fr auto; }
    .order-row .hide-sm { display: none; }
    .icon-btn .label { display: none; }
    .add-btn { width: 36px; height: 36px; }
    .price { font-size: 15px; }
}

/* ── Hero story slider ───────────────────────────────────── */
.hero-slider { padding: 0; }
.hero-slider .container { position: relative; display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 470px; padding: 44px 0 92px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.hero-slide .hero-copy > * { transform: translateY(14px); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.hero-slide.is-active .hero-copy > * { transform: none; opacity: 1; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.hero-visual { justify-self: center; width: 100%; max-width: 440px; transform: scale(.94); transition: transform .8s ease; }
.hero-slide.is-active .hero-visual { transform: none; }
.art { width: 100%; height: auto; display: block; overflow: visible; }
.hero-steps { position: absolute; left: 20px; right: 20px; bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-step { border: none; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; font-family: inherit; }
.hero-step .bar { display: block; height: 3px; border-radius: 3px; background: rgba(22, 22, 22, .12); overflow: hidden; margin-bottom: 8px; }
.hero-step .bar i { display: block; height: 100%; width: 0; background: var(--red); }
.hero-step.is-done .bar i { width: 100%; }
.hero-step.is-active { color: var(--ink); }
.hero-step.is-active .bar i { animation: stepbar var(--slide-ms, 5500ms) linear forwards; }
.hero-slider.paused .hero-step.is-active .bar i { animation-play-state: paused; }
@keyframes stepbar { to { width: 100%; } }

/* Illustration motion: only the visible slide animates */
.hero-slide.is-active .belt { animation: belt 12s linear infinite; } /* one full set of 4 ingredients (240px) per loop */
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-240px); } }
.hero-slide.is-active .belt .ing { animation: ingHop .55s ease-in-out infinite alternate; }
.hero-slide.is-active .belt > g:nth-child(even) .ing { animation-delay: .27s; }
@keyframes ingHop { from { transform: translateY(0) scale(1.04, .96); } to { transform: translateY(-4px) scale(.98, 1.02); } }
.hero-slide.is-active .smoke circle { animation: smoke 3s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.hero-slide.is-active .smoke circle:nth-child(2) { animation-delay: .6s; }
.hero-slide.is-active .smoke circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1.15); } }
.hero-slide.is-active .road { animation: road 1s linear infinite; }
@keyframes road { from { transform: translateX(0); } to { transform: translateX(-70px); } }
.hero-slide.is-active .wheel { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-slide.is-active .truck { animation: bump .5s ease-in-out infinite alternate; }
@keyframes bump { to { transform: translateY(-3px); } }
.hero-slide.is-active .clouds { animation: clouds 8s linear infinite; }
@keyframes clouds { from { transform: translateX(40px); } to { transform: translateX(-60px); } }
.hero-slide.is-active .tag { animation: swing 2.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.hero-slide.is-active .drops circle { animation: drop 2.1s ease-in infinite; }
.hero-slide.is-active .drops circle:nth-child(2) { animation-delay: .7s; }
.hero-slide.is-active .drops circle:nth-child(3) { animation-delay: 1.4s; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: translateY(190px); opacity: 1; } 100% { transform: translateY(205px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide .hero-copy > *, .hero-visual { transition: none; }
    .hero-slide .belt, .hero-slide .belt .ing, .hero-slide .factory-body, .hero-slide .smoke circle, .hero-slide .road, .hero-slide .wheel, .hero-slide .truck, .hero-slide .clouds, .hero-slide .tag, .hero-slide .drops circle, .hero-step .bar i { animation: none !important; }
}

/* ── Sold label on best sellers ──────────────────────────── */

/* ── Banners from the CRM ────────────────────────────────── */
.banner-rotator { position: relative; display: grid; }
.banner-rotator > .banner { grid-area: 1 / 1; transition: opacity .6s ease, visibility 0s linear .6s; }
.banner-rotator > .banner.is-hidden { opacity: 0; visibility: hidden; }
.banner-rotator > .banner.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.banner { position: relative; display: flex; align-items: center; gap: 28px; min-height: 180px; padding: 32px 40px; border-radius: 22px; overflow: hidden; background: var(--bn-bg); color: var(--bn-fg); }
.banner h3 { color: inherit; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.banner p { margin: 0; opacity: .82; max-width: 520px; }
.banner-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.banner-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--bn-fg); color: var(--bn-bg); font-weight: 600; font-size: 14px; }
.banner-btn .icon { width: 16px; height: 16px; }
a.banner:hover .banner-btn { opacity: .9; }
.banner-img { width: 38%; max-height: 200px; object-fit: cover; border-radius: 16px; position: relative; z-index: 1; }
.banner-image-only { padding: 0; min-height: 0; }
.banner-full { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.banner-deco { position: absolute; right: -30px; top: 50%; width: 240px; height: 240px; transform: translateY(-50%); border-radius: 50%; background: color-mix(in srgb, var(--bn-fg) 10%, transparent); }
.banner-deco i { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--bn-fg); opacity: .85; }
.banner-deco i:nth-child(1) { left: 40px; top: 60px; }
.banner-deco i:nth-child(2) { left: 90px; top: 120px; width: 24px; height: 24px; }
.banner-deco i:nth-child(3) { left: 30px; top: 150px; width: 18px; height: 18px; }
.grid-banner { grid-column: 1 / -1; margin: 6px 0; }

/* ── Cart drawer ─────────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(22, 22, 22, .35); z-index: 90; opacity: 0; transition: opacity .25s; }
.drawer-backdrop.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; z-index: 95; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; box-shadow: -20px 0 40px rgba(0, 0, 0, .12); outline: none; }
.drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--warm); }
.drawer-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-line:last-child { border-bottom: none; }
.drawer-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--warm); }
.drawer-line .name { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-line .meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.drawer-line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.drawer-empty { text-align: center; padding: 56px 10px; color: var(--muted); }
.drawer-empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 860px) {
    .hero-slide { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding: 24px 0 84px; }
    .hero-visual { max-width: 260px; order: -1; }
    .hero-steps { gap: 8px; bottom: 22px; }
    .hero-step .label { font-size: 11px; }
    .banner { padding: 24px; flex-direction: column; align-items: flex-start; }
    .banner-img { width: 100%; max-height: 180px; }
    .banner-deco { display: none; }
}
@media (max-width: 560px) {
    .hero-step .label { display: none; }
}

/* ── Logo: bigger than the bar, hanging tab, playful motion ─ */
.site-header .header-row { align-items: center; }
.brand { position: relative; z-index: 2; align-self: flex-start; display: block; margin-bottom: -30px; padding: 8px 16px 12px; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 12px 28px rgba(22, 22, 22, .10); transition: padding .3s ease, margin .3s ease, box-shadow .3s ease, border-radius .3s ease; animation: logoDrop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.brand img { height: 78px; width: auto; transition: height .3s ease; transform-origin: 30% 80%; }
.brand:hover img { animation: logoWiggle .7s ease; }
.site-header.is-scrolled .brand { align-self: center; margin-bottom: 0; padding: 0; box-shadow: none; background: transparent; }
.site-header.is-scrolled .brand img { height: 44px; }
@keyframes logoDrop { 0% { transform: translateY(-40px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes logoWiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-4deg) scale(1.04); } 50% { transform: rotate(3deg) scale(1.05); } 75% { transform: rotate(-1.5deg) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .brand, .brand:hover img { animation: none; } }

/* ── Blog ────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--yellow-soft); }
.news-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-media-fallback { position: absolute; inset: 0; display: block; background: radial-gradient(circle at 70% 40%, var(--yellow) 0 30%, transparent 31%); }
.news-media-fallback i { position: absolute; border-radius: 50%; background: var(--ink); }
.news-media-fallback i:nth-child(1) { width: 34px; height: 34px; left: 58%; top: 26%; }
.news-media-fallback i:nth-child(2) { width: 24px; height: 24px; left: 70%; top: 48%; }
.news-media-fallback i:nth-child(3) { width: 16px; height: 16px; left: 60%; top: 56%; }
.news-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.news-body h3 a:hover { color: var(--red); }
.news-body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.news-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: 12px; font-weight: 600; }
a.news-tag:hover { background: var(--red); color: #fff; }
.news-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-bottom: 8px; }
.news-featured .news-media { aspect-ratio: 16 / 9; }
.news-featured .news-body { padding: 0; gap: 10px; }
.news-featured .news-body h3 { font-size: clamp(22px, 2.6vw, 30px); }
.news-featured .news-body p { flex: 0; font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.tag-row a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.tag-row a span { opacity: .55; margin-left: 2px; }
.tag-row a:hover { border-color: #d6d6d6; background: var(--warm); }
.tag-row a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-head { max-width: 780px; padding-top: 32px; }
.post-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 12px; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.post-cover { max-width: 1000px; margin: 0 auto 32px; border-radius: 24px; overflow: hidden; background: var(--warm); }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.post-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.post-body h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.post-body p { margin: 0 0 1.1em; }
.post-body img { border-radius: 16px; margin: 1.4em auto; height: auto; }
.post-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow); color: var(--ink); font-size: 19px; }
.post-share { max-width: 720px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-share .icon { width: 16px; height: 16px; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
    /* logo centred between the menu button and the icons; `translate` keeps clear of the logo animations' transform */
    .header-row { position: relative; }
    .brand { position: absolute; left: 50%; top: 0; translate: -50% 0; margin-bottom: 0; padding: 6px 12px 10px; border-radius: 0 0 18px 18px; }
    .site-header.is-scrolled .brand { top: 50%; translate: -50% -50%; }
    .brand img { height: 70px; }
    .site-header.is-scrolled .brand img { height: 40px; }
    .news-featured { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
    .brand img { height: 66px; }
    .post-body { font-size: 16px; }
}

/* Room for the hanging logo tab on pages that start with content right under the header */
main > .container:first-child:not(.section-sm) { padding-top: 28px; }
@media (max-width: 860px) { main > .container:first-child:not(.section-sm) { padding-top: 18px; } }

/* ── Home: order process (minimal status progress bar) ────── */
/* Fills in once on scroll (.is-visible). Hovering / tapping a step (.is-active) shows progress up to it. */
.process-title { margin: 8px 0 28px; text-align: center; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.01em; color: var(--red); }
.process-title span { position: relative; z-index: 0; white-space: nowrap; }
.process-title span::after { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 0; height: 36%; border-radius: 6px; background: var(--yellow); transform: rotate(-2deg); }
.process-track { --p: 1; --dot: 44px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-track::before, .process-track::after { content: ''; position: absolute; top: calc(var(--dot) / 2 - 1px); left: 10%; right: 10%; height: 2px; border-radius: 2px; background: var(--line); }
.process-track::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 2s ease .2s; }
[data-process].is-visible .process-track::after { transform: scaleX(var(--p)); }
[data-process].is-done .process-track::after { transition: transform .35s ease; }
.process-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; cursor: default; outline: none; transition: opacity .25s ease; }
.process-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: var(--dot); height: var(--dot); margin-bottom: 10px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--muted); transition: background .3s, border-color .3s, color .3s, transform .25s ease, box-shadow .25s ease; }
.process-dot .icon { width: 24px; height: 24px; }
.process-no { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.process-step b { font-size: 14px; font-weight: 600; transition: color .2s; }
.process-step p { margin: 0; font-size: 13px; color: var(--muted); max-width: 200px; }
[data-process].is-visible .process-dot { background: var(--red); border-color: var(--red); color: #fff; }
[data-process].is-visible .process-step:nth-child(2) .process-dot { transition-delay: .7s; }
[data-process].is-visible .process-step:nth-child(3) .process-dot { transition-delay: 1.2s; }
[data-process].is-visible .process-step:nth-child(4) .process-dot { transition-delay: 1.7s; }
[data-process].is-visible .process-step:nth-child(5) .process-dot { transition-delay: 2.2s; }
[data-process].is-done .process-track .process-step .process-dot { transition-delay: 0s; }
/* selected step */
.process-step.is-active .process-dot { transform: scale(1.12); box-shadow: 0 0 0 6px var(--red-soft); }
.process-step.is-active .process-dot .icon { animation: processIcon .5s ease; }
.process-step.is-active b { color: var(--red); }
.process-step.is-active ~ .process-step { opacity: .45; }
.process-step.is-active ~ .process-step .process-dot { background: #fff; border-color: var(--line); color: var(--muted); }
.process-step:focus-visible .process-dot { box-shadow: 0 0 0 6px var(--red-soft); }
@keyframes processIcon { 30% { transform: translateY(-3px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } 100% { transform: none; } }
.process-detail { display: none; }
@media (max-width: 760px) {
    .process-title { margin-bottom: 20px; }
    .process-track { --dot: 38px; gap: 4px; }
    .process-dot { margin-bottom: 8px; }
    .process-dot .icon { width: 21px; height: 21px; }
    .process-step { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .process-step b { font-size: 11px; line-height: 1.3; }
    .process-step p { display: none; }
    .process-no { font-size: 10px; }
    .process-detail { display: block; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warm); font-size: 13px; color: var(--muted); text-align: center; min-height: 44px; }
    .process-detail b { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
    [data-process] .process-track::after, [data-process] .process-dot, .process-step { transition: none !important; }
    .process-step.is-active .process-dot .icon { animation: none; }
}

/* ── Header search: live suggestions ─────────────────────── */
.header-search input { padding-right: 40px; transition: border-color .2s, background .2s, box-shadow .2s; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search.is-open input { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(214, 48, 43, .10); }
.search-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 600 12px/20px var(--font); text-align: center; pointer-events: none; }
.header-search.is-open .search-kbd, .header-search input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.search-close, .search-toggle { display: none; }
.search-panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(520px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(22, 22, 22, .16), 0 2px 6px rgba(22, 22, 22, .05); animation: spIn .18s ease; }
.search-panel[hidden] { display: none; }
@keyframes spIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.sp-section { padding: 6px 4px; }
.sp-section + .sp-section { border-top: 1px solid var(--line); }
.sp-title { padding: 6px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); transition: background .12s; }
.sp-item:hover, .sp-item.is-active, .sp-chip.is-active, .sp-more.is-active { background: var(--warm); }
.sp-item.is-active { box-shadow: inset 3px 0 0 var(--red); }
.sp-product img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--warm); flex-shrink: 0; }
.sp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-name { font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-meta { font-size: 12px; color: var(--muted); }
.sp-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 14px; white-space: nowrap; }
.sp-price small { font-size: 11px; color: var(--muted); }
.sp-out { margin-top: 2px; padding: 1px 7px; border-radius: 999px; background: #f1f1f1; color: #666; font-size: 10px; font-weight: 600; }
.sp-product.is-out img { filter: grayscale(.7); opacity: .7; }
.search-panel mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: inset 0 -2px 0 var(--yellow); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 6px; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s; }
.sp-chip .icon { width: 14px; height: 14px; color: var(--red); }
.sp-chip small { color: var(--muted); font-size: 11px; }
.sp-chip:hover { border-color: var(--red); background: var(--red-soft); }
.sp-recent-row { display: flex; align-items: center; }
.sp-recent { flex: 1; font-size: 14px; padding: 7px 8px; }
.sp-recent .icon { width: 16px; height: 16px; color: var(--muted); }
.sp-remove { border: none; background: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); opacity: .6; }
.sp-remove .icon { width: 14px; height: 14px; }
.sp-remove:hover { opacity: 1; background: var(--warm); color: var(--ink); }
.sp-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 4px 2px; padding: 12px 14px; border-radius: 12px; background: var(--red); color: #fff; font-size: 14px; transition: background .15s; }
.sp-more:hover, .sp-more.is-active { background: var(--red-dark); }
.sp-more .icon { width: 18px; height: 18px; transition: transform .2s; }
.sp-more:hover .icon, .sp-more.is-active .icon { transform: translateX(3px); }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px 14px; text-align: center; color: var(--text); font-size: 14px; }
.sp-empty > .icon { width: 30px; height: 30px; color: var(--red); margin-bottom: 4px; }
.sp-empty small { color: var(--muted); font-size: 12px; }
.sp-error { color: var(--amber); }
.sp-skel { height: 56px; margin: 6px 4px; border-radius: 12px; background: linear-gradient(90deg, #f4f1ea 25%, #fbf9f5 50%, #f4f1ea 75%); background-size: 200% 100%; animation: spShimmer 1.1s linear infinite; }
@keyframes spShimmer { to { background-position: -200% 0; } }

/* phones / tablets: a search button in the header opens the box under the bar */
@media (max-width: 1024px) {
    .search-toggle { display: inline-flex; }
    .search-open .header-search { display: block; position: fixed; z-index: 70; top: 0; left: 0; right: 0; flex: none; padding: 14px 16px; background: #fff; box-shadow: 0 0 0 100vmax rgba(22, 22, 22, .35); animation: spIn .18s ease; } /* the shadow dims the page */
    .search-open .header-search > .icon { left: 30px; top: 25px; }
    .search-open .header-search input { padding-right: 52px; font-size: 16px; }
    .search-open .search-kbd { display: none; }
    .search-open .search-close { display: inline-flex; position: absolute; right: 22px; top: 18px; width: 36px; height: 36px; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--warm); cursor: pointer; color: var(--ink); }
    .search-open .search-panel { position: static; width: auto; max-height: calc(100vh - 100px); margin-top: 10px; box-shadow: none; border: none; padding: 0; border-radius: 0; animation: none; }
}
@media (prefers-reduced-motion: reduce) { .search-panel, .sp-skel, .search-open .header-search { animation: none; } }

/* ── Header fit on tablets / phones ──────────────────────── */
/* 861–1024px: the search button sits just left of the account / cart icons */
@media (max-width: 1024px) {
    .search-toggle { order: 5; margin-left: auto; }
    .header-actions { order: 6; margin-left: 0; }
    .main-nav { margin-right: 0; }
}
/* up to 860px the logo is centred: menu + search on the left, account + cart on the right */
@media (max-width: 860px) {
    .search-toggle { order: 0; margin-left: 0; }
    .header-actions { margin-left: auto; }
    .header-actions .icon-btn .label { display: none; }
}
/* phones: compact icons; the logo grows with the screen but always fits between the icon pairs */
@media (max-width: 560px) {
    .header-row { gap: 4px; }
    .header-row .icon-btn { height: 38px; min-width: 38px; padding: 0 8px; }
    .header-actions { gap: 0; }
    .brand { padding: 6px 8px 10px; }
    .brand img { height: clamp(40px, calc((100vw - 212px) / 3.06), 66px); }
    .site-header.is-scrolled .brand img { height: clamp(34px, calc((100vw - 212px) / 3.06), 40px); }
}

/* ── Navigation: clearer hover and active tab ─────────────── */
.main-nav a { transition: background .15s, color .15s; }
.main-nav a:hover { color: var(--ink); background: #f1eadc; }
.main-nav a.active { color: var(--red-dark); background: var(--red-soft); font-weight: 600; }
.main-nav a.active:hover { background: #f9d9d6; }
/* ── Trainings (training.php, training-item.php, training-order.php) ── */
.tr-hero { padding: 56px 0 36px; background: radial-gradient(circle at 85% 20%, var(--yellow-soft) 0 22%, transparent 23%), linear-gradient(180deg, var(--warm), #fff); text-align: center; }
.tr-hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; margin: 14px auto 14px; max-width: 760px; letter-spacing: -.02em; }
.tr-hero h1 span { color: var(--red); position: relative; white-space: nowrap; }
.tr-hero h1 span::after { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 4px; height: 32%; border-radius: 6px; background: var(--yellow); transform: rotate(-1.5deg); }
.tr-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.tr-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--red-dark); }
.tr-eyebrow .icon { width: 16px; height: 16px; }
.tr-eyebrow--dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.tr-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tr-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 14px; transition: border-color .15s, transform .15s; }
.tr-jump a:hover { border-color: var(--red); transform: translateY(-1px); }
.tr-jump .icon { width: 18px; height: 18px; color: var(--red); }
.tr-alt { background: var(--warm); }
[id="online"], [id="inperson"], [id="franchise"] { scroll-margin-top: 90px; }

.tr-plans { display: grid; gap: 22px; align-items: stretch; }
.tr-plans--1 { grid-template-columns: minmax(0, 460px); }
.tr-plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.tr-plan:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22, 22, 22, .09); }
.tr-plan--featured { border: 2px solid var(--red); }
.tr-badge { position: absolute; top: -12px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.tr-plan-head { display: flex; align-items: center; gap: 14px; }
.tr-plan-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); flex-shrink: 0; }
.tr-plan-icon .icon { width: 24px; height: 24px; }
.tr-plan-kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tr-plan h3 { font-size: 24px; margin: 2px 0 0; }
.tr-plan-sum { color: var(--muted); font-size: 14px; margin: 14px 0 0; min-height: 42px; }
.tr-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.tr-price b { font-size: 32px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.tr-price span { color: var(--muted); font-size: 14px; }
.tr-price del { color: var(--muted); font-size: 15px; }
.tr-price .tr-off { align-self: center; padding: 3px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.tr-next { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.tr-next svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--green); }
.tr-next--none { background: var(--warm); color: var(--muted); }
.tr-next--none svg { color: var(--muted); }
.tr-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.tr-facts span { display: inline-flex; align-items: center; gap: 6px; }
.tr-facts .icon { width: 16px; height: 16px; }
.tr-features { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tr-features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text); }
.tr-features .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); stroke-width: 2.6; }
.tr-features--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; border-top: none; padding-top: 0; margin-bottom: 0; }

/* VIP: dark premium card */
.tr-plan--vip { background: linear-gradient(160deg, #1d1b18, #2b261c); border-color: #3a3326; color: #f2ede3; }
.tr-plan--vip .tr-plan-icon { background: rgba(246, 214, 94, .14); color: var(--yellow); }
.tr-plan--vip .tr-plan-kind, .tr-plan--vip .tr-plan-sum, .tr-plan--vip .tr-facts, .tr-plan--vip .tr-price span { color: #b9b09d; }
.tr-plan--vip h3, .tr-plan--vip .tr-price b { color: var(--yellow); }
.tr-plan--vip .tr-features { border-color: #4a4232; }
.tr-plan--vip .tr-features li { color: #e9e3d6; }
.tr-plan--vip .tr-features .icon { background: rgba(246, 214, 94, .16); color: var(--yellow); }
.tr-plan--vip .tr-badge { background: var(--yellow); color: var(--ink); }
.btn-gold { background: var(--yellow); color: var(--ink); }
.btn-gold:hover { background: #f0c935; }

/* Franchise band */
.tr-franchise { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px; background: var(--yellow-soft); border: 1px solid #f3e6b3; }
.tr-franchise h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 10px; }
.tr-franchise p { color: var(--text); margin: 0 0 6px; }
.tr-franchise .tr-features { background: #fff; padding: 24px; border-radius: 20px; }

/* Detail page */
.tr-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; margin-top: 12px; }
.tr-cover { position: relative; aspect-ratio: 16 / 7; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 75% 35%, var(--yellow) 0 28%, transparent 29%), var(--warm); }
.tr-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tr-cover img + .tr-cover-icon { display: none; }
.tr-cover--vip { background: radial-gradient(circle at 75% 35%, rgba(246, 214, 94, .35) 0 28%, transparent 29%), linear-gradient(160deg, #1d1b18, #2b261c); }
.tr-cover--vip .tr-cover-icon { background: rgba(246, 214, 94, .14); color: var(--yellow); }
.tr-cover-icon { width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--red); box-shadow: var(--shadow); }
.tr-cover-icon .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.tr-cover .tr-badge { top: 18px; right: 18px; }
.tr-title { font-size: clamp(28px, 3.6vw, 40px); margin: 4px 0 10px; }
.tr-title span { color: var(--red); }
.tr-lead { font-size: 17px; color: var(--muted); margin: 0 0 10px; }
.tr-facts--lg { font-size: 14px; margin-bottom: 20px; }
.tr-desc { color: var(--text); line-height: 1.75; margin-top: 18px; }
.tr-order { position: sticky; top: 96px; }
.tr-price--lg { margin-top: 0; }
.tr-price--lg b { font-size: 34px; }
.tr-order .qty { height: 44px; }
.tr-message { border: 1px solid #abefc6; background: var(--green-soft); }
.tr-message h3 { display: flex; align-items: center; gap: 8px; color: var(--green); }
.timeline li.is-next b { color: var(--muted); font-weight: 500; }
.timeline li.is-next::after { border-color: var(--line); }

@media (max-width: 1024px) {
    .tr-plans--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tr-detail { grid-template-columns: 1fr; }
    .tr-order { position: static; }
}
@media (max-width: 760px) {
    .tr-plans--2, .tr-plans--3 { grid-template-columns: 1fr; }
    .tr-franchise { grid-template-columns: 1fr; padding: 26px 20px; gap: 22px; }
    .tr-features--grid { grid-template-columns: 1fr; }
    .tr-hero { padding: 40px 0 26px; }
    .tr-hero p { font-size: 15px; }
    .tr-plan { padding: 24px 20px; }
    .tr-cover { aspect-ratio: 16 / 9; }
}

/* ── Login / register / forgot / verify / reset ─────────────── */
.auth-page { background: radial-gradient(circle at 12% 18%, var(--yellow-soft) 0 18%, transparent 19%), var(--warm); }
.auth-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; width: 100%; max-width: 940px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(22, 22, 22, .10), 0 2px 6px rgba(22, 22, 22, .04); }
.auth-side { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.auth-side::before, .auth-side::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.auth-side::before { width: 320px; height: 320px; right: -120px; bottom: -110px; }
.auth-side::after { width: 160px; height: 160px; left: -50px; top: -60px; background: rgba(246, 214, 94, .25); }
.auth-side-inner { position: relative; z-index: 1; padding: 44px 38px; display: flex; flex-direction: column; height: 100%; }
.auth-mascot { width: 112px; height: 112px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: logoDrop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.auth-side h2 { color: #fff; font-size: 30px; line-height: 1.15; margin: 24px 0 10px; }
.auth-side p { color: rgba(255, 255, 255, .85); margin: 0 0 26px; }
.auth-perks { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.auth-perks .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.auth-main { padding: 44px 44px 36px; }
.auth-main h1 { font-size: 28px; margin: 0 0 6px; }
.auth-lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.auth-flash { margin: 0 0 18px; }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.input-prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: none; border-radius: 12px 0 0 12px; background: var(--warm); color: var(--muted); font-weight: 500; font-size: 14px; }
.input-prefix + .input { border-radius: 0 12px 12px 0; }
.input-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; border-radius: 10px; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.input-eye:hover, .input-eye.is-on { color: var(--red); background: var(--red-soft); }
.input-group .input-eye ~ .input, .input-group .input:has(+ .input-eye) { padding-right: 48px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg-block { display: flex; width: 100%; }
.seg-block label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg-block .icon { width: 18px; height: 18px; }
.link-btn { border: none; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* verify step */
.verify-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.verify-steps li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--warm); font-size: 13px; color: var(--text); }
.verify-steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.verify-steps b { color: var(--ink); font-size: 15px; }
.verify-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 18px; flex-wrap: wrap; }
.verify-code span { width: 48px; height: 60px; border-radius: 14px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--ink); background: #fff; animation: codeIn .4s ease both; }
.verify-code span:nth-child(2) { animation-delay: .05s; } .verify-code span:nth-child(3) { animation-delay: .1s; }
.verify-code span:nth-child(4) { animation-delay: .15s; } .verify-code span:nth-child(5) { animation-delay: .2s; } .verify-code span:nth-child(6) { animation-delay: .25s; }
.verify-code .copy-btn { margin-left: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.verify-code .copy-btn:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 480px) { .verify-code .copy-btn { flex-basis: 100%; max-width: 160px; margin: 4px 0 0; } }
@keyframes codeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verify-sms .icon { width: 20px; height: 20px; }
.verify-cost { text-align: center; margin: 8px 0 0; }
.verify-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--warm); font-size: 14px; color: var(--text); }
.verify-status.is-ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
.verify-status.is-bad { background: var(--red-soft); color: var(--red-dark); }
.verify-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(168, 100, 10, .5); animation: vPulse 1.4s infinite; }
.verify-dot.is-off { background: var(--red); animation: none; }
.verify-status.is-ok .verify-dot { background: var(--green); animation: none; }
@keyframes vPulse { 70% { box-shadow: 0 0 0 10px rgba(168, 100, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 100, 10, 0); } }

@media (max-width: 820px) {

    .auth-shell { grid-template-columns: 1fr; border-radius: 24px; }
    .auth-side-inner { padding: 22px 22px; flex-direction: row; align-items: center; gap: 16px; }
    .auth-mascot { width: 64px; height: 64px; padding: 4px; flex-shrink: 0; }
    .auth-side h2 { font-size: 20px; margin: 0; }
    .auth-side h2 br { display: none; }
    .auth-side p, .auth-perks { display: none; }
    .auth-main { padding: 26px 20px 24px; }
    .auth-main h1 { font-size: 24px; }
}
@media (max-width: 420px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .verify-code span { width: 40px; height: 52px; font-size: 26px; }
    .verify-steps { grid-template-columns: 1fr; }
    .verify-steps li { flex-direction: row; align-items: center; }
}

/* sign-in pages run straight into the footer (no white gap) */
main:has(> .auth-page) + .site-footer { margin-top: 0; }
.company-found { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.company-found .icon { width: 18px; height: 18px; flex-shrink: 0; }
.company-found.is-ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
.company-found.is-bad { background: var(--red-soft); color: var(--red-dark); }
.company-found.is-wait { background: var(--warm); color: var(--muted); }

/* sign-in pages fit the window: the card fills the space under the header (capped on tall screens) */
.auth-page { display: flex; min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); padding: 40px 20px 24px; } /* top clears the hanging logo tab */
.auth-shell { margin: auto; max-width: 960px; } /* natural height, centred in the window */
.auth-main { display: flex; flex-direction: column; justify-content: center; }
.auth-main > form, .auth-main > .verify { width: 100%; }

/* phone number typed digit by digit (assets/js/shop.js turns input[data-digit-boxes] into boxes) */
.digits { display: flex; align-items: center; gap: 6px; }
.digits-prefix { flex: none; display: flex; align-items: center; height: 52px; padding: 0 10px; border-radius: 12px; background: var(--warm); color: var(--muted); font-weight: 600; font-size: 14px; }
.digit { flex: 1; min-width: 0; width: 100%; height: 52px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; font: 600 20px/1 var(--font); color: var(--ink); outline: none; caret-color: var(--red); transition: border-color .15s, box-shadow .15s, transform .15s; }
.digit:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214, 48, 43, .12); transform: translateY(-1px); }
.digit:not(:placeholder-shown), .digit.has-value { border-color: #d9d2c3; }
.digits-sep { flex: none; width: 8px; height: 2px; border-radius: 2px; background: var(--line); }
.digits.is-full .digit { border-color: #9fd8b5; background: #fbfefc; }
.hint.is-warn { color: var(--red-dark); }

@media (max-width: 820px) {
    .auth-page { padding: 16px; }
    .auth-shell { margin: 0 auto auto; }
    .auth-main { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .digits { gap: 4px; }
    .digits-prefix { display: none; }
    .digit { height: 48px; font-size: 19px; border-radius: 10px; }
    .digits-sep { width: 6px; }
}
/* compact spacing so the taller register card fits a normal laptop window too */
.auth-main { padding: 32px 44px 28px; }
.auth-main h1 { margin-bottom: 4px; }
.auth-lead { margin-bottom: 18px; }
.auth-main .field { margin-bottom: 12px; }
.auth-main .hint { margin-top: 4px; }
.auth-alt { margin-top: 16px; padding-top: 14px; }
.auth-main .digit, .auth-main .digits-prefix { height: 48px; }
@media (max-width: 820px) { .auth-main { padding: 22px 20px 20px; } }

/* ── Footer ──────────────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-block: 56px 44px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 18px 0 20px; max-width: 360px; }
.footer-logo { display: inline-flex; padding: 12px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 -3px 0 var(--yellow); transform: rotate(-2deg); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.footer-logo:hover { transform: rotate(0) scale(1.04); }
.footer-logo img { height: 46px; width: auto; }
.footer-social { display: flex; gap: 10px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .12); transition: transform .2s, background .2s, border-color .2s; }
.social .icon { width: 19px; height: 19px; }
.social:hover { transform: translateY(-3px); border-color: transparent; }
.social-fb:hover { background: #1877f2; }
.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-ph:hover { background: var(--red); }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-list a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .72); transition: color .15s, transform .15s; }
.footer-list a:hover { color: var(--yellow); transform: translateX(3px); }
.footer-list .icon { width: 14px; height: 14px; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); } /* full-width divider */
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-block: 18px; font-size: 13px; }
.footer-bottom a { color: #fff; font-weight: 500; }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom .voltx { font-weight: 700; letter-spacing: .02em; }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-block: 40px 28px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-bottom-row { flex-direction: column; align-items: flex-start; padding-block: 16px; }
}

/* ── Contact page ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 18px 40px rgba(22, 22, 22, .09); }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-size: 18px; line-height: 1.4; }
.contact-card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 14px; }
.contact-card .link .icon { width: 16px; height: 16px; }
.contact-social { margin-top: auto; padding-top: 10px; }
.contact-social .social { background: var(--warm); color: var(--ink); border-color: var(--line); }
.contact-social .social:hover { color: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.partner-card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.partner-card h3 { font-size: 18px; margin: 8px 0 0; }
.partner-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.partner-card .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.partner-card .link .icon { width: 16px; height: 16px; }
.partner-card--accent { background: var(--yellow-soft); border-color: #f3e6b3; }
#partner { scroll-margin-top: 80px; }
@media (max-width: 860px) { .contact-grid, .partner-grid { grid-template-columns: 1fr; } }

/* footer: four columns, working hours + big phone number */
.footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 40px; }
.footer-grid > div:not(.footer-brand):not(.footer-hours) { padding-top: 6px; }
.hours-card { padding: 18px 18px 8px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.hours-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #fff; font-weight: 600; font-size: 14px; }
.hours-head .icon { width: 18px; height: 18px; color: var(--yellow); }
.hours-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hours-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f97066; }
.hours-state.is-open { background: rgba(50, 213, 131, .14); color: #75e0a7; }
.hours-state.is-open::before { background: #32d583; box-shadow: 0 0 0 0 rgba(50, 213, 131, .6); animation: openPulse 1.8s infinite; }
@keyframes openPulse { 70% { box-shadow: 0 0 0 7px rgba(50, 213, 131, 0); } 100% { box-shadow: 0 0 0 0 rgba(50, 213, 131, 0); } }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed rgba(255, 255, 255, .12); font-size: 14px; }
.hours-row b { color: #fff; font-weight: 600; }
.hours-row b.off { color: #f97066; }
.hours-row.is-today span { color: var(--yellow); font-weight: 600; }
.footer-phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: .02em; line-height: 1; transition: color .15s; }
.footer-phone span { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 20px rgba(214, 48, 43, .35); transition: transform .2s; }
.footer-phone .icon { width: 22px; height: 22px; color: #fff; }
.footer-phone:hover { color: var(--yellow); }
.footer-phone:hover span { transform: rotate(-12deg) scale(1.06); }
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-brand, .footer-hours { grid-column: auto; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-hours { grid-column: 1 / -1; }
    .footer-phone { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .hours-state.is-open::before { animation: none; } }
@media (max-width: 860px) { .footer-brand, .footer-hours { grid-column: 1 / -1; } .footer-hours { max-width: 420px; } }

/* ── Delivery terms page (text from the CRM page Вэб хуудас) ── */
.delivery-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.delivery-fact { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.delivery-fact .contact-icon { margin: 0; flex-shrink: 0; }
.delivery-fact small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.delivery-fact b { display: block; font-size: 20px; color: var(--ink); margin: 2px 0; }
.delivery-fact span:not(.contact-icon) { display: block; font-size: 13px; color: var(--muted); }
.delivery-body { max-width: 820px; margin: 0; }
.delivery-body h2 { font-size: 22px; margin-top: 1.4em; }
.delivery-body h2:first-child { margin-top: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--warm); }
.delivery-updated { margin: 22px 0 0; }
.delivery-help { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 18px 20px; border-radius: 18px; background: var(--warm); font-weight: 500; max-width: 820px; }
@media (max-width: 860px) { .delivery-facts { grid-template-columns: 1fr; } }

/* ── Delivery map (assets/js/delivery-map.js) ─────────────── */
.mn-map-card { margin-bottom: 36px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mn-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mn-map-head h2 { font-size: 22px; margin: 0 0 4px; }
.mn-map-head p { margin: 0; }
.mn-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.mn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mn-legend i { display: inline-block; }
.lg-hub { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(214, 48, 43, .2); }
.lg-parcel { width: 11px; height: 11px; border-radius: 3px; background: var(--yellow); border: 1.5px solid var(--ink); }
.mn-map { position: relative; width: 100%; border-radius: 16px; background: linear-gradient(180deg, #fbf9f4, #fff); overflow: hidden; }
.mn-map canvas { display: block; width: 100%; touch-action: manipulation; }
.mn-tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); pointer-events: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mn-tip b { font-size: 15px; }
.mn-tip span { color: rgba(255, 255, 255, .85); }
.mn-tip small { color: var(--yellow); font-weight: 600; }
.mn-credit { margin: 8px 0 0; font-size: 11px; color: var(--muted); text-align: right; }
.mn-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) { .mn-map-card { padding: 16px; border-radius: 18px; } .mn-map-head h2 { font-size: 19px; } }

/* ── sbAlert pop-up (SweetAlert style) ───────────────────── */
.sa-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(22, 22, 22, 0); transition: background .2s; }
.sa-backdrop.is-open { background: rgba(22, 22, 22, .45); }
.sa-box { position: relative; width: 100%; max-width: 380px; padding: 30px 26px 22px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: hidden; transform: scale(.85); opacity: 0; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; }
.sa-backdrop.is-open .sa-box { transform: none; opacity: 1; }
.sa-box h2 { font-size: 21px; margin: 14px 0 6px; }
.sa-box p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sa-box h2 + .sa-ok { margin-top: 14px; }
.sa-icon { width: 74px; height: 74px; margin: 0 auto; }
.sa-icon svg { width: 100%; height: 100%; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sa-ring { stroke-dasharray: 151; stroke-dashoffset: 151; }
.sa-draw { stroke-dasharray: 48; stroke-dashoffset: 48; }
.sa-dot { opacity: 0; }
.sa-backdrop.is-open .sa-ring { animation: saDraw .5s ease forwards; }
.sa-backdrop.is-open .sa-draw { animation: saDraw .35s ease .4s forwards; }
.sa-backdrop.is-open .sa-dot { animation: saDot .2s ease .55s forwards; }
.sa-success svg { stroke: var(--green); } .sa-success .sa-ring { fill: var(--green-soft); }
.sa-error svg { stroke: var(--red); }     .sa-error .sa-ring { fill: var(--red-soft); }
.sa-info svg { stroke: var(--blue); }     .sa-info .sa-ring { fill: var(--blue-soft); } .sa-info .sa-dot { fill: var(--blue); stroke: none; }
.sa-warning svg { stroke: var(--amber); } .sa-warning .sa-ring { fill: var(--amber-soft); } .sa-warning .sa-dot { fill: var(--amber); stroke: none; }
.sa-timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--green); transform-origin: left; animation: saTimer linear forwards; }
@keyframes saDraw { to { stroke-dashoffset: 0; } }
@keyframes saDot { to { opacity: 1; } }
@keyframes saTimer { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .sa-box { transition: none; } .sa-ring, .sa-draw { stroke-dashoffset: 0 !important; animation: none !important; } .sa-dot { opacity: 1; } }

/* ── Footer: centred phone; a calmer layout on phones ──────── */
.footer-hours { display: flex; flex-direction: column; }
.footer-phone { align-self: center; justify-content: center; }
@media (max-width: 560px) {
    .footer-grid { gap: 28px 16px; padding-block: 36px 24px; }
    .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { margin: 16px auto 18px; }
    .footer-social { justify-content: center; }
    .footer-grid > div:not(.footer-brand):not(.footer-hours) { padding: 18px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
    .footer-list { gap: 12px; }
    .footer-hours { max-width: none; }
    .footer-phone { font-size: 26px; }
    .footer-bottom-row { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* map tooltip on phones: pinned to the bottom of the map instead of following the finger */
@media (max-width: 560px) {
    .mn-map { overflow: visible; }
    .mn-tip { position: static; margin-top: 10px; transform: none !important; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; box-shadow: none; }
}

/* delivery page: the map is the top banner */
.delivery-hero { padding: 36px 0 8px; background: radial-gradient(circle at 88% 12%, var(--yellow-soft) 0 16%, transparent 17%), linear-gradient(180deg, var(--warm), #fff 85%); }
.delivery-hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.delivery-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 8px; letter-spacing: -.02em; }
.delivery-hero-head p { max-width: 620px; margin: 0; color: var(--muted); }
.mn-map--hero { border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(22, 22, 22, .07); }
.lg-boba { width: 16px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M13 9 16 1' stroke='%23d6302b' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M4 10h16l-2 15H6z' fill='%23f5dcb4' stroke='%232b1d14' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M3.5 10a8.5 5 0 0 1 17 0z' fill='%23fff' stroke='%232b1d14' stroke-width='1.4'/%3E%3Ccircle cx='9' cy='21' r='1.4' fill='%233a2416'/%3E%3Ccircle cx='13' cy='22' r='1.4' fill='%233a2416'/%3E%3Ccircle cx='15' cy='19' r='1.4' fill='%233a2416'/%3E%3C/svg%3E"); }
@media (max-width: 560px) { .delivery-hero { padding-top: 22px; } .mn-map--hero { border-radius: 16px; } }
.mn-tip[hidden] { display: none !important; }
/* delivery map: edge to edge, no card */
.mn-map--hero { width: 100%; max-width: 1600px; margin: 8px auto 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.delivery-hero { padding-bottom: 0; }
@media (max-width: 560px) { .mn-map--hero { border-radius: 0; } .mn-map--hero .mn-tip { margin: 10px 16px 0; } }
/* delivery page: the terms text (from the CRM) is a centred column under the map */
.delivery-facts { max-width: 960px; margin-left: auto; margin-right: auto; }
.delivery-body, .delivery-help { margin-left: auto; margin-right: auto; }
.delivery-updated { text-align: center; }
.delivery-help { justify-content: center; }
.delivery-hero h1 { margin-top: 4px; }

/* delivery info cards: icon + text vertically centred, coloured accent per card */
.delivery-facts { gap: 18px; }
.delivery-fact { position: relative; align-items: center; gap: 18px; min-height: 124px; padding: 22px 24px; border-radius: 22px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; --df: var(--red); --df-soft: var(--red-soft); }
.delivery-fact--green { --df: var(--green); --df-soft: var(--green-soft); }
.delivery-fact--amber { --df: var(--amber); --df-soft: var(--amber-soft); }
.delivery-fact::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--df); }
.delivery-fact::after { content: ''; position: absolute; right: -36px; bottom: -46px; width: 120px; height: 120px; border-radius: 50%; background: var(--df-soft); opacity: .7; }
.delivery-fact:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22, 22, 22, .08); }
.delivery-fact > div { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.df-icon { position: relative; z-index: 1; flex-shrink: 0; width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--df-soft); color: var(--df); }
.df-icon .icon { width: 28px; height: 28px; }
.delivery-fact small { color: var(--df); letter-spacing: .06em; }
.delivery-fact b { font-size: 22px; line-height: 1.2; margin: 0; }
.delivery-fact span:not(.df-icon) { line-height: 1.45; }
@media (max-width: 860px) { .delivery-fact { min-height: 0; padding: 18px 20px; } }
.delivery-fact span.df-icon { display: flex; color: var(--df); font-size: inherit; }
.delivery-fact b { white-space: nowrap; font-size: clamp(18px, 1.6vw, 22px); }

/* ── Phone bottom navigation (like a mobile app) ─────────── */
.bottom-nav { display: none; }
@media (max-width: 860px) {
    .bottom-nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(22, 22, 22, .06); }
    .bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; color: var(--muted); font-size: 11px; font-weight: 500; -webkit-tap-highlight-color: transparent; transition: color .15s; }
    .bn-item .icon { width: 23px; height: 23px; transition: transform .2s; }
    .bn-item:active .icon { transform: scale(.88); }
    .bn-item.is-active { color: var(--red); font-weight: 600; }
    .bn-item.is-active::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
    .bn-icon { position: relative; display: inline-flex; }
    .bn-icon .cart-badge { top: -6px; right: -10px; }
    /* Нүүр: raised round button in the middle */
    .bn-home { justify-content: flex-end; padding-bottom: 9px; }
    .bn-home.is-active::before { display: none; }
    .bn-home-btn { position: absolute; top: -22px; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(214, 48, 43, .35); transition: transform .2s; }
    .bn-home-btn .icon { width: 24px; height: 24px; }
    .bn-home:not(.is-active) .bn-home-btn { background: var(--ink); box-shadow: 0 8px 20px rgba(22, 22, 22, .25); }
    .bn-home:active .bn-home-btn { transform: scale(.92); }
    /* profile and cart live in the bottom bar on phones */
    .header-actions { display: none; }
    /* keep page content, toasts and the footer clear of the bar */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .bn-item .icon, .bn-home-btn { transition: none; } }
/* phones: menu on the left, search on the right (account / cart are in the bottom bar) */
@media (max-width: 860px) { .search-toggle { order: 10; margin-left: auto; } }

/* slide 1: the factory bumps happily while it works (squash and stretch from its base) */
.hero-slide .factory-body { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-slide.is-active .factory-body { animation: factoryBump 1.1s cubic-bezier(.3, 0, .3, 1) infinite; }
@keyframes factoryBump { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.04, .94); } 55% { transform: scale(.97, 1.05); } 75% { transform: scale(1.01, .99); } }

/* ── Contact page ────────────────────────────────────────── */
.contact-hero { padding: 40px 0 8px; background: radial-gradient(circle at 90% 10%, var(--yellow-soft) 0 15%, transparent 16%), linear-gradient(180deg, var(--warm), #fff); }
.contact-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 8px; letter-spacing: -.02em; }
.contact-hero p { margin: 0; color: var(--muted); max-width: 560px; font-size: 16px; }
.contact-main { padding-top: 24px; padding-bottom: 28px; }
.contact-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.contact-col { display: flex; flex-direction: column; gap: 16px; }
/* big call button */
.c-call { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(246, 214, 94, .35) 0 30%, transparent 31%), linear-gradient(135deg, #e0453f, var(--red-dark)); box-shadow: 0 18px 40px rgba(214, 48, 43, .25); transition: transform .2s, box-shadow .2s; }
.c-call:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(214, 48, 43, .32); color: #fff; }
.c-call-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-call-icon .icon { width: 26px; height: 26px; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } }
.c-call-text { flex: 1; display: flex; flex-direction: column; }
.c-call-text small { font-size: 13px; opacity: .85; }
.c-call-text b { font-size: clamp(26px, 3vw, 34px); letter-spacing: .03em; line-height: 1.15; }
.c-call-go { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
.c-call:hover .c-call-go { transform: translateX(4px); }
/* address card */
.c-card { display: flex; gap: 16px; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.c-card-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-card-icon .icon { width: 24px; height: 24px; }
.c-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-card-body small, .c-social-btn small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-card-body b { font-size: 17px; line-height: 1.45; color: var(--ink); }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.c-actions .icon { width: 16px; height: 16px; }
/* social buttons */
.c-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-social-btn { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.c-social-btn > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: #fff; flex-shrink: 0; }
.c-fb > .icon { background: #1877f2; }
.c-ig > .icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.c-social-btn span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-social-btn:hover { transform: translateY(-2px); border-color: #d9d2c3; box-shadow: var(--shadow); }
/* working hours */
.c-hours { padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.c-hours-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.c-hours-head .c-card-icon { background: var(--amber-soft); color: var(--amber); }
.c-hours-head h2 { font-size: 20px; margin: 0 0 4px; }
.c-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--red-dark); font-weight: 500; }
.c-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.c-status.is-open { color: var(--green); }
.c-status.is-open i { background: #32d583; box-shadow: 0 0 0 0 rgba(50, 213, 131, .6); animation: openPulse 1.8s infinite; }
.c-week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.c-week li { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: 15px; color: var(--text); }
.c-week li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.c-week li.is-off b { color: var(--red); }
.c-week li.is-today { background: var(--yellow-soft); box-shadow: inset 3px 0 0 var(--yellow); font-weight: 600; }
.c-week em { font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
/* map */
.contact-map-wrap { padding-bottom: 8px; }
.contact-map { position: relative; height: 440px; border-radius: 28px; overflow: hidden; background: var(--warm); box-shadow: 0 20px 50px rgba(22, 22, 22, .1); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-card { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 14px; max-width: min(520px, calc(100% - 40px)); padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 14px 34px rgba(22, 22, 22, .18); }
.map-card img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.map-card div { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.map-card b { font-size: 15px; color: var(--ink); }
.map-card .btn { flex-shrink: 0; }
.map-card .btn .icon { width: 15px; height: 15px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .contact-hero { padding-top: 26px; }
    .c-call { padding: 18px; gap: 14px; border-radius: 20px; }
    .c-call-icon { width: 50px; height: 50px; }
    .c-card, .c-hours { padding: 18px; border-radius: 20px; }
    .c-social { grid-template-columns: 1fr; }
    .contact-map { height: 380px; border-radius: 20px; }
    .map-card { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-wrap: wrap; }
    .map-card .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .c-call-icon .icon, .c-status.is-open i { animation: none; } }
/* phones: the address card sits under the map so the pin stays visible */
@media (max-width: 560px) {
    .contact-map { height: auto; display: flex; flex-direction: column; background: #fff; }
    .contact-map iframe { position: relative; height: 300px; }
    .map-card { position: static; margin: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: #fff; }
}
/* desktop: both contact columns end at the same line */
@media (min-width: 901px) {
    .contact-layout { align-items: stretch; }
    .contact-col .c-card { flex: 1; align-items: center; }
    .c-hours { display: flex; flex-direction: column; }
    .c-week { flex: 1; justify-content: space-between; }
}

/* ── Хамтран ажиллах page (partner.php) ───────────────────── */
.partner-hero { padding: 44px 0 26px; text-align: center; background: radial-gradient(circle at 12% 20%, var(--yellow-soft) 0 14%, transparent 15%), radial-gradient(circle at 88% 70%, var(--red-soft) 0 12%, transparent 13%), linear-gradient(180deg, var(--warm), #fff); }
.partner-hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 10px; letter-spacing: -.02em; }
.partner-hero h1 span { color: var(--red); position: relative; z-index: 0; }
.partner-hero h1 span::after { content: ''; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 4px; height: 30%; border-radius: 6px; background: var(--yellow); transform: rotate(-2deg); }
.partner-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.partner-jump { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.partner-jump .icon { width: 18px; height: 18px; }
.jobs-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.way-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.way-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.way-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 18px 40px rgba(22, 22, 22, .09); color: var(--ink); }
.way-icon { width: 50px; height: 50px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.way-icon .icon { width: 24px; height: 24px; }
.way-card h3 { font-size: 17px; margin: 6px 0 0; }
.way-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.way-card .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.way-card .link .icon { width: 16px; height: 16px; transition: transform .2s; }
.way-card:hover .link .icon { transform: translateX(3px); }
.way-card--jobs { background: var(--ink); border-color: var(--ink); color: #fff; }
.way-card--jobs:hover { color: #fff; border-color: var(--yellow); }
.way-card--jobs .way-icon { background: rgba(246, 214, 94, .16); color: var(--yellow); }
.way-card--jobs p { color: rgba(255, 255, 255, .7); }
.way-card--jobs .link { color: var(--yellow); }
/* jobs */
.jobs-section { background: var(--warm); scroll-margin-top: 70px; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job { border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.job[open] { border-color: var(--red); box-shadow: 0 16px 36px rgba(22, 22, 22, .08); }
.job summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.job summary::-webkit-details-marker { display: none; }
.job-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--yellow-soft); color: var(--amber); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.job-icon .icon { width: 22px; height: 22px; }
.job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.job-main b { font-size: 18px; color: var(--ink); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.job-tags span { display: inline-flex; align-items: center; gap: 5px; }
.job-tags .icon { width: 15px; height: 15px; }
.job-deadline { color: var(--red-dark); font-weight: 500; }
.job-toggle { width: 36px; height: 36px; border-radius: 50%; background: var(--warm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s, background .2s; }
.job[open] .job-toggle { transform: rotate(45deg); background: var(--red); color: #fff; }
.job-body { padding: 0 20px 22px 82px; }
.job-summary { margin: 0 0 14px; color: var(--text); }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.job-cols h4 { font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.job-cols ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.7; }
/* form */
.partner-form-section { scroll-margin-top: 70px; }
.partner-form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(22, 22, 22, .08); }
.partner-form-side { padding: 40px 34px; color: #fff; background: radial-gradient(circle at 110% 110%, rgba(246, 214, 94, .35) 0 30%, transparent 31%), linear-gradient(160deg, var(--red), var(--red-dark)); }
.partner-form-side h2 { color: #fff; font-size: 28px; margin: 0 0 10px; }
.partner-form-side p { color: rgba(255, 255, 255, .85); margin: 0 0 24px; }
.pf-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 500; }
.pf-points li { display: flex; align-items: center; gap: 10px; }
.pf-points .icon { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .16); flex-shrink: 0; }
.pf-points a { color: #fff; text-decoration: underline; }
.partner-form { padding: 34px; }
.kind-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-chip input { position: absolute; opacity: 0; pointer-events: none; }
.kind-chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s; }
.kind-chip span:hover { border-color: var(--red); }
.kind-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.kind-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(214, 48, 43, .25); }
.field-error { margin-top: 5px; font-size: 13px; color: var(--red-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1024px) { .way-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .partner-form-wrap { grid-template-columns: 1fr; border-radius: 22px; }
    .partner-form-side { padding: 26px 22px; }
    .partner-form { padding: 22px 18px; }
    .job-body { padding: 0 18px 20px; }
    .job-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .way-grid { grid-template-columns: 1fr; } .job summary { padding: 16px; gap: 12px; } .job-icon { display: none; } }
.way-card--jobs h3 { color: #fff; }

/* ── Job application (apply.php) ─────────────────────────── */
.apply-hero { padding: 32px 0 10px; background: linear-gradient(180deg, var(--warm), #fff); }
.apply-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 6px; }
.apply-hero p { margin: 0; color: var(--muted); }
.apply-hero p b { color: var(--red); }
.apply-section { padding-top: 22px; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.apply-form { display: flex; flex-direction: column; gap: 18px; }
.apply-block { margin: 0; padding: 22px 24px 8px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.apply-block legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.apply-block legend + * { clear: both; }
.apply-block legend span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.apply-form select { width: 100%; }
.field.is-invalid .input, .field.is-invalid select, .field.is-invalid .textarea { border-color: var(--red); background: #fffafa; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--warm); font-size: 14px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.consent.is-invalid { box-shadow: inset 0 0 0 1px var(--red); }
.apply-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.apply-job { padding: 22px; border-radius: 22px; background: var(--ink); color: rgba(255, 255, 255, .8); }
.apply-job .job-icon { background: rgba(246, 214, 94, .16); color: var(--yellow); }
.apply-job h3 { color: #fff; font-size: 20px; margin: 12px 0 8px; }
.apply-job .job-tags { color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.apply-job h4 { color: #fff; font-size: 14px; margin: 14px 0 6px; }
.apply-job ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.apply-job .job-deadline { margin: 14px 0 0; color: var(--yellow); font-size: 13px; }
.apply-tips { padding: 20px 22px; border-radius: 22px; background: var(--yellow-soft); border: 1px solid #f3e6b3; }
.apply-tips h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.apply-tips h4 .icon { width: 18px; height: 18px; color: var(--green); }
.apply-tips ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.apply-tips p { display: flex; gap: 6px; align-items: center; margin: 0; }
.apply-tips p .icon { width: 15px; height: 15px; }
@media (max-width: 960px) { .apply-layout { grid-template-columns: 1fr; } .apply-side { position: static; order: -1; } .apply-tips { display: none; } }
@media (max-width: 560px) { .apply-block { padding: 18px 16px 4px; border-radius: 18px; } }

/* ── Ажлын байр page (jobs.php) ──────────────────────────── */
.jobs-count--light { background: #fff; color: var(--red); }
.perk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.perk .way-icon { flex-shrink: 0; }
.perk b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.perk p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.jobs-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 30px; border-radius: 24px; background: var(--yellow-soft); border: 1px solid #f3e6b3; }
.jobs-cta h3 { margin: 0 0 4px; font-size: 20px; }
.jobs-cta p { margin: 0; color: var(--text); }
@media (max-width: 1024px) { .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .perk-grid { grid-template-columns: 1fr; } .jobs-cta { padding: 20px; } }
.perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 560px) { .perk-grid { grid-template-columns: 1fr; } }
.input-reg { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ── Франчайз page (franchise.php) ───────────────────────── */
.fr-hero { position: relative; overflow: hidden; padding: 56px 0 60px; color: #fff; background: radial-gradient(circle at 85% 30%, rgba(246, 214, 94, .28) 0 22%, transparent 23%), linear-gradient(135deg, #1d1b18, #2d2318 60%, #3a1f14); }
.fr-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.fr-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; margin: 16px 0 14px; letter-spacing: -.02em; }
.fr-hero h1 span { color: var(--yellow); }
.fr-hero p { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 540px; margin: 0; }
.fr-jump { justify-content: flex-start; }
.fr-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.fr-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fr-hero-art { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; }
.fr-badge-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 38px; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(-4deg); animation: frFloat 5s ease-in-out infinite; }
.fr-badge-card img { width: 110px; height: 110px; }
.fr-badge-card b { font-size: 22px; margin-top: 6px; }
.fr-badge-card span { font-size: 13px; color: var(--muted); }
.fr-bubble { position: absolute; border-radius: 50%; background: #3a2416; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .25); animation: frFloat 4s ease-in-out infinite; }
.fr-bubble.b1 { width: 44px; height: 44px; left: 12%; top: 12%; }
.fr-bubble.b2 { width: 28px; height: 28px; right: 10%; top: 26%; animation-delay: .8s; background: var(--red); }
.fr-bubble.b3 { width: 36px; height: 36px; right: 22%; bottom: 6%; animation-delay: 1.6s; background: var(--yellow); }
@keyframes frFloat { 50% { transform: translateY(-10px) rotate(-2deg); } }
.fr-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fr-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; }
.fr-card:hover { transform: translateY(-4px); }
.fr-card h3 { font-size: 17px; margin: 14px 0 6px; }
.fr-card p { margin: 0; font-size: 14px; color: var(--muted); }
.fr-give-section { background: var(--warm); }
.fr-give { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.fr-give h2 { margin: 0 0 10px; }
.fr-give .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.fr-give .link .icon { width: 16px; height: 16px; }
.fr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fr-list li { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.fr-list b { color: var(--ink); }
.fr-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); stroke-width: 2.6; flex-shrink: 0; }
.fr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.fr-steps li { position: relative; padding: 22px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.fr-steps li:not(:last-child)::after { content: ''; position: absolute; top: 40px; right: -14px; width: 14px; height: 2px; background: var(--red); }
.fr-steps span { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fr-steps b { display: block; font-size: 15px; color: var(--ink); }
.fr-steps p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.fr-faq-wrap { max-width: 820px; }
.fr-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fr-faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.fr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); }
.fr-faq summary::-webkit-details-marker { display: none; }
.fr-faq summary .icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; color: var(--red); }
.fr-faq details[open] summary .icon { transform: rotate(45deg); }
.fr-faq p { margin: 0; padding: 0 18px 16px; color: var(--text); }
@media (max-width: 1024px) { .fr-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fr-steps li::after { display: none; } }
@media (max-width: 760px) {
    .fr-hero { padding: 36px 0 40px; }
    .fr-hero-grid, .fr-give { grid-template-columns: 1fr; gap: 24px; }
    .fr-hero-art { height: 220px; }
    .fr-list { grid-template-columns: 1fr; }
    .fr-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .fr-why { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fr-badge-card, .fr-bubble { animation: none; } }

/* banner rotator dots (2+ banners) */
.rot-dots { grid-area: 2 / 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 12px; }
.rot-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: #e3ddd1; cursor: pointer; overflow: hidden; transition: width .35s ease, background .2s; }
.rot-dots button:hover { background: #cfc6b4; }
.rot-dots button.is-on { width: 34px; background: #e3ddd1; }
.rot-dots button i { position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform: scaleX(0); transform-origin: left; }
.rot-dots button.is-on i { animation: rotFill var(--rot-delay, 6s) linear forwards; }
.banner-rotator.is-paused .rot-dots button.is-on i { animation-play-state: paused; }
@keyframes rotFill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rot-dots button.is-on i { animation: none; transform: none; } }

/* ── Certification seals (product page, ingredient categories): just the seals ── */
.certs { margin-top: 22px; }
.certs-cap { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.cert-list li { position: relative; outline: none; animation: certIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.cert-list li:nth-child(2) { animation-delay: .08s; } .cert-list li:nth-child(3) { animation-delay: .16s; } .cert-list li:nth-child(4) { animation-delay: .24s; }
.cert-seal { display: block; width: 68px; height: 68px; filter: drop-shadow(0 6px 12px rgba(22, 22, 22, .18)); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), filter .3s; }
.cert-list li:hover .cert-seal, .cert-list li:focus-visible .cert-seal { transform: translateY(-4px) rotate(-8deg) scale(1.08); filter: drop-shadow(0 12px 18px rgba(22, 22, 22, .22)); }
.cert-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2; }
.cert-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.cert-list li:hover .cert-tip, .cert-list li:focus-visible .cert-tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes certIn { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .cert-list { gap: 10px; } .cert-seal { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .cert-list li { animation: none; } .cert-seal { transition: none; } }

/* franchise page v2: mascots + brand figures */
.fr-hero { padding-bottom: 0; }
.fr-hero-art { height: 360px; }
.fr-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 214, 94, .45), transparent 65%); }
.fr-mascot { position: relative; z-index: 1; width: min(380px, 100%); height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); animation: frFly 4.5s ease-in-out infinite; }
@keyframes frFly { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.fr-stats { list-style: none; margin: 34px 0 0; padding: 22px 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.fr-stats li { display: flex; flex-direction: column; gap: 4px; }
.fr-stats b { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; color: var(--yellow); line-height: 1; letter-spacing: -.02em; }
.fr-stats span { color: rgba(255, 255, 255, .8); font-size: 14px; }
.fr-stats small { display: block; color: rgba(255, 255, 255, .5); font-size: 12px; }
.fr-why-wrap { display: grid; grid-template-columns: .8fr 1.6fr; gap: 32px; align-items: center; }
.fr-why-intro h2 { margin: 0 0 8px; }
.fr-why-intro img { display: block; width: min(260px, 80%); height: auto; margin-top: 10px; filter: drop-shadow(0 18px 24px rgba(22, 22, 22, .18)); }
.fr-why-wrap .fr-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fr-big { display: block; font-size: 30px; font-weight: 700; color: var(--red); letter-spacing: -.02em; line-height: 1.1; }
.fr-card h3 { margin-top: 8px; }
.fr-card--accent { background: var(--ink); border-color: var(--ink); }
.fr-card--accent .fr-big { color: var(--yellow); }
.fr-card--accent h3 { color: #fff; }
.fr-card--accent p { color: rgba(255, 255, 255, .7); }
.fr-give-mascot { display: block; width: min(220px, 70%); height: auto; margin-top: 18px; filter: drop-shadow(0 16px 22px rgba(22, 22, 22, .18)); }
.fr-cert-section { padding-block: 40px; }
.fr-cert { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fr-cert h2 { margin: 0 0 4px; font-size: 24px; }
.fr-cert p { margin: 0; }
.fr-cert .certs { margin: 0; }
.fr-cert .cert-seal { width: 76px; height: 76px; }
.fr-steps-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; }
.fr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fr-steps li:nth-child(3n)::after { display: none; }
.fr-steps-mascot { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(22, 22, 22, .18)); }
.partner-form-side { position: relative; overflow: hidden; }
.fr-form-mascot { position: absolute; right: -24px; bottom: -14px; width: 190px; height: auto; opacity: .95; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .3)); pointer-events: none; }
@media (max-width: 1024px) { .fr-why-wrap, .fr-steps-wrap { grid-template-columns: 1fr; } .fr-why-intro img, .fr-steps-mascot { display: none; } .fr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fr-hero-art { height: 240px; } .fr-steps { grid-template-columns: 1fr; } .fr-cert { padding: 22px; } .fr-form-mascot { width: 130px; } .fr-give-mascot { display: none; } }
@media (max-width: 480px) { .fr-why-wrap .fr-why { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fr-mascot { animation: none; } }
.fr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 560px) { .fr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .fr-stats b { font-size: 26px; } .fr-stats span { font-size: 12px; } }
.fr-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* product page: minimal certification badges */
.cert-mini { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cert-mini li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 7px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--text); cursor: default; transition: border-color .2s, background .2s, color .2s; }
.cert-mini .icon { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: var(--c); color: #fff; stroke-width: 3; }
.cert-mini li:hover { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }

/* ── Account menu: avatar dropdown (desktop) / bottom sheet (phones) ── */
.avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8524c, var(--red-dark)); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(214, 48, 43, .28); }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.acct-trigger { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.acct-trigger:hover, .acct-trigger[aria-expanded="true"] { border-color: #dcdcdc; box-shadow: 0 4px 14px rgba(22, 22, 22, .07); }
.acct-trigger:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.acct-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.acct-trigger[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: fixed; z-index: 70; width: 300px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(22, 22, 22, .16), 0 2px 6px rgba(22, 22, 22, .05); opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .18s ease, transform .2s cubic-bezier(.2, .9, .3, 1.2); }
.acct-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.acct-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(22, 22, 22, 0); transition: background .25s; }
.acct-grab { display: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px; margin-bottom: 6px; border-radius: 14px; color: var(--ink); background: radial-gradient(circle at 100% 0, var(--yellow-soft) 0 32%, transparent 33%), var(--warm); transition: background-color .15s; }
.acct-head:hover { color: var(--ink); background-color: #f5f0e6; }
.acct-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acct-who b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acct-tag { font-style: normal; color: var(--blue); font-weight: 500; }
.acct-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background .15s; }
.acct-item:hover, .acct-item:focus-visible { background: var(--warm); color: var(--ink); outline: none; }
.acct-ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--warm); color: var(--red); transition: background .15s, color .15s, transform .2s; }
.acct-ic .icon { width: 18px; height: 18px; }
.acct-item:hover .acct-ic { background: #fff; transform: scale(1.06); }
.acct-item[aria-current] .acct-ic { background: var(--red); color: #fff; }
.acct-item[aria-current] { font-weight: 600; }
.acct-item em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; min-width: 22px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); }
.acct-go { margin-left: auto; width: 16px; height: 16px; color: #c4c4c4; transition: transform .15s, color .15s; }
.acct-item:hover .acct-go, .acct-head:hover .acct-go { transform: translateX(2px); color: var(--muted); }
.acct-sep { height: 1px; margin: 6px 10px; background: var(--line); }
.acct-logout { color: var(--red); }
.acct-logout:hover, .acct-logout:focus-visible { background: var(--red-soft); color: var(--red-dark); }
.acct-logout .acct-ic { background: var(--red-soft); }
.acct-logout:hover .acct-ic { background: #fff; }
button.bn-item { border: 0; background: none; font-family: inherit; padding: 0; cursor: pointer; }
.bn-item .avatar-xs { transition: transform .2s, box-shadow .2s; }
.bn-item.is-active .avatar-xs, .bn-item[aria-expanded="true"] .avatar-xs { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); }
.bn-item:active .avatar-xs { transform: scale(.88); }
@media (max-width: 860px) {
    .acct-menu { left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-height: 85vh; overflow-y: auto; padding: 6px 14px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(22, 22, 22, .18); opacity: 1; transform: translateY(105%); transition: transform .34s cubic-bezier(.2, .9, .3, 1); }
    .acct-menu.open { transform: none; }
    .acct-backdrop.show { background: rgba(22, 22, 22, .42); }
    .acct-grab { display: block; width: 42px; height: 5px; margin: 6px auto 12px; border-radius: 3px; background: #dedede; }
    .acct-item { padding: 10px; font-size: 15px; }
    .acct-ic { width: 38px; height: 38px; }
    .acct-head { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .acct-menu, .acct-chev, .acct-ic, .acct-go { transition: none; } }

/* Account page */
.acct-hero { display: flex; align-items: center; gap: 16px; }
.acct-hero h1 { margin: 0; }
.acct-hero p { margin: 2px 0 0; }
.account-nav .account-logout { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--red); font: inherit; cursor: pointer; text-align: left; }
.account-nav .account-logout:hover { background: var(--red-soft); }
.account-nav form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
    .account-nav form { margin: 0; padding: 0; border: 0; }
    .account-nav { gap: 8px; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a, .account-nav .account-logout { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; background: var(--warm); }
    .account-nav a .icon, .account-nav .account-logout .icon { width: 17px; height: 17px; }
    .account-nav .account-logout { background: var(--red-soft); }
    .acct-hero { gap: 12px; }
    .acct-hero h1 { font-size: 24px; line-height: 1.2; }
    .account-nav .account-logout { white-space: nowrap; }
    .acct-hero .avatar-lg { width: 42px; height: 42px; font-size: 15px; }
}

/* Account: order dashboard */
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.acct-stat { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; }
.acct-stat > div { display: flex; flex-direction: column; min-width: 0; }
.acct-stat b { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.acct-stat > div > span { font-size: 12px; color: var(--muted); }
.acct-stat-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); }
.acct-stat-ic .icon { width: 20px; height: 20px; }
.acct-stat-ic.is-green { background: var(--green-soft); color: var(--green); }
.acct-stat-ic.is-blue { background: var(--blue-soft); color: var(--blue); }
.acct-stat-ic.is-amber { background: var(--amber-soft); color: var(--amber); }
.acct-current { display: block; padding: 18px 20px 16px; margin-bottom: 22px; border-radius: 18px; color: var(--ink); background: radial-gradient(circle at 100% 0, var(--yellow-soft) 0 22%, transparent 23%), var(--warm); border: 1px solid #f1eadb; transition: transform .2s, box-shadow .2s; }
.acct-current:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 22, 22, .07); }
.acct-current-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.acct-current-head > div { display: flex; flex-direction: column; }
.acct-current-lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.acct-current-head b { font-size: 16px; font-variant-numeric: tabular-nums; }
.acct-current-side { align-items: flex-end; text-align: right; }
.acct-current-side span { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.acct-current-side .icon { width: 15px; height: 15px; }
.acct-steps { --done: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.acct-steps::before, .acct-steps::after { content: ''; position: absolute; top: 15px; left: 12.5%; height: 3px; border-radius: 2px; }
.acct-steps::before { right: 12.5%; background: #e8e1d3; }
.acct-steps::after { width: calc(75% * var(--done) / 3); background: var(--red); transition: width .6s; }
.acct-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.acct-steps li > span { width: 33px; height: 33px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #e8e1d3; color: #b9b2a4; }
.acct-steps .icon { width: 16px; height: 16px; }
.acct-steps li.is-done > span { background: var(--red); border-color: var(--red); color: #fff; }
.acct-steps li.is-now { color: var(--ink); font-weight: 600; }
.acct-steps li.is-now > span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 5px rgba(214, 48, 43, .12); animation: stepPulse 2s ease-in-out infinite; }
@keyframes stepPulse { 50% { box-shadow: 0 0 0 9px rgba(214, 48, 43, .04); } }
.acct-subtitle { font-size: 16px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }

/* Account: addresses */
.acct-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-section-head .btn .icon { width: 16px; height: 16px; }
.addr-form { margin-bottom: 18px; max-width: 640px; animation: addrIn .25s ease; }
@keyframes addrIn { from { opacity: 0; transform: translateY(-6px); } }
.addr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.addr-form-actions { display: flex; gap: 10px; }
.addr-form-actions .icon { width: 17px; height: 17px; }
.addr { display: flex; gap: 12px; align-items: flex-start; transition: border-color .15s; }
.addr:hover { border-color: #dcdcdc; }
.addr > div { min-width: 0; }
.addr p { margin: 6px 0 0; overflow-wrap: anywhere; }
.addr-ic { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); }
.addr-ic .icon { width: 19px; height: 19px; }
.addr-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--blue-soft); color: var(--blue); vertical-align: 1px; }
.addr-tag.is-rural { background: var(--amber-soft); color: var(--amber); }
@media (max-width: 1100px) { .acct-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .acct-stats { gap: 8px; }
    .acct-stat { padding: 12px; gap: 10px; }
    .acct-stat b { font-size: 15px; }
    .acct-stat-ic { width: 34px; height: 34px; border-radius: 10px; }
    .acct-current { padding: 16px 14px 14px; }
    .acct-steps li { font-size: 11px; }
    .addr-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .acct-steps li.is-now > span { animation: none; } }
.acct-trigger-name { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* Account → Хаягууд: new address dialog (CRM-style fields) */
.addr-empty .btn .icon, .acct-section-head .btn .icon { width: 16px; height: 16px; }
.addr-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 30px 80px rgba(22, 22, 22, .25); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .22s cubic-bezier(.2, .9, .3, 1.1); overflow: hidden; }
.addr-dialog.is-open { opacity: 1; transform: none; }
.addr-dialog::backdrop { background: rgba(22, 22, 22, .45); backdrop-filter: blur(2px); }
.addr-dialog-form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.addr-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.addr-dialog-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; }
.addr-dialog-head h3 .icon { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.addr-dialog-body { padding: 20px 22px 4px; overflow-y: auto; }
.addr-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fff; }
.addr-dialog-foot .icon { width: 17px; height: 17px; }
.addr-cols { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; }
.addr-cols.is-rural { grid-template-columns: 1fr; max-width: 520px; }
.addr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.addr-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s; }
.addr-chip:hover { border-color: #d8d8d8; background: var(--warm); }
.addr-chip.is-on { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 500; }
.addr-loc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addr-loc input { position: absolute; opacity: 0; pointer-events: none; }
.addr-loc span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .15s; }
.addr-loc span .icon { width: 19px; height: 19px; }
.addr-loc label:hover span { border-color: #d8d8d8; }
.addr-loc input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.addr-loc input[value="0"]:checked + span { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.addr-loc input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.addr-map-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.addr-map-label span { color: var(--muted); font-weight: 400; }
.addr-map { position: relative; height: 340px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--warm); z-index: 0; }
.addr-map-hint { position: absolute; z-index: 500; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(22, 22, 22, .78); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.addr-map-hint .icon { width: 14px; height: 14px; }
.addr-map.has-pin .addr-map-hint, .addr-map.is-failed .addr-map-hint { opacity: 0; }
.addr-map.is-failed::after { content: 'Газрын зураг ачаалж чадсангүй — хаягаа дэлгэрэнгүй бичнэ үү.'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.addr-map-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 34px; }
.addr-coords { flex: 1; font-size: 12px; color: var(--blue); font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-coords.is-warn { color: var(--amber); font-family: var(--font); white-space: normal; }
.addr-map-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; }
.addr-map-btn:hover { border-color: #d8d8d8; color: var(--ink); }
.addr-map-btn .icon { width: 15px; height: 15px; }
.addr-map-btn.is-locate { color: var(--blue); border-color: rgba(31, 95, 191, .25); background: var(--blue-soft); }
.addr-map-btn.is-busy { opacity: .6; pointer-events: none; }
.addr-map-btn.is-busy .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* map pin in the shop colours */
.addr-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(214, 48, 43, .4); border: 3px solid #fff; }
.addr-pin span { animation: pinDrop .35s cubic-bezier(.3, 1.6, .5, 1); }   /* Leaflet moves .addr-pin itself with transform */
@keyframes pinDrop { from { transform: translateY(-14px) rotate(-45deg); opacity: 0; } }
@media (max-width: 760px) {
    .addr-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .3, 1); }
    .addr-dialog-form { max-height: 92vh; }
    .addr-cols { grid-template-columns: 1fr; gap: 0; }
    .addr-map { height: 240px; }
    .addr-dialog-body { padding: 16px 16px 4px; }
    .addr-dialog-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .addr-dialog-foot .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .addr-dialog, .addr-pin span { transition: none; animation: none; } }
.empty .btn .icon { width: 16px; height: 16px; margin: 0; color: currentColor; }
.empty .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Short pages: the content area grows so the footer always sits at the bottom of the window */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex-shrink: 0; }

/* ── Online courses (training.php cards, course.php, learn.php, account) ── */
.btn-lg { height: 52px; font-size: 16px; padding: 0 26px; }
.icon.flip { transform: scaleX(-1); }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.cr-card { display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s; }
.cr-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 22px 44px rgba(22, 22, 22, .1); }
.cr-card-media { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 80% 20%, var(--yellow-soft) 0 30%, transparent 31%), linear-gradient(135deg, var(--red-soft), var(--warm)); overflow: hidden; }
.cr-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cr-card:hover .cr-card-media img { transform: scale(1.04); }
.cr-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--red); box-shadow: 0 10px 26px rgba(22, 22, 22, .2); transition: transform .25s; z-index: 1; }
.cr-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.cr-card:hover .cr-play { transform: scale(1.1); }
.cr-card-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; z-index: 1; }
.cr-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .94); color: var(--ink); }
.cr-tag .icon { width: 14px; height: 14px; }
.cr-tag--sale { background: var(--red); color: #fff; }
.cr-tag--dark { background: var(--ink); color: #fff; }
.cr-tag--yellow { background: var(--yellow); color: var(--ink); }
.cr-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.cr-level { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.cr-card-body h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.cr-card-body p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.cr-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.cr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cr-meta .icon { width: 15px; height: 15px; color: var(--red); }
.cr-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.cr-card-body .cr-meta { margin-bottom: 16px; }
.cr-price b { font-size: 22px; color: var(--ink); }
.cr-price del { margin-left: 8px; font-size: 14px; color: var(--muted); }
.cr-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); font-size: 14px; }
.cr-go .icon { width: 16px; height: 16px; transition: transform .2s; }
.cr-card:hover .cr-go .icon { transform: translateX(3px); }
/* course page */
.cr-hero { padding: 26px 0 40px; background: radial-gradient(circle at 92% 8%, var(--yellow-soft) 0 16%, transparent 17%), linear-gradient(180deg, var(--warm), #fff); }
.cr-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.cr-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.cr-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.02em; }
.cr-lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.cr-meta--lg { font-size: 14.5px; gap: 10px 20px; }
.cr-meta--lg .icon { width: 18px; height: 18px; }
.cr-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: #111; object-fit: cover; box-shadow: 0 30px 60px rgba(22, 22, 22, .18); }
.cr-video--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.cr-video--empty .icon { width: 64px; height: 64px; opacity: .8; }
.cr-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; padding-top: 32px; }
.cr-layout > * { min-width: 0; }
.cr-block { margin-bottom: 36px; }
.cr-block h2 { font-size: 22px; margin: 0 0 14px; }
.cr-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cr-block-head h2 { margin: 0; }
.cr-block-head .btn .icon { width: 17px; height: 17px; }
.cr-sec { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.cr-sec summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; background: var(--warm); }
.cr-sec summary::-webkit-details-marker { display: none; }
.cr-sec-title { font-weight: 600; color: var(--ink); flex: 1; }
.cr-sec-meta { font-size: 13px; color: var(--muted); }
.cr-sec-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.cr-sec[open] .cr-sec-chev { transform: rotate(180deg); }
.cr-lessons { list-style: none; margin: 0; padding: 4px 0; }
.cr-lessons li > a, .cr-lessons li > div { display: flex; align-items: center; gap: 12px; padding: 11px 18px; color: var(--text); }
.cr-lessons li > a:hover { background: #fdf8f0; color: var(--ink); }
.cr-l-ic { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--warm); color: var(--muted); }
.cr-l-ic .icon { width: 15px; height: 15px; }
.cr-lessons a .cr-l-ic { background: var(--red-soft); color: var(--red); }
.cr-lessons li.is-done .cr-l-ic { background: var(--green); color: #fff; }
.cr-l-title { flex: 1; min-width: 0; font-size: 14.5px; }
.cr-l-title small { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cr-l-title small .icon { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.cr-free { font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cr-l-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.cr-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cr-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #fff; transition: border-color .15s; }
.cr-item:hover { border-color: #d8d8d8; color: var(--ink); }
.cr-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--warm); flex-shrink: 0; }
.cr-item-name { font-size: 13.5px; font-weight: 500; line-height: 1.3; min-width: 0; }
.cr-item-name small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.cr-item.is-out { opacity: .55; }
.cr-side { position: sticky; top: 92px; }
.cr-buy { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #fff; box-shadow: var(--shadow); }
.cr-buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.cr-buy-price b { font-size: 34px; color: var(--ink); letter-spacing: -.02em; }
.cr-buy-price del { color: var(--muted); font-size: 16px; }
.cr-sale-left { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 14px; }
.cr-sale-left .icon { width: 16px; height: 16px; }
.cr-buy form { margin-top: 10px; }
.cr-buy .btn .icon { width: 18px; height: 18px; }
.cr-buy-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 12px 0 0; }
.cr-buy-note .icon { width: 15px; height: 15px; }
.cr-buy-state { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.cr-buy-state .icon { width: 18px; height: 18px; }
.cr-buy-state.is-open { background: var(--green-soft); color: var(--green); }
.cr-buy-state.is-pending { background: var(--amber-soft); color: var(--amber); }
.cr-buy-state.is-expired { background: var(--warm); color: var(--muted); }
.cr-includes { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cr-includes li { display: flex; align-items: center; gap: 10px; }
.cr-includes .icon { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.cr-progress { display: block; height: 8px; border-radius: 4px; background: #f0ebe1; overflow: hidden; }
.cr-progress > * { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red), #ee6b4d); transition: width .5s; }
/* order page: course access */
.cr-access { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.cr-access > div { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.cr-access b { font-size: 16px; color: var(--ink); }
.cr-access span { font-size: 13.5px; color: var(--muted); }
.cr-access .btn .icon { width: 18px; height: 18px; }
.cr-access-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cr-access-ic .icon { width: 22px; height: 22px; }
.cr-access--active { background: var(--green-soft); }
.cr-access--active .cr-access-ic { background: var(--green); color: #fff; }
.cr-access--pending { background: var(--amber-soft); }
.cr-access--pending .cr-access-ic { background: #fff; color: var(--amber); }
.cr-access--expired { background: var(--warm); }
.cr-access--expired .cr-access-ic { background: #fff; color: var(--muted); }
/* learn page */
.ln-wrap { padding-top: 18px; }
.ln-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin-top: 12px; }
.ln-layout > * { min-width: 0; }
.ln-player { position: relative; border-radius: 20px; overflow: hidden; background: #0d0d0d; aspect-ratio: 16 / 9; box-shadow: 0 24px 50px rgba(22, 22, 22, .18); }
.ln-player video { width: 100%; height: 100%; display: block; background: #000; }
.ln-mark { position: absolute; z-index: 2; pointer-events: none; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .22); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); animation: lnMark 38s linear infinite; }
@keyframes lnMark { 0% { left: 6%; top: 10%; } 25% { left: 70%; top: 18%; } 50% { left: 62%; top: 72%; } 75% { left: 10%; top: 64%; } 100% { left: 6%; top: 10%; } }
.ln-novideo { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.ln-novideo .icon { width: 44px; height: 44px; }
.ln-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 18px 0 10px; }
.ln-no { font-size: 13px; color: var(--muted); }
.ln-no b { color: var(--blue); }
.ln-head h1 { font-size: clamp(22px, 3vw, 28px); margin: 2px 0 0; line-height: 1.25; }
.ln-done { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; transition: all .2s; }
.ln-done .icon { width: 18px; height: 18px; }
.ln-done:hover { border-color: var(--green); color: var(--green); }
.ln-done.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.ln-nav { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.ln-nav .icon { width: 16px; height: 16px; }
.ln-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; background: #fff; }
.ln-card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.ln-card h2 .icon { width: 19px; height: 19px; color: var(--red); }
.ln-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ln-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--warm); color: var(--text); transition: background .15s; }
.ln-file:hover { background: #f3ece0; color: var(--ink); }
.ln-file-ext { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ln-file-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.ln-file-name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.ln-file-dl .icon { width: 18px; height: 18px; transform: rotate(90deg); color: var(--muted); }
.ln-side { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.ln-course { padding: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 100% 0, var(--yellow-soft) 0 26%, transparent 27%), var(--warm); }
.ln-course-title { display: block; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.ln-course-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ln-course-meta .icon { width: 13px; height: 13px; vertical-align: -2px; }
.ln-course .btn .icon { width: 16px; height: 16px; }
.ln-outline { max-height: calc(100vh - 330px); overflow-y: auto; padding: 6px 0 10px; }
.ln-sec { padding: 12px 18px 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ln-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13.5px; color: var(--text); border-left: 3px solid transparent; }
a.ln-item:hover { background: #fdf8f0; color: var(--ink); }
.ln-item.is-current { background: var(--red-soft); border-left-color: var(--red); color: var(--ink); font-weight: 600; }
.ln-item.is-locked { color: #b3b3b3; }
.ln-item-ic { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--warm); color: var(--muted); }
.ln-item-ic .icon { width: 13px; height: 13px; }
.ln-item.is-current .ln-item-ic { background: var(--red); color: #fff; }
.ln-item.is-done .ln-item-ic { background: var(--green); color: #fff; }
.ln-item-title { flex: 1; min-width: 0; line-height: 1.35; }
.ln-item-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* account: my courses */
.my-courses { display: flex; flex-direction: column; gap: 10px; }
.my-course { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .2s; }
.my-course:hover { color: var(--text); border-color: #dcdcdc; box-shadow: 0 10px 24px rgba(22, 22, 22, .06); }
.my-course-img { position: relative; width: 128px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red-soft), var(--warm)); color: var(--red); }
.my-course-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.my-course-img .icon { position: relative; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.my-course-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.my-course-body b { color: var(--ink); font-size: 15px; }
.my-course-body small { font-size: 12.5px; color: var(--muted); }
.my-course-body small b { font-size: 12.5px; color: var(--green); }
.my-course-body small.is-amber { color: var(--amber); font-weight: 600; }
.my-course-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--red); white-space: nowrap; }
.my-course-go .icon { width: 16px; height: 16px; }
.my-course.is-expired { background: #fcfbf9; }
.my-course.is-expired .my-course-img { filter: grayscale(.8); opacity: .75; }
.my-course.is-expired .my-course-go { color: var(--muted); }
@media (max-width: 980px) {
    .cr-hero-grid, .cr-layout, .ln-layout { grid-template-columns: 1fr; gap: 24px; }
    .cr-side, .ln-side { position: static; }
    .ln-outline { max-height: none; }
}
@media (max-width: 560px) {
    .cr-hero { padding-bottom: 24px; }
    .cr-buy-price b { font-size: 28px; }
    .ln-head { flex-direction: column; }
    .ln-done { align-self: stretch; justify-content: center; }
    .ln-player { border-radius: 14px; }
    .my-course { flex-wrap: wrap; }
    .my-course-img { width: 96px; }
    .my-course-go { width: 100%; justify-content: flex-end; }
    .cr-sec summary { padding: 12px 14px; }
    .cr-lessons li > a, .cr-lessons li > div { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .ln-mark { animation: none; left: 8%; top: 10%; } }
@media (max-width: 980px) { .cr-layout .cr-side { order: -1; } }   /* phones: price / buy right under the video */
@media (max-width: 980px) {   /* classroom booking on phones: dates first, then the booking box, then the details */
    .cr-layout--sessions > .cr-main { display: contents; }
    .cr-layout--sessions #sessions { order: -2; }
    .cr-layout--sessions .cr-block { margin: 0; }
}

/* Course videos: frame follows the video shape (data-shape: wide | tall | square; set from the stored
   size, or by shop.js once the video loads). Vertical / square videos are centred on a dark stage. */
.vid-frame { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #3b2b22 0%, #151110 62%, #0b0b0b 100%); box-shadow: 0 24px 50px rgba(22, 22, 22, .18); }
.vid-frame video { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.vid-frame[data-shape="tall"], .vid-frame[data-shape="square"] { aspect-ratio: auto; height: min(78vh, 720px); }
.vid-frame[data-shape="square"] { height: min(70vh, 620px); }
.vid-frame[data-shape="tall"] video, .vid-frame[data-shape="square"] video { width: auto; max-width: 100%; height: 100%; }
.vid-frame[data-shape="tall"]::before, .vid-frame[data-shape="square"]::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 20%, rgba(214, 48, 43, .25) 0 9%, transparent 10%), radial-gradient(circle at 88% 75%, rgba(246, 214, 94, .18) 0 8%, transparent 9%), radial-gradient(circle at 80% 18%, rgba(255, 255, 255, .06) 0 5%, transparent 6%); }
.cr-hero-media .vid-frame[data-shape="tall"] { height: min(72vh, 620px); }
@media (max-width: 560px) {
    .vid-frame { border-radius: 16px; }
    .vid-frame[data-shape="tall"] { height: auto; aspect-ratio: 9 / 16; max-height: min(82vh, calc(100dvh - 290px)); width: min(100%, calc(min(82vh, 100dvh - 290px) * 9 / 16)); margin-inline: auto; }   /* clear of the header and the bottom bar */
    .vid-frame[data-shape="square"] { height: auto; aspect-ratio: 1; }
    .vid-frame[data-shape="tall"] video, .vid-frame[data-shape="square"] video { width: 100%; }
}

/* ── Course video player (shop.js builds .vp-ui inside .vid-frame[data-player]) ── */
.vp { outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.vp:focus-visible { box-shadow: 0 0 0 3px rgba(214, 48, 43, .55), 0 24px 50px rgba(22, 22, 22, .18); }
.vp-logo { position: absolute; z-index: 4; top: 14px; right: 14px; width: 42px; height: 42px; object-fit: contain; opacity: .7; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); user-select: none; -webkit-user-drag: none; }
.vp-ui { position: absolute; inset: 0; z-index: 3; color: #fff; font-family: var(--font); }
.vp-hit { position: absolute; inset: 0 0 58px; cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: rgba(214, 48, 43, .92); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 34px rgba(214, 48, 43, .45), 0 0 0 10px rgba(255, 255, 255, .12); transition: transform .2s, opacity .25s, background .2s; }
.vp-big svg { width: 34px; height: 34px; margin-left: 4px; }
.vp-big:hover { transform: scale(1.07); background: var(--red); }
.vp:not(.vp-paused) .vp-big { opacity: 0; transform: scale(.8); pointer-events: none; }
.vp-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; pointer-events: none; animation: spin .8s linear infinite; transition: opacity .2s; }
.vp-wait:not(.vp-paused) .vp-spin { opacity: 1; }
.vp-flash { position: absolute; top: 50%; width: 70px; height: 70px; margin-top: -35px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.vp-flash svg { width: 34px; height: 34px; }
.vp-flash-l { left: 14%; } .vp-flash-r { right: 14%; }
.vp-flash.show { animation: vpFlash .6s ease; }
@keyframes vpFlash { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 8px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, transparent); transition: opacity .3s, transform .3s; }
.vp-idle:not(.vp-paused) .vp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp-idle:not(.vp-paused) .vp-hit { cursor: none; }
.vp-idle:not(.vp-paused) .vp-logo { opacity: .45; }
.vp-track { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vp-track::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: height .15s; }
.vp-buf, .vp-done { position: absolute; left: 0; height: 4px; border-radius: 2px; transition: height .15s; }
.vp-buf { background: rgba(255, 255, 255, .4); width: 0; }
.vp-done { background: var(--red); width: 0; }
.vp-track:hover::before, .vp-track:hover .vp-buf, .vp-track:hover .vp-done, .vp-drag .vp-track::before, .vp-drag .vp-buf, .vp-drag .vp-done { height: 6px; }
.vp-thumb { position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(214, 48, 43, .5); transform: scale(0); transition: transform .15s; }
.vp-track:hover .vp-thumb, .vp-drag .vp-thumb { transform: scale(1); }
.vp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.vp-track:hover .vp-tip, .vp-drag .vp-tip { opacity: 1; }
.vp-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.vp-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: background .15s, transform .15s; flex-shrink: 0; }
.vp-btn svg { width: 24px; height: 24px; }
.vp-btn:hover { background: rgba(255, 255, 255, .14); }
.vp-btn:active { transform: scale(.92); }
.vp-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.vp-vol { display: flex; align-items: center; }
.vp-vol-range { --v: 100%; width: 0; opacity: 0; height: 4px; margin: 0; -webkit-appearance: none; appearance: none; border-radius: 2px; background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, .3) var(--v)); cursor: pointer; transition: width .2s, opacity .2s, margin .2s; }
.vp-vol:hover .vp-vol-range, .vp-vol-range:focus { width: 76px; opacity: 1; margin: 0 8px 0 2px; }
.vp-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-vol-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-time { margin-left: 6px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.vp-time b { font-weight: 600; }
.vp-space { flex: 1; }
.vp-speed { position: relative; }
.vp-speed-btn { width: auto; padding: 0 10px; }
.vp-speed-btn em { font-style: normal; font-size: 13px; font-weight: 600; }
.vp-menu { position: absolute; right: 0; bottom: 46px; min-width: 130px; padding: 6px; border-radius: 12px; background: rgba(20, 20, 20, .94); backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.vp-menu button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.vp-menu button:hover { background: rgba(255, 255, 255, .12); }
.vp-menu button.on { color: var(--yellow); font-weight: 600; }
.vp-menu button.on::after { content: ' ✓'; }
/* fullscreen: the whole frame with the watermarks */
.vid-frame.vp-full, .vid-frame:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #000; }
.vid-frame.vp-full video { width: 100%; height: 100%; max-width: none; }
.vid-frame.vp-full .vp-logo { width: 58px; height: 58px; top: 24px; right: 28px; }
.vid-frame.vp-full .vp-bar { padding: 40px 28px 16px; }
.vid-frame.vp-full .ln-mark { font-size: 18px; color: rgba(255, 255, 255, .3); }
/* frame filling the window where real fullscreen of an element is not possible (iPhone) */
.vid-frame.vp-pseudo { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; margin: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
html.vp-lock, html.vp-lock body { overflow: hidden; overscroll-behavior: none; }
@media (max-width: 560px) {
    .vp-logo { width: 30px; height: 30px; top: 10px; right: 10px; }
    .vp-big { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
    .vp-big svg { width: 28px; height: 28px; }
    .vp-bar { padding: 24px 8px 4px; }
    .vp-btn { width: 36px; height: 36px; }
    .vp-btn svg { width: 22px; height: 22px; }
    .vp-back, .vp-fwd { display: none; }   /* double tap left / right instead */
    .vp-time { font-size: 12px; margin-left: 2px; }
}
@media (hover: none) { .vp-vol-range { display: none; } .vp-hit { bottom: 52px; } }
@media (prefers-reduced-motion: reduce) { .vp-big, .vp-bar, .vp-flash.show { transition: none; animation: none; } }

/* ── Lesson view: top bar, prev / next cards, lesson list, locked ingredients ── */
.ln-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ln-back { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 8px rgba(22, 22, 22, .05); transition: transform .2s, border-color .2s, background .2s; }
.ln-back .icon { width: 20px; height: 20px; }
.ln-back:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); transform: translateX(-2px); }
.ln-top-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ln-top-text span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--red); }
.ln-top-text a { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-top-text a:hover { color: var(--red); }
.ln-top-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--warm); color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .15s; }
.ln-top-chip .icon { width: 18px; height: 18px; }
.ln-top-chip b { color: var(--ink); }
.ln-top-chip:hover { background: #f3ece0; color: var(--ink); }
.ln-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 22px; }
.ln-page { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); min-width: 0; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ln-page > span:not(.ln-page-ic) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ln-page small { font-size: 12px; color: var(--muted); }
.ln-page b { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-page-ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--warm); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.ln-page-ic .icon { width: 18px; height: 18px; }
.ln-page:hover { border-color: #d8d8d8; box-shadow: 0 10px 24px rgba(22, 22, 22, .06); color: var(--text); }
.ln-page--prev:hover .ln-page-ic { transform: translateX(-3px); }
.ln-page--next { text-align: right; }
.ln-page--next .ln-page-ic { background: var(--ink); color: #fff; }
.ln-page--next:hover .ln-page-ic { background: var(--red); transform: translateX(3px); }
.ln-page--buy { background: var(--red-soft); border-color: transparent; }
.ln-page--buy .ln-page-ic { background: var(--red); }
.ln-page--end .ln-page-ic { background: var(--green); }
.ln-list > summary { display: none; }
.ln-list-chev { width: 18px; height: 18px; margin-left: auto; color: var(--muted); transition: transform .2s; }
.cr-locked { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1.5px dashed #e3dccf; background: var(--warm); }
.cr-locked > div { display: flex; flex-direction: column; }
.cr-locked b { font-size: 16px; color: var(--ink); }
.cr-locked span:not(.cr-locked-ic) { font-size: 14px; color: var(--muted); }
.cr-locked-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--red); }
.cr-locked-ic .icon { width: 22px; height: 22px; }
@media (max-width: 980px) {
    .ln-list > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
    .ln-list > summary::-webkit-details-marker { display: none; }
    .ln-list > summary .icon:first-child { width: 18px; height: 18px; color: var(--red); }
    .ln-list > summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
    .ln-list[open] .ln-list-chev { transform: rotate(180deg); }
    .ln-list .ln-outline { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .ln-top { gap: 10px; margin-bottom: 14px; }
    .ln-back { width: 40px; height: 40px; }
    .ln-top-text a { font-size: 15px; }
    .ln-top-chip { height: 36px; padding: 0 12px; font-size: 13px; }
    .ln-pager { gap: 8px; }
    .ln-page { padding: 12px; gap: 8px; }
    .ln-page b { font-size: 13px; }
    .ln-page small { font-size: 11px; }
    .ln-page-ic { width: 32px; height: 32px; }
    .cr-locked { padding: 14px; gap: 12px; }
}

/* Account → Сургалт: status pill next to the title, history dimmed */
.my-course-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-course-top .status-pill { font-size: 11.5px; padding: 2px 9px; }
.my-course.is-cancelled { background: #fcfbf9; }
.my-course.is-cancelled .my-course-img { filter: grayscale(1); opacity: .6; }
.my-course.is-cancelled .my-course-go { color: var(--muted); }
.my-courses--history .my-course-body b { color: var(--text); }
.my-empty { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 18px; background: var(--warm); flex-wrap: wrap; }
.my-empty > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--red); flex-shrink: 0; }
.my-empty > div { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.my-empty b { color: var(--ink); }
.my-empty span { font-size: 13.5px; color: var(--muted); }

/* ── Сургалт → Онлайн сургалт: header + 1 / 2 / 3 course layouts ── */
.cr-online { background: radial-gradient(circle at 8% 12%, var(--yellow-soft) 0 9%, transparent 10%), radial-gradient(circle at 95% 90%, var(--red-soft) 0 12%, transparent 13%), linear-gradient(180deg, #fff, var(--warm)); }
.cr-online-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.cr-online-head > div { max-width: 560px; }
.cr-online-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.02em; }
.cr-online-head h2 span { color: var(--red); }
.cr-online-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.cr-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 10px; }
.cr-perks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(22, 22, 22, .04); }
.cr-perks .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--red-soft); color: var(--red); flex-shrink: 0; }
.cr-perks span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.25; }
.cr-perks b { font-size: 14px; color: var(--ink); }
/* cards */
.cr-grid { gap: 22px; }
.cr-grid--1 { grid-template-columns: 1fr; }
.cr-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cr-card { border-radius: 24px; box-shadow: 0 6px 22px rgba(22, 22, 22, .05); }
.cr-card-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(214, 48, 43, .25); }
.cr-card-ph .icon { width: 64px; height: 64px; }
.cr-card-top { display: flex; align-items: center; gap: 8px; }
.cr-card-body h3 { font-size: 20px; }
.cr-price { display: flex; flex-direction: column; line-height: 1.15; }
.cr-price del { margin: 0; font-size: 13px; }
.cr-price b { font-size: 24px; }
.cr-cta { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .2s; }
.cr-cta .icon { width: 16px; height: 16px; transition: transform .2s; }
.cr-card:hover .cr-cta { background: var(--red); }
.cr-card:hover .cr-cta .icon { transform: translateX(3px); }
/* one course: wide featured card */
.cr-grid--1 .cr-card { flex-direction: row; align-items: stretch; }
.cr-grid--1 .cr-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.cr-grid--1 .cr-card-body { padding: 34px 38px; justify-content: center; }
.cr-grid--1 .cr-card-body h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 8px 0 10px; }
.cr-grid--1 .cr-card-body p { font-size: 16px; margin-bottom: 20px; }
.cr-grid--1 .cr-meta { font-size: 14px; gap: 10px 18px; }
.cr-grid--1 .cr-card-foot { margin-top: 26px; padding-top: 22px; }
.cr-grid--1 .cr-price b { font-size: 30px; }
.cr-grid--1 .cr-cta { height: 50px; padding: 0 26px; font-size: 15px; }
.cr-grid--1 .cr-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cr-grid--1 .cr-play .icon { width: 30px; height: 30px; }
/* two courses: a little roomier */
.cr-grid--2 .cr-card-body { padding: 22px 24px 24px; }
.cr-grid--2 .cr-card-body h3 { font-size: 22px; }
@media (max-width: 1100px) {
    .cr-perks { grid-template-columns: repeat(2, auto); }
    .cr-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .cr-grid--1 .cr-card { flex-direction: column; }
    .cr-grid--1 .cr-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
    .cr-grid--1 .cr-card-body { padding: 22px 22px 24px; }
    .cr-grid--2, .cr-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cr-online-head { margin-bottom: 20px; }
    .cr-perks { grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
    .cr-perks li { padding: 8px 10px; }
    .cr-grid--1 .cr-price b, .cr-price b { font-size: 22px; }
    .cr-cta, .cr-grid--1 .cr-cta { height: 42px; padding: 0 16px; font-size: 14px; }
}

/* Онлайн сургалт: centred heading like «Захиалга яаж өгөх вэ?», italic slogan, centred perks, own panel */
.cr-online { padding-top: 56px; padding-bottom: 60px; border-bottom: 1px solid #f3e7e1; background:
    radial-gradient(circle at 6% 18%, rgba(246, 214, 94, .32) 0 120px, transparent 121px),
    radial-gradient(circle at 95% 85%, rgba(214, 48, 43, .09) 0 160px, transparent 161px),
    radial-gradient(circle at 86% 12%, rgba(214, 48, 43, .06) 0 60px, transparent 61px),
    linear-gradient(180deg, #fff 0%, #fff6f2 100%); }
.cr-online-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; margin-bottom: 30px; }
.cr-online-head .process-title { margin: 0 0 6px; }
.cr-slogan { margin: 0 0 22px; font-size: clamp(16px, 1.8vw, 19px); font-style: italic; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.cr-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cr-perks li { padding: 10px 16px 10px 10px; }
.cr-grid--1 { max-width: 1040px; margin-inline: auto; }
.cr-grid--2 { max-width: 1040px; margin-inline: auto; }
@media (max-width: 560px) {
    .cr-online { padding-top: 36px; padding-bottom: 40px; }
    .cr-perks { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .cr-perks li { justify-content: flex-start; }
}

/* ── Танхимийн сургалт (training-item.php) ── */
.tc-hero--vip { background: radial-gradient(circle at 92% 8%, rgba(246, 214, 94, .35) 0 16%, transparent 17%), linear-gradient(180deg, #fbf6ea, #fff); }
.tc-level { color: var(--red); }
.tc-cover--onsite { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.tc-cover--vip { background: linear-gradient(135deg, #2a2118, #0f0c09); color: var(--yellow); }
.tc-cover--franchise { background: linear-gradient(135deg, var(--ink), #3a3a3a); }
.tc-sessions { display: flex; flex-direction: column; gap: 10px; }
.tc-session { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .2s, background .15s; }
.tc-session input { position: absolute; opacity: 0; pointer-events: none; }
.tc-session:hover { border-color: #d8d8d8; }
.tc-session:has(input:checked) { border-color: var(--red); background: #fffafa; box-shadow: 0 0 0 4px rgba(214, 48, 43, .08); }
.tc-session:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.tc-session.is-full { opacity: .55; cursor: not-allowed; background: var(--warm); }
.tc-session-date { width: 58px; height: 62px; border-radius: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); line-height: 1.05; }
.tc-session-date b { font-size: 24px; }
.tc-session-date small { font-size: 11px; font-weight: 600; }
.tc-session:has(input:checked) .tc-session-date { background: var(--red); color: #fff; }
.tc-session-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tc-session-body b { font-size: 15px; color: var(--ink); }
.tc-session-body small { font-size: 12.5px; color: var(--muted); }
.tc-seats { display: block; height: 6px; border-radius: 3px; background: #f0ebe1; overflow: hidden; margin-top: 4px; max-width: 220px; }
.tc-seats span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--green), #2fb36b); }
.tc-session-left { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tc-session-left b { font-size: 18px; color: var(--green); }
.tc-session.is-full .tc-session-left { color: var(--red); font-weight: 600; }
.tc-buy .field { margin-bottom: 12px; }
.tc-picked { padding: 10px 12px; border-radius: 12px; background: var(--warm); font-weight: 600; color: var(--ink); font-size: 14px; }
.tc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-vip-price { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #2a2118, #15110d); color: #fff; margin-bottom: 16px; }
.tc-vip-price .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(246, 214, 94, .15); color: var(--yellow); flex-shrink: 0; }
.tc-vip-price b { display: block; color: var(--yellow); font-size: 16px; }
.tc-vip-price span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.btn-gold .icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
    .tc-session { gap: 12px; padding: 12px; }
    .tc-session-date { width: 50px; height: 54px; }
    .tc-session-date b { font-size: 20px; }
}
.tc-claim { margin-top: 14px; }
.tc-claim .btn .icon { width: 18px; height: 18px; }
.tc-claimed { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); }
.tc-claimed > .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--blue); color: #fff; flex-shrink: 0; }
.tc-claimed b { display: block; color: var(--ink); font-size: 14px; }
.tc-claimed span { font-size: 12.5px; color: var(--muted); }

/* Танхимийн сургалт: same section as Онлайн сургалт, mirrored background so the two read as separate bands */
.cr-online--inperson { border-top: 0; border-bottom-color: #efe3c4; background:
    radial-gradient(rgba(22, 22, 22, .07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, .7) 0 130px, transparent 131px),
    radial-gradient(circle at 6% 90%, rgba(246, 214, 94, .45) 0 170px, transparent 171px),
    linear-gradient(180deg, #fdf3d4 0%, #fbeec8 100%); }
.cr-online--inperson .cr-perks li { border-color: #f1e2b8; }
.cr-card .tr-next { margin: -4px 0 0; }
.cr-price b small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cr-card--vip { background: #1c1a17; border-color: #2c2924; color: #c9c0ad; }
.cr-card--vip:hover { color: #c9c0ad; }
.cr-card--vip .cr-card-media { background: radial-gradient(circle at 80% 20%, rgba(246, 214, 94, .22) 0 30%, transparent 31%), linear-gradient(135deg, #2a2620, #14130f); }
.cr-card--vip .cr-card-ph { color: rgba(246, 214, 94, .35); }
.cr-card--vip .cr-level { color: var(--yellow); }
.cr-card--vip .cr-card-body h3, .cr-card--vip .cr-price b { color: var(--yellow); }
.cr-card--vip .cr-card-body p, .cr-card--vip .cr-meta { color: #a59c89; }
.cr-card--vip .cr-meta .icon { color: var(--yellow); }
.cr-card--vip .cr-card-foot { border-top-color: #3a352d; }
.cr-card--vip .cr-cta { background: var(--yellow); color: var(--ink); }
.cr-card--vip:hover .cr-cta { background: #ffe27a; }
.tr-next--vip { background: rgba(246, 214, 94, .1); color: #e8dfca; }
.tr-next--vip svg { color: var(--yellow); }
/* Сургалт page bands: Онлайн = soft pink grid, Танхим = warm yellow dots; white space between bands */
.cr-online:not(.cr-online--inperson) { border-top: 1px solid #f7d9d6; border-bottom-color: #f7d9d6; background:
    linear-gradient(rgba(214, 48, 43, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(214, 48, 43, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 7% 20%, rgba(255, 255, 255, .85) 0 110px, transparent 111px),
    radial-gradient(circle at 94% 86%, rgba(255, 255, 255, .7) 0 150px, transparent 151px),
    linear-gradient(180deg, #fde9e6 0%, #fbdcd8 100%); }
.cr-online--inperson { border-top: 1px solid #efe3c4; }
/* spacing lives inside each band (no gaps between bands) */
.cr-online { padding-top: 124px; padding-bottom: 128px; }
.cr-online + #franchise { padding-top: 108px; }
@media (max-width: 760px) {
    .cr-online { padding-top: 72px; padding-bottom: 76px; }
    .cr-online + #franchise { padding-top: 64px; }
}

/* VIP «how it goes» progress (card / detail intro / order tracking) */
.vip-steps { position: relative; --dot: 44px; }
.vip-steps ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vip-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.vip-steps-track { position: absolute; top: calc(var(--dot) / 2 - 2px); left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; background: var(--line); }
.vip-steps-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #f0a43a); transition: width .4s; }
.vip-dot { width: var(--dot); height: var(--dot); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); color: var(--muted); margin-bottom: 6px; transition: .2s; }
.vip-dot .icon { width: 20px; height: 20px; }
.vip-steps b { font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.vip-steps b small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.vip-steps li > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 190px; }
.vip-steps li.done .vip-dot { background: var(--green); border-color: var(--green); color: #fff; }
.vip-steps li.current .vip-dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px var(--red-soft); }
.vip-steps li.current b { color: var(--red); }
.vip-steps--intro .vip-dot { background: var(--yellow-soft); border-color: #f1dc8f; color: #8a6a00; }
.vip-steps--intro .vip-steps-track span { background: linear-gradient(90deg, #f1dc8f, var(--yellow)); }
.vip-steps--off { opacity: .5; filter: grayscale(1); }
.vip-track { padding: 24px 20px 22px; margin-bottom: 18px; }
/* compact: inside the dark VIP card */
.vip-steps--compact { --dot: 30px; margin: 2px 0 4px; padding: 12px 6px 10px; border-radius: 14px; background: rgba(246, 214, 94, .07); }
.vip-steps--compact .vip-steps-track { top: calc(12px + var(--dot) / 2 - 1px); height: 2px; background: rgba(246, 214, 94, .22); }
.vip-steps--compact .vip-steps-track span { background: rgba(246, 214, 94, .5); }
.vip-steps--compact ol { gap: 4px; }
.vip-steps--compact .vip-dot { border-width: 1px; margin-bottom: 2px; background: #1c1a17; border-color: rgba(246, 214, 94, .45); color: var(--yellow); }
.vip-steps--compact .vip-dot .icon { width: 14px; height: 14px; }
.vip-steps--compact b { font-size: 12px; font-weight: 600; color: #e8dfca; }
@media (max-width: 600px) {
    .vip-steps:not(.vip-steps--compact) { --dot: 38px; }
    .vip-steps:not(.vip-steps--compact) ol { grid-template-columns: 1fr; gap: 14px; }
    .vip-steps:not(.vip-steps--compact) li { display: grid; grid-template-columns: var(--dot) 1fr; column-gap: 12px; text-align: left; align-items: start; }
    .vip-steps:not(.vip-steps--compact) .vip-dot { grid-row: span 2; margin: 0; }
    .vip-steps:not(.vip-steps--compact) li > span:last-child { max-width: none; }
    .vip-steps:not(.vip-steps--compact) .vip-steps-track { left: calc(var(--dot) / 2 - 2px); right: auto; top: 8px; bottom: 8px; width: 4px; height: auto; }
    .vip-steps:not(.vip-steps--compact) .vip-steps-track span { width: 100% !important; height: var(--fill, 100%); background: linear-gradient(180deg, var(--red), #f0a43a); }
    .vip-steps--intro:not(.vip-steps--compact) .vip-steps-track span { background: linear-gradient(180deg, #f1dc8f, var(--yellow)); }
}
@media (max-width: 600px) {
    /* vertical steps: one connector per step, so the line stops at the last dot */
    .vip-steps:not(.vip-steps--compact) .vip-steps-track { display: none; }
    .vip-steps:not(.vip-steps--compact) li { position: relative; }
    .vip-steps:not(.vip-steps--compact) li:not(:last-child)::after { content: ''; position: absolute; left: calc(var(--dot) / 2 - 2px); top: var(--dot); bottom: -14px; width: 4px; background: var(--line); }
    .vip-steps:not(.vip-steps--compact) li.done:not(:last-child)::after { background: var(--green); }
    .vip-steps--intro:not(.vip-steps--compact) li:not(:last-child)::after { background: #f1dc8f; }
    .cr-card--vip .cr-card-foot { gap: 12px; }
    .cr-card--vip .cr-price b { font-size: 18px; white-space: nowrap; }
    .cr-card--vip .cr-cta { padding: 0 14px; gap: 4px; }
}
.cr-cta { white-space: nowrap; }

/* Франчайз сургалт: introduction side card (no registration) */
.tc-fr { text-align: left; }
.tc-fr-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--yellow-soft); color: #8a6a00; margin-bottom: 12px; }
.tc-fr-ic .icon { width: 26px; height: 26px; }
.tc-fr h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.tc-fr p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.tc-fr-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.tc-fr-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.tc-fr-list .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.tc-fr-call { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--warm); color: var(--ink); }
.tc-fr-call .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--red); color: #fff; flex: none; }
.tc-fr-call span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.tc-fr-call b { font-size: 17px; color: var(--ink); }
.tr-fr-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
/* ── Payment box (order / training order): light, minimal ── */
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--warm); margin: 0 0 16px; }
.pay-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.pay-tabs button .icon { width: 17px; height: 17px; }
.pay-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(22, 22, 22, .1); }
.pay-q-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-q-head b { font-size: 26px; color: var(--ink); letter-spacing: -.01em; }
.pay-q-sub { font-size: 13px; color: var(--muted); }
.pay-q-name { font-size: 13px; font-weight: 700; color: var(--ink); padding: 3px 9px; border-radius: 999px; background: var(--warm); }
.pay-q-lead { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.pay-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pay-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.25; transition: border-color .15s, transform .12s; }
.pay-app:hover { border-color: #d6d6d6; color: var(--ink); }
.pay-app:active { transform: scale(.97); }
.pay-app img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.pay-q-qr { display: flex; gap: 22px; align-items: center; }
.pay-q-img { width: 200px; height: 200px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.pay-q-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pay-q-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.pay-q-switch { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; border: 0; background: none; color: var(--red); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; }
.pay-q-switch .icon { width: 16px; height: 16px; }
.pay-q-wait { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--warm); font-size: 13px; color: var(--text); }
.pay-q-wait [data-q-state] { flex: 1; }
.pay-q-check { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; height: 32px; padding: 0 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pay-q-check:disabled { opacity: .6; cursor: wait; }
.pay-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e2ddd2; border-top-color: var(--red); animation: pay-spin .8s linear infinite; flex-shrink: 0; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-q-err { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; }
.pay-q-done { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.pay-q-done .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0; }
.pay-q-done b { display: block; font-size: 15px; color: var(--ink); }
.pay-q-done span { font-size: 13px; }
/* which view shows first: bank apps on phones, QR on computers; the switch flips it */
.pay-q .to-apps { display: none; }
.pay-q[data-view="auto"] .pay-q-apps { display: none; }
.pay-q[data-view="apps"] .pay-q-qr { display: none; }
.pay-q[data-view="qr"] .pay-q-apps { display: none; }
.pay-q[data-view="auto"] .to-qr, .pay-q[data-view="qr"] .to-qr { display: none; }
.pay-q[data-view="auto"] .to-apps, .pay-q[data-view="qr"] .to-apps { display: inline-flex; align-items: center; gap: 6px; }
.pay-q[data-view="apps"] .to-qr { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 768px), (pointer: coarse) {
    .pay-q[data-view="auto"] .pay-q-apps { display: block; }
    .pay-q[data-view="auto"] .pay-q-qr { display: none; }
    .pay-q[data-view="auto"] .to-apps { display: none; }
    .pay-q[data-view="auto"] .to-qr { display: inline-flex; align-items: center; gap: 6px; }
}
@media (max-width: 600px) {
    .pay-apps { grid-template-columns: repeat(3, 1fr); }
    .pay-q-qr { flex-direction: column; align-items: center; text-align: left; }
    .pay-q-img { width: 220px; height: 220px; }
}
.pay-box [hidden] { display: none !important; }
/* checkout: «Шинэ хаяг нэмэх» card and the first-address button */
.option--add { font: inherit; text-align: left; background: #fff; border-style: dashed; }
.option--add:hover { border-color: var(--red); }
.addr-first { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 14px; border: 1.5px dashed #d9d4ca; background: var(--warm); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.addr-first:hover { border-color: var(--red); }
.addr-first > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.addr-first b { color: var(--ink); }
.addr-first small { color: var(--muted); font-size: 13px; }
.addr-first > .icon { width: 22px; height: 22px; color: var(--red); }
.field .option { display: flex; margin-bottom: 0; font-weight: 400; }
.pay-rec { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); margin-left: 6px; vertical-align: 2px; }

/* ── Payment box v3: centred on computers; bank apps as a compact list (small logo + name); phones get the list and the QR ── */
.pay-q { text-align: center; }
.pay-q-head { justify-content: center; align-items: center; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.pay-q-head b { font-size: 30px; line-height: 1.15; }
.pay-q-head .pay-q-name { order: -1; margin-bottom: 4px; }
.pay-q-qr { flex-direction: column; align-items: center; gap: 14px; }
.pay-q-img { width: 210px; height: 210px; }
.pay-q-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; line-height: 1.4; counter-reset: st; }
.pay-q-steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 6px; }
.pay-q-steps li::before { content: counter(st); width: 20px; height: 20px; border-radius: 50%; background: var(--warm); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pay-q-or { display: none; width: 100%; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.pay-q-or::before, .pay-q-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pay-q-lead { text-align: center; }
.pay-apps { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; text-align: left; }
.pay-app { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13px; text-align: left; line-height: 1.25; }
.pay-app img { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.pay-app span { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pay-q-switch { margin: 14px auto 0; }
.pay-q-wait { text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.pay-q-apps { max-width: 620px; margin: 0 auto; }
@media (max-width: 768px), (pointer: coarse) {
    /* phones: bank apps first, then the QR (for paying from another phone) — nothing to switch */
    .pay-q[data-view] .pay-q-apps { display: block; }
    .pay-q[data-view] .pay-q-qr { display: flex; margin-top: 18px; }
    .pay-q[data-view] .pay-q-or { display: flex; }
    .pay-q[data-view] .pay-q-switch { display: none; }
    .pay-apps { grid-template-columns: 1fr 1fr; }
    .pay-q-img { width: 190px; height: 190px; }
    .pay-q-steps { display: none; }
}
@media (max-width: 360px) { .pay-apps { grid-template-columns: 1fr; } }
.option.is-off { cursor: not-allowed; background: #fafafa; border-style: dashed; }
.option.is-off:hover { border-color: #e2e2e2; }
.option.is-off > .icon, .option.is-off span { opacity: .55; }
.option.is-off b { color: var(--muted); }
.pay-soon { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #efedf9; color: #5b4bc4; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 768px), (pointer: coarse) {
    /* phones: QR on top, then the bank apps */
    .pay-q { display: flex; flex-direction: column; }
    .pay-q-head { order: 0; }
    .pay-q[data-view] .pay-q-qr { order: 1; margin-top: 0; }
    .pay-q[data-view] .pay-q-or { display: none; }
    .pay-q-apps { order: 2; width: 100%; margin-top: 18px; }
    .pay-q-wait { order: 3; }
    .pay-q-done { order: 4; }
    .pay-q-lead { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
    .pay-q-lead::before, .pay-q-lead::after { content: ''; flex: 1; height: 1px; background: var(--line); }
}
.pay-q-lead .lead-m { display: none; }
@media (max-width: 768px), (pointer: coarse) { .pay-q-lead .lead-d { display: none; } .pay-q-lead .lead-m { display: inline; } }
/* «Банкны апп-аар төлөх / QR код харуулах»: a real button */
.pay-q-switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; margin: 16px auto 0; border: 1.5px solid var(--red); border-radius: 999px; background: #fff; color: var(--red); font-size: 14px; font-weight: 700; transition: background .15s, color .15s; }
.pay-q-switch:hover { background: var(--red); color: #fff; }
.pay-q-switch .icon { width: 18px; height: 18px; }

/* Order page: delivery card (courier / countryside car details from the CRM) */
.dl-card { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 24px; }
.dl-card.is-done { border-color: #cfe9d9; }
.dl-head { display: flex; gap: 12px; align-items: center; }
.dl-ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--amber-soft); color: var(--amber); flex-shrink: 0; }
.dl-card.is-done .dl-ic { background: var(--green-soft); color: var(--green); }
.dl-ic .icon { width: 24px; height: 24px; }
.dl-head b { display: block; font-size: 17px; color: var(--ink); }
.dl-head span { font-size: 13px; color: var(--muted); }
.dl-photo { position: relative; display: block; margin-top: 16px; border-radius: 16px; overflow: hidden; background: var(--warm); }
.dl-photo img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.dl-photo span { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(22, 22, 22, .7); color: #fff; font-size: 12px; font-weight: 600; }
.dl-photo span .icon { width: 15px; height: 15px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dl-item { padding: 12px 14px; border-radius: 14px; background: var(--warm); }
.dl-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dl-item b { font-size: 16px; color: var(--ink); word-break: break-word; }
.dl-plate { display: inline-block; padding: 3px 10px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.dl-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dl-actions .btn { flex: 1; min-width: 160px; }
.dl-actions .icon { width: 18px; height: 18px; }
.dl-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--text); }
.dl-note .icon { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.dl-tip { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.dl-courier { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--warm); }
.dl-courier img, .dl-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dl-av { display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); font-weight: 700; }
.dl-courier div { flex: 1; min-width: 0; }
.dl-courier small { display: block; font-size: 12px; color: var(--muted); }
.dl-courier b { color: var(--ink); }
.dl-call { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; }
.dl-call:hover { color: #fff; filter: brightness(1.05); }
.dl-call .icon { width: 20px; height: 20px; }
@media (max-width: 480px) { .dl-grid { grid-template-columns: 1fr; } }@media (max-width: 480px) { .dl-photo img { max-height: 240px; } }
.hero .hero-title { font-size: clamp(28px, 4vw, 44px); }   /* slides 2+ (h2 — one h1 per page) look like the first */
.hero .hero-title span { color: var(--red); }

.sa-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Paid lessons: another screen took over / device limit */
.ln-taken { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: rgba(15, 15, 15, .88); color: #fff; }
.ln-taken[hidden] { display: none; }
.ln-taken > .icon { width: 34px; height: 34px; opacity: .8; }
.ln-taken b { font-size: 17px; }
.ln-taken span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.ln-taken .btn { margin-top: 6px; }
.ln-devices { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 20px; min-height: 280px; justify-content: center; background: #161616; color: #fff; }
.ln-devices-ic .icon { width: 36px; height: 36px; color: var(--yellow); }
.ln-devices b { font-size: 17px; }
.ln-devices p { margin: 0; max-width: 460px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ln-devices ul { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 420px; display: grid; gap: 8px; }
.ln-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); text-align: left; }
.ln-devices li > span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.ln-devices li .icon { width: 18px; height: 18px; grid-row: span 2; opacity: .7; }
.ln-devices li b { font-size: 14px; }
.ln-devices li small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.ln-devices-note { color: rgba(255, 255, 255, .55); font-size: 12px; }
/* Account → Сургалт: watching devices */
.my-devices { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.my-devices-head { display: flex; gap: 12px; align-items: center; }
.my-devices-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--warm); color: var(--ink); flex-shrink: 0; }
.my-devices-ic .icon { width: 20px; height: 20px; }
.my-devices-head b { display: block; color: var(--ink); }
.my-devices-head span { font-size: 13px; color: var(--muted); }
.my-devices ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.my-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warm); }
.my-devices li span { display: flex; flex-direction: column; }
.my-devices li b { font-size: 14px; color: var(--ink); }
.my-devices li small { font-size: 12px; color: var(--muted); }
.my-devices-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }.ln-devices .btn { background: #fff; color: var(--ink); border-color: #fff; }
.ln-devices .btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* Share bar (products, news, trainings, courses) */
.share-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; }
.share-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.share-btn svg, .share-btn .icon { width: 16px; height: 16px; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-ms:hover { background: #0a7cff; border-color: #0a7cff; color: #fff; }
.share-copy:hover, .share-native:hover { border-color: var(--red); color: var(--red); }
.share-copy.is-done { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.share-ms { display: none; }
@media (pointer: coarse) { .share-ms { display: inline-flex; } .share-btn span { display: none; } .share-btn { width: 38px; height: 38px; padding: 0; justify-content: center; } }
.share-bar [hidden] { display: none !important; }
/* Order page: where the order is now (inc/orders.php order_progress) */
.op-steps { list-style: none; margin: 0 0 22px; padding: 18px 20px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 16px); }
.op-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 6px; min-width: 0; }
.op-step::before { content: ''; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.op-step:first-child::before { display: none; }
.op-step.is-done::before, .op-step.is-current::before, .op-step.is-bad::before { background: var(--green); }
.op-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.op-dot .icon { width: 19px; height: 19px; }
.op-step.is-done .op-dot { background: var(--green); border-color: var(--green); color: #fff; }
.op-step.is-current .op-dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); animation: opPulse 1.6s ease-in-out infinite; }
.op-step.is-bad .op-dot { background: var(--red); border-color: var(--red); color: #fff; }
@keyframes opPulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.op-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-txt b { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.op-txt small { font-size: 12px; color: var(--muted); }
.op-step.is-todo .op-txt b { color: var(--muted); font-weight: 500; }
.op-step.is-current .op-txt small { color: var(--red); font-weight: 600; }
.op-step.is-bad .op-txt b { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .op-step.is-current .op-dot { animation: none; } }
@media (max-width: 640px) {
    .op-steps { grid-template-columns: 1fr; padding: 16px; }
    .op-step { flex-direction: row; text-align: left; gap: 12px; padding: 0 0 18px; align-items: flex-start; }
    .op-step:last-child { padding-bottom: 0; }
    .op-step::before { top: -18px; right: auto; left: 18.5px; width: 3px; height: 18px; }   /* from the dot above to this one */
    .op-dot { width: 40px; height: 40px; flex-shrink: 0; }
    .op-txt { padding-top: 9px; }
}
/* courier: number visible with call + copy */
.dl-phone { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.dl-phone .icon { width: 14px; height: 14px; color: var(--green); }
.dl-copy { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.dl-copy:hover { border-color: var(--ink); }
.dl-copy .icon { width: 18px; height: 18px; }
.dl-call { flex-shrink: 0; }
/* ── Discounts: customer discount / voucher in the order summary, promo code on a course ── */
.sum-discount b { color: var(--green); }
.voucher { margin: 14px 0 16px; padding-top: 14px; border-top: 1px dashed var(--line, #e7e7e7); }
.voucher label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink, #1a1a1a); }
.voucher-row { display: flex; gap: 8px; }
.voucher-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.summary .voucher-row .btn { flex-shrink: 0; margin-top: 0; }
.voucher-msg { display: block; min-height: 18px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.voucher-msg.is-ok { color: var(--green); }
.voucher-msg.is-bad { color: var(--red); }
.cr-promo { margin: 0 0 12px; }
.cr-promo-toggle { border: 0; background: none; padding: 4px 0; color: var(--red); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cr-promo-toggle .icon { width: 18px; height: 18px; }
.cr-promo-box { margin-top: 4px; }
.cr-promo-box .btn-block { margin-top: 8px; }
.sum-row[hidden] { display: none; }
.voucher-row .input::placeholder { text-transform: none; letter-spacing: 0; }

/* QPay invoice being made (shop.js asks ajax/pay.php): the page is already usable, the pane fills in */
.pay-q-load { text-align: center; }
.pay-q-load .pay-q-head { display: flex; }
.pay-sk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-width: 620px; margin: 0 auto; }
.pay-sk span, .pay-sk-qr { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #f3efe7 25%, #faf7f1 50%, #f3efe7 75%) 0 0 / 200% 100%; animation: pay-sk 1.2s linear infinite; }
.pay-sk-qr { width: 210px; height: 210px; margin: 0 auto 16px; border-radius: 16px; }
@media (min-width: 769px) and (pointer: fine) { .pay-sk { grid-template-columns: repeat(3, 1fr); } }
@keyframes pay-sk { to { background-position: -200% 0; } }
.pay-q-err button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pay-sk span, .pay-sk-qr { animation: none; } }
