/*
 * Public website styles (Mahfoudh Auto, TPVM...).
 * Brand colours come from the admin panel and are printed in the <head>:
 *   --brand       main colour (top bar, footer, headings accents, buttons)
 *   --brand-2     secondary colour (links, hovers)
 *   --brand-dark  darkest shade (text on light brand tints)
 */

:root {
  --brand: #1f0300;
  --brand-2: #745d5d;
  --brand-dark: #030712;
  --ink: #15171b;
  --muted: #5d636d;
  --line: #e3e5e9;
  --ground: #f3f4f6;
  --surface: #ffffff;
  --tint: color-mix(in srgb, var(--brand) 7%, #ffffff);
  --tint-strong: color-mix(in srgb, var(--brand) 14%, #ffffff);
  --wa: #15803d;
  --wa-hover: #116a32;
  --danger: #b42318;
  --success: #067647;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 60%, transparent); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.eyebrow {
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.ref {
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 16px/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn i { font-size: 1.15em; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 8px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--tint); color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.topbar {
  background: var(--brand);
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar i { opacity: .8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo img { max-height: 54px; width: auto; }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 20px;
}
.logo-text {
  font: 700 26px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.header-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  width: 100%;
  justify-self: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--ground);
  transition: border-color .15s ease, background .15s ease;
}
.header-search:focus-within { border-color: var(--brand); background: #fff; }
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 6px 11px 20px;
  outline: none;
}
.header-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  width: 42px; height: 42px;
  margin: 2px;
  border-radius: 50%;
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.main-nav { border-top: 1px solid var(--line); }
.main-nav > .container > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a,
.main-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font: 600 15px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav .nav-btn:hover { color: var(--brand); }
.main-nav a.active { border-bottom-color: var(--brand); color: var(--brand); }
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  min-width: 540px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown,
.main-nav .has-dropdown.open .dropdown { display: grid; }
.main-nav .dropdown a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 10px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.main-nav .dropdown a:hover { background: var(--tint); }
.main-nav .dropdown i { width: 22px; text-align: center; color: var(--brand); }
.main-nav .dropdown .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-weight: 600; }

@media (max-width: 991px) {
  .topbar .topbar-email { display: none; }
  .header-main { grid-template-columns: 1fr auto; gap: 12px; min-height: 68px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 12px; }
  .header-actions .btn-wa span { display: none; }
  .header-actions .btn-wa { width: 46px; padding: 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .logo-text { font-size: 22px; }
  .logo img { max-height: 44px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav > .container > ul { flex-direction: column; align-items: stretch; padding-block: 8px; }
  .main-nav a, .main-nav .nav-btn { width: 100%; justify-content: space-between; border-bottom: 0; }
  .main-nav .dropdown { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 12px; grid-template-columns: 1fr; }
  .main-nav .has-dropdown:hover .dropdown { display: none; }
  .main-nav .has-dropdown.open .dropdown { display: grid; }
}

/* ------------------------------------------------------------------ */
/* Page header (inner pages)                                           */
/* ------------------------------------------------------------------ */
.page-head {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, var(--brand-2)) 100%);
  overflow: hidden;
}
.page-head.has-image { background-size: cover; background-position: center; }
.page-head.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 88%, transparent), color-mix(in srgb, var(--brand) 60%, transparent));
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; padding-block: 44px 40px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); text-transform: uppercase; }
.page-head p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Home hero                                                           */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  background: var(--brand);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--brand) 96%, transparent) 0%, color-mix(in srgb, var(--brand) 80%, transparent) 45%, color-mix(in srgb, var(--brand) 25%, transparent) 100%);
}
.hero.no-image::before {
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand-2) 55%, transparent) 0, transparent 45%),
    linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 75%, #000) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image:
    linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero .container { padding-block: 72px 64px; max-width: calc(var(--container) + 2 * var(--gutter)); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.hero-main { display: grid; gap: 22px; }
.hero-panel {
  display: grid; gap: 4px; padding: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.hero-panel-title { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); padding: 4px 10px 10px; }
.hero-panel a {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 8px; color: #fff; font-weight: 600;
}
.hero-panel a i {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.12); font-size: 16px;
}
.hero-panel a small { color: rgba(255,255,255,.65); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-panel a:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-panel .hero-panel-all { grid-template-columns: 1fr auto; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0 0 8px 8px; padding-top: 14px; font-weight: 600; }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  text-transform: uppercase;
  max-width: 16ch;
  line-height: .98;
}
.hero-lead { margin: 0; font-size: 19px; max-width: 52ch; color: rgba(255,255,255,.88); }
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: none; padding: 0 14px; color: var(--ink); font-size: 17px;
}
.hero-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); }
.hero-brands span {
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-weight: 500;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer;
}
.hero-dots button.active { background: #fff; }

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section { padding-block: 72px; }
.section-white { background: var(--surface); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; }
.section-head .link { font-weight: 600; color: var(--brand); display: inline-flex; gap: 8px; align-items: center; }

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.cat-tile {
  display: grid;
  gap: 14px;
  justify-items: start;
  align-content: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  font-size: 24px;
  overflow: hidden;
}
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.cat-count { font-size: 14px; color: var(--muted); margin-top: -8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font: 700 44px/1 var(--font-display);
  color: var(--tint-strong);
}
.step i { position: absolute; top: 26px; right: 24px; font-size: 22px; color: var(--brand); }
.step h3 { font-size: 22px; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, calc((100% - 3 * 18px) / 4));
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.product-rail > * { scroll-snap-align: start; }
.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center; align-content: center; gap: 12px;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0, transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--brand) 5%, transparent) 14px 15px),
    var(--tint);
  color: color-mix(in srgb, var(--brand) 70%, #ffffff);
}
.placeholder i { font-size: 56px; }
.placeholder span { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--brand) 45%, #8a8f98); }
.card-body { display: grid; gap: 6px; align-content: start; padding: 16px 16px 10px; }
.card-cat { font: 600 12px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.card-title { font: 600 18px/1.25 var(--font-body); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 16px 16px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.about-media { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; margin: 10px 0 18px; }
.about-text p { color: var(--muted); max-width: 65ch; margin: 0 0 14px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 26px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.feature i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--tint); color: var(--brand); font-size: 15px;
}
.feature h3 { font: 700 17px/1.3 var(--font-body); margin-bottom: 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-logo {
  display: grid; place-items: center; height: 92px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-logo img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.brand-logo:hover img { filter: none; opacity: 1; }

/* Call to action band */
.cta-band { background: var(--brand-dark); color: #fff; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px;
  padding-block: 44px;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 38px); text-transform: uppercase; }
.cta-band p { margin: 8px 0 0; color: rgba(255,255,255,.78); max-width: 60ch; }
.cta-band .ref { color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 4px; }

/* ------------------------------------------------------------------ */
/* Catalogue                                                           */
/* ------------------------------------------------------------------ */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-block: 40px 72px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 140px; }
.side-box h2 { font-size: 20px; text-transform: uppercase; margin-bottom: 10px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: var(--radius-sm); font-weight: 500;
}
.cat-list a i { color: var(--brand); text-align: center; }
.cat-list a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-list a:hover { background: var(--tint); color: var(--ink); }
.cat-list a.active { background: var(--brand); color: #fff; }
.cat-list a.active i, .cat-list a.active small { color: #fff; }
.cat-list .subs { list-style: none; margin: 2px 0 6px 34px; padding: 0; display: grid; gap: 2px; }
.cat-list .subs a { grid-template-columns: 1fr; font-weight: 400; padding: 6px 10px; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 18px;
}
.toolbar .count { font-weight: 600; }
.toolbar .count small { font-weight: 400; color: var(--muted); }
.toolbar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field {
  min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; outline: none;
}
.field:focus { border-color: var(--brand); }
select.field { padding-right: 34px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d636d' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.empty {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty i { font-size: 40px; color: var(--brand); }
.cat-chips { display: none; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled span { color: #b3b8c0; }

@media (max-width: 991px) {
  .catalog { grid-template-columns: 1fr; padding-top: 24px; }
  .catalog aside { display: none; }
  .cat-chips {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none;
  }
  .cat-chips a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; font-size: 15px;
  }
  .cat-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
}

/* ------------------------------------------------------------------ */
/* Product page                                                        */
/* ------------------------------------------------------------------ */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding-block: 36px 56px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery-main { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery-main .placeholder i { font-size: 110px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, 82px); gap: 10px; }
.thumbs button {
  width: 82px; height: 82px; padding: 6px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info { display: grid; gap: 20px; }
.chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; background: var(--tint); color: var(--brand); font-weight: 600; font-size: 14px;
}
.product-info h1 { font-size: clamp(36px, 5vw, 54px); text-transform: uppercase; }
.plate {
  justify-self: start; display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden;
  font: 600 15px/1 var(--font-mono);
}
.plate span { padding: 8px 10px; }
.plate span:first-child { background: var(--ink); color: #fff; letter-spacing: .08em; }
.quote-box {
  display: grid; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.quote-box .price { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.quote-box .price i { color: var(--brand); }
.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote-actions .btn-wa { grid-column: 1 / -1; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.checklist i { color: var(--success); margin-top: 5px; }
.share { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.share a {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
}
.share a:hover { border-color: var(--brand); color: var(--brand); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.prose h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 14px; }
.prose-body { max-width: 75ch; color: #30343b; }
.prose-body h2, .prose-body h3 { font-family: var(--font-display); text-transform: uppercase; margin: 26px 0 10px; font-size: 24px; }
.prose-body p { margin: 0 0 14px; }
.prose-body a { color: var(--brand-2); text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; padding-block: 40px 56px; align-items: start; }
.info-list { display: grid; gap: 12px; }
.info-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.info-item i {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--tint); color: var(--brand); font-size: 19px;
}
.info-item.wa i { background: color-mix(in srgb, var(--wa) 12%, #fff); color: var(--wa); }
.info-item small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.info-item strong { font-weight: 600; word-break: break-word; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 18px; }
.form-card h2 { font-size: 28px; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form-grid .field { width: 100%; }
.form-grid textarea.field { min-height: 150px; padding-block: 12px; resize: vertical; }
.error { color: var(--danger); font-size: 14px; font-weight: 500; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.alert-success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.alert-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 56px; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--brand); color: rgba(255,255,255,.8); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 40px; }
.site-footer h3 { color: #fff; font-size: 19px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo-mark { background: #fff; color: var(--brand); }
.site-footer .logo img { max-height: 56px; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.footer-contact i { margin-top: 5px; opacity: .8; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }
.socials a:hover { background: #fff; color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; font-size: 14px; color: rgba(255,255,255,.65); }

/* Floating WhatsApp + cookies */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 30px; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.cookie-notice {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 91; max-width: 380px;
  display: grid; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}
@media (max-width: 991px) {
  .section { padding-block: 52px; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-media img { aspect-ratio: 16 / 10; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-rail { grid-auto-columns: minmax(220px, 70%); }
}
@media (max-width: 575px) {
  :root { --gutter: 16px; }
  .logo-text { font-size: 19px; }
  .logo-mark { width: 36px; height: 36px; font-size: 17px; }
  .cookie-notice { right: 90px; left: 12px; }
  .hero .container { padding-block: 48px 44px; }
  .hero-lead { font-size: 17px; }
  .hero-search .btn span { display: none; }
  .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 6px; }
  .card-title { font-size: 16px; }
  .card-actions { grid-template-columns: 1fr; padding: 10px 12px 12px; }
  .card-actions .btn-outline { display: none; }
  .quote-actions { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 14px; gap: 10px; }
  .cat-icon { width: 46px; height: 46px; font-size: 20px; }
  .cat-name { font-size: 16px; letter-spacing: 0; }
  .cat-count { margin-top: -4px; }
  .map iframe { height: 320px; }
}

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

.page-head.slim .container { padding-block: 16px; }

/* Grid children may shrink below their content width (long words, scrolling rails). */
.catalog > *, .product > *, .contact > *, .about > *, .hero-layout > *, .cat-grid > *, .product-grid > *, .footer-grid > * { min-width: 0; }
.cat-name, .card-title, .product-info h1, .page-head h1, .hero h1 { overflow-wrap: break-word; }
@media (max-width: 575px) {
  .btn-lg { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
  .quote-actions > * { min-width: 0; }
}
