/* ==========================================================================
   ALOKA TECH — storefront styles
   Brand: #006CB7 (primary blue) · #323369 (navy indigo) on white/light neutral
   ========================================================================== */

:root {
  --brand: #006cb7;
  --brand-700: #005694;
  --brand-800: #004473;
  --brand-050: #eef6fc;
  --brand-100: #d7e9f7;

  --ink: #323369;
  --ink-800: #2a2b58;
  --ink-900: #1e1f43;
  --ink-050: #eeeef7;

  --bg: #ffffff;
  --bg-tint: #f5f7fa;
  --line: #e3e8f0;
  --line-strong: #cfd7e4;
  --text: #15171d;
  --muted: #5c6478;
  --muted-2: #8b93a5;

  --ok: #0f7b47;
  --danger: #c0392b;
  --warn: #b45309;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 4px 18px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 44px rgba(16, 24, 40, .13);

  --wrap: 1220px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0, 108, 183, .28); }
.btn--brand:hover { background: var(--brand-700); color: #fff; box-shadow: 0 4px 14px rgba(0, 108, 183, .34); }

.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-050); }

.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-050); color: var(--brand-700); }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Brand mark ────────────────────────────────────────────────────── */

.brand { display: block; line-height: 1; flex: none; min-width: 0; }
.brand:hover { color: inherit; }
.brand__img { height: 44px; width: auto; max-width: 100%; }

.brand__wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.03em;
  color: var(--brand);
}
.brand__tech { font-weight: 600; margin-left: .3em; letter-spacing: .01em; }
.brand__wordmark--light, .brand__wordmark--light .brand__tech { color: #fff; }

.brand__heritage {
  display: block;
  margin-top: 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__dot { margin: 0 .45em; }

@media (max-width: 640px) {
  .brand__img { height: 22px; }
  .brand__heritage { display: none; }
}

/* ── Header ────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}
@media (max-width: 640px) {
  .header__inner { min-height: 54px; gap: 1rem; }
}

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__list a {
  display: block;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.nav__list a:hover { background: var(--brand-050); color: var(--brand); }
.nav__list a.is-active { color: var(--brand); background: var(--brand-050); }

.header__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 15px 12px;
  flex-direction: column;
  justify-content: space-between;
}
.header__burger:hover { background: var(--brand-050); }
.header__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Search ────────────────────────────────────────────────────────── */

.search { position: relative; display: flex; align-items: center; }
.search svg {
  position: absolute;
  left: 12px;
  width: 17px; height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  padding: .62rem .9rem .62rem 2.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--text);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 108, 183, .14);
}
.search--header { width: 260px; }

.search--panel { display: block; margin-bottom: 1.75rem; }
.search--panel input { border-radius: var(--radius-sm); }
.search__go {
  margin-top: .6rem;
  width: 100%;
  padding: .6rem;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
}
.search__go:hover { background: var(--ink-800); }

@media (max-width: 1080px) {
  .search--header { width: 200px; }
  .header__cta span { display: none; }
}

@media (max-width: 940px) {
  .header__burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 20px 1.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__list a { padding: .8rem 1rem; font-size: 1.02rem; }
  .search--header { width: 100%; }
  .header__cta { width: 100%; }
}

/* ── Hero / slider ─────────────────────────────────────────────────── */

.hero { background: var(--ink-900); }

.slider { position: relative; overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.slider.is-dragging .slider__track { transition: none; }

.slide { position: relative; flex: 0 0 100%; min-width: 0; }
.slide img {
  width: 100%;
  aspect-ratio: 1920 / 700;
  object-fit: cover;
  background: var(--ink-900);
}
.slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(24, 26, 60, .88) 0%, rgba(24, 26, 60, .62) 42%, rgba(24, 26, 60, .06) 78%);
}
.slide__content { color: #fff; max-width: 640px; margin-inline: auto; width: 100%; }
.slide__title {
  font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}
.slide__sub {
  margin-top: .7rem;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
}
.slide__content .btn { margin-top: 1.5rem; }

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: background .16s ease, transform .16s ease;
}
.slider__arrow svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }

.slider__dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.slider__dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, width .2s ease;
}
.slider__dots button[aria-selected="true"] { background: #fff; width: 26px; }

@media (max-width: 720px) {
  .slide img { aspect-ratio: 4 / 3; }
  .slide__overlay { background: linear-gradient(0deg, rgba(24, 26, 60, .92) 12%, rgba(24, 26, 60, .45) 62%, rgba(24, 26, 60, .15) 100%); align-items: flex-end; padding-bottom: 3rem; }
  .slider__arrow { display: none; }
}

/* Fallback hero shown before any banner is uploaded */
.hero__fallback {
  background:
    radial-gradient(1100px 420px at 88% -12%, rgba(0, 108, 183, .55), transparent 62%),
    linear-gradient(135deg, var(--ink-900) 0%, var(--ink) 58%, var(--brand-800) 130%);
  color: #fff;
}
.hero__fallback-inner { padding: clamp(3.5rem, 9vw, 6.5rem) 20px; max-width: 900px; }
.hero__fallback h1 { font-size: clamp(2rem, 5.6vw, 3.7rem); font-weight: 800; color: #fff; }
.hero__lede { margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 52ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__fallback .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero__fallback .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: var(--brand-100); }
.hero__fallback .eyebrow { color: var(--brand-100); }

/* ── Trust strip ───────────────────────────────────────────────────── */

.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.6rem 1.4rem;
  background: #fff;
}
.trust__item svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.trust__item h3 { font-size: .97rem; font-weight: 700; color: var(--ink); }
.trust__item p { font-size: .84rem; color: var(--muted); margin-top: .15rem; }

@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { padding: 1.1rem 1.2rem; }
}

/* ── Sections ──────────────────────────────────────────────────────── */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink-900); margin-top: .4rem; }

.link-more { font-weight: 600; font-size: .93rem; white-space: nowrap; }
.link-more span { display: inline-block; transition: transform .16s ease; }
.link-more:hover span { transform: translateX(3px); }

/* ── Category tiles ────────────────────────────────────────────────── */

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .8rem;
  min-height: 108px;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cat:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--brand);
}
.cat__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.cat__count { font-size: .8rem; color: var(--muted-2); font-weight: 500; }

@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ── Product grid + card ───────────────────────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-3px); }

.card__media { position: relative; background: #fff; padding: 14px; border-bottom: 1px solid var(--line); }
.card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card--out .card__media img { opacity: .55; }

.card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 6px;
}

.card__body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__cat { font-size: .73rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.card__name { font-size: .98rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.card__name a { color: var(--ink-900); }
.card__name a::after { content: ''; position: absolute; inset: 0; }
.card__name a:hover { color: var(--brand); }
.card__price {
  margin-top: auto;
  padding-top: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--brand);
  letter-spacing: -.02em;
}

/* ── Page head + breadcrumbs ───────────────────────────────────────── */

.pagehead { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2.4rem; }
.pagehead__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--ink-900); margin-top: .5rem; }
.pagehead__meta { margin-top: .5rem; color: var(--muted); font-size: .92rem; }

.crumbs { font-size: .84rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs--detail { padding: 1.5rem 0 0; }

/* ── Catalog layout ────────────────────────────────────────────────── */

.catalog {
  display: grid;
  grid-template-columns: 258px 1fr;
  gap: 44px;
  padding-block: 2.5rem 4rem;
  align-items: start;
}

.filters { position: sticky; top: 100px; }
.filters__title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .7rem;
}
.filters__list { display: flex; flex-direction: column; gap: 1px; }
.filters__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .58rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .93rem;
  font-weight: 500;
}
.filters__list a:hover { background: var(--brand-050); color: var(--brand); }
.filters__list a.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.filters__count { font-size: .78rem; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.filters__list a.is-active .filters__count { color: rgba(255, 255, 255, .8); }

.filters__help {
  margin-top: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--muted);
}
.filters__help strong { color: var(--ink); display: block; margin-bottom: .25rem; }

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  min-height: 40px;
}
.sort { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.sort label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.sort select {
  font: inherit;
  font-size: .88rem;
  padding: .5rem 2rem .5rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c6478'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .45rem center / 18px;
  appearance: none;
  color: var(--text);
}
.sort select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 108, 183, .14); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .8rem;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand);
}
.chip:hover { background: var(--brand-100); color: var(--brand-700); }
.chip--clear span { opacity: .6; }

@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .filters__list { flex-direction: row; flex-wrap: wrap; gap: .45rem; }
  .filters__list a { border: 1px solid var(--line-strong); border-radius: 999px; padding: .42rem .85rem; font-size: .87rem; }
  .filters__count { display: none; }
  .filters__help { display: none; }
}

/* ── Pagination ────────────────────────────────────────────────────── */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}
.pager__btn {
  padding: .62rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__status { font-size: .88rem; color: var(--muted); }

/* ── Empty state ───────────────────────────────────────────────────── */

.empty {
  padding: 4rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--ink);
}
.empty p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.empty__hint { margin-top: .5rem; color: var(--muted); font-size: .92rem; }

/* ── Product detail ────────────────────────────────────────────────── */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  padding-block: 2rem 4rem;
  align-items: start;
}

.detail__media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.detail__media img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.detail__badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--ink);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 7px;
}

.detail__info { padding-top: .5rem; }
.detail__name { font-size: clamp(1.6rem, 3.4vw, 2.35rem); color: var(--ink-900); margin-top: .9rem; text-wrap: balance; }

.detail__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand);
  letter-spacing: -.025em;
}
.detail__stock {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.detail__stock.is-in { background: #e7f5ee; color: var(--ok); }
.detail__stock.is-out { background: #fdecea; color: var(--danger); }

.detail__desc {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
  white-space: pre-line; /* keeps the owner's line breaks without allowing HTML */
}

.detail__buy {
  margin-top: 2rem;
  padding: 1.6rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail__buy-title { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); font-size: 1.05rem; }
.detail__buy-note { margin-top: .35rem; font-size: .92rem; color: var(--muted); }
.detail__actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem; }

.detail__meta { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); display: grid; gap: .55rem; }
.detail__meta li { font-size: .89rem; color: var(--muted); display: flex; gap: .6rem; }
.detail__meta strong { color: var(--ink); font-weight: 600; min-width: 58px; flex: none; }

@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail__media { padding: 20px; }
  .detail__actions .btn { flex: 1 1 190px; }
}

/* ── Happy customers marquee ──────────────────────────────────────── */

.customers { padding: clamp(2.75rem, 5vw, 4rem) 0; background: #fff; overflow: hidden; }
.customers__head { text-align: center; margin-bottom: 2rem; }
.customers__head .section__title { margin-top: .4rem; }

.customers__marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.customers__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: customers-scroll 46s linear infinite;
}
.customers__marquee:hover .customers__track { animation-play-state: paused; }

.customers__item {
  flex: none;
  width: 190px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.customers__item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes customers-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .customers__item { width: 130px; }
  .customers__track { gap: 10px; animation-duration: 32s; }
}

@media (prefers-reduced-motion: reduce) {
  .customers__track { animation: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; }
  .customers__item { scroll-snap-align: start; }
}

/* ── Visit / contact band ──────────────────────────────────────────── */

.visit {
  background:
    radial-gradient(900px 380px at 92% 0%, rgba(0, 108, 183, .5), transparent 60%),
    linear-gradient(135deg, var(--ink-900), var(--ink));
  color: #fff;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.visit__intro h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; margin-top: .5rem; text-wrap: balance; }
.visit__lede { margin-top: .9rem; color: rgba(255, 255, 255, .78); max-width: 46ch; }
.visit__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.visit__details {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.visit__details li { padding: 1.15rem 1.4rem; background: rgba(255, 255, 255, .045); }
.visit__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-100);
}
.visit__value { display: block; margin-top: .3rem; color: #fff; font-weight: 500; }
.visit__value a { color: #fff; }
.visit__value a:hover { color: var(--brand-100); }
.visit__link { display: inline-block; margin-top: .45rem; font-size: .85rem; font-weight: 600; color: var(--brand-100); }
.visit__link:hover { color: #fff; }

@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Happy customers marquee ──────────────────────────────────────── */

.customers { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5rem); background: var(--bg); overflow: hidden; }
.customers__head { text-align: center; margin-bottom: 2.25rem; }
.customers__head .section__title { margin-top: .4rem; }

.customers__marquee {
  --gap: 16px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.customers__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: customers-scroll 46s linear infinite;
}
.customers__marquee:hover .customers__track { animation-play-state: paused; }

.customers__item {
  flex: none;
  width: 168px;
  height: 168px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.customers__item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes customers-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

@media (max-width: 620px) {
  .customers__item { width: 128px; height: 128px; }
  .customers__track { animation-duration: 34s; }
}

@media (prefers-reduced-motion: reduce) {
  .customers__track { animation: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; }
  .customers__item { scroll-snap-align: start; }
}

/* ── Contact page ──────────────────────────────────────────────────── */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 3rem 1rem;
}
.contact-card {
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: .9rem; }
.contact-card h2 { font-size: 1.05rem; color: var(--ink-900); margin-bottom: .5rem; }
.contact-card p { color: var(--muted); font-size: .93rem; }
.contact-card__note { font-size: .84rem; color: var(--muted-2); margin-top: .3rem; }
.contact-card .link-more { display: inline-block; margin-top: .7rem; }

@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

.mapcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: 2rem 4rem;
  padding: 2.2rem 2.4rem;
  background: linear-gradient(120deg, var(--brand-050), #fff 70%);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.mapcard:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.mapcard h2 { font-size: 1.35rem; color: var(--ink-900); margin: .4rem 0 .5rem; }
.mapcard p { color: var(--muted); font-size: .93rem; }
.mapcard__pin { width: 64px; height: 64px; color: var(--brand); opacity: .3; flex: none; }

@media (max-width: 620px) { .mapcard { padding: 1.6rem; } .mapcard__pin { display: none; } }

/* ── 404 ───────────────────────────────────────────────────────────── */

.notfound { padding: clamp(4rem, 10vw, 7rem) 0; max-width: 620px; text-align: center; margin-inline: auto; }
.notfound h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink-900); margin: .6rem 0 .8rem; }
.notfound p { color: var(--muted); }
.notfound__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer { background: var(--ink-900); color: rgba(255, 255, 255, .72); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.footer__heritage {
  margin-top: .85rem;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}
.footer__heritage span { margin: 0 .3em; }
.footer__slogan { margin-top: .9rem; font-family: Georgia, serif; font-style: italic; color: rgba(255, 255, 255, .8); }

.footer__col h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__col li { margin-bottom: .55rem; font-size: .92rem; }
.footer__col a { color: rgba(255, 255, 255, .72); }
.footer__col a:hover { color: #fff; }
.footer__note { margin-top: 1rem; font-size: .84rem; color: rgba(255, 255, 255, .5); }

.socials { display: flex; gap: .55rem; margin-top: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.15rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}
.footer__bar a { color: rgba(255, 255, 255, .55); }
.footer__bar a:hover { color: #fff; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Motion preferences ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
