/* HARDYN storefront kit — local CSS layered on top of design tokens */

:root {
  --header-h: 64px;
  --promo-h: 36px;
  --bottom-h: 64px;
  --bag-h: 22px;
}

body {
  margin: 0;
  background: var(--bg-1);
  font-family: var(--font-body);
  color: var(--fg-1);
}

button { font-family: inherit; cursor: pointer; }

/* ---------- shared atoms ---------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 220ms var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn--primary { background: var(--brand-orange); color: #fff; }
.btn--primary:hover { background: var(--brand-orange-deep); box-shadow: var(--shadow-accent); }
.btn--ink { background: var(--brand-ink); color: #fff; }
.btn--ink:hover { background: var(--ink-200); }
.btn--outline { background: transparent; color: var(--brand-ink); border-color: var(--brand-ink); }
.btn--outline:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-ink); border-color: var(--line-1); }
.btn--lg { padding: 18px 30px; font-size: 13px; }
.btn--sm { padding: 8px 14px; font-size: 10px; }
.btn--block { width: 100%; }

.badge {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
}
.badge--sale { background: var(--brand-orange); color: #fff; }
.badge--new  { background: var(--brand-ink); color: #fff; }
.badge--gold { background: var(--brand-ink); color: #fff; }
.badge--app  { background: var(--brand-orange-soft); color: var(--brand-orange-deep); }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* ---------- promo strip + header ---------- */
.promo {
  background: var(--brand-ink);
  color: #fff;
  text-align: center;
  height: var(--promo-h);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.promo .pink { color: var(--brand-orange); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.header__logo .crown { height: 26px; width: auto; display: block; }
.header__logo .word  { height: 18px; width: auto; display: block; }
.header__menu { display: flex; gap: 26px; }
.header__menu a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-1);
  cursor: pointer;
}
.header__menu a:hover { color: var(--brand-orange); }
.header__menu a.is-sale { color: var(--brand-orange); }
.header__icons { display: flex; gap: 16px; align-items: center; }
.icon-btn {
  background: none; border: 0; padding: 6px; color: var(--fg-1);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--brand-orange); }
.icon-btn__count {
  position: absolute; top: -2px; right: -2px;
  background: var(--brand-orange); color: #fff;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 500;
  padding: 0 4px;
}

/* ---------- layout ---------- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 clamp(20px, 4vw, 64px);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero__panel {
  position: relative;
  padding: clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__panel--orange { background: var(--brand-orange); color: var(--brand-ink); }
.hero__panel--blue   { background: var(--brand-blue);   color: var(--brand-ink); }
.hero__crown {
  width: clamp(100px, 16vw, 220px); height: auto;
  align-self: flex-start;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.hero__title .accent { color: var(--brand-orange);  }
.hero__panel--blue .hero__title .accent { color: var(--brand-ink); }
.hero__meta { display: flex; flex-direction: column; gap: 18px; }
.hero__sub { font-family: var(--font-body); font-size: 15px; line-height: 1.5; max-width: 360px; color: var(--brand-ink); }
.hero__cta { align-self: flex-start; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; aspect-ratio: 4 / 5; }
}

/* ---------- section header ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 24px; flex-wrap: wrap; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ---------- product card ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.products--3 { grid-template-columns: repeat(3, 1fr); }

.pcard { display: flex; flex-direction: column; gap: 10px; position: relative; cursor: pointer; }
.pcard__media {
  position: relative;
  width: 100%; aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}
.pcard__media .ph {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--brand-blue-soft), var(--brand-blue));
  display: grid; place-items: center;
}
.pcard__media .ph::before {
  content: ""; width: 50%; height: 60%;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 50% 50% 45% 50% / 60% 60% 40% 40%;
}
.pcard__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pcard__heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  border: 0; padding: 0;
}
.pcard__heart svg { width: 15px; height: 15px; stroke: var(--brand-ink); fill: none; stroke-width: 1.75; }
.pcard__heart.is-on svg { fill: var(--brand-orange); stroke: var(--brand-orange); }

.pcard__name { font-family: var(--font-body); font-size: 14px; line-height: 1.35; color: var(--fg-1); }
.pcard__prices { display: flex; gap: 8px; align-items: baseline; }
.pcard__strike { font-size: 12px; color: var(--fg-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pcard__price { font-family: var(--font-display); font-weight: 500; font-size: 16px; font-variant-numeric: tabular-nums; }
.pcard__price--sale { color: var(--brand-orange); }
.pcard__install { font-size: 11px; color: var(--fg-3); }
.pcard__swatches { display: flex; gap: 4px; margin-top: 4px; }
.pcard__sw { width: 12px; height: 12px; border-radius: 999px; border: 1px solid var(--line-2); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 28px; border-bottom: 1px solid var(--line-1); margin-bottom: 28px; }
.chip {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--fg-1);
  border: 1px solid transparent;
  cursor: pointer;
}
.chip.is-active { background: var(--brand-ink); color: #fff; }

.catalog__head {
  display: flex; align-items: end; justify-content: space-between;
  padding: 24px 0 8px;
}
.crumb { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.catalog__title { font-family: var(--font-display); font-weight: 700;  font-size: 40px; text-transform: uppercase; letter-spacing: 0; }
.sort { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 32px 0 64px; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery__thumb {
  width: 64px; aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: linear-gradient(160deg, var(--brand-blue-soft), var(--brand-blue));
  cursor: pointer;
  border: 1px solid var(--line-1);
}
.gallery__thumb.is-active { border-color: var(--brand-ink); }
.gallery__main {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--brand-blue-soft), var(--brand-blue));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.gallery__main::after {
  content: ""; position: absolute; inset: 30% 25%;
  border: 1px dashed rgba(0,0,0,0.18); border-radius: 50% 50% 45% 50% / 60% 60% 40% 40%;
}

.pdp__name { font-family: var(--font-display); font-weight: 700;  font-size: 36px; line-height: 1; text-transform: uppercase; letter-spacing: 0; margin-bottom: 8px; }
.pdp__sub { color: var(--fg-2); font-size: 14px; margin-bottom: 24px; }
.pdp__prices { display: flex; gap: 12px; align-items: baseline; }
.pdp__price { font-family: var(--font-display); font-weight: 500; font-size: 28px; font-variant-numeric: tabular-nums; }
.pdp__strike { color: var(--fg-3); text-decoration: line-through; font-size: 16px; font-variant-numeric: tabular-nums; }
.pdp__install { color: var(--fg-3); font-size: 13px; margin-top: 6px; }

.pdp__row { margin-top: 28px; }
.pdp__row .lbl { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; position: relative; }
.swatch.is-active::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--brand-ink); border-radius: 999px; }
.sizes { display: flex; gap: 8px; }
.size {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg-1); color: var(--fg-1);
  cursor: pointer;
}
.size.is-active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.size.is-disabled { color: var(--fg-3); text-decoration: line-through; cursor: not-allowed; }

.pdp__cta { display: flex; gap: 12px; margin-top: 28px; }

.pdp__desc { margin-top: 32px; border-top: 1px solid var(--line-1); padding-top: 20px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.pdp__accordion { border-top: 1px solid var(--line-1); padding: 16px 0; display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; cursor: pointer; }

/* ---------- bag ---------- */
.bag-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 32px 0 64px; }
.bag-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-1); }
.bag-row__img { aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--brand-blue-soft), var(--brand-blue)); border-radius: 2px; }
.bag-row__meta .name { font-size: 14px; }
.bag-row__meta .opts { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.bag-row__qty { display: inline-flex; align-items: center; gap: 0; margin-top: 10px; border: 1px solid var(--line-1); border-radius: 999px; padding: 4px; }
.bag-row__qty button { background: none; border: 0; padding: 4px 10px; cursor: pointer; font-family: var(--font-ui); font-size: 14px; color: var(--fg-1); }
.bag-row__qty .v { font-family: var(--font-ui); font-size: 13px; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.bag-row__price { font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.summary { background: var(--bg-2); padding: 24px; border-radius: 4px; }
.summary h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
.summary__line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary__total { display: flex; justify-content: space-between; padding: 12px 0 4px; border-top: 1px solid var(--line-1); margin-top: 8px; }
.summary__total .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.summary__pix { font-size: 12px; color: var(--brand-orange); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; margin-top: 6px; }

/* ---------- account ---------- */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 32px 0 64px; }
.account__nav { display: flex; flex-direction: column; gap: 4px; }
.account__nav button {
  background: none; border: 0; padding: 12px 14px; text-align: left;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2); border-radius: 4px;
}
.account__nav button.is-active { background: var(--brand-ink); color: #fff; }
.account__card { border: 1px solid var(--line-1); border-radius: 4px; padding: 28px; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 80px 24px; }
.empty h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 32px; letter-spacing: -0.01em; margin: 0 0 12px; }
.empty p { color: var(--fg-2); margin: 0 0 20px; }

/* ---------- footer ---------- */
.footer { background: var(--brand-ink); color: rgba(255,255,255,0.84); margin-top: 64px; padding: 64px clamp(20px, 4vw, 64px) 24px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand .logo { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; }
.footer__brand p { font-size: 13px; line-height: 1.5; max-width: 320px; }
.footer h4 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ---------- bottom nav (mobile mock area) ---------- */
.bottombar { display: none; }

/* ---------- responsive shrink ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .pdp, .bag-wrap, .account { grid-template-columns: 1fr; }
  .header__menu { display: none; }
}
