/* Mira Global House storefront: purple, deep violet and white, matching the logo */
:root {
  --violet-950: #1D0B3A;
  --violet-900: #2E1257;
  --violet-800: #3D1A72;
  --purple-700: #4F2490;
  --purple-600: #5E2EA6;
  --purple-500: #7444BE;
  --purple-300: #B9A0DF;
  --lav-100: #F1EBFA;
  --lav-50: #F8F5FC;
  --paper: #FCFBF9;
  --white: #FFFFFF;
  --ink: #1F1830;
  --ink-2: #4B4458;
  --muted: #7A7287;
  --line: #E7E2EE;
  --line-2: #D9D2E4;
  --ok: #1E7B4E; --ok-bg: #E8F5EE;
  --warn: #9A5B00; --warn-bg: #FFF4E0;
  --bad: #B3261E; --bad-bg: #FDECEA;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 11, 58, .05), 0 8px 24px rgba(29, 11, 58, .06);
  --serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --tabbar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); padding-bottom: var(--tabbar-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-900); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; color: var(--violet-950); font-weight: 600; }
h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: .02em; }
h2 { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: .02em; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 2px; }
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic svg.fill, .ic .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.3em; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; font-size: .98rem; text-decoration: none; letter-spacing: .01em; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--violet-900); color: var(--white); }
.btn-primary:hover { background: var(--purple-600); color: var(--white); }
.btn-outline { background: transparent; color: var(--violet-900); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--purple-600); color: var(--purple-600); }
.btn-light { background: var(--white); color: var(--violet-900); }
.btn-light:hover { background: var(--lav-100); color: var(--violet-900); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-text { background: none; color: var(--purple-600); padding-left: .4em; padding-right: .4em; min-height: auto; border: 0; }
.btn-lg { min-height: 52px; padding: .7em 1.6em; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: .35em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--violet-900); border-radius: 50%; }
.icon-btn .ic { width: 24px; height: 24px; }

/* Bars */
.testbar { background: #FFE9A8; color: #4A3500; text-align: center; font-size: .85rem; padding: 6px 16px; }
.testbar strong { letter-spacing: .08em; margin-right: .4em; }
.announce { background: var(--violet-950); color: #E9E0F7; text-align: center; font-size: .85rem; padding: 7px 16px; letter-spacing: .02em; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.search { flex: 1; display: flex; max-width: 640px; margin: 0 auto; background: var(--lav-50); border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--purple-500); background: var(--white); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; height: 48px; font-size: 1rem; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: var(--violet-900); color: var(--white); width: 56px; display: grid; place-items: center; }
.search button:hover { background: var(--purple-600); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.hdr-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--violet-900); text-decoration: none; font-size: .92rem; font-weight: 500; border-radius: 999px; }
.hdr-link:hover { background: var(--lav-100); color: var(--violet-900); }
.hdr-link .ic { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--purple-600); color: var(--white); font-size: .72rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.main-nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-item { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; letter-spacing: .02em; border: 0; background: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: var(--violet-900); border-bottom-color: var(--purple-600); }
.mega-btn { color: var(--violet-900); font-weight: 600; }
.mega-btn .ic { width: 16px; height: 16px; }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29, 11, 58, .08); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 28px; padding-top: 28px; padding-bottom: 32px; }
.mega-title { font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--violet-900); text-decoration: none; letter-spacing: .03em; }
.mega-col ul { list-style: none; margin: 10px 0 0; padding: 0; }
.mega-col li a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.mega-col li a:hover { color: var(--purple-600); }
.mega-col .more { color: var(--purple-600); font-weight: 500; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(29, 11, 58, .45); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--white); overflow-y: auto; padding: 12px 0 calc(24px + env(safe-area-inset-bottom)); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 12px; border-bottom: 1px solid var(--line); }
.drawer-head img { border-radius: 50%; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav > a, .drawer-nav summary { padding: 13px 20px; color: var(--ink); text-decoration: none; font-weight: 500; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary .ic { transform: rotate(180deg); }
.drawer-nav details a { display: block; padding: 10px 20px 10px 36px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.drawer-label { margin: 14px 20px 4px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { background: radial-gradient(120% 140% at 85% 20%, #5B2E9F 0%, var(--violet-900) 45%, var(--violet-950) 100%); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; margin-bottom: .45em; }
.hero .lead { font-size: 1.12rem; color: #DCD0F0; max-width: 34em; }
.kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-600); margin: 0 0 .6em; font-weight: 500; }
.kicker.light { color: #CDB8F0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #D9CCEE; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-emblem { justify-self: center; position: relative; }
.hero-emblem::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.hero-emblem img { width: min(380px, 70vw); border-radius: 50%; box-shadow: 0 30px 60px rgba(0,0,0,.35); }

/* Sections */
.section { padding: 48px 0; }
.section + .section { padding-top: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head .sub { margin: 8px 0 0; color: var(--ink-2); max-width: 42em; }
.see-all { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-weight: 500; text-decoration: none; }
.see-all .ic { width: 18px; height: 18px; }
.preorder-band { background: var(--lav-100); margin: 24px 0; padding: 48px 0 !important; }
.band-note { margin: 18px 0 0; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--purple-300); box-shadow: var(--shadow); color: var(--ink); }
.cat-img { grid-row: span 2; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--lav-100); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-weight: 600; color: var(--violet-900); line-height: 1.25; align-self: end; }
.cat-count { font-size: .82rem; color: var(--muted); align-self: start; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.card { min-width: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--lav-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-img img { transform: scale(1.03); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; background: var(--white); color: var(--violet-900); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.badge-pre { background: var(--violet-900); color: var(--white); }
.badge-pre.muted { background: #5D5568; }
.badge-offer { background: #B3261E; color: var(--white); }
.badge-out { background: #5D5568; color: var(--white); }
.badge-sample { background: #FFE9A8; color: #4A3500; }
.badge-ready { background: var(--white); color: var(--ok); }
.card-body { padding: 12px 2px 0; }
.card-cat { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card-title { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink); margin: 0 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price .now { font-weight: 600; color: var(--violet-900); }
.price .was { color: var(--muted); font-size: .9rem; }
.price-lg .now { font-size: 1.6rem; }
.price-lg .was { font-size: 1.05rem; }
.card-hint { display: block; margin-top: 4px; font-size: .82rem; color: var(--purple-600); }
.card.is-out .card-img img { opacity: .6; }

/* Help band */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.help-card h2 { font-size: 1.15rem; }
.help-card p { color: var(--ink-2); flex: 1; }
.insta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.insta-row > div { display: flex; align-items: center; gap: 14px; }
.insta-row .ic { width: 34px; height: 34px; color: var(--purple-600); }
.insta-row strong { display: block; color: var(--violet-900); }
.insta-row span { color: var(--ink-2); font-size: .93rem; }

/* Service strip + footer */
.service-strip { border-top: 1px solid var(--line); background: var(--white); margin-top: 32px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.service-grid > div { display: flex; gap: 12px; align-items: flex-start; }
.service-grid .ic { width: 28px; height: 28px; color: var(--purple-600); }
.service-grid strong { display: block; font-weight: 600; color: var(--violet-900); font-size: .95rem; }
.service-grid span { font-size: .87rem; color: var(--muted); }
.site-footer { background: var(--violet-950); color: #CFC3E4; padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 32px; }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { font-size: .78rem; letter-spacing: .14em; color: #A99BC4; }
.site-footer h3 { color: var(--white); font-family: var(--serif); font-size: .95rem; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #CFC3E4; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.contact-list li { display: flex; gap: 8px; align-items: center; }
.contact-list .ic { width: 18px; height: 18px; color: var(--purple-300); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); }
.socials a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.socials .ic { width: 20px; height: 20px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9C8FB8; }

/* WhatsApp float + tabbar */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + var(--tabbar-h) + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #1FA855; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 40; }
.wa-float:hover { color: var(--white); background: #198F48; }
.wa-float .ic { width: 30px; height: 30px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .7rem; color: var(--ink-2); text-decoration: none; border: 0; background: none; }
.tabbar .ic { width: 23px; height: 23px; }
.tabbar .active { color: var(--purple-600); }
.tabbar .cart-count { left: calc(50% + 4px); top: 3px; }

/* Page heads, crumbs, chips */
.page-head { padding-top: 28px; padding-bottom: 12px; }
.page-head.slim { padding-top: 16px; padding-bottom: 0; }
.page-head .sub { color: var(--ink-2); max-width: 46em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple-600); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink); background: var(--white); font-size: .9rem; text-decoration: none; }
.chip:hover { border-color: var(--purple-500); color: var(--purple-600); }
.sub-cats { margin-top: 14px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip-radio span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: .92rem; transition: border-color .12s, background .12s; }
.chip-radio input:checked + span { border-color: var(--violet-900); background: var(--violet-900); color: var(--white); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--purple-500); outline-offset: 2px; }
.chip-radio:hover span { border-color: var(--purple-500); }

/* Listing */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; padding-bottom: 24px; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 18px; position: sticky; top: 140px; }
.filters summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 8px; font-weight: 600; color: var(--violet-900); cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary .ic { transform: rotate(180deg); }
.filter-form fieldset { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
.filter-form legend { font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.filter-form select, .filter-form input[type=number] { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 10px; background: var(--white); }
.filter-form .chip-radio span { min-width: 0; min-height: 34px; padding: 4px 10px; font-size: .85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio, .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .93rem; cursor: pointer; }
.radio input, .check input { width: 18px; height: 18px; accent-color: var(--violet-900); }
.filter-actions { display: flex; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-bar .count { color: var(--ink-2); }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-size: .9rem; color: var(--muted); }
.sort-form select { height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 10px; background: var(--white); }
.listing .grid { grid-template-columns: repeat(3, 1fr); }
.empty { background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.empty .chips { justify-content: center; margin: 18px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0 8px; color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 12px; padding-bottom: 24px; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--lav-100); border-radius: 18px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--lav-100); }
.thumb.active { border-color: var(--violet-900); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.pdp-info .price { margin-bottom: 14px; }
.sample-note { background: #FFF6D6; color: #5A4300; font-size: .88rem; padding: 8px 12px; border-radius: var(--radius-sm); }
.stock-line { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-line.ok { color: var(--ok); }
.stock-line.no { color: var(--bad); }
.pre-box { border: 1.5px solid var(--purple-300); background: var(--lav-50); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.pre-box.closed, .pre-box.not_open, .pre-box.sold_out { border-color: var(--line-2); background: #F5F4F7; }
.pre-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pre-head strong { color: var(--violet-900); font-family: var(--serif); letter-spacing: .04em; }
.pre-head span { color: var(--purple-600); font-weight: 500; font-size: .93rem; }
.pre-box ul { list-style: none; padding: 0; margin: 0 0 8px; }
.pre-box li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.pre-box li span { color: var(--muted); flex: none; }
.pre-box li b { font-weight: 500; text-align: right; }
.pre-box details { font-size: .92rem; margin: 6px 0; }
.pre-box summary { cursor: pointer; color: var(--purple-600); }
.small-link { font-size: .88rem; }
.buy-form { margin: 18px 0; }
.opt { border: 0; padding: 0; margin: 0 0 18px; }
.opt legend { font-weight: 600; margin-bottom: 10px; font-size: .95rem; padding: 0; }
.opt-val { font-weight: 400; color: var(--ink-2); }
.opt.invalid legend { color: var(--bad); }
.opt.invalid .chip-radio span { border-color: #E9A9A4; }
.size-chart { margin: -8px 0 18px; font-size: .92rem; }
.size-chart summary { cursor: pointer; color: var(--purple-600); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.size-chart table, .prose table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: .9rem; }
.size-chart th, .size-chart td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.size-chart th { background: var(--lav-100); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty-row label { font-weight: 600; font-size: .95rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--violet-900); }
.qty button:hover { background: var(--lav-100); }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--bad); background: var(--bad-bg); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .93rem; }
.assure { list-style: none; padding: 16px 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .ic { color: var(--purple-600); }
.pdp-desc { padding-top: 22px; }
.pdp-desc h2 { font-size: 1.1rem; }
.specs { display: grid; gap: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 40% 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(15, 6, 30, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 10px; }
.lb-close { position: absolute; top: 14px; right: 14px; color: var(--white); background: rgba(255,255,255,.12); }
.lb-nav button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); font-size: 2rem; line-height: 1; }
.lb-nav button:first-child { left: 14px; }
.lb-nav button:last-child { right: 14px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(29,11,58,.06); transform: translateY(110%); transition: transform .2s; }
.sticky-buy.show { transform: none; }

/* Cart & checkout */
.cart-page, .checkout, .order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 32px; }
.cart-page > *, .checkout > *, .order-layout > *, .listing > *, .pdp > * { min-width: 0; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 140px; }
.summary h2 { font-size: 1.15rem; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img, .cart-line .ph { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--lav-100); }
.cart-line h3 { font-size: 1rem; font-weight: 500; margin: 0 0 4px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line .meta { font-size: .88rem; color: var(--muted); }
.cart-line .line-price { text-align: right; font-weight: 600; color: var(--violet-900); }
.cart-line .line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-line .qty button { width: 36px; height: 36px; }
.cart-line .qty input { width: 38px; }
.cart-line .remove { border: 0; background: none; color: var(--muted); font-size: .88rem; text-decoration: underline; padding: 4px; }
.cart-line .problem { color: var(--bad); font-size: .88rem; margin-top: 6px; }
.cart-line.bad { opacity: .75; }
.tag-pre { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--violet-900); color: var(--white); margin-left: 4px; vertical-align: 1px; }
.pre-info { font-size: .85rem; color: var(--purple-700); background: var(--lav-50); border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.totals { margin: 16px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .95rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 500; text-align: right; }
.totals .disc dd { color: var(--ok); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.12rem; }
.totals .grand dt, .totals .grand dd { color: var(--violet-950); font-weight: 600; }
.totals .due { background: var(--lav-100); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.totals .due dt, .totals .due dd { color: var(--violet-900); font-weight: 600; }
.code-form label { font-size: .88rem; font-weight: 500; display: block; margin-bottom: 6px; }
.row-input { display: flex; gap: 8px; }
.row-input input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 12px; background: var(--white); }
.row-input input:focus { border-color: var(--purple-500); outline: none; }
.form-msg { font-size: .85rem; margin: 6px 0 0; min-height: 1em; }
.form-msg.ok { color: var(--ok); } .form-msg.bad { color: var(--bad); }
.co-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.co-step h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.co-step h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--violet-900); color: var(--white); display: grid; place-items: center; font-size: .85rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.opt-label { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--white); font-size: 1rem; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple-500); outline: none; box-shadow: 0 0 0 3px rgba(116, 68, 190, .12); }
.field.invalid input { border-color: var(--bad); }
.methods { display: grid; gap: 10px; margin-bottom: 16px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.method:has(input:checked) { border-color: var(--violet-900); background: var(--lav-50); }
.method input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--violet-900); }
.method strong { display: block; }
.method span { font-size: .87rem; color: var(--muted); }
.method b { color: var(--violet-900); white-space: nowrap; }
.pre-terms-box { font-size: .9rem; background: var(--lav-50); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.pre-terms-box p { margin: 0 0 8px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.mini-lines img, .mini-lines .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--lav-100); }
.mini-lines strong { display: block; font-weight: 500; line-height: 1.3; }
.mini-lines span { display: block; color: var(--muted); font-size: .83rem; }

/* Order page */
.success-banner { background: var(--ok-bg); color: #13502F; border-radius: var(--radius); padding: 14px 18px; margin: 8px 0 18px; }
.order-ref { font-family: var(--sans); font-weight: 600; letter-spacing: .06em; }
.pay-card { background: var(--white); border: 2px solid var(--violet-900); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pay-head h2 { margin: 0; }
.pay-head p { margin: 2px 0 0; }
.pay-amount { font-size: 1.8rem; font-weight: 600; color: var(--violet-900); white-space: nowrap; }
.tabs { display: flex; gap: 6px; background: var(--lav-100); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: none; padding: 10px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-2); font-size: .93rem; }
.tab.active { background: var(--white); color: var(--violet-900); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stk-form label, .pochi-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.stk-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--lav-50); display: flex; gap: 12px; align-items: flex-start; }
.stk-status.ok { background: var(--ok-bg); color: #13502F; }
.stk-status.bad { background: var(--bad-bg); color: #7A1A14; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--purple-300); border-top-color: var(--violet-900); animation: spin .9s linear infinite; flex: none; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.test-panel { margin-top: 16px; border: 1.5px dashed #D8A300; background: #FFF9E6; border-radius: var(--radius-sm); padding: 14px; font-size: .92rem; }
.test-panel .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.steps { padding-left: 1.3em; margin: 0 0 16px; }
.steps li { margin-bottom: 8px; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--purple-500); }
.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.notice.info { background: var(--lav-100); color: var(--violet-900); }
.notice.ok { background: var(--ok-bg); color: #13502F; }
.notice.warn { background: var(--warn-bg); color: #5E3800; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 8px 0 14px; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); margin-top: 2px; position: relative; z-index: 1; }
.timeline li.done > span { background: var(--purple-600); border-color: var(--purple-600); }
.timeline li.done::before { background: var(--purple-300); }
.timeline li.current > span { border-color: var(--violet-900); box-shadow: 0 0 0 4px var(--lav-100); background: var(--violet-900); }
.timeline li.done, .timeline li.current { color: var(--ink); }
.timeline li.cancelled > span { background: var(--bad); border-color: var(--bad); box-shadow: none; }
.timeline strong { display: block; font-weight: 500; }
.timeline p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }
.timeline time { font-size: .8rem; color: var(--muted); }
.activity { font-size: .9rem; }
.activity summary { cursor: pointer; color: var(--purple-600); }
.activity ul { padding-left: 1.1em; }
.activity time { color: var(--muted); margin-right: 6px; }
.pay-state { font-size: .93rem; margin: 0; }

/* Track & prose */
.track-form { margin-bottom: 32px; }
.prose { padding-bottom: 32px; font-size: 1.02rem; }
.prose h2 { font-family: var(--sans); font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--violet-950); color: var(--white); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; font-size: .95rem; max-width: calc(100vw - 32px); }
.toast a { color: #D8C7F5; font-weight: 600; white-space: nowrap; }

.only-mobile { display: none !important; }

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .listing .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --tabbar-h: 58px; }
  .only-mobile { display: revert !important; }
  .tabbar.only-mobile { display: grid !important; }
  .only-desktop { display: none !important; }
  .header-row { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
  .brand { margin-right: auto; }
  .brand img { width: 48px; height: 48px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search input { height: 46px; }
  .hdr-link { padding: 8px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; gap: 28px; text-align: left; }
  .hero-emblem { order: -1; justify-self: start; }
  .hero-emblem img { width: 150px; }
  .hero-emblem::before { inset: -10px; }
  .hero .lead { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 32px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .scroll-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .scroll-row .card { flex: 0 0 44%; scroll-snap-align: start; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { grid-template-columns: 1fr; text-align: center; padding: 12px 8px; row-gap: 6px; }
  .cat-img { grid-row: auto; width: 64px; height: 64px; margin: 0 auto; }
  .cat-name { font-size: .9rem; }
  .cat-count { display: none; }
  .help-grid { grid-template-columns: 1fr; }
  .insta-row { flex-direction: column; align-items: flex-start; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; margin: 0 -16px; }
  .gallery-main { border-radius: 0; }
  .thumbs { padding: 0 16px; }
  .buy-actions { grid-template-columns: 1fr; }
  .cart-page, .checkout, .order-layout { grid-template-columns: 1fr; gap: 16px; }
  .summary { position: static; }
  .checkout .summary { order: -1; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line img, .cart-line .ph { width: 76px; height: 76px; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .wa-float { width: 50px; height: 50px; right: 14px; }
  .body-pdp .wa-float, .checkout-body .wa-float { display: none; }
  .pay-head { flex-direction: column; gap: 4px; }
  .row-input { flex-direction: column; }
  .row-input .btn { width: 100%; }
  .code-form .row-input { flex-direction: row; }
  .code-form .row-input .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
  .site-footer { padding-bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .filter-form .row2 { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 380px) {
  .scroll-row .card { flex-basis: 62%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }
