/* ==========================================================================
   Neribo Style
   Palette:  near-black #0B0B0B, panel #141414, ink #F2F0EC, body #A8A5A0,
             border #262626, gold #AB8C52
   Type:     Bebas Neue (headings), Inter (body)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --panel: #141414;
  --ink: #f2f0ec;
  --body: #a8a5a0;
  --border: #262626;
  --gold: #ab8c52;
  --gold-light: #c9a86a;
  --white: #ffffff;
  --max: 1280px;

  --font-head: "Bebas Neue", "Arial Narrow", Impact, "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--ink);
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: #0b0b0b;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-white { background: var(--white); color: #0b0b0b; }
.btn-white:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: #0b0b0b; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #0b0b0b; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: #0b0b0b; }
.btn-block { width: 100%; }

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  height: 4.25rem;
}
.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.brand-logo { height: 2rem; width: auto; flex: none; }
.nav-links { display: none; }

.cart-btn { justify-self: end; }
.cart-count {
  position: absolute;
  top: 0.15rem;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  background: var(--gold);
  color: #0b0b0b;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 24rem) {
  .brand { font-size: 1.1rem; gap: 0.3rem; letter-spacing: 0.05em; }
  .brand-logo { height: 1.5rem; }
}

@media (min-width: 56rem) {
  .nav-bar { grid-template-columns: auto 1fr auto; gap: 2rem; }
  .menu-btn { display: none; }
  .brand { grid-column: 1; justify-self: start; }
  .nav-links { display: flex; justify-self: center; gap: 1.75rem; grid-column: 2; }
  .nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body);
    padding-block: 0.4rem;
  }
  .nav-links a:hover { color: var(--ink); }
  .cart-btn { grid-column: 3; }
}

/* ---------- Slide-in panels (menu and order list) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.overlay.open { opacity: 1; visibility: visible; }
.overlay .panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 86%;
  max-width: 24rem;
  background: var(--panel);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.overlay-left .panel { left: 0; transform: translateX(-100%); border-right: 1px solid var(--border); }
.overlay-right .panel { right: 0; transform: translateX(100%); border-left: 1px solid var(--border); }
.overlay.open .panel { transform: translateX(0); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.panel-title { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.06em; }

.dlink {
  display: block;
  padding: 0.95rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  border-bottom: 1px solid #1e1e1e;
}
.dlink:hover { color: var(--ink); }

/* Order list */
.cart-body { flex: 1; padding: 1rem 1.25rem; }
.cart-empty { color: var(--body); font-size: 0.95rem; }
.cart-list { display: grid; gap: 1rem; }
.cart-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 4.5rem; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.cart-item h3 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; text-transform: none; margin-bottom: 0.15rem; }
.cart-item .line-price { color: var(--body); font-size: 0.9rem; }
.qty { display: inline-flex; align-items: center; margin-top: 0.5rem; border: 1px solid var(--border); }
.qty button { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
.qty button:hover { background: #1f1f1f; }
.qty span { min-width: 2rem; text-align: center; font-size: 0.9rem; }
.remove-btn { margin-left: 0.75rem; font-size: 0.8rem; color: var(--body); text-decoration: underline; text-underline-offset: 0.2em; padding: 0.4rem 0; }
.remove-btn:hover { color: var(--ink); }

.cart-foot { padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 0.65rem; background: var(--panel); position: sticky; bottom: 0; }
.cart-foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; color: var(--body); }
.cart-total strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 400; color: var(--ink); letter-spacing: 0.03em; }
.cart-note, .cart-hint { font-size: 0.82rem; color: var(--body); line-height: 1.45; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; padding: 0; }
.hero-track { display: flex; height: 100%; transition: transform 0.6s ease; }
.hero-slide { min-width: 100%; height: 100%; position: relative; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 55%);
}
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-caption h1,
.hero-caption h2 { font-size: clamp(2.4rem, 1.2rem + 6vw, 4.8rem); color: #fff; margin-bottom: 0.5rem; }
.hero-caption p { color: #e6e3de; max-width: 26rem; margin-bottom: 1.1rem; font-size: 1rem; }
.hero-dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 0.4rem; display: flex; gap: 0.15rem; }
.hero-dots button { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; }
.hero-dots button::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.45); transition: width 0.2s ease, background-color 0.2s ease; }
.hero-dots button.active::before { width: 1.5rem; background: #fff; }

@media (min-width: 56rem) {
  .hero { aspect-ratio: 21 / 9; }
  .hero-slide > img { object-position: center 8%; }
  .hero-slide::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 55%), linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 40%); }
  .hero-caption { bottom: 3.5rem; }
  .hero-caption h1, .hero-caption h2 { font-size: clamp(3rem, 1.5rem + 3.2vw, 4.4rem); }
}

/* ---------- Section shells ---------- */
section { padding-block: 3.25rem; }
.panel-bg { background: var(--panel); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); }
.section-head a,
.result-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
}
.section-head a { border-bottom: 1px solid var(--border); padding-bottom: 0.2rem; }
.section-head a:hover { color: var(--ink); border-color: var(--ink); }
.more { text-align: center; margin-top: 1.6rem; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prod-grid.scroller {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}
.prod-grid.scroller::-webkit-scrollbar { display: none; }
.prod-card { display: flex; flex-direction: column; min-width: 0; }
.prod-grid.scroller .prod-card { flex: 0 0 11.5rem; scroll-snap-align: start; }
.prod-card[hidden] { display: none; }

.prod-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #1a1a1a; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.prod-card:hover .prod-media img { transform: scale(1.03); }
.prod-tag {
  position: absolute;
  top: 0.65rem; left: 0.65rem;
  z-index: 1;
  background: var(--gold);
  color: #0b0b0b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prod-tag.soldout { background: #3a3a3a; color: #d6d3ce; }
.prod-body { padding-top: 0.75rem; display: flex; flex-direction: column; flex: 1; }
.prod-body > :nth-last-child(2) { margin-bottom: 0.75rem; }
.prod-name { font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 1.35; }
.prod-price { font-size: 0.92rem; color: var(--body); margin-top: 0.25rem; }
.prod-price.soldout { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.prod-colors { font-size: 0.8rem; color: var(--body); margin-top: 0.3rem; }
.add-btn {
  margin-top: auto;
  align-self: stretch;
  min-height: 2.6rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.add-btn:hover { background: var(--gold); border-color: var(--gold); color: #0b0b0b; }
.add-btn.added { background: var(--gold); border-color: var(--gold); color: #0b0b0b; }
.add-btn[disabled] { color: #77746f; border-color: var(--border); cursor: not-allowed; background: transparent; }

@media (min-width: 560px) and (max-width: 899px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .prod-grid,
  .prod-grid.scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; overflow: visible; }
  .prod-grid.scroller .prod-card { flex: none; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
  min-height: 2.5rem;
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #0b0b0b; }

/* ---------- Campaign banners ---------- */
.campaign { position: relative; padding: 0; overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.campaign > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1) 65%); }
.campaign-a > img { object-position: 78% center; }
.campaign-b > img { object-position: 80% center; }
.campaign-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.25rem;
}
.campaign-content .kicker { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.4rem; }
.campaign-content h2 { font-size: clamp(2.6rem, 1.2rem + 6vw, 5rem); color: #fff; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.campaign-copy { color: #e6e3de; max-width: 24rem; margin-bottom: 1.2rem; }

@media (min-width: 56rem) {
  .campaign { aspect-ratio: 16 / 7; }
  .campaign::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0) 60%); }
  .campaign-content { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .campaign-a > img { object-position: center 35%; }
  .campaign-b > img { object-position: center 22%; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 1.5rem; }
.about h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.about-lead { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: 0.03em; color: var(--ink); margin-bottom: 1rem; line-height: 1.1; }
.about-copy p { color: var(--body); max-width: 40rem; margin-bottom: 1rem; }
.about-copy .about-lead { color: var(--gold-light); }
@media (min-width: 56rem) {
  .about { grid-template-columns: 4fr 8fr; gap: 4rem; }
}

/* ---------- How to order ---------- */
.order-wrap { display: grid; gap: 2.5rem; }
#how-to-order h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin-bottom: 1.25rem; }
.steps { counter-reset: step; display: grid; gap: 1.1rem; max-width: 34rem; }
.steps li { position: relative; padding-left: 3rem; color: var(--body); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--ink); font-weight: 600; }

.faq h3 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 0.95rem 0; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-light); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--body); padding: 0 0 1rem; max-width: 36rem; font-size: 0.95rem; }

@media (min-width: 56rem) {
  .order-wrap { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
}

/* ---------- Footer ---------- */
footer { background: #000; border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.foot-brand { justify-self: start; font-size: 1.7rem; margin-bottom: 0.75rem; }
.foot-blurb { color: var(--body); font-size: 0.92rem; max-width: 17rem; }
.foot-col h3 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.foot-col > a:not(.brand) { display: block; color: var(--body); font-size: 0.92rem; padding: 0.4rem 0; }
.foot-col > a:not(.brand):hover { color: var(--ink); }
.foot-loc { color: var(--body); font-size: 0.92rem; padding: 0.4rem 0; }
.foot-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: #8b8882; }
@media (min-width: 56rem) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
  .prod-media img { transition: none; }
  .overlay, .overlay .panel { transition: none; }
}
