/* WARO Studios store.
   One dark brand world: charcoal ground, warm off-white type, WARO orange used for actions and the mark only.
   Layout: a 12-column editorial grid at max 1240px; products sit on the page, not in boxes. */

@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #17171F;
    --raise: #1E1E28;
    --raise-2: #262632;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #F3F1EC;
    --muted: #A09EA9;
    --faint: #6E6C78;
    --orange: #FF8A3D;
    --orange-deep: #D9621A;
    --ink-on-orange: #1C1007;
    --good: #7BD88F;

    --font: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --wrap: 1240px;
    --gutter: max(20px, env(safe-area-inset-left, 0px));
    --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink-on-orange); padding: 8px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

/* Header ----------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 23, 31, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand img { height: 30px; width: auto; }
.cats { display: flex; gap: 28px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 24px 0 22px; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.cats a:hover { color: var(--text); }
.cats a[aria-current="page"] { color: var(--text); border-color: var(--orange); }
.top-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.who { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.who:hover { color: var(--text); }
.who b { color: var(--text); font-weight: 600; }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: border-color 0.15s; }
.basket-btn:hover { border-color: var(--text); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--raise-2); color: var(--muted); font-size: 12.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.count.has { background: var(--orange); color: var(--ink-on-orange); }

/* Buttons ---------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: var(--radius); font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--ink-on-orange); }
.btn-primary:hover { background: #FF9C5A; }
.btn-primary:active { background: var(--orange-deep); }
.btn-line { border: 1px solid var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-block { width: 100%; }
.text-btn { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.text-btn:hover { color: var(--text); text-decoration-color: currentColor; }
.link-arrow { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.15s; }
.link-arrow:hover { border-color: var(--orange); }

/* Hero ------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; padding-block: 96px 104px; }
.hero-inner > div:first-child { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-weight: 800; font-stretch: 108%; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; max-width: 13ch; }
.hero p { margin: 26px 0 0; max-width: 46ch; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }
/* The mark is cropped by the right edge of the page: a brand shape, not a picture of a logo. */
.hero-mark { position: absolute; z-index: 0; top: 50%; right: -150px; width: 640px; transform: translateY(-46%); pointer-events: none; }
.hero-mark img { width: 100%; height: auto; }
.hero.has-image .hero-mark { display: none; }
.hero-bg { position: absolute; inset: 0; background-position: right center; background-size: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 22%, rgba(23, 23, 31, 0.75) 55%, rgba(23, 23, 31, 0.2)); }

/* Sections --------------------------------------------------------------------------------- */
.section { padding-block: 72px 8px; }
.section + .section { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.section-head .lede { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.section-head .lede p { margin: 0; }
.eyebrow { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }

/* Newest release: one product given room. */
.spotlight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 72px 0; }
.spotlight .media { border-radius: 8px; }
.spotlight h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.spotlight .excerpt { margin: 18px 0 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.spotlight .price { margin-top: 26px; font-size: 22px; }
.spotlight .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Product grid ----------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.grid.two .item-name { font-size: 20px; }
.item { text-decoration: none; display: flex; flex-direction: column; }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--raise); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.item:hover .media img { transform: scale(1.035); }
.media.empty { display: grid; place-items: center; }
.media.empty img { width: 22%; height: auto; opacity: 0.18; transform: none !important; object-fit: contain; }
.sale-tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 4px; background: var(--orange); color: var(--ink-on-orange); font-size: 12.5px; font-weight: 700; }
.item-body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; }
.item-name { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.item-cat { margin-top: 3px; color: var(--faint); font-size: 14px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--faint); font-weight: 500; margin-right: 8px; }

/* Category page ---------------------------------------------------------------------------- */
.page-head { padding-block: 64px 40px; border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.page-head .lede { margin-top: 14px; color: var(--muted); max-width: 64ch; font-size: 17px; }
.page-head .lede p { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Package page ----------------------------------------------------------------------------- */
.pkg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-block: 48px 0; }
.gallery .media { border-radius: 8px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--raise); opacity: 0.55; outline-offset: 2px; transition: opacity 0.15s; }
.thumbs button:hover { opacity: 0.85; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 600; color: var(--text); background: var(--raise-2); }
.buy { position: sticky; top: 104px; align-self: start; }
.buy h1 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.buy .price { display: block; margin-top: 18px; font-size: 26px; }
.buy .note { margin-top: 6px; color: var(--faint); font-size: 14px; }
.buy .actions { display: grid; gap: 12px; margin-top: 28px; }
.facts { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }
.delivery { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.delivery a { color: var(--text); }

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }

/* Package description (written in Tebex) ------------------------------------------------------ */
.prose { font-size: 17px; line-height: 1.7; color: #DCDAD4; max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 2.2em 0 0.6em; }
.prose h1 { font-size: 30px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--orange); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; padding-left: 0.2em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--muted); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; height: auto; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; background: var(--raise); }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--orange); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; background: var(--raise-2); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--raise); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* More from the category. */
.more { margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }
.more h2 { margin: 0 0 32px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }

/* States ----------------------------------------------------------------------------------- */
.state { padding-block: 120px; text-align: center; color: var(--muted); }
.state h1 { color: var(--text); font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.state p { margin: 0 auto; max-width: 52ch; }
.state .btn { margin-top: 28px; }
.skeleton { background: linear-gradient(90deg, var(--raise) 0%, var(--raise-2) 50%, var(--raise) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius); }
.sk-line { height: 18px; margin-top: 14px; width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Basket drawer ---------------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8, 8, 12, 0.6); animation: fade 0.2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%); background: #1B1B24; border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide 0.25s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.lines { list-style: none; margin: 0; padding: 8px 26px; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .media { border-radius: 4px; }
.line-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.line .text-btn { font-size: 13px; margin-top: 4px; }
.drawer-foot { margin-top: auto; padding: 22px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.coupon input::placeholder { color: var(--faint); }
.coupon .btn { height: 44px; padding: 0 16px; font-size: 14.5px; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; }
.applied span { font-size: 13px; color: var(--good); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.total b { font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.signed { font-size: 14px; color: var(--muted); }
.signed b { color: var(--text); font-weight: 600; }
.drawer .empty-note { padding: 64px 26px; text-align: center; color: var(--muted); }
.drawer .empty-note p { margin: 0 0 22px; }

/* Toast ------------------------------------------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 40px); padding: 13px 20px; border-radius: var(--radius); background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; animation: rise 0.25s; }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } }

/* Footer ----------------------------------------------------------------------------------- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-block: 56px 40px; }
.foot-brand { max-width: 340px; }
.foot-brand p { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot ul a:hover { color: var(--text); }
.legal { position: relative; padding-block: 24px 40px; color: var(--faint); font-size: 13px; line-height: 1.6; }
.legal::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.legal p { margin: 0 0 8px; max-width: 80ch; }
.legal a { color: var(--muted); margin-right: 18px; text-decoration: none; }
.legal a:hover { color: var(--text); }

/* Responsive ------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pkg, .about, .spotlight { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .buy { position: static; }
}
@media (max-width: 760px) {
    .top-inner { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 14px; }
    .brand img { height: 24px; }
    .top-actions { gap: 14px; }
    .who { font-size: 14px; }
    .basket-btn { height: 36px; font-size: 14px; }
    .cats { order: 3; flex-basis: 100%; gap: 22px; margin-top: 4px; }
    .cats a { padding: 12px 0 11px; font-size: 14.5px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 56px 64px; }
    .hero-mark { display: none; }
    .hero p { font-size: 16.5px; }
    .section { padding-block: 56px 0; }
    .section + .section { margin-top: 48px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .section-head h2 { font-size: 25px; }
    .grid, .grid.two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .spotlight { padding-block: 48px 0; }
    .pkg { padding-block: 24px 0; }
    .about { margin-top: 48px; padding-top: 40px; }
    .prose { font-size: 16px; }
    .foot { margin-top: 80px; }
    .foot-cols { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
