/* ============================================================
   Jummy Fashion Hub — storefront
   Mobile-first. Warm gold on near-black, generous tap targets.
   ============================================================ */

:root {
  --ink: #f4f2ee;
  --muted: #a5a29c;
  --bg: #0f0f12;
  --panel: #17171c;
  --panel-2: #1e1e24;
  --line: #2a2a31;
  --gold: #c9a227;
  --gold-soft: #e6c65c;
  --wa: #25d366;
  --radius: 14px;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* `hidden` must win. Without this the .scrim/.toast `display` rules
   override the attribute and those elements show on load. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 24px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.btn:hover { background: #26262e; }
.btn:active { transform: scale(.98); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: #14140f;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 16px -8px rgba(201, 162, 39, .55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn--gold:hover {
  background: linear-gradient(180deg, #f0d478, var(--gold-soft));
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 10px 24px -8px rgba(201, 162, 39, .7);
}
.btn--gold:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 3px 10px -6px rgba(201, 162, 39, .5);
}
.btn--gold:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.btn--wa {
  background: linear-gradient(180deg, #3ae07c, var(--wa));
  border-color: var(--wa);
  color: #06231a;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 18px -10px rgba(37, 211, 102, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn--wa:hover {
  background: linear-gradient(180deg, #4ff090, #3ae07c);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px -10px rgba(37, 211, 102, .7);
}
.btn--wa:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 3px 10px -6px rgba(37, 211, 102, .5); }
.btn--block { width: 100%; }

.iconbtn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .4rem .6rem;
  line-height: 1;
}
.iconbtn:hover { color: var(--ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 15, 18, .9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  /* the bar floats above the page rather than sitting flush in it */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .045) inset,
    0 14px 32px -20px rgba(0, 0, 0, .95);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 46px; height: 46px;
  display: block;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}
.brand__text { font-family: var(--display); font-size: 1.05rem; letter-spacing: .01em; line-height: 1; }
.brand__text small { display: block; font-family: var(--ui); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.cartbtn {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.cartbtn__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  margin-left: .35rem;
  padding: 0 5px;
  background: var(--gold);
  color: #14140f;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(26px, 5vw, 60px) 0 clamp(12px, 2.5vw, 26px);
}
/* soft gold light behind the headline — gives the hero depth */
.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  width: min(760px, 130%);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, .11), transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero__eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.hero__lede { color: var(--muted); max-width: 46ch; margin: 0 0 18px; font-size: .96rem; }

/* ---------- shop ---------- */
.shop { padding-bottom: clamp(26px, 4vw, 48px); }
.shop__head { margin-bottom: 13px; }
.shop__head h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 4px; }
.shop__head p { color: var(--muted); margin: 0; font-size: .88rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* grounded shadow — the card sits ON the page, it does not tilt */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .035) inset,
    0 10px 22px -14px rgba(0, 0, 0, .85);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, .38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 22px 40px -20px rgba(0, 0, 0, 1),
    0 30px 60px -34px rgba(201, 162, 39, .28);
}

.card__img { aspect-ratio: 3 / 4; overflow: hidden; background: #101014; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.card:hover .card__img img { transform: scale(1.05); }

/* a light that sweeps across the photo on hover — depth without gimmick */
.card__img::after {
  content: '';
  position: absolute;
  inset: -40% -120%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .09) 48%, transparent 58%);
  transform: translateX(-60%);
  transition: transform .85s cubic-bezier(.2, .7, .3, 1);
  pointer-events: none;
}
.card:hover .card__img::after { transform: translateX(60%); }

.card__body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-size: .94rem; margin: 0; font-weight: 600; }
.card__price { color: var(--gold); font-weight: 700; font-size: .92rem; margin: 0; line-height: 1.3; }

.sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.sizes button {
  min-width: 34px;
  padding: .3rem .45rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: .74rem;
  cursor: pointer;
}
.sizes button:hover { border-color: var(--gold); color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #14140f; font-weight: 600; }

.card__add { margin-top: auto; padding: .58rem 1rem; font-size: .84rem; }

/* ---------- how it works ---------- */
.how {
  padding: clamp(26px, 4vw, 46px) 0;
  border-top: 1px solid var(--line);
}
.how h2 { font-family: var(--display); font-size: 1.7rem; margin: 0 0 18px; }
.how__list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; max-width: 52ch; }
.how__list li { color: var(--muted); font-size: .95rem; }
.how__list strong { color: var(--gold); margin-right: 6px; }
.how__note { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- top nav ---------- */
.topbar__actions { display: flex; align-items: center; gap: .45rem; }
.topnav { display: flex; gap: .15rem; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .84rem;
  padding: .5rem .7rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.topnav a:hover { color: var(--ink); background: var(--panel-2); }

/* ---------- contact ---------- */
.contact {
  padding: clamp(28px, 5vw, 54px) 0 clamp(34px, 6vw, 62px);
  border-top: 1px solid var(--line);
}
.contact__head { margin-bottom: 26px; }
.contact__head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 0 0 8px;
}
.contact__lede { color: var(--muted); max-width: 48ch; margin: 0; font-size: .95rem; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 12px 26px -18px rgba(0, 0, 0, .9);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.contact__card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, .3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 40px -24px rgba(0, 0, 0, 1);
}
.contact__card h3 { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.contact__card p { color: var(--muted); font-size: .9rem; margin: 0; }
.contact__phone {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 6px;
}
.contact__phone:hover { color: var(--gold-soft); }
.contact__card .btn { margin-top: auto; }

.contact__meta { color: var(--muted); font-size: .82rem; margin: 20px 0 0; }

@media (max-width: 480px) {
  .topnav a { padding: .5rem .45rem; font-size: .8rem; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 8px; }
.footer__brand { font-family: var(--display); margin: 0 0 4px; }
.footer__meta { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- cart drawer ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 50;
}

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.05rem; margin: 0; font-family: var(--display); }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 18px; }
.drawer__hint { color: var(--muted); font-size: .76rem; margin: 10px 0 0; text-align: center; }

.totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.totals span { color: var(--muted); font-size: .85rem; }
.totals strong { font-size: 1.25rem; color: var(--gold); }

.line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.line:last-child { border-bottom: 0; }
.line__img { width: 56px; height: 70px; object-fit: cover; border-radius: 9px; background: #101014; }
.line__name { font-size: .86rem; margin: 0 0 2px; font-weight: 600; }
.line__meta { color: var(--muted); font-size: .76rem; margin: 0 0 6px; }
.line__qty { display: flex; align-items: center; gap: 8px; }
.line__qty button {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink); border-radius: 6px; cursor: pointer; font: inherit; line-height: 1;
}
.line__qty span { font-size: .82rem; min-width: 16px; text-align: center; }
.line__price { font-size: .86rem; font-weight: 600; text-align: right; }
.line__remove { background: none; border: 0; color: var(--muted); font-size: .72rem; cursor: pointer; padding: 0; margin-top: 5px; }
.line__remove:hover { color: #ff8a7a; }

.empty { color: var(--muted); text-align: center; padding: 46px 10px; font-size: .9rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  background: var(--gold);
  color: #14140f;
  font-size: .86rem;
  font-weight: 600;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  z-index: 90;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.8);
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .card__body { padding: 8px 9px 10px; }
}
