/* ============================================================
   DENT MASTER GLOBAL - base.css  (v2, original brand colors)
   Palette from the original site:
     primary red #BF0A1A · ink #111111 · text #616161
     light #F7F7F7 · white · logo navy #1C4E9C
   Motif: the diagonal "lightning slash" from the DMG logo
   ============================================================ */

:root {
  /* Brand (original site palette) */
  --red: #bf0a1a;
  --red-dark: #990815;
  --red-soft: rgba(191, 10, 26, 0.07);
  --navy: #1c4e9c;
  --navy-soft: rgba(28, 78, 156, 0.08);
  --ink: #111111;
  --ink-2: #1b1b1b;
  --text: #3d3d3d;
  --text-dim: #616161;
  --text-faint: #908f8f;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-card: #ffffff;
  --line: #e4e4e4;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --text-hero: clamp(2.1rem, 1.4rem + 3vw, 3.9rem);
  --text-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  --text-h3: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  --text-base: 0.96rem;
  --text-sm: 0.86rem;
  --text-xs: 0.74rem;

  /* Rhythm */
  --space-section: clamp(2.5rem, 1.9rem + 2.8vw, 4.6rem);
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Motion */
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Slash skew (logo angle) */
  --skew: -12deg;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }

::selection { background: var(--red); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
  text-transform: uppercase;
}
h3, .h3 { font-size: var(--text-h3); font-weight: 600; }
h2, .h2 { font-size: var(--text-h2); }
.h-hero { font-size: var(--text-hero); font-weight: 700; }
.h-hero em, h2 em { font-style: italic; color: var(--red); }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--red);
  transform: skewX(var(--skew));
}

.lead { color: var(--text-dim); font-size: 1.02rem; max-width: 60ch; }
.muted { color: var(--text-dim); }
.accent { color: var(--red); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9c9c9; }
.section--dark .lead, .section--dark p { color: #b9b9b9; }
.section-head { max-width: 660px; margin-bottom: clamp(2.4rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { margin-top: 1rem; color: var(--text-dim); }
.section--dark .section-head p { color: #a9a9a9; }

/* Diagonal divider between sections */
.slash-divider {
  height: 72px;
  background: linear-gradient(to bottom right, transparent 49.6%, var(--ink) 50%);
}
.slash-divider--rev { background: linear-gradient(to top right, var(--ink) 49.6%, transparent 50%); }

/* ---------- Buttons (skewed slash style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.btn > * , .btn { border-radius: 3px; }
.btn > span, .btn > svg { transform: skewX(calc(var(--skew) * -1)); display: inline-flex; align-items: center; gap: 0.5rem; }
.btn:active { transform: skewX(var(--skew)) translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(191, 10, 26, 0.55);
}
.btn--primary:hover { background: var(--red-dark); transform: skewX(var(--skew)) translateY(-2px); box-shadow: 0 14px 30px -8px rgba(191, 10, 26, 0.6); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; transform: skewX(var(--skew)) translateY(-2px); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { transform: skewX(var(--skew)) translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }

.btn--sm { padding: 0.48rem 1.1rem; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  font-size: var(--text-xs);
  color: #9a9a9a;
  position: relative;
  z-index: 61;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  flex-wrap: wrap;
}
.topbar a { color: #cfcfcf; transition: color var(--dur-fast); white-space: nowrap; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar__phones { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar__phones span { color: var(--red); font-weight: 700; margin-right: 0.3rem; }
.topbar__tag { letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; font-style: italic; font-family: var(--font-display); font-size: 0.85rem; }
@media (max-width: 720px) { .topbar__tag { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17, 17, 17, 0.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 92px; }

.logo img { height: 68px; width: auto; }
@media (max-width: 500px) { .logo img { height: 52px; } }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav > a, .nav__drop > a {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur-fast);
}
.nav > a::after, .nav__drop > a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.15rem;
  height: 3px;
  background: var(--red);
  transform: skewX(var(--skew)) scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav > a:hover::after, .nav > a.is-active::after,
.nav__drop > a:hover::after, .nav__drop > a.is-active::after { transform: skewX(var(--skew)) scaleX(1); }
.nav > a:hover, .nav > a.is-active, .nav__drop > a:hover, .nav__drop > a.is-active { color: var(--red); }

.nav__drop { position: relative; }
.nav__drop > a .caret { font-size: 0.65em; color: var(--text-faint); margin-left: 2px; }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 0.5rem;
  display: grid;
  gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  box-shadow: 0 24px 50px -18px rgba(17, 17, 17, 0.25);
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a {
  display: block; padding: 0.65rem 0.9rem;
  font-size: var(--text-sm); font-weight: 500; color: var(--text);
  transition: all var(--dur-fast);
}
.nav__menu a:hover { background: var(--red-soft); color: var(--red); padding-left: 1.15rem; }

.header__actions { display: flex; align-items: center; gap: 0.8rem; }

.cart-btn, .account-btn {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
  color: var(--ink);
}
.cart-btn:hover, .account-btn:hover { border-color: var(--red); color: var(--red); }
.cart-btn__count {
  position: absolute; top: -8px; right: -8px;
  min-width: 19px; height: 19px; padding-inline: 4px;
  background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  border-radius: 99px;
  display: grid; place-items: center;
}
.cart-btn__count.is-empty { display: none; }
.cart-btn__count.bump { animation: bump 0.4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); } }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--ink); transition: transform var(--dur), opacity var(--dur-fast); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .burger { display: flex; }
  .header .btn--book { display: none; }
  .nav {
    position: fixed;
    top: 92px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 3px solid var(--red);
    padding: 1rem 1.25rem 1.6rem;
    gap: 0.1rem;
    transform: translateY(-10px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 55;
    box-shadow: 0 30px 50px -20px rgba(17,17,17,0.3);
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav > a, .nav__drop > a { padding: 0.85rem 0.6rem; font-size: 1.15rem; }
  /* Accordion submenus: collapsed by default, expand when parent is open */
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 0 0 0 1.2rem; min-width: 0;
    display: none;
  }
  .nav__drop.is-open .nav__menu { display: grid; padding-bottom: 0.4rem; }
  .nav__drop > a .caret { transition: transform var(--dur) var(--ease-out); display: inline-block; }
  .nav__drop.is-open > a .caret { transform: rotate(180deg); }
  .nav__drop.is-open > a { color: var(--red); }
}
/* Lock page scroll while the mobile menu is open (scroll happens inside the menu) */
body.nav-lock { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9a9a9a; position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 480px; height: 420px;
  background: linear-gradient(115deg, transparent 46%, rgba(191, 10, 26, 0.16) 46.5%, rgba(191, 10, 26, 0.16) 53%, transparent 53.5%);
  transform: skewX(var(--skew));
  pointer-events: none;
}
.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.footer h4 { font-size: 1.05rem; letter-spacing: 0.2em; color: #fff; margin-bottom: 1.2rem; }
.footer h4::after { content: ""; display: block; width: 28px; height: 3px; background: var(--red); transform: skewX(var(--skew)); margin-top: 0.5rem; }
.footer p, .footer a, .footer li { font-size: var(--text-sm); color: #9a9a9a; }
.footer a { transition: color var(--dur-fast); }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.footer ul:not(.footer__contact) li { position: relative; padding-left: 1.05rem; }
.footer ul:not(.footer__contact) li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 5px; height: 5px; background: var(--red); border-radius: 50%;
}
.footer__brand img { height: 52px; width: auto; }
.footer__brand p { margin-top: 1.1rem; max-width: 36ch; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: baseline; }
.footer__contact strong { color: var(--red); font-weight: 700; min-width: 30px; font-size: var(--text-xs); }
.footer__bottom {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding-block: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: var(--text-xs); color: #6f6f6f;
}
.footer__bottom a { color: #9a9a9a; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Floating WhatsApp + mobile action bar + sheets + mini-cart
   ============================================================ */
.wa-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 85;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.7);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur);
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 32px -6px rgba(37, 211, 102, 0.8); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 10px 26px -6px rgba(37,211,102,0.7); } 50% { box-shadow: 0 10px 26px -6px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.12); } }
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }

/* Shared backdrop */
.ui-backdrop {
  position: fixed; inset: 0; z-index: 94;
  background: rgba(17, 17, 17, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur), visibility var(--dur);
}
.ui-backdrop.is-open { opacity: 1; visibility: visible; }
body.ui-lock { overflow: hidden; }

/* Mobile bottom action bar (mobile only) */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(17, 17, 17, 0.25);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-bar__item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 0.55rem 0.25rem 0.6rem; background: none; border: none; cursor: pointer;
    font-family: var(--font-display); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-dim); transition: color var(--dur-fast);
  }
  .mobile-bar__item svg { width: 22px; height: 22px; }
  .mobile-bar__item:active, .mobile-bar__item:hover { color: var(--red); }
  .mobile-bar__item .js-cart-count {
    position: absolute; top: 2px; right: calc(50% - 22px);
    min-width: 17px; height: 17px; padding-inline: 4px;
    background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 800;
    border-radius: 99px; display: grid; place-items: center;
  }
  .mobile-bar__item .js-cart-count.is-empty { display: none; }
  .mobile-bar__item .js-cart-count.bump { animation: bump 0.4s var(--ease-out); }
  /* Keep content clear of the fixed bar */
  body { padding-bottom: 60px; }
  .wa-fab { bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 14px); right: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 29px; height: 29px; }
}

/* Categories bottom sheet */
.cat-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #fff; border-top-left-radius: 20px; border-top-right-radius: 20px;
  padding: 1.2rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(102%); transition: transform var(--dur) var(--ease-out);
  box-shadow: 0 -20px 50px -20px rgba(17, 17, 17, 0.4);
  max-height: 84dvh; overflow-y: auto;
}
.cat-sheet.is-open { transform: none; }
.cat-sheet__head, .mini-cart__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
  padding-bottom: 0.7rem; margin-bottom: 1rem; border-bottom: 2px solid var(--red);
}
.sheet-close { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 1.9rem; line-height: 1; padding: 0 0.2rem; }
.sheet-close:hover { color: var(--red); }
.cat-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.cat-sheet__item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.03em;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.cat-sheet__item:hover { border-color: var(--red); background: var(--red-soft); }
.cat-sheet__item svg { width: 20px; height: 20px; color: var(--red); flex: 0 0 auto; }
.cat-sheet__item em { margin-left: auto; font-style: normal; font-size: var(--text-xs); color: var(--text-faint); font-family: var(--font-body); }

/* Mini-cart drawer (from right) */
.mini-cart {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 95;
  width: min(360px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform var(--dur) var(--ease-out);
  box-shadow: -20px 0 50px -20px rgba(17, 17, 17, 0.5);
}
.mini-cart.is-open { transform: none; }
.mini-cart__head { padding: 1.2rem 1.3rem 0.7rem; margin-bottom: 0; }
.mini-cart__body { flex: 1; overflow-y: auto; padding: 0.4rem 1.3rem; }
.mini-cart__foot { padding: 1.1rem 1.3rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; }
.mini-cart__total span { color: var(--text-dim); font-size: var(--text-sm); }
.mini-cart__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); }
.mini-cart__empty { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.mini-cart__empty svg { width: 46px; height: 46px; color: var(--text-faint); margin: 0 auto 1rem; }
.mini-cart__empty p { margin-bottom: 1.2rem; font-size: var(--text-sm); }
.mini-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); }
.mini-item__thumb { width: 54px; height: 46px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; }
.mini-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item__thumb svg.picon { width: 55%; color: var(--ink); }
.mini-item__name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; line-height: 1.15; color: var(--ink); text-transform: uppercase; }
.mini-item__name:hover { color: var(--red); }
.mini-item__meta { font-size: var(--text-xs); color: var(--text-faint); margin-top: 0.15rem; }
.mini-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.mini-item__right strong { font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }
.mini-item__rm { background: none; border: none; cursor: pointer; color: var(--text-faint); font-size: 1.2rem; line-height: 1; padding: 0; }
.mini-item__rm:hover { color: var(--red); }

/* ---------- Nav dropdown: category items with icons ---------- */
.nav__menu a.nav__cat { display: flex; align-items: center; gap: 0.65rem; }
.nav__cat svg { width: 18px; height: 18px; color: var(--red); flex: 0 0 auto; }
.nav__cat em { margin-left: auto; font-style: normal; font-size: var(--text-xs); color: var(--text-faint); }
.nav__menu a.nav__cat:hover { padding-left: 1.15rem; }

/* ---------- Header search ---------- */
.search-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  cursor: pointer; color: var(--ink);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.search-btn:hover { border-color: var(--red); color: var(--red); }
.search-btn svg { width: 19px; height: 19px; }
.header-search {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 3px solid var(--red);
  box-shadow: 0 20px 40px -20px rgba(17,17,17,0.28);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  z-index: 58;
}
.header-search.is-open { transform: none; opacity: 1; visibility: visible; }
.header-search__form { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 0; }
.header-search__form .container { display: contents; }
.header-search__wrap { position: relative; flex: 1; display: flex; align-items: center; }
.header-search__wrap > svg { position: absolute; left: 0.9rem; width: 18px; height: 18px; color: var(--text-faint); }
.header-search input {
  width: 100%; background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.75rem 2.5rem; color: var(--ink);
}
.header-search input:focus { outline: none; border-color: var(--red); }
.header-search__close {
  background: none; border: none; cursor: pointer; color: var(--text-faint);
  font-size: 1.5rem; line-height: 1; padding: 0 0.3rem;
}
.header-search__close:hover { color: var(--red); }
@media (max-width: 640px) {
  .search-btn { width: 38px; height: 38px; }
  .search-btn svg { width: 17px; height: 17px; }
  .header-search__form { padding: 0.7rem 0; gap: 0.5rem; }
  .header-search .btn { display: none; }
}
@media (max-width: 380px) { .search-btn { width: 36px; height: 36px; } }

/* ============================================================
   MOBILE REFINEMENTS - compact header + tighter spacing
   ============================================================ */
@media (max-width: 640px) {
  /* Compact topbar: one tight scrollable row */
  .topbar { font-size: 0.68rem; }
  .topbar__inner { padding-block: 0.35rem; gap: 0.3rem 0.9rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; }
  .topbar__inner::-webkit-scrollbar { display: none; }
  .topbar__phones { gap: 0.85rem; flex-wrap: nowrap; }
  .topbar__phones a { white-space: nowrap; }

  /* Compact header */
  .header__inner { height: 64px; gap: 0.6rem; }
  .logo img { height: 42px; }
  .header__actions { gap: 0.45rem; }
  .cart-btn, .account-btn, .burger { width: 38px; height: 38px; border-radius: 7px; }
  .cart-btn svg, .account-btn svg { width: 17px; height: 17px; }

  /* Mobile nav aligns to the shorter header */
  .nav { top: 64px; max-height: calc(100dvh - 64px); padding: 0.8rem 1.1rem 1.3rem; }
  .nav > a, .nav__drop > a { padding: 0.72rem 0.55rem; font-size: 1.05rem; }

  /* Tighter vertical rhythm site-wide */
  :root { --space-section: 2.1rem; }
  .section-head { margin-bottom: 1.8rem; }
  .grid-2, .grid-3, .grid-4 { gap: 1rem; }

  /* Page hero (interior) more compact */
  .page-hero { padding-block: 2.4rem 2rem; }
  .page-hero p { font-size: 0.92rem; }

  /* Cards / steps tighter */
  .card { padding: 1.5rem 1.3rem; }
  .footer__grid { padding-block: 2.8rem 2.2rem; }

  /* Centered buttons on mobile */
  .hero__cta { justify-content: center; }
  .section .container > p:has(.btn) { text-align: center; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__inner > div { width: 100%; justify-content: center; }
  .cta-band h2, .cta-band p { margin-inline: auto; }
}

@media (max-width: 380px) {
  .logo img { height: 38px; }
  .header__inner { gap: 0.45rem; }
  .header__actions { gap: 0.35rem; }
  .cart-btn, .account-btn, .burger { width: 36px; height: 36px; }
}
