:root {
  --bg: #eef2f7;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-cta: #ea580c;
  --catalog-red: #1d4ed8;
  --catalog-red-hover: #1e40af;
  --border: #e2e8f0;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --danger: #dc2626;
  --success: #059669;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --header-h: 64px;
  --header-nav-h: 52px;
  --sidebar-w: 300px;
  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  /* Hide text caret on static UI (Windows caret browsing / accidental focus) */
  caret-color: transparent;
}

input,
textarea,
select,
[contenteditable="true"] {
  caret-color: auto;
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

/* Header — marketplace style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding-top: var(--safe-top);
}

.site-header__top {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
}

.header-icon-btn {
  flex: 0 0 auto;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--catalog-red);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: inherit;
}

.header-icon-btn--catalog {
  display: inline-flex;
}

@media (max-width: 991px) {
  .header-icon-btn--catalog {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .header-icon-btn--catalog .header-icon-btn__label {
    display: none;
  }
}

@media (min-width: 992px) {
  .header-icon-btn--catalog {
    display: inline-flex;
  }
}

.header-icon-btn__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.header-icon-btn__bars--light {
  background: #fff;
  box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
}

.header-icon-btn__label {
  display: none;
}

@media (min-width: 1100px) {
  .header-icon-btn__label {
    display: inline;
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.site-logo__text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

@media (min-width: 480px) {
  .site-logo__text {
    max-width: 220px;
  }
}

.header-search {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  max-width: 640px;
  margin: 0 auto;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.header-search:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.header-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.62rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.92rem;
}

.header-search__input:focus {
  outline: none;
}

.header-search__btn {
  flex: 0 0 auto;
  padding: 0 1.15rem;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
}

.header-search__btn:hover {
  background: var(--accent-hover);
}

.site-header__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: none;
  background: transparent;
  font-size: 0.78rem;
  position: relative;
}

.header-btn--icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-btn__icon {
  font-size: 1.2rem;
}

.header-btn__label {
  display: none;
}

@media (min-width: 900px) {
  .header-btn__label {
    display: inline;
  }
}

/* Category nav bar (horizontal pills) */
.category-nav-bar {
  background: var(--bg-elevated);
}

.category-nav-bar[hidden] {
  display: none !important;
}

.category-nav-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  min-height: var(--header-nav-h);
}

.category-nav-bar__catalog {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  background: var(--catalog-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.category-nav-bar__catalog:hover {
  background: var(--catalog-red-hover);
}

.category-nav-bar__catalog .header-icon-btn__bars {
  width: 14px;
}

.category-nav-bar__scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav-bar__scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 991px) {
  .category-nav-bar {
    display: none !important;
  }
}

.cart-pill {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f56b2a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  box-sizing: border-box;
}

#wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 0.55rem;
}

#wishlist-link .cart-pill {
  top: -0.45rem;
  right: -0.55rem;
}

/* Shell: full-width content, sidebar — выезжающий drawer */
.store-shell {
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h));
}

.store-shell--no-sidebar .category-sidebar,
.store-shell--no-sidebar .sidebar-backdrop {
  display: none !important;
}

.store-content {
  width: 100%;
  min-width: 0;
}

.page-main {
  padding: 1rem 0.85rem calc(1.35rem + var(--nav-h) + var(--safe-bottom));
}

@media (min-width: 768px) {
  .page-main {
    padding: 1.25rem 1.25rem 2rem;
  }

  .mobile-nav {
    display: none !important;
  }

  .site-footer {
    margin-bottom: 0;
  }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 45;
  backdrop-filter: blur(2px);
}

.sidebar-backdrop[hidden] {
  display: none !important;
}

.category-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(92vw, var(--sidebar-w));
  max-height: 100dvh;
  background: var(--sidebar-bg);
  border-right: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 4px 0 32px rgba(15, 23, 42, 0.14);
  border-radius: 0 var(--classic-radius, 14px) var(--classic-radius, 14px) 0;
  transform: translateX(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.24s;
  padding-top: var(--safe-top);
}

body.sidebar-open .category-sidebar {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.store-focus-page .category-sidebar,
body.store-focus-page .sidebar-backdrop,
body.store-focus-page .category-nav-bar {
  display: none !important;
}

body.store-focus-page #shop-footer {
  display: none !important;
}

.category-sidebar__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.category-sidebar__menu-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
}

.category-sidebar__menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.category-sidebar__title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.category-sidebar__chev {
  opacity: 0.85;
  font-size: 0.75rem;
}

.sidebar-close {
  display: none;
}

.category-sidebar__nav {
  overflow-y: auto;
  padding: 0.25rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.sidebar-loading {
  padding: 1rem;
  margin: 0;
}

/* Category tree — marketplace drawer */
.side-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-cat-list--child {
  display: none;
  background: #fafbfc;
}

.side-cat-item.is-expanded > .side-cat-list--child {
  display: block;
}

.side-cat-item.is-active > .side-cat-row {
  background: var(--accent-soft);
}

.side-cat-item.is-active > .side-cat-row > .side-cat-link {
  color: var(--accent);
  font-weight: 600;
}

.side-cat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: none;
  min-height: 44px;
  border-radius: 10px;
  margin: 0.1rem 0;
  overflow: hidden;
}

.side-cat-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.35;
  min-width: 0;
}

.side-cat-link:hover {
  background: #f8fafc;
  color: var(--accent);
}

.side-cat-item.is-active > .side-cat-row,
.side-cat-row:hover {
  background: #fff5f5;
}

.side-cat-item.is-active > .side-cat-row > .side-cat-link,
.side-cat-link:hover {
  background: transparent;
}

.side-cat-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: #f3f4f6;
  border-radius: 8px;
}

.side-cat-label {
  flex: 1;
  min-width: 0;
}

.side-cat-chev {
  flex: 0 0 auto;
  color: #c4c9d2;
  font-size: 1rem;
  padding-right: 0.65rem;
  line-height: 1;
}

.side-cat-count {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
  padding-right: 0.15rem;
}

.side-cat-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.15s, color 0.15s;
}

.side-cat-item.is-expanded > .side-cat-row .side-cat-toggle {
  transform: rotate(90deg);
}

.side-cat-toggle[hidden] {
  display: none;
}

.side-cat-all .side-cat-link {
  font-weight: 600;
}

.side-cat-all .side-cat-icon {
  background: var(--accent-soft);
}

@media (max-width: 991px) {
  .category-sidebar__head {
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

@media (min-width: 992px) {
  .site-footer {
    margin-bottom: 0;
  }
}

.site-footer__inner {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
}

.site-footer__name {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.site-footer__line {
  margin: 0.2rem 0;
}

/* Mobile bottom nav — app-style tab bar */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  padding: 0.35rem 0.15rem calc(0.35rem + var(--safe-bottom));
  min-height: calc(var(--nav-h) + var(--safe-bottom));
}

.mobile-nav__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.15rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.1;
  position: relative;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}

.mobile-nav__item.is-active {
  color: var(--catalog-red, var(--accent));
}

.mobile-nav__item.is-active .mobile-nav__icon {
  transform: scale(1.05);
}

.mobile-nav__item--cart.is-active {
  color: var(--catalog-red, var(--accent));
}

.mobile-nav__icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.15s;
}

.mobile-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav__badge {
  position: absolute;
  top: 0.15rem;
  left: 58%;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--catalog-red, #d71920);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(215, 25, 32, 0.35);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb__current {
  color: var(--text);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.catalog-toolbar h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.catalog-status {
  font-size: 0.85rem;
  color: var(--muted);
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 400;
}

.page-lead {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.store-hero-compact {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.store-hero-compact a {
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #f0f0f0;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.card--flat {
  box-shadow: none;
}

.catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 560px;
  z-index: 110;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: min(360px, 50dvh);
  overflow: auto;
}

.search-suggest__row {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}

.search-suggest__row:hover {
  background: var(--accent-soft);
}

.search-suggest__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}

.search-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-suggest__thumb .product-thumb-zoom img {
  padding: 0.15rem;
}

.search-suggest__text {
  font-size: 0.88rem;
  line-height: 1.35;
}

.search-suggest__price {
  display: block;
  font-weight: 700;
  margin-top: 0.15rem;
}

.search-suggest__empty {
  padding: 0.75rem;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  color: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-card__media-wrap {
  position: relative;
}

.product-card__actions {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.product-card:hover .product-card__actions,
.product-card__actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.product-card__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, background 0.15s;
}

.product-card__btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.product-card__btn--wish.is-active {
  color: #e74c3c;
}

.product-card__btn--cart.is-done {
  background: #28a745;
  color: #fff;
}

.product-card__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-card__rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 1.35rem;
  margin-bottom: 0.35rem;
}

.product-card__stars {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  line-height: 1;
  margin: 0;
}

.product-card__star {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.product-card--classic .product-card__star {
  font-size: 1.42rem;
}

.product-card__rating-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.product-card__star--full {
  color: #f5a623;
}

.product-card__star--half {
  color: #f5a623;
  opacity: 0.45;
}

.product-card__star--empty {
  color: #d1d5db;
}

.product-card__rating-val {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

.product-card__rating-count {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-card__rating-count--empty {
  display: none;
}

.product-card__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.25;
}

.product-card__store-chip {
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-card__store-chip.is-ok {
  color: #2e7d32;
}

.product-card__store-chip.is-low {
  color: #e65100;
}

.product-card__store-chip.is-out {
  color: #c62828;
  font-weight: 600;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover {
  color: var(--accent);
}

.fly-to-cart {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transition: left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.55s, height 0.55s, opacity 0.55s;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fly-to-cart img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-hub__hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.account-hub__avatar {
  flex-shrink: 0;
}

.account-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.account-tabs__item {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.account-tabs__item.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.account-tabs__badge {
  margin-left: 0.25rem;
  opacity: 0.85;
}

.account-order__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.account-order__sum {
  font-weight: 700;
}

.reviews-section {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.review-card:last-child {
  border-bottom: 0;
}

.review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.review-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.review-card__rating-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.review-card__date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.review-card__text {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.review-card__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.review-card__photo {
  display: block;
  width: min(100%, 220px);
  max-height: 280px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2, #f3f4f6);
  cursor: zoom-in;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.review-card__photo img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.review-card__video {
  width: min(100%, 320px);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.review-card__video-el {
  width: 100%;
  max-height: 360px;
  display: block;
  vertical-align: top;
}

.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.review-lightbox[hidden] {
  display: none !important;
}

.review-lightbox__img {
  max-width: min(96vw, 920px);
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.review-lightbox__close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: calc(0.75rem + env(safe-area-inset-right, 0px));
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.review-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-form__already {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-form__row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.review-form__fields {
  flex: 1;
  min-width: 0;
}

.review-form__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
}

.review-form__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.review-form__composer {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.review-form__composer:focus-within {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2563eb) 14%, transparent);
}

.review-form__input,
.review-form textarea.review-form__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.85rem 0.35rem;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background: transparent;
  resize: vertical;
  min-height: 5.5rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.review-form__input:focus {
  outline: none;
}

.review-form__toolbar {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.4rem 0.4rem;
  border-top: 1px solid transparent;
}

.review-form__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
}

/* file input не должен участвовать во flex — иначе «выделение» съезжает */
.review-form__icon-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  font-size: 0;
  appearance: none;
  -webkit-appearance: none;
}

.review-form__icon-btn:hover,
.review-form__icon-btn:focus-within {
  background: #e8f1fc;
  color: var(--catalog-blue, #1a6fd4);
}

.review-form__icon-btn:focus-within {
  outline: 2px solid color-mix(in srgb, var(--catalog-blue, #1a6fd4) 35%, transparent);
  outline-offset: 0;
}

.review-form__ico {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.review-form__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--catalog-blue, #1a6fd4);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s, transform 0.12s, opacity 0.15s;
}

.review-form__send:hover {
  background: color-mix(in srgb, var(--catalog-blue, #1a6fd4) 88%, #000);
}

.review-form__send:active {
  transform: scale(0.96);
}

.review-form__send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.review-form__send .review-form__ico {
  width: 1.05rem;
  height: 1.05rem;
}

.review-form__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.15rem 0 0.45rem;
}

.review-form__label {
  display: block;
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
}

.review-form__label--inline {
  margin: 0;
  flex: 0 0 auto;
}

.review-form__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.review-form__upload {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
}

.review-form__upload:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.04);
}

.review-form__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.review-form__preview {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.review-form__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-form__video-preview {
  margin-top: 0.55rem;
}

.review-form__video-box {
  position: relative;
  width: min(100%, 280px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
}

.review-form__video-box video {
  width: 100%;
  max-height: 200px;
  display: block;
}

.review-form__preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}

.star-picker {
  display: inline-flex;
  gap: 0.2rem;
  margin: 0;
  align-items: center;
}

.star-picker__star {
  border: 0;
  background: transparent;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: #d0d4dc;
  padding: 0;
  transition: color 0.12s ease, transform 0.12s ease;
  /* Buttons hold ★ text — never show a typing caret on them */
  caret-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.star-picker__star.is-on {
  color: #f5a623;
  text-shadow: 0 1px 0 rgba(245, 166, 35, 0.25);
}

.star-picker__star:hover,
.star-picker__star:focus-visible {
  transform: scale(1.08);
}

.review-form textarea {
  caret-color: auto;
}

.review-form textarea:not(:focus) {
  caret-color: transparent;
}

.review-card__stars {
  display: inline-flex;
  gap: 0.05rem;
}

.review-card__star {
  color: #c8c8c8;
  font-size: 0.95rem;
}

.review-card__star.is-on {
  color: #f5a623;
}

@media (min-width: 640px) {
  .review-card__photo {
    width: min(100%, 260px);
    max-height: 320px;
  }

  .review-card__photo img {
    max-height: 320px;
  }
}

@media (max-width: 420px) {
  .review-card__top {
    flex-direction: column;
    gap: 0.35rem;
  }

  .review-card__rating-date {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

.auth-social-wrap {
  display: grid;
  gap: 0.45rem;
}

.auth-social--vk {
  background: #0077ff;
  color: #fff !important;
  border-color: #0077ff;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  width: min(calc(100% - 1.5rem), 520px);
  padding: 1.15rem 1.25rem 1rem;
  background: #546375;
  color: #fff;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.28);
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
  align-items: start;
}

.cookie-consent__icon {
  grid-row: 1 / 3;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  color: #fff;
  user-select: none;
}

.cookie-consent__body {
  grid-column: 2;
  min-width: 0;
}

.cookie-consent__text-main {
  margin: 0 0 0.35rem;
}

.cookie-consent__text-sub {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.94;
}

.cookie-consent__text-main a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text-main a:hover {
  opacity: 0.88;
}

.cookie-consent__btn {
  grid-column: 2;
  justify-self: end;
  margin: 0;
  padding: 0.42rem 1.05rem;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #546375;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cookie-consent__btn:hover {
  opacity: 0.92;
}

.cookie-consent__btn:active {
  transform: scale(0.98);
}

@media (max-width: 899px) {
  body:has(.cookie-consent) .page-main {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  body:has(.cookie-consent) .mobile-nav {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .cookie-consent {
    width: calc(100% - 1rem);
    padding: 1rem 1rem 0.9rem;
    font-size: 0.82rem;
  }

  .cookie-consent__text-sub {
    font-size: 0.8rem;
  }
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.user-avatar--md {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}

.user-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}

.user-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-hub__avatar .user-avatar {
  width: 52px;
  height: 52px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-upload {
  cursor: pointer;
}

.product-detail__actions-row {
  margin: 0.5rem 0;
}

.product-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  margin: 0 0 0.85rem;
}

.product-detail__head h1 {
  flex: 1 1 10rem;
  margin: 0;
  min-width: 0;
}

.product-detail__head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.product-detail__head-right .product-card__rating {
  width: auto;
  margin: 0;
}

.product-detail__head-right .product-card__star {
  font-size: 1.45rem;
}

.product-detail__wish {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-detail__wish .product-card__wish-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.product-detail__wish .product-card__wish-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.product-detail__wish.is-active .product-card__wish-icon path,
#btn-wish-detail.is-active .product-card__wish-icon path {
  fill: currentColor;
  stroke: currentColor;
}

.product-detail__buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 1rem;
}

.product-detail__buy-row #product-stock {
  margin: 0;
  white-space: nowrap;
}

.product-detail__buy-row .qty-row {
  margin: 0;
}

.product-detail__buy-row .product-detail__price {
  margin: 0;
  margin-left: auto;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .product-detail__buy-row {
    gap: 0.5rem 0.75rem;
  }

  .product-detail__head-right {
    width: 100%;
    justify-content: space-between;
  }
}

#btn-wish-detail.is-active {
  color: #e74c3c;
  border-color: #e74c3c;
}

.header-btn__label--hide-sm {
  display: none;
}

@media (min-width: 900px) {
  .header-btn__label--hide-sm {
    display: inline;
  }

  .product-card__actions {
    opacity: 1;
    transform: none;
  }
}

.product-card__media {
  aspect-ratio: 3 / 4;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  box-sizing: border-box;
  background: #fff;
}

.product-card__media .product-thumb-zoom img {
  padding: 0;
  background: #fff;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #b8bec6;
  background: #f6f7f8;
  user-select: none;
}

.product-card__placeholder--gallery {
  min-height: min(36vh, 240px);
  font-size: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
}

.product-card__placeholder--cart {
  font-size: 0.55rem;
  padding: 0.35rem;
  line-height: 1.2;
}

.product-card__placeholder--related {
  font-size: 0.52rem;
  padding: 0.25rem;
  line-height: 1.2;
}

.product-card__placeholder--mini {
  font-size: 0;
  padding: 0;
  background: #f3f4f6;
  position: relative;
}

.product-card__placeholder--mini::before {
  content: "";
  display: block;
  width: 13px;
  height: 10px;
  border: 1.5px solid #c8ced6;
  border-radius: 2px;
  opacity: 0.5;
}

.product-card__placeholder--mini::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 54%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1.5px solid #c8ced6;
  opacity: 0.45;
  transform: translate(-50%, -50%);
}

.product-card__body {
  padding: 0.6rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
  background: #fff;
}

.product-card__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.product-card__price {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  margin-top: auto;
}

.product-card__stock {
  font-size: 0.72rem;
  color: var(--muted);
}

.stock-ok {
  color: #28a745;
}

.stock-low {
  color: #e67e22;
}

.product-card__variant-badge {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #22c55e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-card__price--from {
  font-size: 0.92rem;
}

.variant-picker {
  margin: 0.85rem 0 1rem;
}

.variant-picker__title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.variant-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.variant-picker--axes .variant-picker__title {
  margin-top: 0.65rem;
}

.variant-picker--axes .variant-picker__title:first-child {
  margin-top: 0;
}

.variant-chip--text {
  padding: 0.45rem 0.75rem;
}

.variant-chip--hover-preview {
  cursor: zoom-in;
  position: relative;
}

.variant-chip--hover-preview::after {
  content: "\1F50D";
  position: absolute;
  right: 4px;
  top: 3px;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

.variant-chip--hover-preview:hover::after {
  opacity: 1;
}

.variant-chip--text .variant-chip__thumb {
  display: none;
}

.variant-picker__grid--flavor {
  margin-bottom: 0.25rem;
}

.variant-picker--size-color .variant-picker__grid--sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.variant-picker--size-color .variant-picker__grid--sizes .variant-chip--text {
  min-width: 2.75rem;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

.variant-picker--size-color .variant-picker__title + .variant-picker__grid--sizes {
  margin-bottom: 0.85rem;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.variant-chip:hover:not(:disabled) {
  border-color: var(--accent);
}

.variant-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.variant-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.variant-picker--weights .variant-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.variant-chip--weight {
  min-width: 4.5rem;
}

.variant-chip--weight .variant-chip__meta {
  font-weight: 700;
  font-size: 0.8rem;
}

.variant-chip__thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.variant-chip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.variant-chip__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  text-align: left;
}

.variant-chip__price {
  font-size: 0.75rem;
  color: var(--muted);
}

.product-page {
  display: grid;
  gap: 1rem;
}

.product-page__media .variant-picker--series {
  margin: 0;
}
.product-page__media .variant-picker__title {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}
.product-page__media .variant-picker__grid {
  flex-wrap: wrap;
}

.product-description:not([hidden]) {
  display: block;
}

.product-description {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.product-description p {
  margin: 0 0 0.55rem;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description__lead {
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 768px) {
  .product-page {
    grid-template-columns: minmax(200px, 300px) 1fr;
    align-items: start;
  }
}

.product-gallery {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .product-gallery {
    max-width: 100%;
    margin: 0;
  }
}

.product-gallery__main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: calc(var(--radius) - 4px);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  box-sizing: border-box;
  background: #fff;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 3.4rem;
}

.product-gallery__thumb {
  box-sizing: border-box;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 0.12rem;
  box-sizing: border-box;
  background: #fff;
  display: block;
}

.product-gallery__thumb:hover {
  border-color: color-mix(in srgb, var(--accent, #2563eb) 45%, var(--border));
}

.product-gallery__thumb.is-active {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #2563eb) 35%, transparent);
}

.product-detail h1 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

.product-detail__price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.product-buy-dock {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 0.4rem);
  z-index: 12;
  margin: 0.55rem 0 0.25rem;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}
.product-buy-dock__pick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.product-buy-dock__img,
.product-buy-dock__ph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f5f5;
  flex: 0 0 40px;
}
.product-buy-dock__t {
  flex: 1 1 auto;
  min-width: 0;
}
.product-buy-dock__t b {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-buy-dock__t small {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.product-buy-dock .qty-row__ctrl {
  flex: 0 0 auto;
  margin: 0;
}
.product-buy-dock .qty-row__btn {
  width: 32px;
  height: 36px;
}
.product-buy-dock .qty-row__val {
  min-width: 1.15rem;
}
.product-buy-dock__send {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.product-buy-dock__send:disabled { opacity: 0.4; }
.product-buy-dock__send.is-ok { background: #15803d; }
.product-buy-dock__send svg { display: block; }
.product-buy-dock__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.65rem;
}
.product-buy-dock .qty-row {
  margin: 0;
}
.product-buy-dock .product-detail__price {
  margin: 0 0 0 auto;
}
.product-buy-dock__name {
  flex: 1 1 7rem;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}
.product-buy-dock__cart {
  margin: 0;
}
@media (min-width: 768px) {
  .product-buy-dock {
    position: static;
    bottom: auto;
    box-shadow: none;
  }
}

.stock-by-store {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
}

.stock-by-store__title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.stock-by-store__row + .stock-by-store__row {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.stock-by-store__qty {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.stock-by-store__row--ok .stock-by-store__qty {
  color: #2e7d32;
}

.stock-by-store__row--low .stock-by-store__qty {
  color: #e65100;
}

.stock-by-store__row--out .stock-by-store__qty {
  color: #c62828;
  font-size: 0.82rem;
}

.stock-by-store__addr {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.product-page-extra {
  margin-top: 0.75rem;
  width: 100%;
}

.product-related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  width: 100%;
}

/* Два блока рядом — класс из JS (надёжнее :has) */
@media (min-width: 900px) {
  .product-related-grid--dual {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.product-related__section {
  padding: 1rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}

.product-related__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* По умолчанию 2 колонки — названия читаются */
.product-related__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

/* Два блока рядом: только 2 колонки (никогда 3–4) */
.product-related-grid--dual .product-related__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Один блок на всю ширину: максимум 3 */
@media (min-width: 1100px) {
  .product-related-grid:not(.product-related-grid--dual) .product-related__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-related__list,
  .product-related-grid--dual .product-related__list {
    grid-template-columns: 1fr;
  }
}

.related-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
  overflow: hidden;
}

.related-row:hover {
  border-color: var(--catalog-red, #d71920);
  background: #fff;
}

.related-row--current {
  border-color: var(--catalog-blue, #1a6fd4);
  background: #f0f7ff;
  pointer-events: none;
}

.related-row__badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--catalog-blue, #1a6fd4);
  text-transform: lowercase;
}

.related-row__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.related-row__thumb .product-thumb-zoom,
.related-row__thumb .product-thumb-zoom img {
  width: 100%;
  height: 100%;
}

.related-row__thumb .product-thumb-zoom::after {
  display: none;
}

.related-row__thumb .product-card__placeholder--related {
  border-radius: 4px;
}

.related-row__meta {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.related-row__name {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.related-row__price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.qty-row__ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.qty-row__btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f5f5f5;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

.qty-row__val {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.cart-line__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.cart-line__total {
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0.5rem;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.cart-summary strong {
  font-size: 1.35rem;
}

.form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.auth-panel {
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
}

.auth-panel__head {
  text-align: center;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.auth-panel__logo {
  justify-content: center;
  margin-bottom: 0.35rem;
}

.auth-panel__tagline {
  margin: 0;
  font-size: 0.88rem;
}

.auth-panel__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.auth-panel__form label,
.auth-field-lbl {
  display: block;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-panel__form input {
  width: 100%;
}

.auth-panel__submit {
  margin-top: 0.85rem;
}

.auth-forgot {
  margin: 0.35rem 0 0.15rem;
  text-align: right;
  font-size: 0.85rem;
}

.auth-forgot a {
  color: var(--link, #2563eb);
  text-decoration: none;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.auth-panel__hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-ok {
  margin: 0.5rem 0;
  color: #15803d;
  font-size: 0.9rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-remember input {
  width: auto;
}

.auth-panel__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.auth-panel__links a {
  color: var(--accent);
  text-decoration: none;
}

.auth-panel__links a:hover {
  text-decoration: underline;
}

.auth-panel__links-sep {
  color: var(--muted);
}

.auth-panel__social-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.auth-panel__social-label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
}

.auth-social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.auth-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: inherit;
  padding: 0;
}

.auth-social-icon--vk {
  background: #0077ff;
  border-color: #0077ff;
  color: #fff;
}

.auth-social-icon--google {
  background: #fff;
  border-color: #dadce0;
  color: #4285f4;
}

.turnstile-wrap {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-page__hero {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--border);
}

.auth-page__logo {
  justify-content: center;
  margin-bottom: 0.35rem;
}

.auth-page__tagline {
  margin: 0;
  font-size: 0.9rem;
}

.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.auth-back {
  text-align: center;
  margin-top: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.load-more-wrap {
  text-align: center;
  margin: 1.5rem 0;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.success-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.success-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
  min-height: 180px;
}

.product-page--loading .product-page__skel-media {
  min-height: min(360px, 55vw);
  width: 100%;
}

.product-page--loading .product-page__skel-title {
  min-height: 1.6rem;
  width: 75%;
  margin: 0.35rem 0 1rem;
}

.product-page--loading .product-page__skel-line {
  min-height: 2.6rem;
  width: 100%;
  margin: 0.45rem 0;
}

.product-page--loading .product-page__skel-line--short {
  width: 42%;
  min-height: 1.1rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ——— Wikkeo-style overrides ——— */
.header-utility {
  background: #f5f6f8;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.header-utility__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.35rem 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.header-utility__link {
  color: var(--muted);
  text-decoration: none;
}

.header-utility__link:hover {
  color: var(--accent);
}

.site-logo__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-transform: uppercase;
  max-width: none;
}

.site-logo__mark {
  display: none;
}

.header-search {
  background: #f0f2f5;
  border: 1px solid transparent;
  border-radius: 12px;
  padding-left: 0.35rem;
}

.header-search__scope {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  margin: 0.25rem 0 0.25rem 0.25rem;
  white-space: nowrap;
}

.header-search__btn {
  border-radius: 0 11px 11px 0;
  padding: 0 1rem;
  font-size: 1rem;
}

.header-action {
  position: relative;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.header-action:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-action__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.category-nav-bar__catalog {
  background: var(--accent);
  border-radius: 10px;
}

.category-nav-bar__catalog:hover {
  background: var(--accent-hover);
}

.category-sidebar__head {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
}

.category-sidebar__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.category-sidebar__close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.btn--primary,
.btn.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.cart-page__aside .cart-summary {
  padding: 1.15rem;
}

.cart-line__total {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.product-card {
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card__body {
  padding: 0.65rem 0.75rem 0.85rem;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.product-card__name {
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__media {
  aspect-ratio: 3 / 4;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}

.catalog-grid {
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.cart-page {
  display: grid;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.cart-page__head {
  margin-bottom: 0.25rem;
}

.cart-sheet {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.cart-sheet__head {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.cart-sheet__head .page-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text);
}

.cart-sheet__lead {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.empty-state--in-sheet {
  padding: 2rem 1.25rem 2.25rem;
  text-align: center;
}

.cart-lines {
  display: flex;
  flex-direction: column;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child {
  border-bottom: none;
}

@media (min-width: 900px) {
  .cart-page {
    max-width: 1100px;
    grid-template-columns: 1fr 320px;
    align-items: start;
  }

  .cart-page__aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.cart-line__thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  text-decoration: none;
}

.cart-line__ctrl {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.cart-line__remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

.cart-line__remove:hover {
  color: var(--danger);
}

.cart-page__aside .cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: none;
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--classic-radius, 14px);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.btn-checkout,
.btn.btn-checkout,
a.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 3px;
  background: var(--catalog-red);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: none;
}

.btn-checkout:hover {
  background: var(--catalog-red-dark);
  color: #fff !important;
}

.btn-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-pickup {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.checkout-pickup legend {
  font-weight: 650;
  padding: 0 0.25rem;
}
.checkout-pickup__row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}
.checkout-split {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.checkout-split--err {
  background: #fef2f2;
  border-color: #fca5a5;
}
.checkout-split__part {
  margin-top: 0.45rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.cart-summary__label {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-summary__value {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.cart-summary__row--total {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.cart-summary__row--total strong {
  font-size: 1.45rem;
  color: var(--text);
}

.cart-summary__note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.store-shell--no-sidebar .store-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Classic OpenCart / Wikkeo theme --- */
:root {
  --catalog-red: #d71920;
  --catalog-red-dark: #b9151b;
  --cart-blue: #0066b3;
  --cart-blue-dark: #004d88;
  --classic-bg: #f4f4f4;
  --classic-radius: 14px;
  --classic-line: rgba(15, 23, 42, 0.08);
  --sidebar-w: 320px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--classic-bg);
  -webkit-tap-highlight-color: transparent;
}

.header-utility {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.82rem;
}

.header-utility__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-utility__phone {
  color: var(--text);
  font-weight: 600;
}

.header-utility__links {
  display: flex;
  gap: 1.25rem;
}

.header-utility__link {
  color: var(--text-muted);
  text-decoration: none;
}

.header-utility__link:hover {
  color: var(--catalog-red);
}

.site-header__inner--classic {
  max-width: 1500px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.site-logo__text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--catalog-red);
  white-space: nowrap;
}

.header-search--classic {
  display: flex;
  align-items: stretch;
  border: none;
  border-radius: var(--classic-radius);
  overflow: hidden;
  background: #fff;
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.header-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-search__ghost {
  display: none;
}

.header-store-switch {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-right: 1px solid var(--classic-line);
  background: #f8f8f8;
}

.store-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  min-width: 2rem;
  transition: background 0.15s, color 0.15s;
}

.store-switch-btn + .store-switch-btn {
  border-left: 1px solid var(--classic-line);
}

.store-switch-btn:hover {
  background: #eee;
  color: var(--text);
}

.store-switch-btn.is-active {
  background: #fff;
  color: var(--catalog-red);
}

.header-search__scope {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #f8f8f8;
  border-right: 1px solid var(--classic-line);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.header-search--classic .header-search__input {
  flex: 1;
  border: none;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.header-search--classic .header-search__btn {
  border: none;
  background: var(--catalog-red);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.header-search--classic .header-search__btn:hover {
  background: var(--catalog-red-dark);
}

.cart-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cart-blue);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--classic-radius);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 102, 179, 0.22);
}

.cart-widget:hover {
  background: var(--cart-blue-dark);
  color: #fff;
}

.cart-widget__icon {
  font-size: 1.15rem;
}

@media (max-width: 991px) {
  .site-header__inner--classic {
    display: block;
    padding: 0.55rem 0.75rem;
    min-height: auto;
    gap: 0;
  }

  .site-logo,
  .cart-widget,
  .header-action--menu {
    display: none !important;
  }

  .header-utility {
    display: none !important;
  }

  .header-search-wrap {
    width: 100%;
    grid-column: auto;
    order: 0;
  }

  .header-search--classic {
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
  }

  .header-store-switch {
    display: none !important;
  }

  .header-search__field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .header-search__ghost {
    position: absolute;
    left: 0.85rem;
    right: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #94a3b8;
  }

  .header-search__ghost[hidden] {
    display: none !important;
  }

  .header-search__ghost-lead {
    color: #64748b;
    font-weight: 500;
  }

  .header-search__ghost-mid {
    color: #94a3b8;
  }

  .header-search__ghost-store {
    color: #64748b;
    opacity: 0.42;
    filter: blur(0.35px);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .header-search--classic .header-search__input {
    padding-left: 0.85rem;
    padding-right: 0.35rem;
    font-size: 1rem;
    min-height: 44px;
  }

  .header-search--classic .header-search__btn {
    min-width: 44px;
    border-radius: 0 999px 999px 0;
  }

  body {
    --header-h: 56px;
  }

  .site-header {
    padding-top: var(--safe-top);
  }

  .page-main {
    padding-top: 0.75rem;
  }
}

@media (max-width: 420px) {
  .mobile-nav__label {
    font-size: 0.58rem;
  }

  .mobile-nav__icon {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .header-search__ghost {
    display: none !important;
  }

  .header-search--classic .header-search__input::placeholder {
    color: #94a3b8;
  }
}

@media (min-width: 992px) {
  .store-shell:not(.store-shell--no-sidebar) {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0;
    align-items: flex-start;
  }

  .store-shell:not(.store-shell--no-sidebar) .category-sidebar {
    position: sticky;
    top: 0.5rem;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: 0 0 var(--sidebar-w);
    width: var(--sidebar-w);
    height: auto;
    max-height: none;
    border-radius: var(--classic-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    border: none;
    overflow: visible;
    align-self: flex-start;
    z-index: 30;
  }

  .store-shell:not(.store-shell--no-sidebar) .category-sidebar__nav {
    overflow-y: visible;
    max-height: none;
    padding: 0.35rem 0.45rem 0.75rem;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-link {
    padding: 0.38rem 0.65rem;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-icon {
    width: 1.35rem;
    font-size: 0.95rem;
  }

  .store-shell:not(.store-shell--no-sidebar) .sidebar-backdrop {
    display: none !important;
  }

  .store-shell:not(.store-shell--no-sidebar) .store-content {
    flex: 1;
    min-width: 0;
    padding-left: 1rem;
  }

  #btn-sidebar-toggle {
    display: none;
  }

  .category-sidebar__close {
    display: none;
  }

  .category-nav-bar {
    display: none !important;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-list--child {
    display: none !important;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-toggle {
    display: none;
  }

  .store-shell:not(.store-shell--no-sidebar) .category-sidebar__nav {
    overflow: visible;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout {
    position: relative;
  }

  /* Invisible bridge so the cursor can reach the flyout without leaving :hover */
  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 1.25rem;
    height: 100%;
    z-index: 79;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-flyout {
    display: none;
    position: absolute;
    left: calc(100% - 2px);
    top: 0;
    margin-left: 0;
    min-width: min(560px, calc(100vw - var(--sidebar-w) - 2rem));
    max-width: 720px;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
    z-index: 80;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.25rem;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-flyout::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0;
    bottom: 0;
    width: 1.25rem;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout:hover > .side-cat-flyout,
  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout.is-flyout-open > .side-cat-flyout {
    display: grid;
  }

  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout:hover > .side-cat-row,
  .store-shell:not(.store-shell--no-sidebar) .side-cat-item.has-flyout.is-flyout-open > .side-cat-row {
    background: #fff5f5;
  }
}

.side-cat-flyout__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-cat-flyout__link {
  display: block;
  padding: 0.4rem 0.55rem;
  margin: 0.05rem 0;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}

.side-cat-flyout__link:hover,
.side-cat-flyout__link:focus-visible {
  background: #fff5f5;
  color: var(--catalog-red);
  outline: none;
}

.side-cat-flyout__link--root {
  font-weight: 700;
  color: var(--catalog-red);
  margin-bottom: 0.2rem;
}

.side-cat-flyout__link--root:hover,
.side-cat-flyout__link--root:focus-visible {
  background: #fff5f5;
  color: var(--catalog-red);
}

.category-sidebar__head {
  background: var(--catalog-red);
  color: #fff;
  border-bottom: none;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-sidebar__menu-icon {
  font-size: 1.1rem;
}

.category-sidebar__title {
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.category-sidebar {
  background: #fff;
}

.side-cat-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

.side-cat-link:hover,
.side-cat-item.is-active > .side-cat-row > .side-cat-link {
  color: var(--catalog-red);
}

.side-cat-item.is-active > .side-cat-row > .side-cat-link {
  font-weight: 600;
}

.home-categories {
  margin-bottom: 1.5rem;
}

.home-categories__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: #fff;
  border: none;
  border-radius: var(--classic-radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.15s, transform 0.15s;
}

.category-tile:hover {
  box-shadow: 0 6px 18px rgba(215, 25, 32, 0.12);
  transform: translateY(-2px);
  color: var(--catalog-red);
}

.category-tile__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.category-tile__name {
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 600;
}

.product-card--classic {
  background: #fff;
  border: none;
  border-radius: var(--classic-radius);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card--classic .product-card__media-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
}

.product-card--classic .product-card__media {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 0;
  border-bottom: none;
}

.product-card--classic .product-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  box-sizing: border-box;
  background: #fff;
}

.product-thumb-zoom {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  background: #fff;
}

.product-thumb-zoom img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__media .product-thumb-zoom,
.product-card--classic .product-card__media .product-thumb-zoom {
  min-height: 100%;
}

.product-thumb-zoom::after {
  content: "\1F50D";
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 1.12rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}

.product-thumb-zoom:hover::after {
  opacity: 0.9;
}

.product-gallery .product-thumb-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
}

.product-gallery .product-thumb-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

/* Wildberries-style loupe: lens on photo + zoom pane to the right */
.product-thumb-zoom--wb,
.product-thumb-zoom--gallery {
  cursor: crosshair;
}

.product-thumb-zoom--wb::after,
.product-thumb-zoom--gallery::after {
  display: none !important;
}

.product-thumb-zoom--wb-active img {
  opacity: 0.95;
}

.img-zoom-lens {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06);
}

.img-zoom-result {
  position: fixed;
  z-index: 560;
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}

.img-zoom-result:not([hidden]),
.img-zoom-lens:not([hidden]) {
  display: block;
}

@media (hover: none) and (pointer: coarse) {
  .img-zoom-lens,
  .img-zoom-result {
    display: none !important;
  }

  .product-thumb-zoom--wb,
  .product-thumb-zoom--gallery {
    cursor: zoom-in;
  }
}

.search-suggest__thumb .product-thumb-zoom {
  width: 100%;
  height: 100%;
}

.search-suggest__thumb .product-thumb-zoom::after {
  right: 2px;
  bottom: 2px;
  font-size: 0.48rem;
}

.product-thumb-zoom--sm::after {
  right: 4px;
  bottom: 4px;
  font-size: 0.87rem;
}

.product-thumb-zoom--mini::after {
  right: 1px;
  bottom: 1px;
  font-size: 0.68rem;
  opacity: 0.7;
}

.product-thumb-zoom--mini:hover::after {
  opacity: 0.95;
}

.variant-chip__thumb .product-thumb-zoom {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.variant-chip__thumb .product-thumb-zoom img {
  padding: 0;
}

.img-zoom-preview {
  position: fixed;
  width: min(240px, 48vw);
  height: min(240px, 48vw);
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  z-index: 500;
  border-radius: 12px;
  border: 2px solid var(--catalog-red, #d71920);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  background: #fff;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
}

/* Tall cans/bottles: fit entire photo inside the square (letterbox, never crop) */
.img-zoom-preview > img {
  position: absolute;
  inset: 8px;
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

/* Size modifiers AFTER base so they win over default */
.img-zoom-preview--sm {
  width: min(150px, 29vw);
  height: min(150px, 29vw);
}

.img-zoom-preview--mini {
  /* ~2x related-row thumb (52px) */
  width: min(104px, 28vw);
  height: min(104px, 28vw);
  border-radius: 10px;
}

.img-zoom-preview--mini img {
  inset: 4px;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  padding: 0;
  box-sizing: border-box;
}

.img-zoom-preview--variant {
  width: min(150px, 32vw);
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 8px;
}

.img-zoom-preview--variant img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(126px, 26vw);
  min-height: 81px;
  margin: 0;
  flex: 0 0 auto;
  object-fit: contain;
  background: #fff;
}

.img-zoom-preview--variant .img-zoom-preview__caption {
  padding: 0.28rem 0.38rem;
  font-size: 0.72rem;
}

.img-zoom-preview--touch {
  width: min(200px, 48vw);
  height: auto;
  z-index: 560;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.img-zoom-preview--touch img {
  max-height: min(170px, 28vh);
  min-height: 100px;
}

.img-zoom-preview__caption {
  position: relative;
  padding: 0.42rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  line-height: 1.25;
}

@media (max-width: 991px) {
  .product-thumb-zoom::after {
    opacity: 0.65;
  }
}

.product-card--classic .product-card__wish {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #94a3b8;
  font-size: 0;
  cursor: pointer;
  line-height: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
  padding: 0;
}

.product-card--classic .product-card__wish-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
}

.product-card--classic .product-card__wish-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: fill 0.15s, stroke 0.15s;
}

.product-card--classic .product-card__wish.is-active {
  color: var(--catalog-red);
}

.product-card--classic .product-card__wish.is-active .product-card__wish-icon path {
  fill: currentColor;
  stroke: currentColor;
}

.product-card--classic .product-card__body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card--classic .product-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  min-height: 2.6em;
  color: #4a5568;
}

.product-card--classic .product-card__name a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.product-card--classic .product-card__name a:hover {
  color: var(--catalog-red);
}

.product-card--classic .product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.product-card--classic .product-card__price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 400;
}

.product-card--classic .product-card__stock {
  font-size: 0.75rem;
}

.product-card--classic .product-card__stock.is-ok,
.product-card--classic .product-card__stock.stock-ok {
  color: #2e7d32;
}

.product-card--classic .product-card__stock.is-low,
.product-card--classic .product-card__stock.stock-low {
  color: #e65100;
}

.product-card--classic .product-card__stock.is-out,
.product-card--classic .product-card__stock.stock-out {
  color: #c62828;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
  padding: 0.5rem;
  border: none;
  border-radius: 3px;
  background: var(--catalog-red);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-buy:hover:not(:disabled) {
  background: var(--catalog-red-dark);
}

.btn-buy:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.catalog-toolbar {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.page-main {
  padding-top: 0.75rem;
}

body.store-focus-page .page-main {
  padding-top: 1.25rem;
}

.cart-sheet__head .page-title {
  margin-top: 0;
  line-height: 1.25;
  padding-top: 0;
}

.header-utility__phone-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.header-utility__phone-link:hover {
  color: var(--catalog-red);
}

.page-contacts {
  max-width: 560px;
}

.contacts-card {
  padding: 1.25rem 1.35rem;
}

.contacts-card__shop {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.contacts-card__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid #eee;
}

.contacts-card__row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contacts-card__label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contacts-card__value {
  font-size: 0.95rem;
  color: var(--text);
}

.contacts-card__value[href] {
  color: var(--cart-blue);
  text-decoration: none;
  font-weight: 600;
}

.contacts-card__row--note .contacts-card__value {
  white-space: pre-wrap;
}

.page-contacts__back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.page-contacts__back a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-contacts__back a:hover {
  color: var(--catalog-red);
}

@media (max-width: 480px) {
  .contacts-card__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Checkout auth modal */
body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.auth-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  color: #334155;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
}

.auth-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.auth-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-modal__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.auth-modal__tab {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-modal__tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.auth-modal__form label {
  display: block;
  margin: 0.55rem 0 0.25rem;
  font-size: 0.85rem;
}

.auth-modal__form input {
  width: 100%;
}

.auth-modal__extras {
  margin-top: 0.75rem;
}

.auth-modal__foot {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.profile-form__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.profile-form__sep {
  border: none;
  border-top: 1px solid var(--border, #e8e8e8);
  margin: 1.25rem 0;
}

.profile-form__ok {
  margin-top: 0.5rem;
  color: var(--success, #27ae60);
}

.profile-phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-phone-preview {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-phone-preview--ok {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.profile-phone-preview--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

html.sf-klev-embed .mobile-nav,
html.sf-klev-embed .cookie-consent,
html.sf-klev-embed .header-utility {
  display: none !important;
}
html.sf-klev-embed body {
  padding-bottom: 0 !important;
}
html.sf-klev-embed .page-main {
  padding-bottom: 1rem !important;
}
html.sf-klev-embed .product-buy-dock {
  position: static;
  bottom: auto;
  box-shadow: none;
}
html.sf-klev-embed .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.klev-app-banner {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: #042f2e;
  background: #ccfbf1;
  border-bottom: 1px solid #99f6e4;
  padding: 0.55rem 0.9rem;
}
.klev-app-banner:hover {
  background: #99f6e4;
  color: #042f2e;
}
html.sf-klev-embed .klev-app-banner,
html.sf-klev-embed #app-dl-link {
  display: none !important;
}
