/* Stay Weird Studios — theme. Swap fonts/colors here once branding is final. */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e2e2e2;
  --card: #cfcfcf;        /* product card background */
  --card-2: #e6e6e6;
  --sale: #c8321e;
  --font: Helvetica, Arial, sans-serif;
  --ann-h: 30px;
  --header-h: 60px;
  --pad: 40px;
}
@media (max-width: 860px) { :root { --header-h: 56px; --pad: 16px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.45; padding-top: calc(var(--ann-h) + var(--header-h)); }
body.has-hero { padding-top: var(--ann-h); }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: none; }

/* ---------- Announcement (slides in one message at a time) ---------- */
.ann { position: fixed; top: 0; left: 0; right: 0; height: var(--ann-h); background: #000; color: #fff; z-index: 100; overflow: hidden; }
.ann__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; transform: translateX(100%); transition: transform .5s ease; padding: 0 8px; }
.ann__slide.on { transform: none; }
.ann__slide.out { transform: translateX(-100%); }
.ann__slide.snap { transition: none; }

/* ---------- Header ---------- */
.header { position: fixed; top: var(--ann-h); left: 0; right: 0; height: var(--header-h); z-index: 90; background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); transition: transform .35s ease, background .25s, color .25s, border-color .25s; }
.header.clear { background: transparent; color: #fff; border-color: transparent; }
.header.hide { transform: translateY(calc(-100% - 1px)); }
.header__left, .header__right { display: flex; align-items: center; gap: 28px; }
.header__right { justify-content: flex-end; gap: 22px; }
.nav-link { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); }
.nav-link--bold { font-weight: 700; }
.nav-link svg { width: 16px; height: 16px; }
.icon svg { width: 20px; height: 20px; }
.logo { display: block; line-height: 0; }
.logo img { height: 28px; width: auto; }
.logo--sm img { height: 20px; }
.logo--light { display: none; }
.header.clear .logo--dark { display: none; }
.header.clear .logo--light { display: block; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.only-sm { display: none !important; }
@media (max-width: 960px) {
  .only-lg { display: none !important; }
  .only-sm { display: inline-flex !important; }
  .header__left, .header__right { gap: 18px; }
  .logo img { height: 19px; }
  .logo--sm img { height: 17px; }
}

/* Shop dropdown */
.dd { position: relative; }
.dd__panel { position: absolute; top: calc(var(--header-h) - 12px); left: 0; width: 360px; background: #fff; color: var(--text); padding: 22px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.dd:hover .dd__panel, .dd:focus-within .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__panel a { display: block; padding: 20px 24px; font-size: 16px; }
.dd__panel a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Search bar (replaces header) */
.search { position: fixed; top: var(--ann-h); left: 0; right: 0; z-index: 95; background: #fff; color: var(--text); transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s; border-bottom: 1px solid var(--line); }
.search.open { transform: none; visibility: visible; }
.search__row { height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); }
.search__row svg { width: 20px; height: 20px; }
.search input { flex: 1; border: 0; outline: 0; font-size: 17px; background: transparent; min-width: 0; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0 var(--pad) 24px; max-height: 70vh; overflow-y: auto; }
.search__results:empty { display: none; }
.search__none { padding: 0 var(--pad) 24px; color: var(--muted); }
.search__none:empty { display: none; }
.btn--inline { width: auto; display: inline-flex; padding: 0 40px; }

/* ---------- Overlay + drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 110; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 120; background: #fff; color: var(--text); display: flex; flex-direction: column; visibility: hidden; transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s; }
.drawer.open { transform: none; visibility: visible; }
.drawer--cart { right: 0; width: min(440px, 100%); transform: translateX(100%); }
.drawer--menu { left: 0; width: 100%; transform: translateX(-100%); }

/* Mobile menu */
.mmenu__head { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.x-btn { width: 24px; height: 24px; border: 1px solid var(--fg); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; }
.x-btn svg { width: 16px; height: 16px; }
.mmenu__body { padding: 8px 0; overflow-y: auto; }
.mmenu details { border-bottom: 1px solid var(--line); }
.mmenu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu details[open] summary { background: #f1f1f1; }
.mmenu summary svg { width: 14px; height: 14px; transition: transform .2s; }
.mmenu details[open] summary svg { transform: rotate(180deg); }
.mmenu details a { display: block; padding: 14px 40px; font-size: 15px; }
.mmenu__link { display: block; padding: 16px 24px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }

/* Cart drawer */
.cart__head { position: relative; display: flex; justify-content: center; align-items: center; padding: 14px 20px; }
.cart__close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.cart__close svg { width: 18px; height: 18px; }
.cart__body { flex: 1; overflow-y: auto; }
.ship { padding: 14px 30px 18px; text-align: center; font-size: 16px; text-transform: uppercase; }
.ship b { font-weight: 700; }
.ship__bar { position: relative; height: 6px; background: var(--line); border-radius: 3px; margin: 14px 12px 0 0; }
.ship__fill { position: absolute; left: 0; top: 0; bottom: 0; background: #000; border-radius: 3px; transition: width .4s; }
.ship__tag { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #bdbdbd; display: flex; align-items: center; justify-content: center; }
.ship__tag.done { background: #000; color: #fff; }
.ship__tag svg { width: 15px; height: 15px; }
.ship__label { text-align: right; font-size: 11px; text-transform: none; margin: 10px -18px 0 0; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; padding: 16px 30px; align-items: start; }
.line + .line { border-top: 1px solid var(--line); }
.line .thumb { aspect-ratio: 4/7; max-height: 100px; }
.line__name { font-weight: 700; font-size: 15px; }
.line__meta { color: var(--muted); font-size: 14px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 100%; gap: 30px; }
.line__right svg { width: 14px; height: 14px; color: var(--muted); }
.qty { display: inline-flex; margin-top: 10px; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; color: var(--muted); }
.qty span { width: 46px; display: inline-flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; }
.fit { border-top: 1px solid var(--line); padding: 26px 30px; }
.fit__title { text-align: center; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; margin-bottom: 22px; }
.fit__item { display: grid; grid-template-columns: 64px 1fr; gap: 30px; align-items: center; }
.fit__item .thumb { aspect-ratio: 2/3; }
.fit__row { display: flex; gap: 8px; margin-top: 8px; }
.fit__row select { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); background: #fff; padding: 0 8px; }
.fit__row button { background: #000; color: #fff; font-weight: 700; text-transform: uppercase; padding: 0 16px; height: 36px; font-size: 14px; }
.cart-empty { text-align: center; padding: 60px 30px; }
.cart-empty p { font-size: 16px; margin-bottom: 20px; text-transform: uppercase; }
.cart__foot { border-top: 1px solid var(--line); padding: 18px 23px 22px; }
.cart__sub { display: flex; justify-content: space-between; font-size: 20px; margin-bottom: 12px; }
.pay { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pay span { border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 700; padding: 5px 7px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; background: #000; color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; border: 1px solid #000; transition: opacity .2s; }
.btn:hover { opacity: .85; }
.btn[disabled] { background: #d6d6d6; border-color: #d6d6d6; color: #777; cursor: not-allowed; opacity: 1; }
.btn--case { text-transform: none; font-size: 15px; }

/* ---------- Placeholder images ---------- */
.ph { position: relative; overflow: hidden; background: var(--card); display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.28); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.ph--2 { background: var(--card-2); }
.ph--dark { background: #2b2d31; color: rgba(255,255,255,.25); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb { width: 100%; }

/* ---------- Hero (full-bleed image, small underlined link) ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; }
.hero--short { height: 100svh; }
.hero > .ph { position: absolute; inset: 0; }
.hero__mark { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(44vw, 620px); pointer-events: none; }
.hero__mark img { width: 100%; height: auto; }
@media (max-width: 860px) { .hero__mark { width: 50vw; bottom: 64px; } }
.hero__link { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); color: #fff; font-size: 14px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 860px) { .hero { height: 66svh; min-height: 420px; } .hero__link { bottom: 28px; } }

/* ---------- Product grid ---------- */
.block { padding: 24px 8px 30px; }
.block__title { font-size: 36px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 0 0 20px; }
@media (max-width: 860px) { .block { padding: 18px 6px 24px; } .block__title { font-size: 22px; padding-bottom: 14px; } }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--tight { gap: 6px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; } }

.card { position: relative; display: block; }
.card__top { position: relative; overflow: hidden; }
.card__media { display: block; position: relative; aspect-ratio: 3/4; background: var(--card); }
.slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides > .ph { flex: 0 0 100%; scroll-snap-align: start; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s; }
.dots i.on { background: #fff; }
.plus { position: absolute; right: 18px; bottom: 16px; z-index: 3; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #222; }
.plus svg { width: 18px; height: 18px; }
.qa { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: #fff; padding: 12px; transform: translateY(100%); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }
.card.qa-open .qa { transform: none; opacity: 1; pointer-events: auto; }
.qa__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; margin-bottom: 8px; }
.qa__top svg { width: 14px; height: 14px; }
.qa__sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); }
.qa__sizes button { height: 36px; border: 1px solid var(--line); margin: 0 -1px -1px 0; font-size: 12px; }
.qa__sizes button:hover { background: #000; color: #fff; }
.qa__sizes button[disabled] { color: #c4c4c4; text-decoration: line-through; background: #fafafa; cursor: not-allowed; }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--sale); color: #fff; font-size: 11px; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }
.badge--dark { background: #000; }
.card__info { display: block; padding: 10px 2px 0; font-size: 14px; }
.card__name { color: var(--text); }
.card__price { color: #444; margin-top: 2px; }
.sale { color: var(--sale); margin-right: 8px; }
.was { color: var(--muted); text-decoration: line-through; }
@media (max-width: 860px) { .card__info { font-size: 13px; } .plus { right: 10px; bottom: 10px; } }

/* ---------- Collection page ---------- */
.coll__title { font-size: 38px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; padding: 10px 20px 22px; }
.coll .grid { gap: 6px; }
.coll .card__info { padding-left: 10px; padding-bottom: 14px; }
.empty { text-align: center; color: var(--muted); padding: 80px 0; text-transform: uppercase; }
@media (max-width: 860px) { .coll__title { font-size: 28px; padding: 14px 12px 16px; } }

/* ---------- Newsletter ---------- */
.news { text-align: center; padding: 40px 16px 34px; }
.news h2 { font-size: 32px; font-weight: 700; text-transform: uppercase; }
.news p { font-size: 16px; margin: 4px 0 14px; }
.news form { display: flex; gap: 6px; max-width: 600px; margin: 0 auto; }
.news input { flex: 1; min-width: 0; height: 46px; border: 1px solid #000; padding: 0 16px; outline: 0; }
.news button { background: #000; color: #fff; text-transform: uppercase; width: 92px; height: 46px; }
.news__msg { min-height: 20px; margin-top: 10px; font-size: 14px; }
@media (max-width: 860px) { .news h2 { font-size: 26px; } .news form { flex-direction: column; } .news button { width: 100%; } }

/* ---------- Footer (accordions) ---------- */
.footer { padding: 0 var(--pad) 18px; }
.footer details { border-bottom: 1px solid var(--line); }
.footer details:last-of-type { border-bottom-color: #000; }
.footer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 10px 10px; font-size: 16px; cursor: pointer; }
.footer summary::-webkit-details-marker { display: none; }
.footer summary svg { width: 16px; height: 16px; transition: transform .2s; }
.footer details[open] summary svg { transform: rotate(180deg); }
.footer details ul { list-style: none; padding: 0 10px 14px; display: grid; gap: 8px; color: #555; }
.footer details a:hover { color: #000; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px 0; font-size: 12px; color: #666; }
.footer__bottom svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .footer__bottom { flex-direction: column; gap: 10px; } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; }
.pdp__gallery { display: grid; gap: 0; }
.pdp__gallery .ph { aspect-ratio: 4/5; }
.pdp__info { position: sticky; top: calc(var(--ann-h) + var(--header-h)); align-self: start; padding: 80px 140px 40px; }
.pdp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.pdp__head h1 { font-size: 17px; font-weight: 700; text-transform: uppercase; }
.pdp__head .price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); margin-bottom: 22px; }
.sizes button { height: 60px; font-size: 15px; border-right: 1px solid var(--line); }
.sizes button:last-child { border-right: 0; }
.sizes button.sel { background: #000; color: #fff; }
.sizes button[disabled] { color: #c4c4c4; text-decoration: line-through; background: #fafafa; cursor: not-allowed; }
.acc { margin-top: 14px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-size: 12px; text-transform: uppercase; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 13px; height: 13px; transition: transform .2s; }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc__body { padding: 0 0 16px; font-size: 13px; color: #444; }
.acc table { width: 100%; border-collapse: collapse; }
.acc th, .acc td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pdp .dots { display: none; position: static; padding: 14px 0 4px; }
.pdp .dots i { background: #bbb; }
.pdp .dots i.on { background: #000; }
@media (max-width: 1100px) { .pdp__info { padding: 60px 48px 40px; } }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__gallery .ph { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 390/640; }
  .pdp .dots { display: flex; }
  .pdp__info { position: static; padding: 16px 16px 30px; }
  .sizes button { height: 52px; }
}

/* Frequently bought together */
.fbt { max-width: 980px; margin: 0 auto; padding: 30px 16px 10px; }
.fbt h2, .recs h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.fbt__item { display: grid; grid-template-columns: 22px 50px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 10px 16px; margin-bottom: 8px; }
.fbt__item input { width: 16px; height: 16px; accent-color: #000; }
.fbt__item .thumb { aspect-ratio: 1; }
.fbt__name { font-size: 13px; }
.fbt__meta { font-size: 11px; color: var(--muted); }
.fbt__price { font-size: 12px; }
.fbt__item select { border: 0; font-size: 11px; color: var(--muted); background: transparent; }
.recs { padding: 30px 8px; text-align: center; }
.recs h2 { font-size: 18px; }
.recs .grid { grid-template-columns: repeat(2, 1fr); text-align: left; gap: 6px; }
.recs .card__media { aspect-ratio: 1; }
.reviews { text-align: center; padding: 30px 16px; border-top: 1px solid var(--line); }
.reviews h2 { font-size: 22px; font-weight: 400; margin-bottom: 16px; }
.reviews__row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.stars { letter-spacing: 2px; font-size: 16px; }
.reviews__row small { display: block; font-size: 12px; color: #555; }
.reviews .btn { width: 240px; height: 40px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: #000; color: #fff; padding: 12px 18px; font-size: 13px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Info pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 50px 16px 60px; }
.page h1 { font-size: 34px; font-weight: 400; text-transform: uppercase; margin-bottom: 22px; }
.page h2 { font-size: 13px; text-transform: uppercase; margin: 26px 0 8px; }
.page p { color: #444; margin-bottom: 12px; }
.page table { width: 100%; border-collapse: collapse; }
.page th, .page td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.contact-form { display: grid; gap: 12px; margin-top: 20px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #000; padding: 12px; font: inherit; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }
