:root {
  --bg: #0a090b;
  --text: #f2f0f3;
  --muted: #8f8895;
  --line: rgba(255, 255, 255, .12);
  --accent: #6a1b9a;
  --accent-text: #ce93d8;
  --gothic: "UnifrakturMaguntia", "Old English Text MT", serif;
  --sans: "Roboto", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); }
body { background: transparent; }
body { font: 500 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; }
:focus-visible { outline: 1px solid var(--accent-text); outline-offset: 3px; }
.muted { color: var(--muted); }

/* fixed grainy monochrome backdrop (stands in for the photo) */
.grain-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 120% at 85% 10%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(ellipse 45% 80% at 15% 90%, rgba(106, 27, 154, .30), transparent 65%),
    linear-gradient(160deg, #141216, #070608 70%);
}
.grain-bg .curves { position: absolute; inset: 0; width: 100%; height: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* empty home: nothing but backdrop, header and footer (no scrolling) */
body.is-home main { min-height: 0; }
body.is-home .site-footer { position: fixed; left: 0; right: 0; bottom: 0; }
body.is-home { overflow: hidden; }
/* home banner: full width between header and footer, edges fade into the backdrop */
.home-banner { position: fixed; top: 96px; bottom: 101px; left: 0; right: 0; display: grid; place-items: center; }
.home-banner img {
  width: 100%; height: auto; max-height: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
@media (max-width: 800px) { .home-banner { top: 62px; bottom: 120px; } }
.grain-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* header, measured from the reference at 1920x1080: icon 30px at x16,
   wordmark ~370x62 centred at top 22, LOGIN / BAG Roboto Bold 14px, right edge 15px */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 96px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 0 15px 0 16px;
  transition: background .3s;
}
/* the logo scrolls away; menu icon and LOGIN / BAG stay */
.site-header .wordmark { transition: opacity .25s, transform .25s; }
.site-header.scrolled .wordmark { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.menu-btn { width: 30px; height: 30px; margin-top: 33px; display: grid; place-items: center; justify-self: start; transition: transform .3s; }
.menu-btn svg { width: 30px; height: 30px; fill: var(--text); transition: transform .4s; }
/* reference: the icon slides 100px right while the menu is open */
.menu-btn[aria-expanded="true"] { transform: translateX(100px); }
.wordmark { margin-top: 22px; height: 62px; display: flex; align-items: center; font: 400 63px/1 var(--gothic); white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.header-right { justify-self: end; margin-top: 40px; display: flex; gap: 3px; align-items: center; font: 700 14px/17px "Roboto", var(--sans); text-transform: uppercase; }
.header-right a:hover, .header-right button:hover { color: var(--accent-text); }
.slash { padding: 0 3px; }

/* side menu, measured from the reference: top items Roboto Bold 19px / 30.4px at x16, first at
   top 96, 50px apart; SHOP opens a sub-list of Roboto Bold 17px / 27.2px items and turns grey */
.menu { position: fixed; top: 96px; left: 16px; z-index: 19; display: grid; gap: 20px; align-content: start; text-transform: uppercase; }
.menu[hidden] { display: none; }
.menu a, .menu .menu-toggle { display: block; text-align: left; font: 700 19px/30.4px "Roboto", var(--sans); text-transform: uppercase; color: var(--text); }
.menu a:hover, .menu .menu-toggle:hover { color: var(--accent-text); }
.menu-group { display: grid; }
.menu-group[data-open="true"] .menu-toggle { color: #8f8895; }
.menu-sub { display: grid; }
.menu-sub[hidden] { display: none; }
.menu .menu-sub a { font: 700 17px/27.2px "Roboto", var(--sans); }
/* page = one screen: content grows, footer sits at the bottom without scrolling */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; outline: none; }

/* home hero: just the backdrop, logo in the header, scroll cue */
.hero { height: 100vh; display: grid; place-items: end center; padding-bottom: 70px; }
.scroll-cue { display: grid; justify-items: center; gap: 6px; font: 500 9px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }
.scroll-cue::after { content: ""; width: 1px; height: 26px; background: var(--muted); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* product art: floating mark, no frame (stands in for a product cut-out photo) */
.art {
  --h: 280;
  position: relative; display: grid; place-items: center; text-align: center; container-type: size;
}
.art::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--h), 70%, 45%, .45), transparent 68%); filter: blur(6px);
}
.art .mark { position: relative; font: 400 min(27cqw, 32cqh)/1 var(--gothic); color: #f4eff6; text-shadow: 0 6px 30px hsla(var(--h), 80%, 30%, .9); }
.art .sub { position: relative; margin-top: 6px; font: 700 clamp(8px, 2.6cqw, 11px)/1 var(--sans); letter-spacing: .2em; color: hsla(var(--h), 50%, 85%, .8); }
.art.alt::before { width: 78%; background: radial-gradient(circle, hsla(var(--h), 80%, 60%, .5), transparent 65%); }
.art.alt .mark { color: hsl(var(--h), 70%, 88%); }
/* real product pictures */
.art.photo::before { display: none; }
.art.photo img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }

/* product grid: two large columns, centred name + price */
/* product listing, as in the reference: two columns, big pictures only; name / line / price
   (Roboto 16 bold, 12 medium grey, 14 bold grey) fade in under the picture on hover */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 90px 0; padding: 0 0 60px; }
.card { display: grid; justify-items: center; text-align: center; padding: 0 4%; }
.card .media { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.card .media .art { position: absolute; inset: 0; transition: opacity .5s; }
.card .media .art.alt { opacity: 0; }
.card:hover .media .art.alt, .card:focus-visible .media .art.alt { opacity: 1; }
.card:hover .media .art:not(.alt), .card:focus-visible .media .art:not(.alt) { opacity: 0; }
.card .badge { position: absolute; top: -18px; right: 0; z-index: 1; font: 700 10px/1 var(--sans); text-transform: uppercase; color: var(--accent-text); }
.card .info { display: grid; gap: 0; margin-top: 22px; opacity: 0; transition: opacity .3s; }
.card:hover .info, .card:focus-visible .info { opacity: 1; }
.card .name { font: 700 16px/1.4 "Roboto", var(--sans); text-transform: uppercase; color: var(--text); }
.card .short { margin-top: 6px; font: 500 12px/1.5 "Roboto", var(--sans); text-transform: uppercase; color: var(--muted); }
.price { font: 700 14px/1.4 "Roboto", var(--sans); color: var(--muted); margin-top: 6px; }
.price s { margin-left: 8px; font-weight: 400; opacity: .7; }

.shop-grid { padding-top: 170px; }
.page-head { padding: 120px 20px 20px; text-align: center; }
.page-title { font: 400 52px/1 var(--gothic); margin: 0; }
.page-head p { color: var(--muted); font-weight: 400; margin: 10px 0 0; }
.filters { display: flex; justify-content: center; gap: 22px; padding: 14px 20px 40px; font: 700 13px/1 var(--sans); text-transform: uppercase; }
.filters a { color: var(--muted); }
.filters a[aria-current="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.section-title { text-align: center; font: 400 44px/1 var(--gothic); margin: 40px 0 20px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 30px;
  border: 2px solid var(--text); font: 700 13px/1 var(--sans); text-transform: uppercase; transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.th { font-size: 14px; }

/* product page, measured from the reference at 1920x930: 480x600 picture centred on the page
   (top 145), star pager over its bottom edge, BACK TO ALL under it; a 273px column starting
   10px right of the picture: name 16 bold (top 201), price 16 bold grey, 171x45 dotted button,
   closed DETAILS + / RETURNS/EXCHANGES + rows 32px apart. */
.product { position: relative; min-height: 800px; }
.gallery { position: absolute; top: 145px; left: 50%; width: 480px; margin-left: -240px; display: grid; justify-items: center; }
.slides { width: 480px; height: 600px; }
.slide { width: 100%; height: 100%; display: grid; place-items: center; }
.slide[hidden] { display: none; }
.slide .art { width: 400px; aspect-ratio: auto; height: 400px; } /* floats inside the 480x600 box with space around, like the cut-out photos in the reference */
.slide .art.photo img { object-fit: contain; }
.pager { display: flex; gap: 20px; margin-top: -50px; height: 50px; align-items: center; }
.pager button { width: 30px; height: 30px; }
.pager svg { width: 100%; height: 100%; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.pager button[aria-pressed="true"] svg { fill: var(--text); stroke: var(--text); }
.back-all { margin-top: 2px; font: 500 12px/14px "Roboto", var(--sans); text-transform: uppercase; color: var(--muted); }
.back-all:hover { color: var(--text); }
.buy { position: absolute; top: 201px; left: calc(50% + 250px); width: 273px; font: 500 14px/1.4 "Roboto", var(--sans); text-transform: uppercase; }
.buy h1 { font: 700 16px/20px "Roboto", var(--sans); text-transform: uppercase; margin: 0; }
.buy .price { font: 700 16px/19px "Roboto", var(--sans); color: #8f8895; margin: 8px 0 0; }
/* product options as one compact dropdown (reference shows a size select in this spot) */
.opt-select { display: block; width: 171px; height: 32px; margin-top: 13px; padding: 0 28px 0 10px; appearance: none; -webkit-appearance: none; border: 1px solid var(--text); border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23f2f0f3'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); font: 700 12px/1 "Roboto", var(--sans); cursor: pointer; }
.opt-select option { background: #141216; color: var(--text); }
.opt-select:focus-visible { outline: 1px solid var(--accent-text); outline-offset: 2px; }
/* dotted ornamental border like the reference button */
.add-bag {
  display: block; width: 171px; height: 45px; margin: 13px 0 10px; font: 700 13px/1 "Roboto", var(--sans); letter-spacing: .04em;
  border: 3px dotted var(--text); outline: 1px solid var(--text); outline-offset: -7px;
}
.add-bag:hover { color: var(--accent-text); border-color: var(--accent-text); outline-color: var(--accent-text); }
.fold { margin: 0; }
.fold[open] { padding-bottom: 15px; }
.fold summary { list-style: none; cursor: pointer; height: 32px; display: flex; align-items: center; font: 500 14px/22.4px "Roboto", var(--sans); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: 5px; }
.fold[open] summary::after { content: "—"; }
.fold p, .fold ul { margin: 0; font: 500 11px/16px "Roboto", var(--sans); }
.fold ul { padding-left: 16px; }
/* drawer */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; }
.backdrop[hidden], .drawer[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #0d0c0e; border-left: 1px solid var(--line); z-index: 31; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 76px; font: 700 13px/1 var(--sans); }
.drawer-head button:hover { color: var(--accent-text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 20px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; font: 700 13px/1 var(--sans); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.line-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .art { aspect-ratio: 1; }
.line-item .art .sub { display: none; }
.line-item .name { font: 700 12.5px/1.3 var(--sans); text-transform: uppercase; }
.line-item .price { margin-top: 0; }
.line-item .opt { font: 400 12px/1.4 var(--sans); color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 28px; height: 28px; }
.qty span { min-width: 26px; text-align: center; font-size: 12.5px; }
.empty { color: var(--muted); text-align: center; padding: 50px 0; font-weight: 400; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; max-width: 1100px; margin: 0 auto; padding: 120px 28px 100px; }
.checkout h2 { font: 400 40px/1 var(--gothic); margin: 0 0 26px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font: 700 11px/1 var(--sans); text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: 400 15px/1.4 var(--sans); color: var(--text); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); padding: 11px 12px; outline: none; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--text); }
.field .hint { font: 400 12px/1.4 var(--sans); color: var(--muted); }
.summary { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 26px; align-self: start; }
.summary .line-item:last-of-type { border-bottom: 0; }
.summary .total { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; font: 700 15px/1 var(--sans); }
.error { color: #ff8a8a; font: 400 13px/1.4 var(--sans); }

/* payment */
.pay { max-width: 500px; margin: 0 auto; padding: 120px 22px 100px; text-align: center; }
.pay h1 { font: 400 46px/1 var(--gothic); margin: 0 0 8px; }
.pay .order-no { font: 700 12px/1 var(--sans); text-transform: uppercase; color: var(--muted); }
.qr-card { background: #fff; color: #111; margin: 26px auto; width: min(340px, 100%); padding: 0 0 18px; position: relative; }
.qr-card .pp-head { background: #0e3d67; color: #fff; padding: 10px; font: 700 15px/1 var(--sans); }
.qr-card .qr { padding: 14px 22px 6px; }
.qr-card .amount { font: 700 26px/1.2 var(--sans); }
.qr-card .to { font: 400 12.5px/1.4 var(--sans); color: #555; }
.demo-stamp { position: absolute; inset: 52px 0 70px; display: grid; place-items: center; pointer-events: none; }
.demo-stamp span { transform: rotate(-18deg); border: 3px solid #c62828; color: #c62828; background: rgba(255, 255, 255, .85); font: 700 22px/1.2 var(--sans); padding: 6px 14px; }
.timer { font: 400 13px/1.4 var(--sans); color: var(--muted); }
.timer strong { color: var(--text); }
.steps { text-align: left; margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 13.5px/1.5 var(--sans); display: flex; gap: 14px; }
.steps li b { color: var(--accent-text); font-weight: 700; }
.done-mark { font: 400 80px/1 var(--gothic); color: var(--accent-text); }

/* info pages */
.prose { max-width: 720px; margin: 0 auto; padding: 10px 28px 100px; }
.prose h3 { font: 700 16px/1.3 var(--sans); text-transform: uppercase; margin: 30px 0 6px; }
.prose p { font-weight: 400; color: #d2ccd6; margin: 0; }

/* footer, measured from the reference: 101px tall, links Roboto Medium 11px grey at 24px from the
   top, 74px apart on the left and 100px on the right, 22px icon centred, copyright 10px below */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 101px; padding: 22px 23px;
  font: 500 11px/18px "Roboto", var(--sans); text-transform: uppercase; color: #8a858e;
}
.foot-left, .foot-right { display: flex; flex-wrap: wrap; align-items: center; }
.foot-left { grid-column: 1; gap: 74px; }
.foot-mid { grid-column: 2; }
.foot-right { grid-column: 3; justify-content: flex-end; gap: 100px; padding-right: 25px; }
.site-footer a:hover { color: var(--text); }
.foot-mid svg { width: 22px; height: 22px; fill: #8a858e; }
.foot-mid:hover svg { fill: var(--text); }
.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang svg { width: 21px; height: 14px; }
.copyright { grid-column: 1 / -1; text-align: center; margin: 18px 0 0; font: 400 10px/13px "Roboto", var(--sans); }
@media (max-width: 800px) {
  .site-header { height: 62px; padding: 0 8px; align-items: center; }
  .menu-btn, .wordmark, .header-right { margin-top: 0; }
  .wordmark { height: auto; }
  .wordmark { font-size: 28px; }
  .header-right { font-size: 12px; }
  .menu { top: 62px; background: rgba(10, 9, 11, .94); right: 0; bottom: 0; padding-top: 20px; }
  .grid { grid-template-columns: 1fr; gap: 50px; }
  .card .info { opacity: 1; } /* no hover on touch screens */
  .shop-grid { padding-top: 90px; }
  .product, .checkout { grid-template-columns: 1fr; }
  .product { min-height: 0; padding: 76px 18px 30px; display: grid; justify-items: center; }
  .gallery, .buy { position: static; margin: 0; width: min(480px, 100%); }
  .slides, .slide .art { width: 100%; height: auto; aspect-ratio: 1; }
  .buy { padding-top: 24px; }
  .checkout { gap: 36px; padding: 90px 18px 80px; }
  .page-head { padding-top: 96px; }
  .page-title { font-size: 42px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-left, .foot-mid, .foot-right { grid-column: 1; }
  .foot-left, .foot-right { gap: 18px; }
  .site-footer { padding: 18px 10px; }
  .foot-left, .foot-right { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after { transition: none !important; animation: none !important; }
}
