/* Qyzora storefront — design system
   Black & red, editorial, mobile-first. Light + dark via [data-theme]. */
:root {
  --red: #D10500; --red-ink: #B00400; --red-soft: #FCE9E8;
  --bg: #FAFAF8; --surface: #FFFFFF; --surface-2: #F2F1EE; --line: #E4E2DD;
  --ink: #0B0B0B; --ink-2: #3D3D3B; --muted: #6B6A66;
  --ok: #17803D; --warn: #A15C00; --info: #1F4FB8;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --wrap: 1320px;
  color-scheme: light;
}
[data-theme="dark"] {
  --red: #FF3B30; --red-ink: #FF5A50; --red-soft: #2A0E0C;
  --bg: #0B0B0B; --surface: #141414; --surface-2: #1C1C1C; --line: #2A2A2A;
  --ink: #F4F2EF; --ink-2: #D2D0CB; --muted: #9C9A95;
  --ok: #4ADE80; --warn: #FBBF24; --info: #7AA2FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font: 700 clamp(28px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.02em; }
h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -.015em; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.hide-sm { display: none; }
@media (min-width: 900px) { .hide-sm { display: initial; } .hide-lg { display: none !important; } }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { background: #fff; color: #0B0B0B; border-color: #fff; }
.btn-light:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); text-align: center; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 16px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.input[aria-invalid="true"] { border-color: var(--red); }
.error { color: var(--red); font-size: 13.5px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 1px; flex: none; }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Alerts / toasts */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.alert-ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-err { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.alert-info { background: var(--surface-2); border-color: var(--line); }
.toast-zone { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; width: min(560px, calc(100% - 24px)); }
.toast { background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; animation: rise .3s ease; margin-top: 8px; }
.toast.err { background: var(--red); color: #fff; }
.toast a { color: inherit; font-weight: 600; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Announcement + header */
.announce { background: var(--ink); color: var(--bg); font-size: 13.5px; text-align: center; padding: 9px 16px; }
.announce a { color: inherit; font-weight: 600; }
[data-theme="dark"] .announce { background: var(--red); color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo-word { font: 800 21px/1 var(--display); letter-spacing: 2px; }
.logo-word span { color: var(--red); }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search .input { border-radius: 999px; padding-left: 46px; min-height: 46px; background: var(--surface-2); border-color: transparent; }
.search .input:focus { background: var(--surface); }
.search .icon { position: absolute; left: 16px; top: 12px; color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; max-height: 70vh; overflow: auto; }
.suggest.open { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.suggest img { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.suggest .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 8px 4px; }
.header-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.mobile-search { padding-bottom: 12px; }
@media (max-width: 899px) { .header .search.desk { display: none; } .logo-word { font-size: 18px; } }
@media (min-width: 900px) { .mobile-search { display: none; } }
.catnav { border-top: 1px solid var(--line); }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav li { position: relative; }
.catnav > .wrap > ul > li > a { display: block; padding: 12px 14px; font-weight: 550; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.catnav > .wrap > ul > li > a:hover { color: var(--red); }
.mega { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: none; z-index: 55; }
.catnav li:hover > .mega, .catnav li:focus-within > .mega { display: block; }
.mega a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; }
.mega a:hover { background: var(--surface-2); }
@media (max-width: 899px) { .catnav { display: none; } }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--surface); padding: 18px; overflow: auto; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: none; } }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { padding: 14px 4px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer details a { display: block; padding: 10px 14px; text-decoration: none; }

/* Hero */
.hero { position: relative; margin-top: 20px; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { scroll-snap-align: start; position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); color: #fff; overflow: hidden; isolation: isolate; }
.hero-slide.dark { background: #0B0B0B; }
[data-theme="dark"] .hero-slide.dark, [data-theme="dark"] .promo:not(.red):not(.light) { background: #161616; box-shadow: inset 0 0 0 1px #2A2A2A; }
.hero-slide.red { background: #C00400; }
.hero-slide.light { background: #EFEDE8; color: #0B0B0B; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-slide.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65)); }
.hero-art { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(62vw, 640px); z-index: -1; opacity: .95; }
.hero-content { max-width: 640px; }
.eyebrow { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; border: 1px solid currentColor; margin-bottom: 18px; }
.hero h1, .hero h2 { font-size: clamp(34px, 6vw, 72px); line-height: 1.02; margin-bottom: 16px; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); opacity: .88; max-width: 520px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-dots button { width: 28px; height: 4px; border-radius: 4px; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--red); }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; white-space: nowrap; }

/* Category tiles */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; text-decoration: none; background: var(--surface-2); isolation: isolate; transition: transform .25s ease; }
.cat-tile:hover { transform: translateY(-3px); color: var(--ink); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cat-tile .mark { position: absolute; right: -18%; top: -6%; width: 85%; opacity: .9; z-index: -1; }
.cat-tile h3 { font: 700 18px/1.15 var(--display); margin: 0; }
.cat-tile span { font-size: 13px; color: var(--muted); }

/* Product grid & card */
.grid { display: grid; gap: 22px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 760px) { .rail { grid-auto-columns: minmax(220px, 30%); } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 42px) / 4); } }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img:first-child { transform: scale(1.03); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 99px; font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--surface); color: var(--ink); }
.tag-red { background: var(--red); color: #fff; }
.tag-ink { background: var(--ink); color: var(--bg); }
.card-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(6px); transition: .2s ease; }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
@media (hover: none) { .card-quick { display: none; } }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { font-size: 15px; font-weight: 550; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 700; }
.price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .9em; }
.price .now-sale { color: var(--red); }
.stars { display: inline-flex; gap: 1px; color: var(--red); font-size: 13px; letter-spacing: 1px; }
.stock-low { color: var(--warn); font-size: 13px; font-weight: 600; }
.stock-out { color: var(--muted); font-size: 13px; font-weight: 600; }
.wish-btn { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--surface); width: 38px; height: 38px; }
.wish-btn.on .icon { fill: var(--red); stroke: var(--red); }

/* Promo banners */
.promos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .promos { grid-template-columns: 1fr 1fr; } }
.promo { position: relative; border-radius: 20px; overflow: hidden; padding: 32px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #0B0B0B; isolation: isolate; text-decoration: none; }
.promo.red { background: #C00400; }
.promo.light { background: #EFEDE8; color: #0B0B0B; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo h3 { font: 700 28px/1.1 var(--display); margin: 0 0 6px; }
.promo .mark { position: absolute; right: -40px; top: -40px; width: 260px; opacity: .25; z-index: -1; }

/* Brands, testimonials, newsletter */
.brand-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .brand-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .brand-row { grid-template-columns: repeat(6, 1fr); } }
.brand-chip { display: grid; place-items: center; height: 92px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font: 700 15px var(--display); letter-spacing: .02em; background: var(--surface); padding: 12px; text-align: center; }
.brand-chip img { max-height: 48px; width: auto; }
.brand-chip:hover { border-color: var(--ink); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote blockquote { margin: 0 0 14px; font-size: 16.5px; }
.news { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.news h2 { color: inherit; }
.news .input { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.news .input::placeholder { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.news .check { color: color-mix(in srgb, var(--bg) 85%, transparent); }
.news .btn { background: var(--red); border-color: var(--red); color: #fff; }
.news .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (min-width: 900px) { .news { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* Trust strip */
.trust { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 48px; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust div { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust strong { display: block; }

/* Footer */
.footer { margin-top: 80px; background: #0B0B0B; color: #D2D0CB; padding: 56px 0 28px; }
.footer a { color: #D2D0CB; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer .logo { color: #fff; }
.footer-base { border-top: 1px solid #262626; margin-top: 40px; padding-top: 20px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: #9C9A95; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #333; border-radius: 99px; }

/* Breadcrumbs, pagination */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.pager .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .off { opacity: .4; }

/* Listing */
.listing { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 8px; }
@media (min-width: 1000px) { .listing { grid-template-columns: 260px 1fr; } }
.filters { font-size: 14.5px; }
.filters details { border-bottom: 1px solid var(--line); padding: 4px 0 12px; }
.filters summary { list-style: none; cursor: pointer; font-weight: 650; padding: 12px 0 8px; display: flex; justify-content: space-between; }
.filters summary::after { content: "+"; font-weight: 400; }
.filters details[open] summary::after { content: "–"; }
.filters .check { margin: 8px 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13.5px; }
.swatch i { width: 14px; height: 14px; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); }
.swatch input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.swatch input:focus-visible + span { outline: 3px solid var(--red); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { min-height: 42px; width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; background: var(--surface-2); border-radius: 99px; font-size: 13.5px; text-decoration: none; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.subcats a { white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; font-weight: 550; background: var(--surface); }
.subcats a:hover { border-color: var(--ink); }
.cat-hero { border-radius: 22px; overflow: hidden; background: var(--ink); color: var(--bg); padding: clamp(24px, 4vw, 44px); margin: 6px 0 22px; position: relative; isolation: isolate; }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.cat-hero h1 { color: inherit; margin-bottom: 8px; }
.cat-hero p { max-width: 640px; opacity: .85; margin: 0; }
.filter-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filter-toggle { display: none; } }
@media (max-width: 999px) { .filters { display: none; } .filters.open { display: block; position: fixed; inset: 0; z-index: 85; background: var(--surface); overflow: auto; padding: 20px; } }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Product page */
.pdp { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 8px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.gallery { display: grid; gap: 10px; }
.gallery-main { aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 76px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .pdp-info { position: sticky; top: 140px; align-self: start; } }
.pdp-info h1 { font-size: clamp(26px, 3vw, 38px); }
.pdp-price { font-size: 26px; margin: 12px 0 18px; }
.opt { margin: 18px 0; }
.opt-label { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values button { min-width: 48px; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 550 14px var(--font); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.opt-values button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.opt-values button.unavailable { opacity: .4; text-decoration: line-through; }
.opt-values i { width: 16px; height: 16px; border-radius: 99px; border: 1px solid rgba(0,0,0,.2); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; height: 48px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; border-radius: 99px; }
.qty input { width: 48px; text-align: center; border: 0; background: none; color: var(--ink); font: 600 16px var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: grid; gap: 10px; grid-template-columns: auto 1fr; margin: 18px 0 10px; }
.buy-row .btn-ghost { grid-column: 1 / -1; }
.meta-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 14.5px; }
.meta-list li { display: flex; gap: 12px; align-items: flex-start; }
.tabs { margin-top: 56px; border-top: 1px solid var(--line); }
.tabs details { border-bottom: 1px solid var(--line); }
.tabs summary { padding: 20px 0; font: 700 18px var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.tabs summary::after { content: "+"; font-weight: 400; }
.tabs details[open] summary::after { content: "–"; }
.tabs .content { padding: 0 0 24px; max-width: 820px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 550; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12.5px; font-weight: 600; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* Cart & checkout */
.cart-layout { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 10px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 400px; align-items: start; } }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line img { width: 92px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
@media (min-width: 960px) { .summary { position: sticky; top: 100px; } }
dl.summary { position: static; background: none; border-radius: 0; }
.summary dl, dl.summary { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 16px; font-size: 15px; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 19px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 26px); margin-bottom: 18px; }
.panel h2 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.step-n { width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: var(--bg); display: inline-grid; place-items: center; font: 700 14px var(--font); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.choice input { accent-color: var(--red); width: 20px; height: 20px; margin-top: 2px; }
.choice .grow strong { display: block; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); justify-content: center; margin-top: 12px; }

/* Account */
.acct { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 10px; }
@media (min-width: 960px) { .acct { grid-template-columns: 240px 1fr; } }
.acct-nav { display: flex; gap: 6px; overflow-x: auto; }
@media (min-width: 960px) { .acct-nav { flex-direction: column; } }
.acct-nav a { padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 550; white-space: nowrap; font-size: 15px; }
.acct-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.acct-nav a:hover:not([aria-current]) { background: var(--surface-2); }
.stat-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; }
.stat-card b { display: block; font: 700 28px var(--display); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th, .t td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.t th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.t tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 5px 10px; border-radius: 99px; font: 650 12px/1 var(--font); background: var(--surface-2); }
.status.delivered, .status.paid, .status.approved, .status.active { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.status.cancelled, .status.failed, .status.refunded, .status.suspended, .status.rejected { background: var(--red-soft); color: var(--red); }
.status.shipped, .status.out_for_delivery { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 18px 0; }
.track div { text-align: center; font-size: 12px; color: var(--muted); }
.track div::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 8px; }
.track div.done { color: var(--ink); font-weight: 600; }
.track div.done::before { background: var(--red); }
.auth-card { max-width: 460px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
.pw-meter { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

/* Compare */
.compare th { position: sticky; left: 0; background: var(--surface); }

/* Cookie banner */
.cookie { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; display: none; }
.cookie.show { display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .footer, .announce, .no-print { display: none !important; } body { background: #fff; color: #000; } }

/* ---- Messages / chat ---- */
.thread{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.msg{max-width:78%;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line);word-wrap:break-word;white-space:pre-wrap}
.msg-mine{align-self:flex-end;background:var(--ink);color:var(--bg);border-color:transparent}
.msg-mine .msg-meta{color:var(--bg);opacity:.75}
.msg-theirs{align-self:flex-start}
.msg-system{align-self:center;font-size:13px;background:transparent;border-style:dashed}
.msg-internal{background:#fff7d6;color:#3b3000;border-color:#e9d67a}
.msg-meta{font-size:11px;color:var(--muted);margin-top:4px;white-space:normal}
.msg-att{display:inline-block;margin-top:6px;font-size:13px;color:inherit;text-decoration:underline}
.msg-img{display:block;max-width:220px;border-radius:10px;margin-top:6px}
.conv-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.conv-row:hover strong{text-decoration:underline}
.unread-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);margin-right:6px}
.wa-btn{position:fixed;right:18px;bottom:18px;z-index:40;display:flex;align-items:center;gap:8px;background:#1f7a3f;color:#fff;border-radius:999px;padding:12px 16px;text-decoration:none;font-weight:600;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.wa-btn:hover{background:#17602f;color:#fff}
.countdown{display:inline-flex;gap:6px;font-variant-numeric:tabular-nums;font-weight:700}
.countdown span{background:var(--ink);color:var(--bg);border-radius:8px;padding:4px 8px;min-width:2.4em;text-align:center}
.video-embed{position:relative;padding-top:56.25%;border-radius:14px;overflow:hidden;background:#000}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.qa{border-top:1px solid var(--line);padding:14px 0}
.qa-q{font-weight:650}
.qa-a{margin-top:6px;color:var(--muted)}
.wallet-line{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:10px}
.wallet-line .field{margin:0;flex:1;min-width:160px}
.timeline{list-style:none;padding:0;margin:0;border-left:2px solid var(--line)}
.timeline li{position:relative;padding:0 0 14px 16px}
.timeline li::before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--red)}
.landing-hero{padding:72px 0;border-radius:0 0 24px 24px;background-size:cover;background-position:center}
.landing-dark{background-color:#0d0d0d;color:#fff}.landing-red{background-color:#b3121b;color:#fff}.landing-light{background-color:#f6f4f0;color:#111}
.landing-hero .muted{color:inherit;opacity:.8}
.landing-hero h1{font-size:clamp(32px,5vw,56px);line-height:1.05;margin:8px 0 12px}
.giftcard-art{aspect-ratio:1.6;border-radius:18px;background:linear-gradient(135deg,#0d0d0d 0%,#2a0003 55%,#b3121b 100%);color:#fff;padding:22px;display:flex;flex-direction:column;justify-content:space-between;max-width:380px}
html[dir="rtl"] .msg-mine{align-self:flex-start}
html[dir="rtl"] .msg-theirs{align-self:flex-end}
html[dir="rtl"] .wa-btn{right:auto;left:18px}
html[dir="rtl"] .timeline{border-left:0;border-right:2px solid var(--line)}
html[dir="rtl"] .timeline li{padding:0 16px 14px 0}
html[dir="rtl"] .timeline li::before{left:auto;right:-6px}

/* ---- Urdu / right-to-left ---- */
html[dir="rtl"] .crumbs,html[dir="rtl"] .row,html[dir="rtl"] .header-row,html[dir="rtl"] .header-actions{direction:rtl}
html[dir="rtl"] .summary dt{text-align:right}html[dir="rtl"] .summary dd{text-align:left}
html[dir="rtl"] .acct-nav a{text-align:right}
html[dir="rtl"] .t th,html[dir="rtl"] .t td{text-align:right}
html[dir="rtl"] .badge-count{right:auto;left:2px}
html[dir="rtl"] .input[type="email"],html[dir="rtl"] .input[type="tel"],html[dir="rtl"] .input[type="url"],html[dir="rtl"] .mono{direction:ltr;text-align:right}
html[dir="rtl"] .toast-zone{right:auto;left:16px}
html[dir="rtl"] .drawer-panel{right:auto;left:0}
/* The hero slider moves with translateX, which assumes left-to-right; keep its track LTR and the slide text RTL. */
html[dir="rtl"] .hero-track{direction:ltr}
html[dir="rtl"] .hero-slide{direction:rtl}
html[dir="rtl"] .skip{left:auto;right:-999px}
html[dir="rtl"] .skip:focus{right:16px}
html[dir="rtl"] body{overflow-x:clip}
.lang-switch select{min-height:36px;padding:4px 28px 4px 10px;width:auto;max-width:150px;font-size:14px;border-radius:999px}
html[dir="rtl"] .lang-switch select{padding:4px 10px 4px 28px}

/* Animations switched off in Admin → Header & footer */
html.no-motion, html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---- Category menu: multi-level dropdown (desktop) ---- */
@media (min-width: 900px) {
  .catnav .wrap { position: relative; }
  .catnav ul { overflow: visible; flex-wrap: wrap; }
  .catnav li.has-mega { position: static; }
  .catnav li.has-mega > a { display: flex; align-items: center; gap: 4px; }
  .catnav li.has-mega > a .icon { width: 14px; height: 14px; opacity: .6; transition: transform .15s ease; }
  .catnav li.has-mega:hover > a .icon, .catnav li.has-mega.open > a .icon { transform: rotate(180deg); }
  .catnav .mega { left: 0; right: 0; min-width: 0; padding: 18px 20px 14px; max-height: 70vh; overflow-y: auto; }
  /* invisible bridge so the menu doesn't close while the mouse moves down */
  .catnav li.has-mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; display: none; }
  .catnav li.has-mega:hover::after { display: block; }
  .catnav li.has-mega.open > .mega { display: block; }
  .mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 22px; }
  .mega-col { display: flex; flex-direction: column; min-width: 0; padding-bottom: 8px; }
  .mega a { padding: 6px 8px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
  .mega a:hover { color: var(--ink); }
  .mega .mega-head { font-weight: 700; color: var(--ink); font-size: 14.5px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .mega span.mega-head { display: block; }
  .mega .mega-all { color: var(--red); font-weight: 600; }
  .mega .mega-footer { display: inline-flex; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; border-radius: 0; }
  .mega .mega-more { opacity: .5; }
}
/* Mobile menu: nested levels */
.drawer .dnav .dnav { border-bottom: 0; margin-left: 12px; border-left: 2px solid var(--line); }
.drawer .dnav .dnav > summary { padding: 10px 10px; font-weight: 550; }
.drawer .dnav summary .icon { transition: transform .15s ease; flex: 0 0 auto; }
.drawer .dnav[open] > summary .icon { transform: rotate(180deg); }
.drawer .dnav-link { display: block; padding: 10px 14px; text-decoration: none; }
.drawer > .drawer-panel > .dnav-link.dnav-0 { padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
html[dir="rtl"] .drawer .dnav .dnav { margin-left: 0; margin-right: 12px; border-left: 0; border-right: 2px solid var(--line); }
.catnav li.has-mega.closed-by-key > .mega { display: none !important; }
@media (min-width: 900px) {
  .mega .mega-sub { padding: 4px 8px 4px 22px; font-size: 13px; position: relative; }
  .mega .mega-sub::before { content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 1px; background: currentColor; opacity: .5; }
  html[dir="rtl"] .mega .mega-sub { padding: 4px 22px 4px 8px; }
  html[dir="rtl"] .mega .mega-sub::before { left: auto; right: 12px; }
  .mega .mega-footer { display: flex; width: 100%; }
}
