:root {
  --ink: #0d120f;
  --ink-soft: #1e2a22;
  --muted: #5a6b60;
  --paper: #f2f7f3;
  --surface: #ffffff;
  --line: #d2e4d7;
  --green: #1b7a3c;
  --green-dark: #14532d;
  --accent: #1b7a3c;
  --accent-hover: #14532d;
  --lime: #a8d4b0;
  --lime-soft: #eef6f0;
  --lime-mid: #d5e8d9;
  --navy: #0d120f;
  --ok: #1b7a3c;
  --danger: #b33b3b;
  --red: #b33b3b;
  --black: #0d120f;
  --radius: 10px;
  --shadow: 0 10px 28px rgba(15, 92, 46, 0.1);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1160px;
  --header-h: 120px;
  --catalog-rail-w: 248px;
  --catalog-rail-collapsed: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--lime-soft) 0%, var(--paper) 160px, var(--lime-soft) 100%);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.55em;
  color: var(--ink);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Catalog bound to content frame (left, collapsible) */
.site-frame {
  width: min(100% - 2rem, var(--container));
  margin: 0.75rem auto 2rem;
  display: block;
}
.site-frame__main {
  min-width: 0;
}
.site-frame__main > .flash-stack {
  position: static;
  width: auto;
  margin: 0 0 0.85rem;
  transform: none;
}
.site-frame__main .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.catalog-rail {
  display: none;
}
.catalog-rail-wrap {
  display: none;
}

@media (min-width: 1100px) {
  .site-frame {
    display: grid;
    grid-template-columns: var(--catalog-rail-collapsed) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  body.catalog-rail-open .site-frame {
    grid-template-columns: var(--catalog-rail-w) minmax(0, 1fr);
  }

  /* Колонка-слот держит ширину; сам каталог — fixed и не уезжает при скролле */
  .catalog-rail-wrap {
    display: block;
    width: 100%;
    height: 0;
    overflow: visible;
  }

  .catalog-rail {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) + 12px);
    z-index: 40;
    width: var(--catalog-rail-collapsed);
    height: auto;
    max-height: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 92, 46, 0.08);
    overflow: hidden;
    transition:
      width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.34s ease;
  }
  body.catalog-rail-open .catalog-rail {
    width: var(--catalog-rail-w);
    height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100vh - var(--header-h) - 24px);
    box-shadow: 0 16px 40px rgba(15, 92, 46, 0.12);
  }

  .catalog-rail__toggle {
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 1.1rem 0.35rem 1.35rem;
    border: 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--green-dark) 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    flex: 0 0 auto;
    overflow: hidden;
    transition:
      opacity 0.22s ease,
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .catalog-rail__toggle:hover {
    background: linear-gradient(180deg, var(--green) 0%, var(--black) 100%);
  }
  .catalog-rail__toggle-chevron {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.catalog-rail-open .catalog-rail__toggle-chevron {
    transform: rotate(180deg);
  }
  .catalog-rail__toggle-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  body.catalog-rail-open .catalog-rail__toggle {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }

  .catalog-rail__panel {
    display: flex;
    flex: 0 0 0;
    min-height: 0;
    max-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    pointer-events: none;
    transition:
      opacity 0.28s ease 0.06s,
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
      visibility 0.28s ease 0.06s,
      max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      flex 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.catalog-rail-open .catalog-rail__panel,
  .catalog-rail.is-open .catalog-rail__panel {
    flex: 1 1 auto;
    max-height: none;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .catalog-rail__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 0.85rem 0.7rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .catalog-rail__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .catalog-rail__title:hover { color: var(--green); }
  .catalog-rail__close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--lime-soft);
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
  }
  .catalog-rail__close:hover {
    border-color: var(--green);
    color: var(--green);
  }

  .catalog-rail__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.75rem 1.1rem;
    scrollbar-width: thin;
  }
  .catalog-rail__group {
    padding: 0.1rem 0;
    border-radius: 8px;
  }
  .catalog-rail__row {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
  .catalog-rail__link {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding: 0.48rem 0.45rem 0.48rem 0.55rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.25;
  }
  .catalog-rail__link:hover,
  .catalog-rail__link.is-active {
    background: rgba(31, 157, 74, 0.12);
    color: var(--green);
  }
  .catalog-rail__expand {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    line-height: 1;
    transition: transform .18s ease, background .15s ease, color .15s ease;
  }
  .catalog-rail__expand:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
  }
  .catalog-rail__group.is-open .catalog-rail__expand {
    transform: rotate(180deg);
    color: var(--green);
  }
  .catalog-rail__subs {
    display: grid;
    gap: 0.05rem;
    padding: 0 0 0 0.55rem;
    margin: 0 0 0.15rem 0.35rem;
    border-left: 2px solid var(--lime-mid);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.24s ease,
      padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .catalog-rail__group.is-open .catalog-rail__subs {
    max-height: 480px;
    opacity: 1;
    padding: 0.1rem 0 0.3rem 0.55rem;
    margin: 0 0 0.15rem 0.35rem;
  }
  .catalog-rail__sub {
    display: block;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.3;
  }
  .catalog-rail__sub:hover,
  .catalog-rail__sub.is-active {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.04);
  }
  .catalog-rail__sub.is-active {
    color: var(--green);
    font-weight: 700;
  }
  .catalog-rail__empty {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .nav-item--mega,
  .nav-link--catalog-mobile,
  .nav-link--catalog-inline,
  .site-nav__mobile-cats { display: none; }
}

.nav-link--catalog-mobile,
.site-nav__mobile-cats { display: none; }

.muted { color: var(--muted); }
.text-link {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.text-link:hover { color: var(--red); }

.section { padding: 3.25rem 0; }
.section--tight { padding: 1.5rem 0 0; }
.section--muted { background: var(--lime-soft); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section__head--center {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.section__head h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.section__head p { margin: 0.35rem 0 0; color: var(--muted); max-width: 40rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 700 0.94rem/1 var(--font-body);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--green); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--light {
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--black); color: var(--black); }
.btn--full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Wholesale bar */
.wholesale-bar {
  background: var(--black);
  color: #e8e8e8;
  font-size: 0.86rem;
}
.wholesale-bar__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.wholesale-bar p { margin: 0; }
.wholesale-bar__link {
  flex-shrink: 0;
  color: var(--lime);
  font-weight: 800;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.site-header__top {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.75rem 0;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  min-width: 0;
  line-height: 0;
  transition: opacity .15s ease;
}
.brand:hover { opacity: 0.88; color: inherit; }
.brand__logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.brand__logo--footer {
  height: 40px;
  max-width: 160px;
  filter: brightness(0) invert(1);
}
.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: inset 0 -3px 0 var(--green);
}
.brand__text { display: flex; flex-direction: column; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand__text small { color: var(--muted); font-size: 0.72rem; }

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search-form:focus-within {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 157, 74, 0.16);
}
.search-form__icon {
  flex-shrink: 0;
  margin-left: 0.95rem;
  color: var(--muted);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.7rem 0.75rem;
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem/1.2 var(--font-body);
}
.search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
  font-weight: 600;
}
.search-form input::-webkit-input-placeholder { color: var(--muted); font-weight: 600; }
.search-form input::-moz-placeholder { color: var(--muted); opacity: 1; font-weight: 600; }
.toolbar .search-form {
  margin-inline: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  min-height: 46px;
}
.toolbar select {
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 0.85rem;
  color: var(--ink);
  font: 600 0.92rem/1.2 var(--font-body);
}
.search-form button {
  border: 0;
  background: var(--black);
  color: #fff;
  margin: 4px;
  padding: 0 1.05rem;
  min-height: 36px;
  border-radius: 999px;
  font: 700 0.86rem/1 var(--font-body);
  cursor: pointer;
  transition: background .15s ease;
}
.search-form button:hover { background: var(--green); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
}
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 0.95rem 0 0.85rem;
  margin: 0;
  border-left: 1px solid var(--line);
  border-right: 0;
  line-height: 1.15;
  text-decoration: none;
}
.header-phone:hover { color: var(--green); }
.header-phone__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
}
.header-phone strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.header-tool {
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  white-space: nowrap;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
}
.header-tool:hover {
  color: var(--green);
  background: rgba(31, 157, 74, 0.08);
}
.header-tool .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  margin: 0;
}
.header-tool__text { font-size: 0.9rem; }
.header-link {
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  white-space: nowrap;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.header-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(31, 157, 74, 0.06);
}
.header-actions .btn,
.header-cabinet {
  white-space: nowrap;
  flex-shrink: 0;
  height: 40px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-size: 0.9rem;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, #fff 0%, var(--lime-soft) 100%);
}
.site-nav--drawer { display: none; }
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex-wrap: wrap;
  padding: 0.1rem 0;
  min-height: 44px;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}
.nav-link:hover {
  background: rgba(31, 157, 74, 0.1);
  color: var(--green);
}
.nav-link--partner {
  color: var(--green);
  font-weight: 700;
}
.nav-link--partner:hover {
  background: rgba(31, 157, 74, 0.14);
  color: var(--green);
}
.nav-link.is-active {
  background: rgba(31, 157, 74, 0.14);
  color: var(--green);
  font-weight: 800;
}
.nav-link--ozon { color: var(--red); font-weight: 800; }
.nav-link--ozon:hover {
  background: rgba(208, 27, 27, 0.08);
  color: var(--red);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 0;
  width: min(820px, 88vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  z-index: 60;
}
.nav-item--mega:hover .mega-menu,
.nav-item--mega:focus-within .mega-menu { display: block; }
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem 0.6rem;
}
.mega-menu__grid a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
}
.mega-menu__grid a:hover,
.mega-menu__grid a.is-active {
  background: rgba(31, 157, 74, 0.1);
  color: var(--green);
}

/* Flash */
.flash-stack {
  width: min(100% - 2rem, var(--container));
  margin: 0.8rem auto 0;
  display: grid;
  gap: 0.45rem;
}
.flash {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-mid);
}
.flash-success { background: #e8f6ee; border-color: #b9dfc8; }
.flash-error, .flash-danger { background: #fdecea; border-color: #f0c3bd; }
.flash-warning { background: #fff4e5; border-color: #f0d0a0; }

/* Hero — real photo, brand first */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(12, 20, 28, 0.88) 8%, rgba(12, 20, 28, 0.55) 48%, rgba(12, 20, 28, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 20, 28, 0.55), transparent 42%);
}
.hero__content {
  padding: 4.5rem 0 3.2rem;
  max-width: 720px;
  animation: riseIn .7s ease both;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 0.75rem;
  line-height: 0.95;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero__lead {
  margin: 0 0 1.4rem;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.9);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Deal strip — top of homepage */
.deal-strip {
  padding: 1.25rem 0 0.5rem;
}
.deal-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.deal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 100%;
}
.deal-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}
.deal-card__media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--lime-soft), #dff0e3);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.deal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
}
.deal-card__placeholder {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 0.9rem;
}
.deal-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  height: calc(1.35em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.deal-card__title a { color: var(--black); }
.deal-card__title a:hover { color: var(--green); }
.deal-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.deal-card__price {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 1.45rem;
}
.deal-card__price strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--black);
}
.deal-card__price s {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Twin promo carousels */
.home-carousels {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
  max-width: 100%;
}
.home-carousel {
  min-width: 0;
  max-width: 100%;
}
.home-carousel__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.promo-carousel {
  position: relative;
  container-type: inline-size;
  container-name: promo-carousel;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--lime-soft);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1240 / 400;
  max-height: 360px;
  min-height: 160px;
  box-shadow: var(--shadow);
}
@supports (width: 100cqw) {
  .promo-carousel {
    aspect-ratio: auto;
    height: clamp(160px, calc(100cqw * 400 / 1240), 360px);
  }
}
.promo-carousel .banner-slider__track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.promo-carousel .banner-slider__track::-webkit-scrollbar {
  display: none;
}
.promo-carousel--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  padding: 2rem;
  text-align: center;
  aspect-ratio: auto;
  min-height: 180px;
}
.promo-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  align-self: stretch;
  display: block;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--lime-soft);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@supports (width: 100cqw) {
  .promo-slide {
    flex: 0 0 100cqw;
    width: 100cqw;
    max-width: 100cqw;
  }
}
.promo-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.promo-slide__fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 85% 30%, rgba(31,157,74,.35), transparent 30%),
    linear-gradient(120deg, var(--black) 10%, #122018 50%, var(--green-dark) 100%);
  color: #fff;
}
.promo-slide__fallback em {
  align-self: flex-start;
  font-style: normal;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}
.promo-slide__fallback strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
}
.promo-slide__fallback span {
  color: rgba(255,255,255,.85);
  max-width: 40ch;
}
.promo-carousel .banner-slider__nav,
.promo-carousel .banner-slider__dots {
  z-index: 3;
  pointer-events: auto;
}
.promo-carousel .banner-slider__nav {
  background: rgba(255,255,255,.92);
}
.promo-carousel .banner-slider__dots {
  bottom: 0.7rem;
}

/* Banner slider */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.banner-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.banner-slider:not(.promo-carousel) .banner-slider__track {
  transition: transform .5s cubic-bezier(.22,.7,.25,1);
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 150px;
  padding: 1.4rem 4rem 1.8rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  color: inherit;
  background:
    linear-gradient(90deg, #fff 0%, var(--lime-soft) 55%, var(--lime-mid) 100%);
}
.banner-slide h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.banner-slide p { margin: 0; color: var(--muted); }
.banner-slide__badge {
  background: var(--lime-soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}
.banner-slide__cta {
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.banner-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.banner-slider__nav--prev { left: 0.6rem; }
.banner-slider__nav--next { right: 0.6rem; }
.banner-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.banner-slider__dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #c5ccd4;
  padding: 0;
  cursor: pointer;
}
.banner-slider__dots button.is-active {
  width: 18px;
  background: var(--green);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.cat-grid--subs {
  grid-template-columns: repeat(3, 1fr);
}
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-height: 0;
}
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: #b7c4d2;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.cat-tile__media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ecf1;
}
.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(22,50,79,.08), rgba(227,106,22,.12)),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(22,50,79,.04) 6px, rgba(22,50,79,.04) 12px);
}
.cat-tile strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  padding: 0 0.15rem 0.25rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--lime-soft);
  overflow: hidden;
}
.product-card__media img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.85rem;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-card__placeholder {
  position: absolute;
  inset: 18%;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22,50,79,.08), rgba(227,106,22,.12));
  display: grid;
  place-items: center;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.product-card__flags {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: calc(100% - 1.3rem);
  pointer-events: none;
}
.flag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}
.flag--sale { background: var(--danger); }
.flag--new { background: var(--ok); }
.product-card__body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.product-card__meta {
  display: grid;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.76rem;
}
.product-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  height: calc(1.35em * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.product-card__title a { color: inherit; }
.product-card__stock { font-size: 0.8rem; font-weight: 700; }
.product-card__stock.is-in { color: var(--ok); }
.product-card__stock.is-out { color: var(--accent-hover); }
.product-card__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-height: 1.6rem;
}
.product-card__actions {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.4rem;
}
.price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.88rem;
}
.price-block {
  display: grid;
  gap: 0.2rem;
  width: 100%;
}
.price-block__row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.price-block__row--yours .price {
  color: var(--green);
}
.price-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.price-opt {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
}
.price-block--compact .price {
  font-size: 1.05rem;
}
.export-box {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--lime-soft);
}
.export-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.export-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.export-box--api {
  background: #fff;
}
.export-code {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  color: var(--lime);
  border-radius: 10px;
  font-size: 0.82rem;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.45;
}
.export-help {
  margin: 0.6rem 0 0.4rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.export-details {
  margin-top: 0.85rem;
}
.export-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark);
}
.export-details[open] summary { margin-bottom: 0.65rem; }
.export-pre {
  margin: 0.55rem 0 0;
  padding: 0.85rem;
  background: var(--ink);
  color: #d7f5e3;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.about-split__media {
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}
.about-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-split__text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}
.facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
}
.facts > div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.facts dd { margin: 0; font-weight: 700; }

.cert-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
  justify-content: center;
  gap: 1rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cert-card__img {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 0.75rem;
  background: #f3f0e8;
  overflow: hidden;
}
.cert-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.cert-card__img--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--navy);
}
.cert-card h3 { display: none; }

.footer-certs {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-certs h3 {
  margin-bottom: 0.85rem;
}
.footer-certs__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 160px);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}
.footer-cert {
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  aspect-ratio: 3 / 4;
  padding: 0.45rem;
}
.footer-cert img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
}
.footer-cert:hover img { opacity: 1; }
.footer-cert span {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #d5e0ea;
}

.cert-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

/* Pages */
.page-hero { padding: 2rem 0 1rem; }
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.35rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}
.breadcrumbs a { color: var(--muted); }

.layout-split {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.2rem;
  padding-bottom: 3rem;
}
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  height: fit-content;
  position: sticky;
  top: 120px;
}
.side-panel h3 { font-size: 0.92rem; margin-bottom: 0.6rem; }
.side-panel a {
  display: block;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 700;
}
.side-panel a:hover,
.side-panel a.is-active {
  background: rgba(31, 157, 74, 0.1);
  color: var(--green);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.toolbar__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.subcat-chips,
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}
.brand-chip:hover,
.brand-chip.is-active {
  border-color: rgba(31, 157, 74, 0.45);
  background: rgba(31, 157, 74, 0.1);
  color: var(--green);
}
.filter-note {
  margin: -0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.filter-note a { margin-left: 0.45rem; font-weight: 700; }

.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  min-height: 40px;
}
.qty-control__btn {
  width: 34px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-control__btn:hover {
  background: var(--lime-soft);
  color: var(--green);
}
.qty-control__input {
  width: 34px;
  min-width: 34px;
  max-width: 40px;
  min-height: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--ink);
  background: var(--lime-soft);
  padding: 0;
  -moz-appearance: textfield;
}
.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-hint {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.product-card__buy {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
}
.product-card__buy-row {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  max-width: 100%;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 40px;
}
.product-card__buy-row .qty-control {
  flex: 0 0 auto;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 40px;
}
.product-card__buy-row .qty-control__btn {
  width: 32px;
  min-height: 40px;
}
.product-card__buy-row .qty-control__input {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 36px;
  min-height: 40px;
  background: transparent;
  border-left-color: var(--line);
  border-right-color: var(--line);
}
.product-detail__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: auto;
  min-height: 40px;
  align-self: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-cart:hover {
  background: var(--green-dark);
  border-color: transparent;
  filter: none;
}
.btn-cart:active {
  transform: none;
  filter: brightness(0.96);
}
.btn-cart:disabled {
  opacity: 0.55;
  cursor: wait;
}
.product-detail__buy .btn-cart {
  width: 44px;
  min-height: 40px;
  border-radius: 12px;
}
.product-detail__buy .qty-control {
  border-radius: 12px;
}


.cart-modal[hidden] { display: none !important; }
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(13, 18, 15, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--green-dark);
  color: #fff;
}
@media (max-width: 640px) {
  .to-top span { display: none; }
  .to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.85rem;
    border-radius: 50%;
  }
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 36, 0.45);
}
.cart-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 28, 36, 0.22);
  text-align: center;
}
.cart-modal__x {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-modal__x:hover { color: var(--ink); background: #f3f5f7; }
.cart-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 157, 74, 0.12);
  color: var(--green);
}
.cart-modal__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
}
.cart-modal__text {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.cart-modal__actions {
  display: grid;
  gap: 0.55rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  margin: 1rem 0 1.25rem;
}
.pagination__btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
}
.pagination__btn:hover { border-color: var(--green); color: var(--green); }
.pagination__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.pagination__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination__ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.cart-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.cart-product__img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f5f7;
  display: grid;
  place-items: center;
}
.cart-product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-product__ph {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
}
.cart-qty {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.brand-modal[hidden] { display: none !important; }
.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.brand-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.brand-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(80vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.brand-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}
.brand-modal__x {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8f4;
  cursor: pointer;
}
.brand-modal__list {
  overflow-y: auto;
  padding: 0.55rem;
  display: grid;
  gap: 0.2rem;
}
.brand-modal__item {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}
.brand-modal__item:hover,
.brand-modal__item.is-active {
  background: rgba(31, 157, 74, 0.12);
  color: var(--green);
}
.toolbar select,
.form-control,
.auth-card input,
.auth-card textarea,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: var(--surface);
}
.form-row { margin-bottom: 0.85rem; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
/* ===== Checkout ===== */
body.checkout-body .catalog-rail-wrap {
  display: none;
}
body.checkout-body .site-frame {
  grid-template-columns: 1fr;
}
body.checkout-body .site-frame__main {
  max-width: none;
}
.checkout-shell {
  padding: 0 0 3.5rem;
}
.checkout-shell__inner {
  max-width: 1080px;
}
.checkout-top {
  padding: 1.5rem 0 1.15rem;
}
.checkout-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.checkout-top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.checkout-top__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.checkout-top__lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.checkout-top__total {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  min-width: 9.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--black) 0%, #163524 55%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(13, 18, 15, 0.18);
}
.checkout-top__total span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}
.checkout-top__total strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.checkout-top__total small {
  font-size: 0.78rem;
  opacity: 0.7;
}
.checkout-grid {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}
@media (min-width: 920px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr);
    gap: 1.35rem;
  }
}
.checkout-card,
.checkout-side__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 92, 46, 0.07);
}
.checkout-card {
  padding: clamp(1.1rem, 2vw, 1.55rem);
}
.checkout-block {
  margin: 0 0 1.2rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--lime-mid);
}
.checkout-block--last {
  border-bottom: 0;
  margin-bottom: 0.4rem;
  padding-bottom: 0.2rem;
}
.checkout-block__head {
  margin-bottom: 0.85rem;
}
.checkout-block__head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.checkout-block__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.checkout-methods {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .checkout-methods {
    grid-template-columns: 1fr 1fr;
  }
}
.checkout-method {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.9rem 0.95rem 0.9rem 2.55rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.checkout-method:hover {
  border-color: rgba(27, 122, 60, 0.4);
  transform: translateY(-1px);
}
.checkout-method.is-checked {
  border-color: var(--green);
  background: linear-gradient(180deg, #fff 0%, var(--lime-soft) 120%);
  box-shadow: 0 0 0 3px rgba(27, 122, 60, 0.12);
}
.checkout-method input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.checkout-method__check {
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--lime);
  background: #fff;
}
.checkout-method.is-checked .checkout-method__check {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}
.checkout-method__body {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.checkout-method__icon {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-mid);
  color: var(--green-dark);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.checkout-method.is-checked .checkout-method__icon {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.checkout-method__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.checkout-method__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.checkout-method__note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(27, 122, 60, 0.07);
  border: 1px solid rgba(27, 122, 60, 0.12);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}
.checkout-note svg {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}
.checkout-field {
  margin-top: 0.9rem;
}
.checkout-field label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.checkout-field label em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}
.checkout-field .form-control,
.checkout-card input[type="text"],
.checkout-card input[type="tel"],
.checkout-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-field .form-control:focus,
.checkout-card input[type="text"]:focus,
.checkout-card input[type="tel"]:focus,
.checkout-card textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 122, 60, 0.12);
}
.checkout-card textarea {
  min-height: 7rem;
  resize: vertical;
}
.checkout-field__hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.checkout-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
@media (min-width: 560px) {
  .checkout-actions {
    grid-template-columns: 1.4fr 1fr;
  }
}
.checkout-actions__submit {
  min-height: 48px;
  font-size: 0.98rem;
}
.checkout-side__card {
  padding: 1.1rem 1.15rem 1.2rem;
  overflow: hidden;
}
@media (min-width: 920px) {
  .checkout-side__card {
    position: sticky;
    top: calc(var(--header-h) + 10px);
  }
}
.checkout-side__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.checkout-side__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}
.checkout-side__head a {
  font-size: 0.84rem;
  font-weight: 700;
}
.checkout-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-height: min(48vh, 380px);
  overflow: auto;
}
.checkout-side__list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: start;
}
.checkout-side__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--lime-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}
.checkout-side__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checkout-side__meta {
  min-width: 0;
}
.checkout-side__meta a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}
.checkout-side__meta a:hover { color: var(--green); }
.checkout-side__meta span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.checkout-side__list strong {
  font-size: 0.84rem;
  white-space: nowrap;
}
.checkout-side__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--lime-soft) 0%, #fff 60%);
  border: 1px solid var(--lime-mid);
}
.checkout-side__sum span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.checkout-side__sum strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn--solid {
  background: var(--green);
  color: #fff;
}
.btn--solid:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn--solid:disabled,
.btn--solid[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.form-row--check label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.form-row--check input { width: auto; }
.errorlist { color: var(--danger); font-size: 0.85rem; margin: 0.2rem 0 0; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}
.product-detail__media {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--lime-soft), #dff0e3);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.product-detail__media img {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.85rem;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-detail__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}
.qty-input { width: 90px !important; text-align: center; }

.auth-shell { max-width: 500px; margin: 2rem auto 3.5rem; }
.auth-shell--wide { max-width: 740px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.55rem; }
.steps {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.3rem;
  padding: 0.95rem;
  background: #f5f7f9;
  border-radius: 10px;
  counter-reset: step;
}
.steps li { padding-left: 1.4rem; position: relative; }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.cabinet-hero {
  padding-bottom: 0.35rem;
}
.cabinet-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.cabinet-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding-bottom: 3rem;
}
.cabinet-nav,
.side-panel.cabinet-nav {
  position: sticky;
  top: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 92, 46, 0.05);
}
.cabinet-nav__label {
  margin: 0.55rem 0.55rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cabinet-nav__label:first-child { margin-top: 0.15rem; }
.cabinet-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.cabinet-nav a.is-active,
.cabinet-nav a:hover {
  background: var(--lime-soft);
  color: var(--green-dark);
}
.cabinet-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--green);
}
.cabinet-nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.cabinet-nav__logout {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.cabinet-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.cabinet-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 92, 46, 0.04);
}
.cabinet-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.cabinet-card__head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.cabinet-card__text {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.cabinet-card__link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--green);
}
.cabinet-card__link:hover { color: var(--green-dark); }
.cabinet-card__head .cabinet-card__link {
  margin-top: 0;
  font-size: 0.9rem;
}
.cabinet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cabinet-meta__item {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-mid);
}
.cabinet-meta__item--wide { grid-column: 1 / -1; }
.cabinet-meta__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cabinet-meta__item strong {
  font-size: 1rem;
  color: var(--ink);
  word-break: break-word;
}
.cabinet-discounts {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.cabinet-discounts h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.cabinet-discounts ul {
  display: grid;
  gap: 0.35rem;
}
.cabinet-discounts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.cabinet-discounts li strong { color: var(--green-dark); }
.cabinet-api {
  display: grid;
  gap: 0.45rem;
}
.cabinet-api .cabinet-meta__label { margin-top: 0.35rem; }
.empty-state--soft {
  border: 1px dashed var(--line);
  background: var(--lime-soft);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--lime-soft);
  color: var(--green-dark);
}
.status-pill--ok {
  background: rgba(31, 157, 74, 0.14);
  color: var(--green-dark);
}
.status-pill--wait {
  background: var(--lime-soft);
  color: var(--green-dark);
}

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th,
table.data td {
  padding: 0.8rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
table.data th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.order-comment-cell {
  max-width: 22rem;
  vertical-align: top;
}
.order-comment-cell-inner {
  display: grid;
  gap: 0.35rem;
}
.order-comment-preview {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.order-comment-open {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: 700 0.82rem/1.2 var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.order-comment-open:hover { color: var(--green-dark); }
.order-comment-modal[hidden] { display: none !important; }
.order-comment-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.order-comment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 15, 0.48);
}
.order-comment-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(82vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(13, 18, 15, 0.22);
  text-align: left;
}
.order-comment-modal__x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.order-comment-modal__x:hover { color: var(--ink); background: var(--lime-soft); }
.order-comment-modal__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.order-comment-modal__title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding-right: 2rem;
}
.order-comment-modal__meta {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
}
.order-comment-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-mid);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
.order-comment-modal__actions {
  margin-top: 0.85rem;
}
.cart-summary {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.schedule-grid { display: grid; gap: 0.7rem; }
.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}
.schedule-item strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.video-grid,
.vacancy-list,
.contact-grid { display: grid; gap: 0.9rem; }
.video-grid { grid-template-columns: repeat(2, 1fr); }
.video-card,
.vacancy-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.video-card iframe,
.video-card__frame {
  aspect-ratio: 16/9;
  width: 100%;
  border: 0;
  background: var(--black);
}
.video-card__body,
.vacancy-card,
.contact-card { padding: 1.05rem 1.15rem; }
.vacancy-card h2 { font-size: 1.15rem; }
.contact-grid { grid-template-columns: 1fr 1fr; }

.vacancy-picker__title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.vacancy-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.vacancy-picker__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vacancy-picker__item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.vacancy-picker__name {
  grid-column: 1;
  font-weight: 800;
  font-size: 1.05rem;
}
.vacancy-picker__meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.88rem;
}
.vacancy-picker__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.vacancy-detail__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.vacancy-side {
  position: sticky;
  top: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.vacancy-side__title {
  margin: 0;
  font-size: 0.95rem;
}
.vacancy-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.vacancy-side__link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.vacancy-side__link:hover,
.vacancy-side__link.is-active {
  background: #f0f7f2;
  color: var(--green);
}
.vacancy-main { display: grid; gap: 1rem; }
.vacancy-block + .vacancy-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.vacancy-block h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.vacancy-block p { margin: 0; color: #333; line-height: 1.55; }
.vacancy-apply h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.vacancy-apply__hint { margin: 0 0 1rem; }
.vacancy-apply__form .form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.vacancy-apply input[type="file"] {
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
}

.site-footer {
  margin-top: 1.5rem;
  background: var(--black);
  color: #cfcfcf;
  padding: 2.6rem 0 1.2rem;
}
.site-footer a { color: #f5f5f5; }
.site-footer a:hover { color: var(--lime); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 1.3rem;
}
.site-footer h3 {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
.footer-links { display: grid; gap: 0.35rem; }
.site-footer__bottom {
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #9a9a9a;
  font-size: 0.88rem;
}
.brand--footer .brand__mark { width: 40px; height: 40px; }
.brand--footer .brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.brand--footer .brand__name {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.brand--footer .brand__company {
  display: block;
  margin: 0;
  padding: 0;
  color: #9db0c1;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}

.contact-card a {
  color: var(--green-dark);
  font-weight: 600;
}
.contact-card a:hover {
  color: var(--ink);
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--lime-soft);
  border: 1px solid var(--lime-mid);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  width: fit-content;
  max-width: 100%;
}
.open-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-status.is-open {
  color: var(--green-dark);
  background: var(--lime-soft);
}
.open-status.is-open .open-status__dot {
  background: var(--green);
  box-shadow: none;
  animation: none;
}
.open-status.is-closed {
  color: #8a3030;
  background: #f8ecec;
  border-color: #ead4d4;
}
.open-status.is-closed .open-status__dot {
  background: #b34545;
  box-shadow: none;
}
.open-status__text strong {
  font-weight: 700;
  margin-left: 0.2rem;
}
.open-status__detail {
  font-weight: 500;
  opacity: 0.8;
  margin-left: 0.15rem;
}
.open-status--page {
  margin: 0.85rem 0;
  font-size: 0.95rem;
}
@keyframes open-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 122, 60, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(27, 122, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 122, 60, 0); }
}

.address-link {
  color: #f5f5f5;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 0.18em;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.address-link:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}
.address-link--ink {
  color: var(--green-dark);
  text-decoration-color: rgba(20, 83, 45, 0.35);
  font-weight: 700;
}
.address-link--ink:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}
.map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: #e8edf2;
}
.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}
.map-hint {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.empty-state {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* —— Error pages (404 / 403 / 400) —— */
.error-page {
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}
.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 14vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}
.error-page__title {
  margin: 0.55rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 600;
}
.error-page__text {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.header-link__short { display: none; }
.header-link__short svg { display: block; }
.nav-backdrop { display: none; }
.site-nav__mobile-head,
.site-nav__mobile-actions { display: none; }

/* —— Tablet + mobile shell (< desktop rail) —— */
@media (max-width: 1099px) {
  body.nav-open { overflow: hidden; }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 50;
  }

  .site-nav--desktop { display: none; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
  }
  .nav-backdrop[hidden] { display: none !important; }

  .site-nav--drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    max-width: 100vw;
    background: #fff;
    border-top: 0;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    z-index: 10001;
    transform: translate3d(110%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .site-nav--drawer.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.22s ease, visibility 0s linear 0s;
  }
  .site-nav--drawer .site-nav__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100%;
    height: auto;
    padding: 0.85rem 0.85rem 1.4rem;
    box-sizing: border-box;
  }
  .site-nav__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__mobile-head strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
  }
  .nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .site-nav__mobile-cats {
    display: grid !important;
    gap: 0.2rem;
    padding: 0.25rem 0 0.75rem;
    margin: 0 0 0.35rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__mobile-cats-title {
    display: block;
    padding: 0.2rem 0.65rem 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .site-nav__mobile-cats a {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
  }
  .site-nav__mobile-cats a:hover,
  .site-nav__mobile-cats a.is-active {
    background: rgba(31, 157, 74, 0.1);
    color: var(--green);
  }
  .site-nav--drawer .nav-link,
  .site-nav--drawer .nav-item {
    width: 100%;
    justify-content: flex-start;
  }
  .site-nav--drawer .nav-link {
    height: 48px;
    padding: 0 0.85rem;
    border-radius: 10px;
  }
  .site-nav__mobile-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1rem;
  }

  .deal-strip__grid,
  .cat-grid,
  .cat-grid--subs,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card__buy-row {
    width: 100%;
  }
  .product-card__buy-row .qty-control {
    flex: 0 0 auto;
  }
  .product-card__buy-row .qty-control__btn {
    width: 28px;
    min-height: 36px;
  }
  .product-card__buy-row .qty-control__input {
    flex: 0 0 26px;
    width: 26px;
    min-width: 26px;
    max-width: 28px;
    min-height: 36px;
    font-size: 0.82rem;
  }
  .product-card__buy-row .btn-cart {
    flex: 1 1 auto;
    width: auto;
    min-width: 40px;
  }

  .deal-strip { padding: 1rem 0 0.35rem; }
  .deal-strip .container {
    width: 100%;
    padding: 0;
  }
  .deal-strip__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(42%, 260px);
    grid-template-columns: none;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.15rem 1rem 0.85rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .deal-strip__grid::-webkit-scrollbar { display: none; }
  .deal-card { scroll-snap-align: start; }
}

@media (max-width: 980px) {
  .site-header__top {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.65rem;
  }
  .header-brand {
    order: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
  }
  .search-form {
    grid-column: 1 / -1;
    order: 2;
    max-width: none;
    margin-inline: 0;
  }
  .deal-strip__grid {
    grid-auto-columns: minmax(58%, 280px);
  }
  .cert-rail {
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    justify-content: center;
  }
  .about-split,
  .layout-split,
  .cabinet-grid,
  .product-detail,
  .contact-grid,
  .site-footer__grid { grid-template-columns: 1fr; }

  .cabinet-nav,
  .side-panel.cabinet-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    overflow: visible;
    padding: 0.75rem;
  }
  .cabinet-nav__label {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 0.15rem;
  }
  .cabinet-nav a {
    display: flex;
    white-space: normal;
    line-height: 1.25;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    box-shadow: none;
    background: var(--lime-soft);
  }
  .cabinet-nav a.is-active {
    box-shadow: none;
    background: rgba(31, 157, 74, 0.18);
    color: var(--green-dark);
  }
  .cabinet-nav__logout {
    grid-column: 1 / -1;
    margin: 0.15rem 0 0;
    padding: 0.55rem 0 0;
    border-top: 1px solid var(--line);
  }
  .cabinet-nav__logout .btn {
    width: 100%;
    min-height: 44px;
  }

  .cabinet-meta { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .schedule-item { grid-template-columns: 1fr; }

  .header-phone {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    border-left: 0;
    padding: 0;
    margin: 0;
    color: var(--ink);
  }
  .header-phone__label { display: none; }
  .header-phone strong {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .header-actions { order: 1; align-self: start; }
  .header-tool__text { display: none; }
  .header-tool {
    min-width: 40px;
    padding: 0;
  }
  .header-cabinet {
    padding: 0 0.95rem;
    font-size: 0.88rem;
  }
  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    padding: 0.15rem 0 0.35rem 0.6rem;
    display: none;
    background: transparent;
  }
  .nav-item--mega.is-open .mega-menu { display: block; }
  .mega-menu__grid { grid-template-columns: 1fr; }
  .banner-slide {
    grid-template-columns: 1fr;
    padding: 1.2rem 3rem 1.8rem 1.1rem;
  }
  .promo-carousel {
    height: clamp(160px, calc(100cqw * 7 / 16), 280px);
    min-height: 160px;
  }
  .cart-summary {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-summary > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .cart-summary .btn { width: 100%; }
  .checkout-form .btn,
  .checkout-form a.btn {
    width: 100%;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .wholesale-bar { font-size: 0.8rem; }
  .wholesale-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.55rem 0;
  }

  .site-header__top {
    padding: 0.55rem 0;
    gap: 0.5rem;
  }
  .site-header .brand__text small { display: none; }
  .brand__logo { height: 42px; max-width: 170px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__text strong { font-size: 0.92rem; }

  .header-actions { gap: 0.35rem; }
  .header-tool {
    height: 40px;
    min-width: 40px;
    padding: 0;
  }
  .header-cabinet {
    height: 40px;
    min-height: 40px;
  }

  .nav-item--mega > .nav-link::after {
    content: "▾";
    margin-left: auto;
    opacity: 0.55;
  }
  .nav-item--mega.is-open > .nav-link::after { content: "▴"; }
  .nav-item--mega:hover .mega-menu,
  .nav-item--mega:focus-within .mega-menu { display: none; }
  .nav-item--mega.is-open .mega-menu { display: block; }
  .mega-menu__grid a {
    padding: 0.7rem 0.75rem;
    font-size: 0.92rem;
  }

  .deal-strip__grid {
    grid-auto-columns: minmax(72%, 280px);
  }
  .deal-card__title {
    font-size: 0.88rem;
    height: calc(1.35em * 3);
  }
  .deal-card__media { aspect-ratio: 1.15; }

  .section { padding: 2.1rem 0; }
  .section--tight { padding: 1rem 0 0; }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
  }
  .section__head h2 { font-size: 1.25rem; }
  .home-carousel__head h2 { font-size: 1.15rem; }
  .home-carousels { gap: 1.1rem; }
  .promo-carousel {
    height: clamp(150px, calc(100cqw * 9 / 16), 220px);
    min-height: 150px;
  }
  .promo-slide__fallback { padding: 1.1rem 3rem 1.4rem 1rem; }
  .banner-slider__nav {
    width: 34px;
    height: 34px;
  }

  .cert-rail {
    grid-template-columns: repeat(auto-fit, minmax(130px, 160px));
    justify-content: center;
    gap: 0.65rem;
  }
  .video-grid { grid-template-columns: 1fr; }
  .product-card__body,
  .deal-card { padding: 0.7rem; }
  .product-card__title { font-size: 0.86rem; }
  .btn {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .page-hero { padding: 1.35rem 0 0.7rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .layout-split { gap: 0.9rem; }
  .side-panel { padding: 0.75rem; }
  .product-detail {
    padding: 0.85rem;
    gap: 1rem;
  }
  .product-detail__buy {
    flex-direction: column;
    align-items: stretch;
  }
  .product-detail__buy .qty-control,
  .product-detail__buy .btn-cart,
  .product-detail__buy .btn {
    width: 100%;
  }
  .product-detail__buy .btn-cart {
    min-height: 48px;
  }
  .auth-shell { margin: 1.2rem auto 2.5rem; }
  .auth-card { padding: 1.1rem; }
  .cabinet-grid { gap: 0.75rem; }

  /* Cart as stacked cards */
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.75rem;
    margin: 0 0 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 92, 46, 0.05);
  }
  .cart-table td {
    border: 0 !important;
    padding: 0 !important;
  }
  .cart-table td:nth-child(1) {
    grid-column: 1 / -1;
  }
  .cart-table td:nth-child(2) {
    font-weight: 800;
    align-self: center;
  }
  .cart-table td:nth-child(3) {
    grid-column: 1 / -1;
  }
  .cart-table td:nth-child(4) {
    font-weight: 800;
    font-size: 1.05rem;
    align-self: center;
  }
  .cart-table td:nth-child(5) {
    justify-self: end;
  }
  .cart-table .cart-qty,
  .cart-table .qty-control {
    width: 100%;
    max-width: 220px;
  }
  .cart-product__img {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  table.data th,
  table.data td {
    padding: 0.65rem 0.4rem;
    font-size: 0.88rem;
  }
  .about-split__media { min-height: 200px; }
  .cert-card h3 {
    font-size: 0.82rem;
    padding: 0.7rem;
  }
  .site-footer { padding: 2rem 0 1.1rem; }
  .flash-stack {
    width: min(100% - 1.25rem, var(--container));
  }

  .search-form input,
  .toolbar select,
  .form-control,
  .auth-card input,
  .auth-card textarea,
  .checkout-form input,
  .checkout-form textarea {
    font-size: 16px;
  }
  .search-form button { padding: 0 0.9rem; }

  .table-wrap,
  .cabinet-card,
  .auth-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vacancy-detail__layout { grid-template-columns: 1fr; }
  .vacancy-side { position: static; }
  .vacancy-apply__form .form-row--2 { grid-template-columns: 1fr; }
  .vacancy-picker__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .vacancy-picker__go {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.25rem;
  }

  .site-frame {
    margin: 0.55rem auto 1.5rem;
  }
  .to-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .cat-grid,
  .cat-grid--subs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 420px) {
  .product-grid,
  .cat-grid,
  .cat-grid--subs { gap: 0.55rem; }
  .deal-strip__grid {
    grid-auto-columns: minmax(78%, 260px);
  }
  .product-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

/* Co-browse */
.cobrowse-bar {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: min(340px, calc(100vw - 2rem));
  pointer-events: none;
}
.cobrowse-bar[hidden] { display: none !important; }
.cobrowse-bar > * { pointer-events: auto; }

.cobrowse-bar__fab {
  display: none;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.7rem 0.95rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 92, 46, 0.28);
}
.cobrowse-bar__fab span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.cobrowse-bar__fab:hover { background: var(--green-dark); }

.cobrowse-bar__panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 18px 40px rgba(13, 18, 15, 0.18);
}
.cobrowse-bar.is-collapsed .cobrowse-bar__panel { display: none; }
.cobrowse-bar.is-collapsed .cobrowse-bar__fab { display: inline-flex; }

.cobrowse-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cobrowse-bar__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cobrowse-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e57;
  box-shadow: 0 0 0 0 rgba(47, 158, 87, 0.55);
  animation: cobrowse-pulse 1.6s ease infinite;
  flex-shrink: 0;
}
@keyframes cobrowse-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 87, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(47, 158, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 87, 0); }
}
.cobrowse-bar__tools {
  display: inline-flex;
  gap: 0.25rem;
}
.cobrowse-bar__iconbtn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.cobrowse-bar__iconbtn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}
.cobrowse-bar__iconbtn--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fff5f5;
}
.cobrowse-bar__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.cobrowse-bar__body strong {
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cobrowse-bar__path {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cobrowse-bar__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}
.cobrowse-bar__follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.cobrowse-bar__follow input { accent-color: var(--green); }

body.cobrowse-session-on .to-top {
  left: auto;
  right: 1.1rem;
}

@media (max-width: 640px) {
  .cobrowse-bar {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
  body.cobrowse-session-on .to-top {
    bottom: 5.5rem;
  }
}

.cobrowse-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  color: var(--green);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  will-change: transform;
}
.cobrowse-cursor[hidden] { display: none !important; }
.cobrowse-cursor__label {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-4px);
}
.cobrowse-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.cobrowse-invite-modal[hidden] { display: none !important; }
.cobrowse-invite-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 36, 0.45);
}
.cobrowse-invite-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.4rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 28, 36, 0.22);
}
.cobrowse-invite-modal__dialog h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.cobrowse-invite-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.cobrowse-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cobrowse-search input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.cobrowse-pending-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.cobrowse-pending-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.cobrowse-path-hint {
  font-size: 0.75rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cobrowse-active-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.cobrowse-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.btn--sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}
.muted { color: var(--muted); }

/* Min order notice */
.cart-min-order {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #f0c2c2;
  background: #fff5f5;
  color: #7a2e2e;
  max-width: 36rem;
}
.cart-min-order strong { display: block; margin-bottom: 0.35rem; }
.cart-min-order p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.cart-min-order a { color: var(--green-dark); font-weight: 700; }
.cart-min-order--ok { display: none; }
