/* ============================================================
   SEALMASTER — INDUSTRIAL STYLE
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Roboto+Mono&display=swap');

:root {
  --clr-bg:        #0f1013;
  --clr-surface:   #161a1e;
  --clr-surface2:  #1d2228;
  --clr-border:    #2a3038;
  --clr-border2:   #3a4450;
  --clr-text:      #c8d0d8;
  --clr-text-dim:  #6e7e8e;
  --clr-heading:   #e8edf2;
  --clr-accent:    #e8a020;
  --clr-accent2:   #c0392b;
  --clr-steel:     #4a6278;
  --clr-white:     #ffffff;

  --font-display:  'Roboto', sans-serif;
  --font-body:     'Roboto', sans-serif;
  --font-mono:     'Roboto Mono', monospace;

  --radius:        2px;
  --shadow-hard:   4px 4px 0 rgba(0,0,0,0.6);

  --topbar-h:      34px;
  --header-h:      72px;
  --transition:    .2s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px);
  pointer-events: none;
  z-index: 0;
}

main, header, footer, section { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--clr-heading);
}


/* ---- TOPBAR ---- */
.topbar {
  background: var(--clr-accent);
  height: var(--topbar-h);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 101;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1a1008;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.topbar__item:hover { opacity: 0.75; }
.topbar__item svg { flex-shrink: 0; }

/* ---- HEADER ---- */
.header {
  background: var(--clr-surface);
  border-bottom: 3px solid var(--clr-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s ease, transform 0.3s ease;
  height: var(--header-h);
}

.header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.7); }

@media (max-width: 768px) {
  .header--hidden { transform: translateY(-100%); }
}

.header__inner {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 12px 32px 12px 0;
  margin-right: 32px;
  border-right: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.logo__icon {
  background: var(--clr-accent);
  padding: 6px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  line-height: 0;
  flex-shrink: 0;
}

.logo__icon img { display: block; width: 44px; height: 44px; filter: invert(1) brightness(0); }

.logo__text { display: flex; flex-direction: column; line-height: 1.2; justify-content: center; }

.logo__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-heading);
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo--light .logo__title { color: var(--clr-heading); }
.logo--light .logo__sub { color: var(--clr-text-dim); }

/* Nav */
.nav { flex: 1; margin-left: 0; }

.nav__list {
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0;
  height: 100%;
}

.nav__list > li {
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 0;
}

.nav__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--clr-text);
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  transition: color 0.15s;
}
.nav__search-btn:hover { color: var(--clr-accent); }

.nav__link:hover {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
  background: rgba(232,160,32,0.05);
}

/* Header CTA */
.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 28px;
  background: var(--clr-accent);
  color: #1a1008;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.15s, color 0.15s;
  border: none;
}
.header__cta:hover { background: #ffb830; color: #000; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- DROPDOWN NAV ---- */
.nav__item--dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav__dropdown-main {
  display: flex;
  align-items: center;
  padding: 0 4px 0 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav__dropdown-main:hover {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
  background: rgba(232,160,32,0.05);
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 0 14px 0 4px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--clr-text-dim);
  cursor: pointer;
  transition: color 0.15s;
  font-family: var(--font-body);
}
.nav__dropdown-toggle:hover { color: var(--clr-accent); }
.nav__dropdown-toggle svg { transition: transform 0.2s ease; flex-shrink: 0; }
.nav__item--dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-accent);
  min-width: 380px;
  padding: 6px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  /* затримка 200мс тільки при закритті */
  transition: opacity 0.18s ease 0.2s, visibility 0.18s ease 0.2s, transform 0.18s ease 0.2s;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

@media (min-width: 901px) {
  /* невидимий місток між хедером і dropdown щоб не закривався при переході */
  .nav__item--dropdown { padding-bottom: 8px; }
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown.open .nav__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
    /* при відкритті — без затримки */
    transition-delay: 0s;
  }
}

.nav__item--dropdown.open .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

.nav__dropdown-item { display: block; }
.nav__dropdown-item + .nav__dropdown-item { border-top: 1px solid var(--clr-border); }

.nav__dropdown-link {
  display: block;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
  letter-spacing: 0.02em;
}
.nav__dropdown-link:hover {
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
  background: rgba(232,160,32,0.07);
}
.nav__dropdown-link--active { color: var(--clr-accent); font-weight: 600; }

/* ---- SUBCATEGORY TREE in dropdown ---- */
.nav__dropdown-row {
  display: flex;
  align-items: center;
}
.nav__dropdown-row .nav__dropdown-link { flex: 1; }

.nav__sub-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 14px;
  color: var(--clr-text-dim);
  display: flex;
  align-items: center;
  height: 100%;
  transition: color 0.15s;
}
.nav__sub-toggle:hover { color: var(--clr-accent); }
.nav__sub-toggle svg { transition: transform 0.2s ease; }
.nav__dropdown-item--open .nav__sub-toggle svg { transform: rotate(180deg); }

/* Desktop: flyout праворуч при наведенні */
@media (min-width: 901px) {
  .nav__sub-toggle  { display: none; }
  .nav__sub2-toggle { display: none; }

  .nav__dropdown-item--has-sub { position: relative; }

  .nav__dropdown-item--has-sub > .nav__dropdown-row::after {
    content: '›';
    position: absolute;
    right: 14px;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--clr-text-dim);
    pointer-events: none;
    transition: color 0.15s;
  }
  .nav__dropdown-item--has-sub.flyout-open > .nav__dropdown-row::after {
    color: var(--clr-accent);
  }

  .nav__dropdown-sub {
    position: absolute;
    left: calc(100% - 4px);
    top: -6px;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
    z-index: 300;
  }
  .nav__dropdown-item--has-sub.flyout-open .nav__dropdown-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  /* L2: flyout всередині L1 */
  .nav__dropdown-sub-item { position: relative; list-style: none; }

  .nav__dropdown-sub-item--has-sub > .nav__dropdown-sub-row::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--clr-text-dim);
    pointer-events: none;
    transition: color 0.15s;
  }
  .nav__dropdown-sub-item--has-sub.flyout2-open > .nav__dropdown-sub-row::after {
    color: var(--clr-accent);
  }

  .nav__dropdown-sub-sub {
    position: absolute;
    left: calc(100% - 4px);
    top: -6px;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 400;
  }
  .nav__dropdown-sub-item--has-sub.flyout2-open .nav__dropdown-sub-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* Mobile: розкривається вниз при кліку */
@media (max-width: 900px) {
  .nav__dropdown-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--clr-surface);
  }
  .nav__dropdown-item--open .nav__dropdown-sub { max-height: 1200px; }

  .nav__dropdown-sub-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: var(--clr-surface);
  }
  .nav__dropdown-sub-item--has-sub.nav__dropdown-sub-item--open .nav__dropdown-sub-sub {
    max-height: 600px;
  }
  .nav__sub2-toggle {
    background: none; border: none;
    color: var(--clr-text-dim);
    padding: 8px 10px; cursor: pointer;
    flex-shrink: 0;
  }
  .nav__dropdown-sub-item--has-sub.nav__dropdown-sub-item--open .nav__sub2-toggle svg {
    transform: rotate(90deg);
  }
  .nav__sub2-toggle svg { transition: transform 0.2s; }
}

.nav__dropdown-sub-row {
  display: flex;
  align-items: center;
}
.nav__dropdown-sub-row .nav__dropdown-sub-link {
  flex: 1;
  padding-right: 28px; /* місце для стрілки › */
}

.nav__dropdown-sub-link {
  display: block;
  padding: 9px 18px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.nav__dropdown-sub-link:hover {
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
  background: rgba(232,160,32,0.07);
}

/* L2 дочірні елементи — трохи менший шрифт */
.nav__dropdown-sub-link--sm {
  font-size: 0.76rem;
  padding: 9px 18px;
  color: var(--clr-text);
  text-transform: none;
  letter-spacing: 0.03em;
}
.nav__dropdown-sub-link--sm:hover { color: var(--clr-accent); }

/* ---- SECTION UTILITIES ---- */
.section-header { margin-bottom: 8px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-heading);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--clr-accent);
}

.section-desc {
  color: var(--clr-text-dim);
  font-size: 0.95rem;
  margin-top: 5px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  white-space: nowrap;
  line-height: 1.4;
}

.btn--primary { background: var(--clr-accent); color: #1a1008; border-color: transparent; }
.btn--primary:hover { background: #ffb830; color: #000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.3); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 40px; font-size: 1.05rem; }

.btn--outline {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
  clip-path: none;
}
.btn--outline:hover { background: var(--clr-accent); color: #1a1008; }

/* ---- HERO ---- */
.hero {
  background: var(--clr-surface);
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  right: -100px; top: 0; bottom: 0;
  width: 500px;
  background: linear-gradient(135deg, transparent 50%, rgba(232,160,32,0.06) 50%);
  pointer-events: none;
}


.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero__content { position: relative; }

.hero__content::before {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 20px;
  color: var(--clr-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero__title span { color: var(--clr-accent); }

.hero__hint {
  color: var(--clr-accent);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero__desc {
  color: var(--clr-text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero__badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }

.badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.04em;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.badge svg { color: var(--clr-accent); flex-shrink: 0; }

.hero__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hero__img-wrap::before,
.hero__img-wrap::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  z-index: 2;
}
.hero__img-wrap::before {
  top: -8px; left: -8px;
  border-top: 3px solid var(--clr-accent);
  border-left: 3px solid var(--clr-accent);
}
.hero__img-wrap::after {
  bottom: -8px; right: -8px;
  border-bottom: 3px solid var(--clr-accent);
  border-right: 3px solid var(--clr-accent);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.1);
  border: 1px solid var(--clr-border);
  transition: opacity 0.6s ease;
}

.hero__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--clr-surface2);
  color: var(--clr-text-dim);
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--clr-border);
}

/* ---- FEATURES ---- */
.features {
  background: var(--clr-bg);
  padding: 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.features__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--clr-border);
}

.feature-card {
  padding: 36px 28px;
  border-right: 1px solid var(--clr-border);
  position: relative;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--clr-surface); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-border2);
  line-height: 1;
  pointer-events: none;
}

.feature-card__icon {
  width: 52px; height: 52px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--clr-accent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-heading);
}

.feature-card__text { font-size: 0.83rem; color: var(--clr-text-dim); line-height: 1.5; }

/* ---- CATALOG (main page) ---- */
/* ── Dim Search (головна) ──────────────────────────────────────── */
.dim-search {
  padding: 64px 0 48px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
}
.dim-search__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.dim-search__col {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.dim-search__col-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin: 0 0 20px;
}
.dim-search__col .dim-filter {
  margin-bottom: 16px;
}
.dim-search__hint {
  color: var(--clr-text-dim);
  font-size: 0.875rem;
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .dim-search__cols { grid-template-columns: 1fr; gap: 16px; }
}

/* Search result rows */
.search-rows {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 10px 14px 10px 10px;
  min-height: 60px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.search-row[href]:hover {
  border-color: var(--clr-accent);
  background: var(--clr-bg);
}
.search-row__img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--clr-bg);
}
.search-row__img-ph {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--clr-bg);
  color: var(--clr-text-dim);
}
.search-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-row__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-row__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-row__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.search-row__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-accent);
  white-space: nowrap;
}
.search-row__price--ask {
  font-weight: 400;
  color: var(--clr-text-dim);
  font-size: 0.8rem;
}
.search-row__add {
  font-size: 0.78rem;
  padding: 5px 10px;
}

.catalog { padding: 72px 0; background: var(--clr-bg); }

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 36px;
  justify-content: flex-start;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
}

.filter-btn {
  padding: 8px 18px;
  background: var(--clr-surface);
  border: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.filter-btn:hover { background: var(--clr-surface2); color: var(--clr-accent); }
.filter-btn--active { background: var(--clr-accent); color: #1a1008; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2px;
  margin-bottom: 40px;
}

/* Category Card (home page featured) */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  text-decoration: none;
  color: var(--clr-heading);
}
.cat-card:hover { background: var(--clr-surface2); }
.cat-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--clr-surface2);
}
.cat-card__img-wrap .cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card__img-wrap .cat-card__img.loaded { opacity: 1; }
.cat-card__body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-card__parent {
  font-size: 0.72rem;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.cat-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
  margin: 0;
}
.cat-card:hover .cat-card__name { color: var(--clr-accent); }

/* Product Card */
.product-card {
  background: var(--clr-surface);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--clr-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
  z-index: 1;
}
.product-card:hover { background: var(--clr-surface2); box-shadow: none; transform: none; }
.product-card:hover::before { transform: scaleY(1); }

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  background: var(--clr-bg);
  border-radius: 0;
}

.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.6) contrast(1.1);
  transition: filter 0.3s, transform 0.3s, opacity 0.3s;
}

.product-card:hover .product-card__img { filter: saturate(0.9) contrast(1.05); transform: scale(1.03); }

.product-card__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--clr-text-dim);
  font-size: 12px; text-align: center; padding: 16px;
}

.product-card__zoom {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--clr-accent);
  border-radius: 0;
}
.product-card__img-wrap:hover .product-card__zoom { opacity: 1; }

.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--clr-accent);
  color: #1a1008;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-card__body {
  padding: 20px 20px 20px 23px;
  display: flex; flex-direction: column; flex: 1;
}

.product-card__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}
a.product-card__cat:hover { text-decoration: underline; }

.product-card__name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--clr-heading);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-card__desc { font-size: 1rem; color: #ffffff; line-height: 1.5; flex: 1; }

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--clr-border);
  gap: 8px;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--clr-accent);
  letter-spacing: 0;
}

/* ---- LIST VIEW ---- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 20px 352px 20px 0;
  overflow: visible;
}
.page-hero__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--clr-accent);
  padding-left: 24px;
}
.page-hero__text .subtype-tabs--l2 {
  margin-top: 14px;
  margin-bottom: 0;
}
.page-hero__text .dim-filter {
  border-left: none;
  padding: 10px 16px;
  margin-top: 14px;
  margin-bottom: 0;
  border-radius: 8px;
}
.page-hero .catalog-page__title {
  margin-bottom: 0;
}

/* Банер у page-hero — фіксована висота, природні пропорції */
.page-hero__banner {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 320px;
  height: 320px;
  border-radius: 8px;
}
.page-hero__banner::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/18px no-repeat;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.page-hero__banner .subcat-banner {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  clip-path: inset(0 round 8px);
  transition: transform 0.35s ease, clip-path 0s;
}
.page-hero__banner[hidden] { display: none !important; }
.page-hero--simple { padding-right: 304px; }
.page-hero--simple .page-hero__banner { width: 272px; height: 272px; }

/* Банер standalone (single-level) */
.subcat-banner[hidden] { display: none !important; }
.subcat-banner {
  display: block;
  max-height: 220px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px auto 0;
}

.catalog__grid--list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.catalog__grid--list .product-card {
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid var(--clr-border);
}
.catalog__grid--list .product-card:nth-child(odd) { background: rgba(0,0,0,0.2); }

.catalog__grid--list .product-card__body {
  flex: 1;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px 24px;
  gap: 0 20px;
  min-height: 110px;
}

.catalog__grid--list .product-card__cat { display: none; }

.product-card__thumb { display: none; }

.catalog__grid--list .product-card__thumb {
  display: flex;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--clr-surface2);
}
.catalog__grid--list .product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog__grid--list .product-card__thumb--empty {
  opacity: 0;
  pointer-events: none;
}

.catalog__grid--list .product-card__name {
  font-size: 1.35rem;
  margin-bottom: 0;
  flex: 1;
  min-width: 160px;
}

.catalog__grid--list .product-card__desc:empty { display: none; }
.catalog__grid--list .product-card__desc {
  flex: 1;
  min-width: 0;
}

.catalog__grid--list .product-card__price {
  font-size: 1.3rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.catalog__grid--list .product-card__price--ask {
  font-size: 0.85rem;
  color: var(--clr-accent);
  font-weight: 400;
}

.catalog__grid--list .product-card__footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
  width: auto;
  justify-content: flex-end;
  gap: 12px;
}

.product-card__qty-wrap { display: none; }

.catalog__grid--list .product-card__qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.catalog__grid--list .product-card__qty-btn {
  background: var(--clr-surface2);
  border: none;
  color: var(--clr-text);
  font-size: 1.2rem;
  font-weight: 700;
  width: 34px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.catalog__grid--list .product-card__qty-btn:hover {
  background: var(--clr-accent);
  color: #000;
}
.catalog__grid--list .product-card__qty-val {
  min-width: 44px;
  width: 44px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 38px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  background: var(--clr-surface2);
  color: inherit;
  font-family: inherit;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.catalog__grid--list .product-card__qty-val::-webkit-inner-spin-button,
.catalog__grid--list .product-card__qty-val::-webkit-outer-spin-button { display: none; }

.catalog__grid--list .product-card__add {
  font-size: 0.9rem;
  padding: 10px 20px;
}

@media (max-width: 860px) {
  .catalog__grid--list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Банер: в потоці над табами */
  .page-hero { padding-right: 0; }
  .page-hero--simple { padding-right: 0; }
  .page-hero__banner {
    position: relative; right: auto; bottom: auto;
    width: 100%; aspect-ratio: 1 / 1; height: auto;
    border-radius: 6px; margin-bottom: 12px;
  }
  .page-hero__banner .subcat-banner { height: 100%; object-fit: cover; max-height: none; }
  .page-hero--simple .page-hero__banner { width: 100%; aspect-ratio: 1 / 1; height: auto; }

  /* Рядки товарів: назва+ціна зліва, кнопка справа */
  .catalog__grid--list .product-card__body {
    display: grid;
    grid-template-areas: "name btn" "price btn";
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
    gap: 2px 16px;
    align-items: center;
    flex-direction: unset;
  }
  .catalog__grid--list .product-card__name { grid-area: name; font-size: 1rem; margin-bottom: 0; }
  .catalog__grid--list .product-card__footer { display: contents; }
  .catalog__grid--list .product-card__price { grid-area: price; font-size: 0.95rem; }
  .catalog__grid--list .product-card__add { grid-area: btn; align-self: center; }
  .catalog__grid--list .product-card__qty-wrap { display: none; }
}

.results-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.results-bar__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
  letter-spacing: -.02em;
}
.results-bar__label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.catalog__note { margin-top: 80px; text-align: center; color: var(--clr-text-dim); font-size: 15px; }
.catalog__note a { color: var(--clr-accent); font-weight: 600; }
.catalog__note a:hover { text-decoration: underline; }

/* SEO static series index */
.seo-index { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--clr-border); }
.seo-index__title { font-size: 0.95rem; font-weight: 600; color: var(--clr-fg-muted); margin-bottom: 20px; }
.seo-index__groups { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.seo-index__group h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-fg-muted); font-weight: 700; margin-bottom: 8px; }
.seo-index__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.seo-index__tag {
  display: inline-block;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--clr-bg) 60%, var(--clr-surface));
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--clr-fg-muted);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.seo-index__tag:hover { color: var(--clr-accent); border-color: var(--clr-accent); }
.seo-index__note { margin-top: 18px; font-size: 0.82rem; color: var(--clr-fg-muted); line-height: 1.6; }
.catalog__more { text-align: center; }

.catalog__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 0 60px;
  align-items: start;
}
.product-detail__img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--clr-surface2);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.product-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.product-detail__img.loading { opacity: 0; }
.product-detail__img.loaded  { opacity: 1; }
.product-detail__img-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--clr-fg-muted);
  font-size: 0.85rem;
}
.product-detail__cat {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.product-detail__cat a { color: inherit; text-decoration: none; }
.product-detail__cat a:hover { text-decoration: underline; }
.product-detail__subtype {
  font-size: 0.9rem;
  color: var(--clr-fg-muted);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: capitalize;
}
.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.product-detail__desc {
  font-size: 1.25rem;
  color: var(--clr-fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-detail__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-fg);
  margin-bottom: 28px;
}
.product-detail__price--ask {
  font-size: 1rem;
  color: var(--clr-fg-muted);
}
.product-detail__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.pd-qty .product-card__qty-btn {
  background: var(--clr-surface2);
  border: none;
  color: var(--clr-text);
  font-size: 1.2rem;
  font-weight: 700;
  width: 40px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.pd-qty .product-card__qty-btn:hover {
  background: var(--clr-accent);
  color: #000;
}
.pd-qty .product-card__qty-val {
  width: 52px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  height: 44px;
  border: none;
  border-left: 1px solid var(--clr-border);
  border-right: 1px solid var(--clr-border);
  background: var(--clr-surface2);
  color: inherit;
  font-family: inherit;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pd-qty .product-card__qty-val::-webkit-inner-spin-button,
.pd-qty .product-card__qty-val::-webkit-outer-spin-button { display: none; }
.product-detail__add--done { background: var(--clr-surface2) !important; color: var(--clr-fg) !important; }

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 48px; }
}

/* ---- DELIVERY ---- */
.delivery {
  background: var(--clr-surface);
  padding: 72px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.delivery .section-header { margin-bottom: 24px; }

.delivery__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  max-width: none;
}

.delivery-card {
  background: var(--clr-surface2);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  text-align: left;
  border-radius: 0;
}
.delivery-card:hover { box-shadow: none; transform: none; }

.delivery-card::before { content: none; }

.delivery-card__icon {
  width: 48px; height: 48px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border2);
  border-left: 3px solid var(--clr-accent);
  display: flex;
  align-items: center; justify-content: center;
  color: var(--clr-accent);
  margin: 0 0 14px;
  border-radius: 0;
}

.delivery-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--clr-heading);
}

.delivery-card__text { font-size: 0.9rem; color: var(--clr-text); line-height: 1.6; margin-bottom: 16px; }

.delivery-card__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  border-left: 2px solid var(--clr-steel);
  padding-left: 12px;
  line-height: 1.5;
  background: none;
  border-radius: 0;
}
.delivery-card__note svg { flex-shrink: 0; margin-top: 1px; color: var(--clr-steel); }

/* ---- ABOUT ---- */
/* ---- REVIEWS ---- */
.reviews { padding: 80px 0; background: var(--clr-surface); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.review-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-accent);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.review-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.review-card__quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--clr-accent);
  opacity: 0.35;
  font-weight: 800;
  position: absolute;
  top: 12px;
  right: 18px;
}

.review-card__text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--clr-text);
  flex: 1;
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}

.review-card__avatar {
  width: 38px;
  height: 38px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  color: var(--clr-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.review-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  margin-top: 2px;
}

/* ---- CONTACTS ---- */
.contacts {
  background: var(--clr-surface);
  padding: 72px 0;
  border-top: 1px solid var(--clr-border);
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contacts__list {
  display: flex; flex-direction: column;
  gap: 0;
  border: 1px solid var(--clr-border);
}

.contact-item {
  display: flex; align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.15s;
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--clr-surface2); }

.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border2);
  border-top: 2px solid var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
  border-radius: 0;
}

.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 0.95rem;
  color: var(--clr-heading);
  text-decoration: none;
  display: block;
  transition: color 0.15s;
  font-weight: 500;
  line-height: 1.4;
}
.contact-item__value:is(a):hover { color: var(--clr-accent); }

.map-wrap {
  border: 1px solid var(--clr-border);
  overflow: hidden;
  border-radius: 0;
  line-height: 0;
  box-shadow: none;
}
.map-wrap iframe { display: block; filter: invert(0.85) hue-rotate(180deg) saturate(0.6); }

.footer__mobile-cta { display: none; }

/* ---- FOOTER ---- */
.footer {
  background: var(--clr-surface);
  border-top: 3px solid var(--clr-accent);
  padding: 48px 0 0;
  color: var(--clr-text);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand .logo { padding: 0; margin: 0 0 16px; border: none; }

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-top: 8px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
}

.footer__nav ul, .footer__contact ul {
  display: flex; flex-direction: column; gap: 6px;
}

.footer__nav a, .footer__contact a:not(.btn), .footer__contact li {
  font-size: 0.83rem;
  color: var(--clr-text-dim);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
.footer__nav a:hover, .footer__contact a:not(.btn):hover { color: var(--clr-accent); }

.footer__bottom {
  background: var(--clr-bg);
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--clr-border);
}
.footer__bottom p { text-align: center; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--clr-accent);
  color: #1a1008;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.15s, transform 0.15s;
  opacity: 0; pointer-events: none;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #ffb830; transform: translateY(-3px); }

/* ---- PRODUCT MODAL ---- */
.pmodal {
  position: fixed; inset: 0;
  z-index: 998;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pmodal[hidden] { display: none; }

.pmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pmodal__box {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border2);
  border-top: 3px solid var(--clr-accent);
  max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  animation: pmodalIn .22s ease;
}

@keyframes pmodalIn {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pmodal__close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: color 0.15s;
  border-radius: 0;
}
.pmodal__close:hover { color: var(--clr-accent); background: var(--clr-border); }

.pmodal__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--clr-bg);
  overflow: hidden;
  border-radius: 0;
}
.pmodal__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); }

.pmodal__img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--clr-text-dim);
  font-size: 13px; text-align: center;
}

.pmodal__body { padding: 36px 32px 32px; display: flex; flex-direction: column; }

.pmodal__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 10px;
}

.pmodal__title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  text-transform: uppercase;
  color: var(--clr-heading);
  line-height: 1.2; margin-bottom: 14px;
}

.pmodal__desc { font-size: 0.85rem; color: var(--clr-text-dim); line-height: 1.7; flex: 1; }

.pmodal__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
}

.pmodal__price {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  color: var(--clr-accent);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.93);
  cursor: pointer;
}

.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
  z-index: 1; border-radius: 0;
}
.lightbox__close:hover { color: var(--clr-accent); }

.lightbox__img {
  position: relative; z-index: 1;
  max-width: min(90vw, 900px); max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--clr-border2);
  border-radius: 0; box-shadow: none;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.05em;
  text-align: center; max-width: 600px;
}

/* ---- CATEGORY CARDS ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px;
  margin-top: 32px;
}

.cat-card {
  display: flex; flex-direction: column;
  background: var(--clr-surface);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.15s;
  color: var(--clr-text);
}
.cat-card:hover { background: var(--clr-surface2); }

.cat-card__preview {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--clr-bg);
  overflow: hidden;
}

.cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1);
  transition: transform .3s ease, filter .3s;
}
.cat-card:hover .cat-card__img { transform: scale(1.04); filter: saturate(0.9) contrast(1.05); }

.cat-card__icon { display: flex; align-items: center; justify-content: center; color: var(--clr-accent); }

.cat-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--clr-heading);
  padding: 14px 16px;
  transition: color 0.15s; line-height: 1.3;
}
.cat-card:hover .cat-card__name { color: var(--clr-accent); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  margin-bottom: 24px;
  flex-wrap: wrap; letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--clr-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { color: var(--clr-text-dim); flex-shrink: 0; }

/* ---- CATALOG PAGE ---- */
.catalog-page { padding: 52px 0 64px; background: var(--clr-bg); }

.catalog-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800;
  color: var(--clr-heading);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 10px;
}

.catalog-page__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--clr-accent);
  max-width: 600px; margin-bottom: 0;
  line-height: 1.6; letter-spacing: 0;
}

/* ---- SUBTYPE TABS ---- */
.subtype-tabs {
  display: flex; flex-wrap: wrap;
  gap: 2px; margin-bottom: 28px;
}

.subtype-tab {
  padding: 8px 22px;
  background: var(--clr-surface);
  border: none;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--clr-text-dim);
  cursor: pointer;
  white-space: nowrap; border-radius: 0;
}
.subtype-tab:hover { background: var(--clr-surface2); color: var(--clr-accent); }
.subtype-tab--active { background: var(--clr-accent); color: #1a1008; }
.subtype-tab--active:hover { color: #1a1008; }

/* Назва активної L1-групи */
/* ---- DIM FILTER ---- */
.dim-filter[hidden] { display: none !important; }
.dim-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--clr-surface);
  border-left: 3px solid var(--clr-accent);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.dim-filter__left {
  flex-shrink: 0;
}
.dim-filter__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-heading);
}
.dim-filter__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.dim-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 30px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  cursor: text;
  transition: border-color 0.15s, background 0.15s;
}
.dim-pill:focus-within,
.dim-pill--active {
  border-color: var(--clr-accent);
  background: rgba(232,160,32,0.08);
}
.dim-pill__key {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--clr-accent);
  text-transform: uppercase;
  line-height: 1;
}
.dim-pill__name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  text-transform: lowercase;
}
.dim-pill__input {
  background: none;
  border: none;
  outline: none;
  color: var(--clr-heading);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  width: 44px;
  text-align: center;
  padding: 0;
}
.dim-pill__input::placeholder { color: var(--clr-text-dim); }
.dim-pill__input::-webkit-inner-spin-button { display: none; }
.dim-pill__input::-webkit-outer-spin-button { display: none; }
.dim-pill__unit {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text-dim);
}
.dim-filter__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
}
.dim-filter__count-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-dim);
}
.dim-filter__count-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-heading);
  line-height: 1.1;
}
.dim-filter__reset {
  background: none;
  border: none;
  color: var(--clr-text-dim);
  font-size: 0.9rem;
  padding: 4px 6px;
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.dim-filter__reset:hover { color: var(--clr-accent2); }

/* ---- NO RESULTS SUGGEST ---- */
.no-results-suggest {
  grid-column: 1 / -1;
  padding: 28px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.no-results-suggest__msg {
  font-size: 1.1rem;
  color: var(--clr-text);
  margin: 0;
}
.no-results-suggest__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.no-results-suggest__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.no-results-suggest__count {
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.8em;
}

.catalog__grid--l1groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: transparent;
  border: none;
}

.l1-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 0 0;
  overflow: hidden;
  background: var(--clr-surface);
  text-decoration: none;
  color: var(--clr-heading);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.l1-group-card:hover {
  background: var(--clr-surface2);
  border-left-color: var(--clr-accent);
  color: var(--clr-accent);
}
.l1-group-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.l1-group-card__img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  filter: saturate(0.6) contrast(1.1);
  transition: filter 0.2s;
}
.l1-group-card:hover .l1-group-card__img { filter: saturate(1) contrast(1); }
.l1-group-card__name { flex: 1; padding: 30px 0; }

.subtype-l1-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

/* Другий ярус (серії) */
.subtype-tabs--l2 {
  border-left: 3px solid var(--clr-accent);
  padding-left: 12px;
  margin-bottom: 28px;
  gap: 2px;
}

/* ---- SKELETON LOADERS ---- */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.product-card--skeleton { pointer-events: none; animation: skeleton-pulse 1.4s ease-in-out infinite; }

.skeleton-img { width: 100%; aspect-ratio: 4/3; background: var(--clr-border); }

.skeleton-line {
  height: 13px; background: var(--clr-border);
  margin-bottom: 8px; width: 100%;
}
.skeleton-line--short  { width: 45%; margin-bottom: 10px; }
.skeleton-line--med    { width: 70%; }
.skeleton-line--price  { width: 38%; height: 16px; margin-top: 14px; margin-bottom: 0; background: var(--clr-border2); }
.skeleton-line--cat-name { width: 60%; height: 14px; margin: 10px auto 0; }

.cat-card--skeleton {
  pointer-events: none;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  background: var(--clr-surface); overflow: hidden;
}
.cat-card--skeleton .skeleton-img { border-radius: 0; aspect-ratio: 4/3; }

/* ---- IMAGE LOADING ---- */
.hero__img { transition: filter 0.3s, transform 0.3s, opacity 0.3s; }
.product-card__img.loading { opacity: 0; }
.product-card__img.loaded  { opacity: 1; }

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content { animation: fadeIn 0.6s ease both; }
.hero__img-wrap { animation: fadeIn 0.6s 0.15s ease both; }
.feature-card { animation: fadeIn 0.4s ease both; }
.feature-card:nth-child(2) { animation-delay: 0.05s; }
.feature-card:nth-child(3) { animation-delay: 0.1s; }
.feature-card:nth-child(4) { animation-delay: 0.15s; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border2); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

/* ============================================================
   RESPONSIVE: 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .features__list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE: 900px
   ============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .topbar__item--hours { display: none; }

  .burger { display: flex; }
  .header__cta { display: none; }
  .cart-btn { margin-right: 12px; padding: 8px 12px; }
  .cart-btn__label { display: none; }

  .nav { display: none !important; }

  .hero { padding: 56px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__img-wrap {
    aspect-ratio: 1 / 1;
    width: 100%;
  }
  .hero__img-wrap::before,
  .hero__img-wrap::after { display: none; }
  .hero__desc { max-width: 100%; }

  .reviews__grid { grid-template-columns: 1fr 1fr; }

  .contacts__inner { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .features__list { grid-template-columns: repeat(2, 1fr); border-left: none; }
}

/* ============================================================
   MOBILE NAV ACCORDION (≤900px)
   ============================================================ */
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .mobile-nav {
    display: block;
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0; right: 0;
    max-height: calc(100vh - var(--topbar-h) - var(--header-h));
    background: var(--clr-surface2);
    z-index: 98;
    overflow-y: auto;
    font-family: var(--font-body);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    border-bottom: 3px solid var(--clr-accent);
  }
  .mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .mnav-list { list-style: none; padding: 0; margin: 0; }

  /* КАТАЛОГ section header */
  .mnav-section__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mnav-section__btn .mnav-chevron { transition: transform 0.22s ease; flex-shrink: 0; }
  .mnav-section.open .mnav-section__btn .mnav-chevron { transform: rotate(180deg); }

  /* Categories list */
  .mnav-cats {
    list-style: none;
    padding: 0; margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .mnav-section.open .mnav-cats { max-height: 9999px; }

  /* Single category row */
  .mnav-cat { border-bottom: 1px solid var(--clr-border); }
  .mnav-cat__row { display: flex; align-items: center; }

  .mnav-cat__link {
    flex: 1;
    display: block;
    padding: 13px 20px;
    color: var(--clr-fg);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.35;
  }
  .mnav-cat__link:hover { color: var(--clr-accent); }
  .mnav-cat--active > .mnav-cat__row > .mnav-cat__link,
  .mnav-cat--active > .mnav-cat__link { color: var(--clr-accent); font-weight: 600; }

  .mnav-cat__toggle {
    flex-shrink: 0;
    padding: 13px 18px;
    background: none;
    border: none;
    color: var(--clr-fg-muted);
    cursor: pointer;
  }
  .mnav-cat__toggle .mnav-chevron { transition: transform 0.22s ease; display: block; }
  .mnav-cat.open .mnav-cat__toggle .mnav-chevron { transform: rotate(180deg); }

  /* Subcategories */
  .mnav-subs {
    list-style: none;
    padding: 0; margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 2px solid var(--clr-accent);
    margin-left: 20px;
    margin-bottom: 0;
  }
  .mnav-cat.open .mnav-subs { max-height: 9999px; }

  .mnav-sub__link {
    display: block;
    padding: 9px 16px;
    color: var(--clr-fg-muted);
    font-size: 14px;
    text-decoration: none;
  }
  .mnav-sub__link:hover { color: var(--clr-accent); }

  /* Flat links (Доставка, Контакти, Статті) */
  .mnav-link {
    display: block;
    padding: 15px 20px;
    color: var(--clr-fg);
    font-size: 15px;
    text-decoration: none;
    border-top: 1px solid var(--clr-border);
  }
  .mnav-link:hover { color: var(--clr-accent); }
  .mnav-list > li:first-child + li > .mnav-link { border-top: 2px solid var(--clr-border); }
}

/* ============================================================
   RESPONSIVE: 640px
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .hero { padding: 40px 0 36px; }
  .hero__title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .hero__hint { font-size: 0.95rem; }
  .hero__desc { font-size: 0.85rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .features__list { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 20px; }

  .catalog { padding: 48px 0; }
  .catalog__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .reviews { padding: 52px 0; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts { padding: 52px 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__mobile-cta { display: block; grid-column: 1 / -1; }
  .footer__contact .btn { display: none; }

  .back-to-top { bottom: 16px; right: 16px; }

  .delivery__list { grid-template-columns: 1fr; }

  .catalog-page { padding: 36px 0 48px; }
  .catalog-page__title { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  .pmodal__box { grid-template-columns: 1fr; max-height: 88vh; }
  .pmodal__img-wrap { aspect-ratio: 16/9; border-radius: 0; }
  .pmodal__body { padding: 24px 20px; }
  .pmodal__footer { flex-direction: column; align-items: stretch; }
  .pmodal__footer .btn { justify-content: center; }
}

/* ============================================================
   RESPONSIVE: 400px
   ============================================================ */
@media (max-width: 400px) {
  .hero__badges { flex-direction: column; }
  .catalog__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-page { padding: 48px 0 72px; }
.blog-page__title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--clr-heading); margin-bottom: 8px; }
.blog-intro { color: var(--clr-text-dim); font-size: 1rem; margin-bottom: 48px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-top: 3px solid var(--clr-accent); padding: 28px 24px 24px; display: flex; flex-direction: column; transition: box-shadow 0.2s; overflow: hidden; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.blog-card__img-wrap { margin: -28px -24px 20px; aspect-ratio: 16/9; overflow: hidden; background: var(--clr-surface2); flex-shrink: 0; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 12px; display: block; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--clr-heading); margin-bottom: 12px; line-height: 1.4; text-decoration: none; display: block; transition: color 0.15s; }
.blog-card__title:hover { color: var(--clr-accent); }
.blog-card__excerpt { font-size: 0.88rem; color: var(--clr-text-dim); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.blog-card__link { font-size: 0.88rem; font-weight: 600; color: var(--clr-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.15s; }
.blog-card__link:hover { gap: 10px; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { padding: 48px 0 80px; }
.article-page__wrap { max-width: 780px; }
.article__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 16px; display: block; }
.article__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--clr-heading); line-height: 1.25; margin-bottom: 20px; }
.article__meta { display: flex; gap: 20px; font-size: 0.82rem; color: var(--clr-text-dim); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--clr-border); }
.article__img-wrap { margin-bottom: 36px; aspect-ratio: 16/9; overflow: hidden; }
.article__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article__body { font-size: 0.97rem; line-height: 1.8; color: var(--clr-text); }
.article__body p { margin-bottom: 1.2em; }
.article__body h2 { font-size: 1.15rem; font-weight: 700; color: var(--clr-heading); margin: 2em 0 0.7em; border-left: 3px solid var(--clr-accent); padding-left: 12px; }
.article__body h3 { font-size: 1rem; font-weight: 700; color: var(--clr-heading); margin: 1.6em 0 0.5em; }
.article__body ul { margin: 0 0 1.2em 0; padding-left: 0; list-style: none; }
.article__body ul li { padding: 4px 0 4px 18px; position: relative; }
.article__body ul li::before { content: '—'; position: absolute; left: 0; color: var(--clr-accent); font-weight: 700; }
.article__body .tip { background: var(--clr-surface); border-left: 3px solid var(--clr-accent); padding: 12px 16px; margin: 0.6em 0 1.4em; font-size: 0.9rem; color: var(--clr-text-dim); border-radius: 0 4px 4px 0; }
.article__body a { color: var(--clr-accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { opacity: 0.8; }
.article__divider { border: none; border-top: 1px solid var(--clr-border); margin: 1.8em 0; }
.article__cta { background: var(--clr-surface); border: 1px solid var(--clr-border); border-top: 3px solid var(--clr-accent); padding: 28px 32px; margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.article__cta-text { font-size: 1rem; font-weight: 600; color: var(--clr-heading); }
.article__cta-sub { font-size: 0.85rem; color: var(--clr-text-dim); margin-top: 4px; }
.article__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article__cta { padding: 20px; }
  .article__cta-btns { width: 100%; }
  .article__cta-btns .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   CART
   ============================================================ */

/* Кнопка кошика в хедері */
.cart-btn {
  background: var(--clr-accent);
  border: none;
  cursor: pointer;
  color: #000;
  padding: 8px 16px;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  margin-left: 12px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.cart-btn:hover { opacity: 0.85; }
@keyframes cart-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.2); }
  65%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.cart-btn--bounce { animation: cart-bounce 0.4s ease; }
.cart-btn__label { line-height: 1; }
.cart-badge {
  background: #000;
  color: var(--clr-accent);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* "В кошик" на картці */
.product-card__add {
  background: var(--clr-accent);
  color: #000;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: opacity var(--transition), background var(--transition);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card__add:hover { opacity: 0.85; }
.product-card__add--done {
  background: #2a7a2a;
  color: #fff;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.25s;
}
.cart-drawer.open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--clr-surface);
  border-left: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-heading);
}
.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-dim);
  font-size: 1.6rem;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}
.cart-drawer__close:hover { color: var(--clr-heading); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  color: var(--clr-text-dim);
  text-align: center;
  padding: 40px 0;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
}
.cart-item__name {
  font-size: 0.88rem;
  color: var(--clr-heading);
  flex: 1;
  line-height: 1.4;
}
.cart-item__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cart-item__price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--clr-accent);
  white-space: nowrap;
}
.cart-item__qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2px 4px;
}
.cart-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-dim);
  font-size: 1rem;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.cart-qty-btn:hover { color: var(--clr-accent); }
.cart-qty-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-heading);
  min-width: 16px;
  text-align: center;
}
.cart-item__del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-dim);
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  transition: color var(--transition);
}
.cart-item__del:hover { color: var(--clr-accent2); }

.cart-drawer__foot {
  padding: 20px 24px;
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}

/* Загальна сума */
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 16px;
}
.cart-total__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-total__sum {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-accent);
}

/* Форма в дравері */
.cart-form { display: flex; flex-direction: column; gap: 10px; }
.cart-field { display: flex; flex-direction: column; gap: 4px; }
.cart-field__err {
  font-size: 0.75rem;
  color: var(--clr-accent2);
  min-height: 1em;
  padding-left: 2px;
}
.cart-input--error {
  border-color: var(--clr-accent2) !important;
}
.cart-input {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  color: var(--clr-heading);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}
.cart-input:focus { border-color: var(--clr-accent); }
.cart-input::placeholder { color: var(--clr-text-dim); }
.cart-textarea { resize: vertical; min-height: 72px; }

.btn--full { width: 100%; justify-content: center; }

/* Успіх */
.cart-success[hidden] { display: none !important; }
.cart-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  text-align: center;
  color: var(--clr-heading);
}
.cart-success svg { color: #2ecc71; }
.cart-success p { font-size: 1rem; line-height: 1.6; }

@media (max-width: 480px) {
  .cart-drawer__panel { max-width: calc(100% - 40px); }
  .cart-drawer__head,
  .cart-drawer__items,
  .cart-drawer__foot { padding-left: 20px; padding-right: 20px; }
}
