/* ===================================================================
   LOWEND Store — digital + physical, LOWEND look
   =================================================================== */
:root {
  color-scheme: dark;
  --bg-0: #0a0906; --bg-1: #100e0a; --bg-2: #161310;
  --line: rgba(199, 188, 131, 0.16); --line-2: rgba(199, 188, 131, 0.3);
  --gold: #c4b483; --glow: #d8c89c; --bone: #e0d5bb;
  --text: #cfc6b4; --dim: #9b9483; --faint: #6f6a5c;
  --display: "Bebas Neue", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg-0); color: var(--text); font-family: var(--body); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.glow { position: fixed; top: -22vh; left: 50%; transform: translateX(-50%); width: min(900px,120vw); height: min(900px,120vw); z-index: 0; pointer-events: none; background: radial-gradient(circle, rgba(216,200,156,0.10), rgba(216,200,156,0.03) 40%, transparent 64%); }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

/* header */
.topbar { padding: 1.1rem 0; position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { height: 13px; width: auto; opacity: 0.95; }
.brand__store { font-family: var(--display); letter-spacing: 0.22em; font-size: 1.05rem; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a { font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.92rem; color: var(--dim); transition: color 0.3s var(--ease); }
.nav a:hover { color: var(--gold); }
.cartbtn { position: relative; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.cartbtn:hover { border-color: var(--gold); }
.cartbtn svg { width: 16px; height: 16px; fill: currentColor; }
.cartbtn__count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--bg-0); font-size: 0.7rem; font-weight: 500; display: grid; place-items: center; }

/* hero */
.hero { padding: clamp(3.4rem, 9vh, 6rem) 0 1.2rem; }
.eyebrow { font-family: var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-size: 0.92rem; }
.hero__head { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.02em; line-height: 0.95; margin-top: 0.7rem; }
.hero__sub { max-width: 56ch; margin: 1.1rem 0 0; color: var(--dim); }

/* currency switch */
.curswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.curswitch button { background: transparent; border: 0; color: var(--dim); font-family: var(--display); letter-spacing: 0.08em; font-size: 0.8rem; padding: 0.4rem 0.7rem; cursor: pointer; transition: color 0.25s var(--ease), background 0.25s var(--ease); }
.curswitch button:hover { color: var(--bone); }
.curswitch button.is-active { background: rgba(216,200,156,0.14); color: var(--glow); }

/* category filter */
.cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2.6rem 0 1.6rem; }
.chip { font-family: var(--body); font-size: 0.85rem; color: var(--dim); padding: 0.34rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: transparent; transition: all 0.25s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--bone); }
.chip.is-active { border-color: rgba(216,200,156,0.6); color: var(--glow); background: rgba(216,200,156,0.12); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; padding-bottom: 3rem; }
.pcard { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.014); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.pcard:hover { border-color: rgba(216,200,156,0.4); transform: translateY(-2px); }
.pcard__art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.pcard__art img { width: 100%; height: 100%; object-fit: cover; }
.pcard__art img.is-mark { width: 56%; height: auto; object-fit: contain; opacity: 0.9; }
.pcard__kind { position: absolute; top: 0.6rem; left: 0.6rem; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.62rem; color: var(--bg-0); background: var(--gold); padding: 0.16rem 0.5rem; border-radius: 3px; }
.pcard__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.pcard__title { font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.03em; color: var(--bone); line-height: 1; }
.pcard__artist { font-family: var(--display); letter-spacing: 0.18em; color: var(--gold); font-size: 0.78rem; }
.pcard__fmt { font-size: 0.8rem; color: var(--faint); }
.pcard__desc { font-size: 0.86rem; color: var(--dim); flex: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.5rem; }
.pcard__price { font-family: var(--display); letter-spacing: 0.04em; font-size: 1.3rem; color: var(--bone); }
.pcard__sel { font-family: var(--body); font-size: 0.82rem; color: var(--bone); background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 4px; padding: 0.3rem 0.4rem; margin-top: 0.2rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; padding: 0.55rem 1.1rem; border-radius: 3px; border: 1px solid var(--line-2); color: var(--bone); cursor: pointer; background: transparent; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease); }
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn--solid { background: linear-gradient(180deg, rgba(216,200,156,0.16), rgba(216,200,156,0.06)); border-color: rgba(216,200,156,0.45); color: var(--glow); box-shadow: 0 0 34px -14px rgba(216,200,156,0.6); }
.btn--solid:hover { background: linear-gradient(180deg, rgba(216,200,156,0.26), rgba(216,200,156,0.1)); }
.btn--full { width: 100%; }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 40; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--bg-1); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.35s var(--ease); z-index: 50; display: flex; flex-direction: column; }
.cart.is-open { transform: translateX(0); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.cart__title { font-family: var(--display); letter-spacing: 0.16em; color: var(--bone); font-size: 1.3rem; }
.cart__close { background: none; border: 0; color: var(--dim); font-size: 1.4rem; cursor: pointer; }
.cart__items { flex: 1; overflow-y: auto; padding: 0.6rem 1.3rem; }
.citem { display: flex; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.citem__art { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; background: var(--bg-2); }
.citem__main { flex: 1; min-width: 0; }
.citem__title { font-family: var(--display); letter-spacing: 0.04em; color: var(--bone); font-size: 1.05rem; }
.citem__meta { font-size: 0.78rem; color: var(--faint); }
.citem__row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.3rem; }
.qty { display: inline-flex; align-items: center; gap: 0.5rem; }
.qty button { width: 22px; height: 22px; border: 1px solid var(--line); background: transparent; color: var(--bone); border-radius: 4px; cursor: pointer; }
.citem__rm { background: none; border: 0; color: var(--faint); font-size: 0.75rem; cursor: pointer; }
.citem__rm:hover { color: var(--gold); }
.cart__foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; font-family: var(--display); letter-spacing: 0.06em; color: var(--bone); font-size: 1.3rem; margin-bottom: 0.5rem; }
.cart__note { font-size: 0.72rem; color: var(--faint); margin-top: 0.6rem; text-align: center; }
.cart__empty { color: var(--dim); padding: 2rem 0; text-align: center; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 3rem; text-align: center; color: var(--faint); font-size: 0.85rem; }
.footer__logo { width: 42px; margin: 0 auto 0.8rem; opacity: 0.8; }
.footer__links { margin-top: 0.5rem; }
.footer__links a { color: var(--gold); }
.footer__copy { margin-top: 0.45rem; opacity: 0.7; }

/* success page */
.success { padding: clamp(2.5rem, 8vh, 5rem) 0; text-align: center; }
.success h1 { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: clamp(2.2rem, 6vw, 3.4rem); }
.dl { max-width: 520px; margin: 1.6rem auto 0; text-align: left; }
.dl a { display: flex; justify-content: space-between; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.6rem; color: var(--glow); }
.dl a:hover { border-color: var(--gold); }

@media (max-width: 560px) { .nav .nav__link { display: none; } }

/* ----- product detail ----- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 4vw, 3rem); padding: 1.4rem 0 0; align-items: start; }
.product__art { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); display: grid; place-items: center; }
.product__art img { width: 100%; height: 100%; object-fit: cover; }
.product__art img.is-mark { width: 50%; height: auto; object-fit: contain; opacity: 0.9; }
.product__kind { position: static; display: inline-block; margin-bottom: 0.6rem; }
.product__title { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: 0.03em; line-height: 0.95; }
.product__artist { font-family: var(--display); letter-spacing: 0.2em; color: var(--gold); font-size: 0.95rem; margin-top: 0.2rem; }
.product__fmt { color: var(--faint); font-size: 0.9rem; margin-top: 0.5rem; }
.product__desc { color: var(--dim); margin-top: 0.9rem; }
.product__delivery { color: var(--dim); font-size: 0.86rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.product__sel { display: block; font-family: var(--body); font-size: 0.92rem; color: var(--bone); background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.6rem; margin-top: 1rem; }
.product__buy { display: flex; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.product__price { font-family: var(--display); letter-spacing: 0.04em; font-size: 1.8rem; color: var(--bone); }

/* artist box */
.artistbox { margin: clamp(2rem, 6vh, 3.4rem) 0 0; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.014); }
.artistbox__name { font-family: var(--display); font-weight: 400; color: var(--bone); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: 0.04em; margin-top: 0.4rem; }
.artistbox__bio { color: var(--dim); margin-top: 0.6rem; max-width: 70ch; }
.artistbox__link { display: inline-block; margin-top: 0.8rem; color: var(--gold); font-size: 0.88rem; letter-spacing: 0.04em; }

@media (max-width: 720px) { .product { grid-template-columns: 1fr; } }

/* ----- pdp preview player (waveform) ----- */
.product__media { display: flex; flex-direction: column; gap: 0.9rem; }
.pdp-player { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)); }
.pdp-play { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(216,200,156,0.55); background: linear-gradient(180deg, rgba(216,200,156,0.18), rgba(216,200,156,0.06)); color: var(--glow); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 30px -12px rgba(216,200,156,0.7); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.pdp-play:hover { transform: scale(1.06); box-shadow: 0 0 42px -8px rgba(216,200,156,0.85); }
.pdp-ico { width: 15px; height: 15px; fill: currentColor; }
.pdp-ico--play { margin-left: 2px; }
.pdp-ico--pause { display: none; }
.pdp-play.is-playing .pdp-ico--play { display: none; }
.pdp-play.is-playing .pdp-ico--pause { display: block; }
.pdp-wave { flex: 1; position: relative; height: 42px; cursor: pointer; }
.pdp-wave__bars { display: flex; align-items: center; gap: 2px; height: 100%; width: 100%; }
.pdp-wave .wbar { flex: 1 1 0; min-width: 1px; background: rgba(233,226,210,0.20); border-radius: 1px; }
.pdp-wave__fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.pdp-wave__fill .wbar { background: linear-gradient(180deg, var(--glow), var(--gold)); }
.pdp-time { flex: 0 0 auto; min-width: 64px; text-align: right; font-family: var(--display); letter-spacing: 0.06em; font-size: 0.85rem; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ----- option tiles (formats / sizes) ----- */
.optiles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.optile { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.7rem; color: var(--dim); cursor: pointer; font-family: var(--body); font-size: 0.82rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.optile:hover { border-color: var(--line-2); color: var(--bone); }
.optile.is-active { border-color: rgba(216,200,156,0.6); background: rgba(216,200,156,0.1); color: var(--glow); }
.optile__ic { display: inline-grid; place-items: center; opacity: 0.75; }
.optile__ic svg { width: 14px; height: 14px; display: block; }
.optile__label { font-family: var(--display); letter-spacing: 0.06em; }
.optile__price { opacity: 0.85; }

/* ----- product option / format select ----- */
.product__optlabel { display: block; font-family: var(--display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--faint); margin-top: 1rem; }
.product__sel { margin-top: 0.4rem; }

/* ----- artist box head + video ----- */
.artistbox__head { display: flex; align-items: center; gap: 1rem; }
.artistbox__img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.artistbox__img.is-mark { object-fit: contain; padding: 12px; background: var(--bg-2); }
.artistbox__video { margin-top: 1.1rem; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.artistbox__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----- more section spacing ----- */
.product__more { margin-top: clamp(1.6rem, 4vh, 2.6rem); padding-top: clamp(1.6rem, 4vh, 2.6rem); border-top: 1px solid var(--line); }
