/* =============================================================================================
   Ottoman Gym — storefront stylesheet
   ---------------------------------------------------------------------------------------------
   Design direction: an industrial equipment manufacturer, not a SaaS landing page.

   * Palette comes from the client's existing brand: near-black anthracite surfaces with the
     safety-yellow accent (#eac12d) used as a SIGNAL, never as decoration. Yellow marks the
     primary action, the active tab and prices — nothing else.
   * Corners are square (2px). No glassmorphism, no pastel gradients, no floating cards.
   * Structure comes from hairline rules and full-bleed bands, the way a spec sheet or a machine
     rating plate is organised.
   * Display type is condensed and uppercase with tight tracking; body copy stays quiet and legible.
   ============================================================================================= */

/* ------------------------------------------------------------------ 1. tokens --------------- */
:root {
  /* Brand */
  --accent: #eac12d;
  --accent-dark: #c9a31f;
  --accent-ink: #1b1b1b;

  /* Surfaces, darkest to lightest */
  --ink: #0e0f11;
  --surface: #1b1b1b;
  --surface-2: #232528;
  --surface-3: #2c2f33;

  /* Lines */
  --line: #34383d;
  --line-soft: #262a2e;
  --line-strong: #4a4f56;

  /* Text */
  --text: #edeae4;
  --text-dim: #9ba1a8;
  --text-faint: #6f757c;

  /* States */
  --danger: #d9534f;
  --success: #5cb85c;
  --info: #5bc0de;
  --warning: #f0ad4e;

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1360px;
  --radius: 2px;

  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-lift: 0 12px 32px rgba(0, 0, 0, .45);
}

/* ------------------------------------------------------------------ 2. base ----------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  color: #fff;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: .9rem; letter-spacing: .06em; }

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ 3. layout --------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { padding: 64px 0; }
.band--tight { padding: 40px 0; }
.band--alt { background: var(--ink); }
.band--raised { background: var(--surface-2); }

.band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.band-head h2 { margin: 0; }
.band-head__note { color: var(--text-dim); font-size: .9rem; max-width: 46ch; margin: 0; }

/* The hazard stripe is the one recurring graphic motif — borrowed from machine safety markings. */
.hazard {
  height: 5px;
  background-image: repeating-linear-gradient(-45deg, var(--accent) 0 10px, transparent 10px 20px);
  opacity: .85;
}

/* ------------------------------------------------------------------ 4. buttons -------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-dark); color: var(--accent-ink); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--solid { background: var(--surface-3); color: var(--text); }
.btn--solid:hover { background: var(--line-strong); }

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: .82rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ 5. forms ---------------- */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field .req { color: var(--accent); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}

input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { min-height: 120px; resize: vertical; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: var(--text-dim);
  cursor: pointer;
}

.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }

.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: .82rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ------------------------------------------------------------------ 6. header --------------- */
.util-bar {
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  font-size: .8rem;
  color: var(--text-dim);
}

.util-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.util-bar__list { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.util-bar a:hover { color: var(--accent); }
.util-bar strong { color: var(--accent); font-weight: 600; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }

.site-header__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

/* Wordmark: heavy condensed type on a yellow plate — a machine rating-plate feel, no clip-art icon. */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand:hover { color: inherit; }

.brand__mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}

.search { position: relative; }
.search__form { display: flex; }

.search input[type="search"] {
  background: var(--ink);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 12px 16px;
}

.search button {
  padding: 0 20px;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.search button:hover { background: var(--accent-dark); }

.search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
}
.search__results:empty { display: none; }

.search__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.search__item:last-child { border-bottom: none; }
.search__item:hover { background: var(--surface-3); }
.search__item img { width: 46px; height: 46px; object-fit: contain; background: var(--ink); }
.search__item strong { display: block; font-size: .88rem; font-weight: 500; color: var(--text); }
.search__item span { font-size: .85rem; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.cart-count {
  min-width: 20px;
  padding: 1px 5px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.cart-count[data-empty="true"] { display: none; }

.site-nav { background: var(--ink); border-bottom: 2px solid var(--accent); }

.site-nav__inner { display: flex; align-items: stretch; }

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  /* Shrinks and scrolls only when the labels genuinely do not fit; flex:0 1 auto keeps it
     content-width otherwise, so the "more" button sits flush against the last link. */
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__list a {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--accent); background: var(--surface-2); }

.nav-toggle { display: none; }

/* "Tüm kategoriler" overflow menu. A native <details> so it needs no JavaScript and stays
   keyboard operable. It must stay OUTSIDE the scrolling <ul>, otherwise the panel is clipped. */
.nav-more { flex: 0 0 auto; }
.nav-more > details { position: relative; height: 100%; }

.nav-more > details > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 50px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-more > details > summary::-webkit-details-marker { display: none; }
.nav-more > details > summary:hover,
.nav-more > details > summary.is-active { color: var(--accent); background: var(--surface-2); }
.nav-more > details[open] > summary { color: var(--accent); background: var(--surface-2); }

.nav-more__caret { font-size: .7rem; transition: transform .15s; }
.nav-more > details[open] .nav-more__caret { transform: rotate(180deg); }

.nav-more__panel {
  position: absolute;
  top: 100%;
  /* Anchored to the right edge: the trigger sits at the end of the bar, so a left-anchored panel
     would push past the viewport and create a horizontal scrollbar. */
  right: 0;
  z-index: 70;
  min-width: 340px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-lift);
}

.nav-more__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: auto;
  padding: 11px 18px;
  border-right: none;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: none;
}
.nav-more__panel a:hover { background: var(--surface-3); }

.nav-more__count {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-faint);
}

/* ------------------------------------------------------------------ 7. hero ----------------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__slides { position: relative; }

.hero__slide { position: relative; display: none; min-height: clamp(400px, 56vh, 620px); }
.hero__slide.is-active { display: block; }

.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.08);
}

/* Left-to-right scrim keeps the headline readable over photography without washing it out. */
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 12, .94) 0%, rgba(10, 11, 12, .82) 38%, rgba(10, 11, 12, .28) 72%, rgba(10, 11, 12, .55) 100%);
}

.hero__content { position: relative; z-index: 2; max-width: 660px; padding: clamp(48px, 8vh, 96px) 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.hero__content h1 { margin-bottom: 20px; text-wrap: balance; }
.hero__content p { max-width: 52ch; margin-bottom: 30px; color: #c9ccd0; font-size: 1.03rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__dots { position: absolute; bottom: 22px; right: var(--gutter); z-index: 3; display: flex; gap: 8px; }

.hero__dot {
  width: 34px; height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, .28);
  border: none;
  cursor: pointer;
  transition: background-color .2s;
}
.hero__dot.is-active { background: var(--accent); }

/* ------------------------------------------------------------------ 8. proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--ink); }

.proof__item { padding: 24px; border-right: 1px solid var(--line); }
.proof__item:last-child { border-right: none; }

.proof__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: .02em;
}

.proof__label { margin-top: 8px; font-size: .82rem; color: var(--text-dim); letter-spacing: .02em; }

/* ------------------------------------------------------------------ 9. category tiles ------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 22px;
  background: var(--surface-2);
  overflow: hidden;
}

.cat-tile h3 { margin: 6px 0 0; font-size: 1.15rem; color: #fff; }

.cat-tile__count { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); letter-spacing: .06em; }

.cat-tile__arrow { margin-top: 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

.cat-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 3px;
  background: var(--line-strong);
  transition: background-color .18s;
}

.cat-tile:hover { background: var(--surface-3); color: inherit; }
.cat-tile:hover::before { background: var(--accent); }
.cat-tile:hover .cat-tile__arrow { color: var(--accent); }

/* ------------------------------------------------------------------ 10. product grid -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card { display: flex; flex-direction: column; background: var(--surface-2); position: relative; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}

.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.05); }

.card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }

.flag {
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.flag--quote { background: var(--accent); color: var(--accent-ink); }
.flag--out { background: var(--danger); color: #fff; }
.flag--new { background: var(--info); color: #10232b; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; border-top: 1px solid var(--line); }

.card__cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

.card__title {
  margin: 7px 0 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  /* Two-line clamp keeps every card the same height without truncating mid-word. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.card:hover .card__title { color: var(--accent); }

.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }

.price { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
.price__value { font-size: 1.3rem; color: #fff; }
.price__from { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.price__vat { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--text-faint); }

.card__add {
  padding: 9px 13px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.card__add:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card__add[disabled] { opacity: .4; cursor: not-allowed; }

/* ------------------------------------------------------------------ 11. catalog layout ----- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

.filters { position: sticky; top: 20px; border: 1px solid var(--line); background: var(--surface-2); }

.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filters__group { padding: 16px; border-bottom: 1px solid var(--line-soft); }
.filters__group:last-child { border-bottom: none; }
.filters__group h5 { margin: 0 0 12px; color: var(--text-dim); }

.range-row { display: flex; align-items: center; gap: 8px; }
.range-row span { color: var(--text-faint); }
.range-row input { padding: 9px 10px; font-size: .85rem; }

.catalog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog__count { color: var(--text-dim); font-size: .88rem; }
.catalog__count strong { color: var(--accent); }

.sort-select { display: flex; align-items: center; gap: 10px; }
.sort-select label { font-size: .8rem; color: var(--text-dim); white-space: nowrap; }
.sort-select select { width: auto; min-width: 190px; padding: 9px 40px 9px 12px; font-size: .85rem; }

/* ------------------------------------------------------------------ 12. breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; font-size: .8rem; color: var(--text-faint); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--text-dim); }

/* ------------------------------------------------------------------ 13. product detail ------ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }

.gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery__stage img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }

.gallery__thumb {
  aspect-ratio: 1 / 1;
  padding: 6px;
  background: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { border-color: var(--line-strong); }
.gallery__thumb.is-active { border-color: var(--accent); }

.pdp__sku { font-family: var(--font-mono); font-size: .76rem; color: var(--text-faint); letter-spacing: .04em; }

.pdp__title { margin: 8px 0 14px; text-transform: none; letter-spacing: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.pdp__price .price__value { font-size: 2rem; }
.pdp__price-note { font-size: .8rem; color: var(--text-faint); }

.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.stock--low::before { background: var(--warning); }
.stock--out::before { background: var(--danger); }
.stock--out { color: var(--danger); }
.stock--low { color: var(--warning); }

.variants { margin-bottom: 22px; }
.variant-group { margin-bottom: 18px; }

.variant-group__label {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 9px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.variant-group__value { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }

.swatch {
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s;
}
.swatch:hover { transform: translateY(-2px); }

/* The selected ring has to read against every swatch colour — a yellow outline on a yellow
   swatch is invisible, so an inset dark ring separates the two. */
.swatch.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.swatch[disabled] { opacity: .3; cursor: not-allowed; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  padding: 9px 15px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.pill:hover { border-color: var(--line-strong); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill[disabled] { opacity: .32; cursor: not-allowed; text-decoration: line-through; }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 42px; background: var(--ink); border: none; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--surface-3); color: var(--accent); }
.qty input {
  width: 62px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: var(--ink);
}

.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* freight-quote callout: the differentiator for heavy equipment */
.quote-note {
  margin: 22px 0;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.quote-note h4 { margin: 0 0 8px; color: var(--accent); }
.quote-note p { margin: 0 0 14px; font-size: .9rem; color: var(--text-dim); }
.quote-note p:last-child { margin-bottom: 0; }

.tabs { margin-top: 56px; border-top: 1px solid var(--line); }
.tabs__nav { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); }

.tabs__tab {
  padding: 15px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.tabs__panel { display: none; padding: 32px 0; }
.tabs__panel.is-active { display: block; }

.prose { max-width: 78ch; color: #d4d1cb; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: #fff; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:nth-child(odd) { background: rgba(255, 255, 255, .014); }
.spec-table td { padding: 13px 16px; vertical-align: top; }
.spec-table td:first-child { width: 42%; color: var(--text-dim); }
.spec-table td:last-child { color: var(--text); font-weight: 500; }

/* ------------------------------------------------------------------ 14. cart / checkout ----- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
}
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }

.cart-row { display: flex; align-items: center; gap: 14px; }
.cart-row img { width: 74px; height: 74px; object-fit: contain; background: var(--ink); border: 1px solid var(--line); flex-shrink: 0; }
.cart-row strong { display: block; font-weight: 500; font-size: .92rem; }
.cart-row small { color: var(--text-faint); font-size: .8rem; }

.cart-remove { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: .8rem; padding: 4px; }
.cart-remove:hover { color: var(--danger); }

.summary { border: 1px solid var(--line); background: var(--surface-2); padding: 22px; position: sticky; top: 20px; }
.summary h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .92rem; }
.summary__row span:first-child { color: var(--text-dim); }
.summary__row--total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
}
.summary__row--total span:last-child { color: var(--accent); }

.summary__note { margin-top: 16px; padding: 12px; background: var(--ink); border-left: 3px solid var(--accent); font-size: .84rem; color: var(--text-dim); }

.empty-state { padding: 72px 24px; text-align: center; border: 1px dashed var(--line); }
.empty-state h3 { color: var(--text-dim); }
.empty-state p { color: var(--text-faint); margin-bottom: 22px; }

/* ------------------------------------------------------------------ 15. admin --------------- */
.admin { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; background: var(--ink); }

.admin__side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin__brand { display: flex; align-items: center; gap: 11px; padding: 0 20px 22px; border-bottom: 1px solid var(--line); }
.admin__brand .brand__mark { width: 36px; height: 36px; font-size: 1.2rem; }
.admin__brand span { font-family: var(--font-display); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }

.admin__nav { padding: 14px 0; }
.admin__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: .88rem;
  color: var(--text-dim);
  border-left: 3px solid transparent;
}
.admin__nav a:hover { background: var(--surface-2); color: var(--text); }
.admin__nav a.is-active { background: var(--surface-2); color: var(--accent); border-left-color: var(--accent); }

.admin__nav-head { padding: 16px 20px 8px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }

.admin__main { padding: 26px 30px 60px; min-width: 0; }

.admin__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin__top h1 { margin: 0; font-size: 1.7rem; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 26px; }

.kpi { background: var(--surface); padding: 20px; }
.kpi__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.kpi__value { margin: 9px 0 4px; font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; color: #fff; line-height: 1; }
.kpi__meta { font-size: .78rem; color: var(--text-dim); }

.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.delta--up { color: var(--success); }
.delta--down { color: var(--danger); }
.delta--flat { color: var(--text-faint); }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.panel { background: var(--surface); border: 1px solid var(--line); }
.panel--wide { grid-column: 1 / -1; }

.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel__head h3 { margin: 0; font-size: .95rem; letter-spacing: .08em; }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line-soft); stroke-width: 1; }
.chart__axis { fill: var(--text-faint); font-size: 10px; font-family: var(--font-body); }
.chart__area { fill: url(#chartGradient); }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart__bar { fill: var(--accent); }
.chart__bar:hover { fill: var(--accent-dark); }
.chart__empty { fill: var(--text-faint); font-size: 12px; }

.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .78rem; color: var(--text-dim); margin-top: 12px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }

.data-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.data-table th {
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-size: .84rem; white-space: nowrap; }

.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status--paid { background: rgba(92, 184, 92, .14); color: var(--success); border-color: rgba(92, 184, 92, .3); }
.status--wait { background: rgba(240, 173, 78, .14); color: var(--warning); border-color: rgba(240, 173, 78, .3); }
.status--quote { background: rgba(234, 193, 45, .14); color: var(--accent); border-color: rgba(234, 193, 45, .3); }
.status--done { background: rgba(91, 192, 222, .14); color: var(--info); border-color: rgba(91, 192, 222, .3); }
.status--bad { background: rgba(217, 83, 79, .14); color: var(--danger); border-color: rgba(217, 83, 79, .3); }
.status--muted { background: var(--surface-3); color: var(--text-dim); border-color: var(--line); }

/* ------------------------------------------------------------------ 16. alerts -------------- */
.alert {
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  background: var(--surface-2);
  font-size: .9rem;
}
.alert--success { border-left-color: var(--success); }
.alert--error { border-left-color: var(--danger); }
.alert--warning { border-left-color: var(--warning); }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* toast, driven by wwwroot/js/site.js */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }

.toast {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-lift);
  font-size: .88rem;
  animation: toast-in .22s ease;
}
.toast--error { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--success); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ 17. footer -------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); margin-top: auto; padding-top: 56px; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }

.site-footer h4 { font-size: .82rem; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 16px; }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { font-size: .88rem; color: var(--text-dim); }
.footer-list a:hover { color: var(--accent); }

.footer-contact { font-size: .88rem; color: var(--text-dim); }
.footer-contact strong { display: block; color: var(--accent); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em; margin: 6px 0 12px; }

.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--text-dim);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

.newsletter { display: flex; }
.newsletter input { border-right: none; border-radius: var(--radius) 0 0 var(--radius); }
.newsletter button {
  padding: 0 18px;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem;
  color: var(--text-faint);
}

.payment-marks { display: flex; gap: 8px; align-items: center; font-size: .74rem; }
.payment-marks span { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-dim); letter-spacing: .04em; }

/* ------------------------------------------------------------------ 18. pagination ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: .88rem;
  color: var(--text-dim);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager .is-disabled { opacity: .35; pointer-events: none; }

/* ------------------------------------------------------------------ 19. reference wall ------ */
.ref-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}

.ref-tile {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  background: var(--surface-2);
  transition: background-color .18s;
}

.ref-tile img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
  /* Logos arrive in every colour; a shared grayscale keeps the wall calm and consistent. */
  filter: grayscale(1) brightness(1.5);
  opacity: .72;
  transition: filter .18s, opacity .18s;
}

.ref-tile__name {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim);
}

.ref-tile:hover { background: var(--surface-3); }
.ref-tile:hover img { filter: none; opacity: 1; }
.ref-tile:hover .ref-tile__name { color: var(--accent); }

/* ------------------------------------------------------------------ 20. utilities ----------- */
.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;
}

.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.notice-strip {
  padding: 13px 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* ------------------------------------------------------------------ 20. responsive ---------- */
@media (max-width: 1100px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof__item:nth-child(2) { border-right: none; }
  .proof__item:nth-child(1), .proof__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* The seven nav labels need roughly 1150px; below that the bar collapses to the hamburger rather
   than silently clipping the last links inside a scroller nobody can see. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-display);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .site-nav__inner { flex-direction: column; }

  .site-nav__list { display: none; flex-direction: column; flex: 1 1 auto; }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list a { height: auto; padding: 14px 16px; border-right: none; border-bottom: 1px solid var(--line-soft); }

  .nav-more { width: 100%; }
  .nav-more > details { width: 100%; height: auto; }
  .nav-more > details > summary { height: auto; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-more__panel { position: static; min-width: 0; border: none; border-top: none; box-shadow: none; background: var(--ink); padding: 0; }
  .nav-more__panel a { padding-left: 28px; }
  .nav-more__panel li:last-child a { border-bottom: none; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .band { padding: 44px 0; }

  .site-header__main { grid-template-columns: auto auto; gap: 14px; }
  .search { grid-column: 1 / -1; order: 3; }

  .util-bar__list--secondary { display: none; }

  /* Side-by-side heading + note align to the bottom, which leaves the heading floating oddly
     below a tall paragraph. Stack them instead. */
  .band-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .band-head__note { max-width: none; }

  .two-col { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; }
  .admin__main { padding: 20px 16px 48px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .cart-table td { border: none; padding: 6px 0; }
}

/* Small phones: the wordmark plus three header buttons do not fit in 360px, and the grid would
   otherwise widen the whole document and give every page a horizontal scrollbar. */
@media (max-width: 480px) {
  .site-header__main { gap: 8px; padding: 12px 0; }
  .brand__mark { width: 38px; height: 38px; font-size: 1.3rem; }
  .brand__name { font-size: 1.05rem; letter-spacing: .08em; }
  .brand { gap: 9px; min-width: 0; }

  .header-actions { gap: 6px; }
  .icon-btn, .nav-toggle { padding: 9px 10px; font-size: .74rem; letter-spacing: .05em; }

  .proof__value { font-size: 1.6rem; }
  .proof__item { padding: 18px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

@media print {
  .site-header, .site-footer, .util-bar, .site-nav, .admin__side, .toast-stack { display: none !important; }
  body { background: #fff; color: #000; }
}
