:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef2f6;
  --text: #1b2430;
  --muted: #64748b;
  --line: #dbe2ea;
  --brand: #d93025;
  --brand-dark: #b91c1c;
  --brand-soft: #fdeaea;
  --success: #d93025;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --container: 1360px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(217, 48, 37, 0.12), transparent 24%),
    linear-gradient(180deg, #fdfefe 0%, var(--bg) 26%, #eef3f7 100%);
}
a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  display: block;
  background: #eeeff1;
  transition: opacity .24s ease, filter .24s ease;
}
img.is-lazy-loading {
  opacity: .01;
  filter: saturate(.9);
}
img.is-lazy-ready {
  opacity: 1;
  filter: none;
}
button, input, select, textarea { font: inherit; }
i[class^="fa"], i[class*=" fa"] { line-height: 1; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.topbar { border-bottom: 1px solid rgba(219,226,234,.8); background: rgba(255,255,255,.88); backdrop-filter: blur(12px); }
.topbar-inner, .breadcrumbs, .meta-row, .header-actions, .nav-list, .card-badges, .footer-meta, .hero-actions, .summary-actions, .cart-actions, .auth-actions, .chips, .tab-list {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.topbar-inner { justify-content: space-between; padding: 10px 0; color: var(--muted); font-size: 14px; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(219,226,234,.85);
}
.site-header.scrolled { box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.site-header .container { position: relative; z-index: 20; }
.header-main {
  display: grid; grid-template-columns: auto auto minmax(320px, 1fr) auto auto; align-items: center;
  gap: 18px; padding: 18px 0;
}
.mobile-toggle {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: .02em; min-width: 0; }
.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: .92;
}
.brand-text span {
  display: block;
  white-space: nowrap;
}
.brand-text span:first-child {
  font-size: 20px;
}
.brand-text span:last-child {
  font-size: 18px;
  font-weight: 700;
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(135deg,#ef4444,#b91c1c);
  color: #fff; display: grid; place-items: center; box-shadow: 0 14px 24px rgba(217,48,37,.28);
}
.catalog-trigger, .btn, .pill { border: 0; border-radius: 16px; cursor: pointer; }
.catalog-trigger, .header-action, .searchbar button, .mobile-toggle, .carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-toggle { display: none; }
.catalog-trigger, .btn, .pill, .header-action, .searchbar button, .mobile-toggle, .carousel-arrow, .tab-button {
  transition: background-color .2s ease, filter .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.catalog-trigger {
  padding: 14px 18px; background: linear-gradient(180deg,#5d636d,#434952); color: #fff; font-weight: 700;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
}
.catalog-trigger:hover,
.searchbar button:hover,
.btn-primary:hover {
  filter: brightness(.88);
}
.btn:hover,
.pill:hover,
.header-action:hover,
.mobile-toggle:hover,
.carousel-arrow:hover,
.tab-button:hover {
  filter: brightness(.94);
}
.catalog-trigger:hover,
.btn:hover,
.pill:hover,
.header-action:hover,
.searchbar button:hover,
.mobile-toggle:hover,
.carousel-arrow:hover,
.tab-button:hover {
  box-shadow: 0 16px 32px rgba(15,23,42,.12);
}
.searchbar {
  display: flex; align-items: center; gap: 12px; background: var(--surface-alt); border: 1px solid transparent;
  padding: 10px 12px 10px 16px; border-radius: 18px; min-width: 0;
}
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.searchbar button, .btn-primary { background: linear-gradient(135deg,#ef4444,#d93025); color: #fff; }
.searchbar button { border: 0; padding: 12px 18px; border-radius: 14px; font-weight: 700; }
.header-action {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; border: 0;
  background: transparent; border-radius: 16px; color: var(--muted); min-width: 84px; font-size: 13px;
}
.header-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 2px;
}
.header-action { white-space: nowrap; }
.header-action i { font-size: 18px; color: #475569; }
.header-action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.header-action span:not(.badge) { line-height: 1; }
.header-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: #f1f5f9;
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(219,226,234,.92);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-auth-button:hover { background: #e8edf3; box-shadow: 0 16px 32px rgba(15,23,42,.08); }
.badge {
  min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); font-size: 12px; font-weight: 700; text-align: center;
}
.header-action .badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 18px;
  padding: 1px 5px;
  font-size: 11px;
  line-height: 1.2;
}
.header-nav { padding: 12px 0 18px; }
.catalog-menu {
  display: none;
  margin-bottom: 18px;
  padding: 0;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(219,226,234,.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.catalog-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.catalog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 15;
}
.catalog-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.catalog-layout-menu {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 520px;
}
.catalog-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, #fcfcfd, #f6f8fb);
  border-right: 1px solid rgba(219,226,234,.92);
}
.catalog-sidebar-list {
  display: grid;
  gap: 6px;
  max-height: 434px;
  overflow: auto;
  padding-right: 4px;
}
.catalog-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: #485569;
  transition: .2s ease;
}
.catalog-side-item:hover,
.catalog-side-item.active {
  background: #fdecec;
  color: var(--brand-dark);
}
.catalog-side-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.catalog-side-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#e8f8e8,#f7fdf7);
  color: var(--brand-dark);
  flex: 0 0 auto;
}
.catalog-side-icon i { font-size: 14px; }
.catalog-side-thumb {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(219,226,234,.96);
  background: linear-gradient(135deg,#fff7ef,#fff);
  flex: 0 0 auto;
}
.catalog-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.catalog-main {
  padding: 24px 28px;
}
.catalog-panel {
  display: none;
}
.catalog-panel.active {
  display: block;
}
.catalog-panel h3 {
  margin: 0 0 18px;
  font-size: 18px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 34px;
}
.catalog-column {
  display: grid;
  align-content: start;
  gap: 14px;
}
.catalog-link {
  display: block;
  color: #485569;
  line-height: 1.35;
}
.catalog-link:hover {
  color: var(--brand-dark);
}
.catalog-link strong {
  font-weight: 500;
}
.catalog-link span {
  color: #9aa5b4;
}
.catalog-link small {
  display: block;
  margin-top: 3px;
  color: #a3adba;
}
.nav-list a, .pill {
  padding: 10px 14px; background: rgba(238,242,246,.8); border: 1px solid transparent;
  color: var(--muted); transition: .2s ease;
}
.topbar-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nav-list a:hover, .pill:hover { background: #fff; border-color: var(--line); color: var(--text); }
.hero, .section { padding: 24px 0; }
.hero-grid, .quick-grid, .categories-grid, .products-grid, .catalog-layout, .product-layout, .news-layout, .cart-layout, .checkout-layout, .auth-grid, .account-layout, .footer-grid, .feature-grid, .benefits-grid, .gallery-thumbs, .form-grid, .promo-grid, .brands-grid {
  display: grid; gap: 20px;
}
.hero-grid { grid-template-columns: 1.35fr .8fr; }
.hero-slider { position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.hero-slides { display: flex; transition: transform .45s ease; }
.hero-slide { min-width: 100%; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(100,116,139,.35);
}
.hero-dot.active { width: 28px; background: linear-gradient(135deg,#ef4444,#d93025); }
.carousel-shell { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5);
  gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-actions { display: flex; gap: 10px; }
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.96); cursor: pointer;
}
.carousel-arrow-floating {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(219,226,234,.96);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 32px rgba(15,23,42,.12);
}
.carousel-arrow-floating.prev { left: -18px; }
.carousel-arrow-floating.next { right: -18px; }
.hero-main, .hero-side, .panel, .product-summary, .news-card, .article-card, .cart-list, .summary-box, .checkout-card, .auth-card, .account-card, .feature-card, .benefit-card, .quick-card, .category-card, .product-card {
  background: rgba(255,255,255,.96); border: 1px solid rgba(219,226,234,.9); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.card-actions-inline,
.product-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.mini-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.hero-banner-card {
  padding: 0;
  overflow: hidden;
}
.hero-banner-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.hero-main {
  min-height: 390px; position: relative; overflow: hidden; color: #fff; padding: 42px;
  background: radial-gradient(circle at 18% 22%,rgba(255,255,255,.32),transparent 20%), linear-gradient(135deg,#ef4444 0%,#d93025 48%,#b91c1c 100%);
}
.hero-main::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 290px; height: 290px; border-radius: 36px;
  transform: rotate(-16deg); background: linear-gradient(135deg,rgba(255,255,255,.92),rgba(255,255,255,.68));
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  text-shadow: 0 2px 16px rgba(15, 23, 42, 0.28);
}

.hero-actions {
  margin-top: auto;
  padding-top: 20px;
}
.hero-media {
  position: absolute;
  right: -18px;
  bottom: -54px;
  width: min(44%, 360px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  transform: rotate(-15deg);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15,23,42,.2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1, .page-title h1 { margin: 0 0 14px; font-size: clamp(34px,4vw,54px); line-height: 1.03; }
.hero p, .page-title p { margin: 0; opacity: .92; }
.btn { padding: 14px 20px; font-weight: 700; }
.btn-secondary { border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.14); color: inherit; }
.hero-side, .sidebar, .checkout-sidebar { display: grid; gap: 18px; }
.stat-card, .small-card, .filter-block, .support-box { padding: 20px; border-radius: 22px; background: linear-gradient(180deg,#fff7f7,#ffffff); border: 1px solid rgba(217,48,37,.18); }
.stat-card strong { display: block; margin-top: 8px; font-size: 30px; }
.quick-grid { grid-template-columns: repeat(4,1fr); }
.quick-card, .feature-card, .benefit-card, .category-card, .product-card, .small-card, .promo-card, .brand-card { padding: 22px; }
.quick-card .icon, .feature-icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg,#fde8e8,#fff7f7); color: var(--brand-dark); font-weight: 800;
}
.section-head--tight { margin-bottom: 16px; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 1.7fr;
  gap: 16px;
}
.business-card,
.business-hero {
  border-radius: 24px;
  border: 1px solid rgba(219,226,234,.92);
  box-shadow: var(--shadow);
}
.business-card {
  min-height: 206px;
  padding: 20px 18px;
  background: linear-gradient(180deg,#fff,#fbfcfe);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.business-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid rgba(219,226,234,.92);
}
.business-icon i {
  font-size: 20px;
}
.business-card h3 {
  margin: 0 0 auto;
  font-size: 24px;
  line-height: 1.22;
}
.business-card a {
  margin-top: 18px;
  color: #94a3b8;
  font-weight: 600;
}
.business-hero {
  position: relative;
  overflow: hidden;
  min-height: 206px;
  padding: 26px 230px 24px 24px;
  background: linear-gradient(135deg,#5a6169,#3f464e 58%,#6b727a 100%);
  color: #fff;
}
.business-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg,#d93025,#b91c1c);
}
.business-hero-copy {
  position: relative;
  z-index: 1;
}
.business-hero h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
}
.business-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: rgba(255,255,255,.86);
}
.business-list li {
  position: relative;
  padding-left: 16px;
}
.business-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255,255,255,.6);
}
.business-hero-media {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.14));
}
.business-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0 0 10px; font-size: 32px; }
.categories-grid { grid-template-columns: repeat(5,1fr); }
.promo-grid { grid-template-columns: repeat(3,1fr); }
.brands-grid { grid-template-columns: repeat(6,1fr); }
.brand-carousel-track {
  grid-auto-columns: calc((100% - 48px) / 4);
  padding: 8px 2px;
}
.hits-track {
  grid-auto-columns: calc((100% - 60px) / 4);
}
.product-card--hit {
  min-width: 0;
}
.category-card { min-height: 210px; background: radial-gradient(circle at top right,rgba(217,48,37,.14),transparent 25%), linear-gradient(180deg,#fff,#f8fafc); }
.illustration.real {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg,#fff4e8,#fff);
}
.illustration.real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-strip-sale {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg,#15100f,#26100d 70%,#401307 100%);
  box-shadow: 0 28px 56px rgba(34,12,6,.26);
  overflow: hidden;
}
.promo-strip-sale::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg,#d93025,#b91c1c);
}
.promo-strip-sale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #fff;
}
.promo-strip-sale-head h2 { margin: 3px 0 0; color: #fff; font-size: 18px; line-height: 1.15; }
.promo-strip-sale-date { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 600; }
.promo-strip-sale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  font-weight: 700;
  font-size: 12px;
}
.promo-strip-sale-track { grid-auto-columns: calc((100% - 120px) / 7); }
.promo-strip-sale-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-10%);
  z-index: 2;
}
.promo-strip-sale-arrow.prev { left: 12px; }
.promo-strip-sale-arrow.next { right: 12px; }
.sale-card {
  position: relative;
  padding: 8px 8px 10px;
  border-radius: 16px;
  background: #fff;
  min-height: 100%;
}
.sale-card-media {
  display: block;
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(135deg,#fff4ea,#fff);
  overflow: hidden;
  margin-bottom: 8px;
}
.sale-card-media.real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sale-card-badge {
  position: absolute;
  left: 8px;
  top: 86px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.sale-card-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 6px;
}
.sale-card-prices strong { font-size: 18px; line-height: 1; }
.sale-card-prices span {
  color: #8b95a3;
  text-decoration: line-through;
  font-size: 11px;
}
.sale-card h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}
.sale-card h3 a { color: var(--ink); }
.promo-card {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.26), transparent 24%),
    linear-gradient(135deg, #ef4444, #d93025 58%, #b91c1c);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo-card--image {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.promo-card-media {
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}
.promo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promo-date {
  font-size: 13px;
  opacity: .86;
}
.promo-card-link {
  margin-top: auto;
  width: fit-content;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.promo-badge--new {
  background: rgba(34,197,94,.18);
}
.promo-badge--soon {
  background: rgba(250,204,21,.22);
  color: #fff7d6;
}
.promo-badge--archive {
  background: rgba(15,23,42,.34);
}
.promo-card.light {
  background:
    radial-gradient(circle at top right, rgba(217,48,37,.12), transparent 24%),
    linear-gradient(180deg, #fff7f7, #ffffff);
  color: var(--text);
}
.promo-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border-radius: 28px;
  transform: rotate(-18deg);
  background: rgba(255,255,255,.2);
}
.promo-card.light::after {
  background: rgba(217,48,37,.12);
}
.promo-card h3,
.brand-card h3 {
  margin: 0 0 10px;
}
.brand-card {
  min-height: auto;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.brand-mark-box {
  width: 100%;
  min-height: 78px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.brand-mark-box img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}
.illustration, .product-media, .news-thumb, .article-hero, .promo-block, .gallery-main, .thumb, .cart-thumb {
  border-radius: 24px; overflow: hidden; position: relative;
}
.product-media img,
.news-thumb img,
.article-hero img,
.gallery-main img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb.real,
.article-hero.real {
  background: #fff;
}
.news-thumb.real img,
.article-hero.real img {
  object-fit: contain;
  background: #fff;
}
.hero-main.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(217,48,37,.9) 0%, rgba(217,48,37,.7) 38%, rgba(27,36,48,.08) 58%, rgba(15,23,42,.3) 82%, rgba(15,23,42,.48) 100%);
}
.illustration { height: 140px; margin-top: 18px; background: linear-gradient(135deg,#ffd7b5,#fff1e2 44%,#ffe8d4 100%); }
.cards-grid, .products-grid { grid-template-columns: repeat(4,1fr); }
.product-card { display: flex; flex-direction: column; gap: 16px; }
.product-media { height: 220px; background: radial-gradient(circle at 65% 30%,rgba(255,255,255,.72),transparent 18%), linear-gradient(135deg,#fff1df,#ffe7cf 48%,#ffeede); }
.product-media.real::after,
.news-thumb.real::after,
.article-hero.real::after,
.gallery-main.real::after,
.thumb.real::after {
  display: none;
}
.product-media::after, .news-thumb::after, .article-hero::after, .gallery-main::after {
  content: ""; position: absolute; inset: 18px; border-radius: 24px; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.product-media.tool-drill::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'%3E%3Cpath fill='%231f2937' d='M169 89h63c14 0 26 12 26 26v8h-89z'/%3E%3Cpath fill='%23d93025' d='M97 71h91c22 0 40 18 40 40v5H97c-16 0-29-13-29-29v-1c0-8 4-15 10-20l19-15z'/%3E%3Cpath fill='%231f2937' d='M67 112h107v24H67z'/%3E%3Cpath fill='%23334155' d='M149 133h32v61c0 8-7 15-15 15h-2c-8 0-15-7-15-15z'/%3E%3Ccircle fill='%23fff' cx='103' cy='95' r='10'/%3E%3Crect fill='%23cfd8e3' x='220' y='95' width='30' height='12' rx='4'/%3E%3C/svg%3E"); }
.product-media.tool-saw::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'%3E%3Ccircle fill='%23334155' cx='150' cy='112' r='64'/%3E%3Ccircle fill='%23fff' cx='150' cy='112' r='18'/%3E%3Cpath fill='%23d93025' d='M77 82h93l42 21-17 25H61z'/%3E%3C/svg%3E"); }
.product-media.tool-box::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'%3E%3Crect fill='%23d93025' x='54' y='78' width='192' height='98' rx='20'/%3E%3Crect fill='%231f2937' x='54' y='102' width='192' height='20'/%3E%3Cpath fill='%23334155' d='M113 61h74a10 10 0 0 1 10 10v7h-20v-1h-54v1h-20v-7a10 10 0 0 1 10-10z'/%3E%3C/svg%3E"); }
.product-media.tool-mixer::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'%3E%3Cpath fill='%23d93025' d='M96 91h102c16 0 29 13 29 29v7H96z'/%3E%3Cpath fill='%231f2937' d='M71 91h31v36H71c-10 0-18-8-18-18s8-18 18-18z'/%3E%3C/svg%3E"); }
.card-title, .news-card h3, .feature-card h3, .benefit-card h3 { margin: 0; font-size: 20px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-size: 28px; font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; }
.meta-row, .rating-row, .summary-line, .order-summary, .sidebar-list { color: var(--muted); font-size: 14px; }
.catalog-layout, .account-layout { grid-template-columns: 300px 1fr; }
.product-layout { grid-template-columns: 1.05fr .95fr; align-items: start; }
.cart-layout { grid-template-columns: 1fr 340px; align-items: start; }
.checkout-layout { grid-template-columns: 1fr 360px; align-items: start; }
.sidebar, .checkout-sidebar { position: sticky; top: 140px; }
.filter-block h3, .summary-box h3, .support-box h3, .checkout-card h2, .account-card h2, .auth-card h1, .cart-list h1, .page-title h1 { margin: 0 0 16px; }
.filter-group { display: grid; gap: 10px; margin-bottom: 18px; }
.filter-group label, .radio-card { display: flex; gap: 12px; color: var(--muted); }
.field, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); outline: none;
}
.page-title, .panel, .cart-list, .checkout-card, .account-card, .auth-card, .article-card, .product-summary, .summary-box { padding: 28px; }
.breadcrumbs { margin: 18px 0 14px; color: var(--muted); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gallery-main { height: 460px; background: radial-gradient(circle at 25% 20%,rgba(255,255,255,.74),transparent 18%), linear-gradient(180deg,#fdecec,#f9dddd 54%,#fff7f7); border: 1px solid rgba(219,226,234,.92); }
.gallery-main::after { inset: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 320'%3E%3Cpath fill='%23d93025' d='M142 114h145c28 0 51 23 51 51v7H142c-20 0-36-16-36-36v-1c0-9 4-18 11-24l25-20z'/%3E%3Cpath fill='%231f2937' d='M95 172h182v39H95z'/%3E%3C/svg%3E"); }
.gallery-thumbs { grid-template-columns: repeat(4,1fr); }
.thumb { height: 96px; border: 1px solid var(--line); background: linear-gradient(135deg,#fff7f0,#fff); }
.thumb { cursor: pointer; }
.gallery-main.real img { cursor: zoom-in; }
.thumb.is-active { border-color: rgba(217,48,37,.55); box-shadow: 0 16px 28px rgba(217,48,37,.14); }
.product-layout--enhanced { align-items: start; }
.product-meta-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.product-meta-grid strong { color: var(--ink); font-weight: 700; }
.product-price-row { align-items: end; gap: 14px; }
.variation-selector { display: grid; gap: 14px; margin: 18px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg,#fff,#fff7f1); }
.variation-group { display: grid; gap: 10px; }
.variation-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.variation-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variation-option {
  position: relative; min-width: 54px; min-height: 54px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.variation-option span { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; font-weight: 700; font-size: 14px; }
.variation-option:hover { border-color: rgba(217,48,37,.45); transform: translateY(-1px); }
.variation-option.active {
  border-color: rgba(217,48,37,.72);
  box-shadow: 0 18px 30px rgba(217,48,37,.16);
  background: linear-gradient(180deg,#fff1f1,#fde3e3);
}
.variation-option--chip {
  width: 54px; padding: 0; overflow: hidden; background: var(--variation-swatch, var(--surface));
  background-image: var(--variation-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.variation-option--chip span {
  width: 100%; min-height: 54px; padding: 0 10px; background: rgba(255,255,255,.88);
  color: var(--ink);
}
.variation-option--chip[style*="--variation-swatch"] span,
.variation-option--chip[style*="--variation-image"] span { opacity: 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(217,48,37,.1); color: var(--success); font-weight: 700; }
.delivery-box, .promo-strip, .note-box {
  margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg,#fff7f7,#fff); border: 1px solid rgba(217,48,37,.18);
}
.tab-button {
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700;
}
.tab-button.active { background: var(--brand-soft); border-color: rgba(217,48,37,.25); color: var(--brand-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.news-layout { grid-template-columns: repeat(3,1fr); }
.news-thumb { height: 220px; background: linear-gradient(135deg,#ffd5ad,#fff0de); }
.news-thumb::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 200'%3E%3Crect width='340' height='200' rx='28' fill='%23fff'/%3E%3Crect x='22' y='28' width='182' height='20' rx='10' fill='%23d93025' opacity='.84'/%3E%3Crect x='22' y='62' width='296' height='14' rx='7' fill='%23d6dee8'/%3E%3C/svg%3E"); }
.news-copy { padding: 24px; }
.article-hero { height: 360px; background: linear-gradient(135deg,#ffddb7,#fff4e6 52%,#fff); margin-bottom: 24px; }
.article-hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 260'%3E%3Crect width='420' height='260' rx='32' fill='%23ffffff'/%3E%3Crect x='34' y='40' width='220' height='26' rx='13' fill='%23d93025'/%3E%3C/svg%3E"); }
.article-body { display: grid; gap: 16px; color: #334155; line-height: 1.72; }
.cart-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { height: 120px; border: 1px solid var(--line); background: linear-gradient(135deg,#fff0df,#fff); }
.quantity { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.quantity button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-alt); cursor: pointer; }
.quantity input { width: 48px; border: 0; text-align: center; background: transparent; }
.form-grid { grid-template-columns: repeat(2,1fr); }
.form-grid .full { grid-column: 1 / -1; }
.radio-card-group { display: grid; gap: 12px; }
.radio-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.auth-wrap { max-width: 1120px; margin: 26px auto 0; }
.auth-grid { grid-template-columns: 1.05fr .95fr; }
.promo-block { min-height: 100%; background: linear-gradient(135deg,#ef4444,#d93025 58%,#b91c1c); color: #fff; padding: 34px; }
.account-layout { grid-template-columns: 280px 1fr; }
.account-layout > aside.account-card { display: flex; flex-direction: column; }
.account-nav a { display: block; padding: 14px 16px; border-radius: 14px; color: var(--muted); }
.account-nav a.active, .account-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account-head h1 { margin: 0 0 4px; font-size: 24px; }
.account-avatar {
  width: 62px; height: 62px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#ef4444,#d93025); color: #fff; font-size: 24px; box-shadow: 0 18px 34px rgba(217,48,37,.22);
}
.account-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.account-badge {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: #fdecec; color: var(--brand-dark); border: 1px solid rgba(217,48,37,.16); font-weight: 700; font-size: 13px;
}
.account-badge.is-approved { background: rgba(217,48,37,.1); color: var(--success); border-color: rgba(217,48,37,.2); }
.account-badge.is-pending { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.2); }
.account-badge.is-rejected { background: rgba(220,38,38,.1); color: #b91c1c; border-color: rgba(220,38,38,.18); }
.account-side-info { display: grid; gap: 10px; margin: 18px 0 22px; color: #475569; }
.account-logout { margin-top: auto; }
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.account-stat {
  padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fff8f2);
  display: grid; gap: 8px;
}
.account-stat span { color: var(--muted); font-size: 13px; }
.account-stat strong { font-size: 28px; line-height: 1; }
.account-empty {
  display: grid; justify-items: start; gap: 14px; padding: 26px; border-radius: 20px;
  border: 1px dashed rgba(219,226,234,.96); background: linear-gradient(180deg,#fff,#f8fafc);
}
.account-empty h3 { margin: 0; }
.account-orders { display: grid; gap: 18px; }
.order-card {
  padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fffaf6);
  box-shadow: 0 12px 28px rgba(15,23,42,.04);
}
.order-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px;
}
.order-card-head h3 { margin: 0 0 6px; font-size: 20px; }
.order-card-meta { display: grid; gap: 8px; justify-items: end; }
.order-card-info {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; color: var(--muted); font-size: 14px;
}
.order-status {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid transparent;
}
.order-status.is-new { background: rgba(59,130,246,.1); color: #1d4ed8; border-color: rgba(59,130,246,.16); }
.order-status.is-progress { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.2); }
.order-status.is-done { background: rgba(217,48,37,.1); color: var(--success); border-color: rgba(217,48,37,.2); }
.order-status.is-cancelled { background: rgba(220,38,38,.1); color: #b91c1c; border-color: rgba(220,38,38,.18); }
.order-items { display: grid; gap: 12px; }
.order-item-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line);
}
.order-item-row a { color: var(--ink); font-weight: 700; }
.order-item-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; color: var(--muted); text-align: right; }
.order-item-meta strong { color: var(--ink); }
.order-comment {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: #475569;
}
.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.order-step {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(241,245,249,.92);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.order-step.is-done {
  background: rgba(217,48,37,.1);
  color: var(--success);
}
.order-step.is-active {
  background: rgba(217,48,37,.14);
  color: var(--brand-dark);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}
.reviews-list,
.review-form {
  display: grid;
  gap: 14px;
}
.review-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.82);
}
.image-lightbox[hidden] {
  display: none !important;
}
.image-lightbox-dialog {
  width: min(100%, 1100px);
  max-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}
.image-lightbox-dialog img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.callback-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.42);
  z-index: 70;
}
.callback-panel[hidden] {
  display: none !important;
}
.has-open-modal { overflow: hidden; }
.callback-card {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15,23,42,.28);
}
.callback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(241,245,249,.92);
}
.compare-table-wrap {
  overflow: auto;
}
.compare-table {
  min-width: 820px;
  display: grid;
}
.compare-row {
  display: grid;
  grid-template-columns: 240px repeat(auto-fit, minmax(220px, 1fr));
}
.compare-row + .compare-row {
  border-top: 1px solid var(--line);
}
.compare-label,
.compare-cell {
  padding: 18px;
}
.compare-label {
  font-weight: 800;
  background: rgba(248,250,252,.9);
}
.compare-cell--product h3 {
  margin: 12px 0 0;
  font-size: 16px;
}
.brand-hero-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: center;
}
.brand-hero-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.catalog-layout--category {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}
.catalog-sidebar-panel {
  position: sticky;
  top: 22px;
}
.catalog-main-column {
  display: grid;
  gap: 22px;
}
.category-filter {
  gap: 22px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-head h3 {
  margin: 0;
  font-size: 18px;
}
.category-tree-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.category-tree-children {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(219,226,234,.92);
}
.category-tree-item.is-current > .category-tree-line .category-tree-link {
  color: var(--brand);
  font-weight: 800;
}
.category-tree-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-tree-link {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
}
.category-tree-count {
  flex-shrink: 0;
  min-width: 36px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(241,245,249,.92);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.price-filter {
  display: grid;
  gap: 16px;
}
.price-filter-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.price-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.price-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
}
.price-range-shell {
  position: relative;
  height: 30px;
  --start: calc((var(--range-from) - var(--range-min)) / (var(--range-max) - var(--range-min)) * 100%);
  --end: calc((var(--range-to) - var(--range-min)) / (var(--range-max) - var(--range-min)) * 100%);
}
.price-range-track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(226,232,240,.95) 0%,
    rgba(226,232,240,.95) var(--start),
    var(--brand) var(--start),
    var(--brand) var(--end),
    rgba(226,232,240,.95) var(--end),
    rgba(226,232,240,.95) 100%
  );
}
.price-range-shell input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  appearance: none;
  pointer-events: none;
}
.price-range-shell input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 4px 10px rgba(15,23,42,.14);
  pointer-events: auto;
  cursor: pointer;
}
.price-range-shell input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 4px 10px rgba(15,23,42,.14);
  pointer-events: auto;
  cursor: pointer;
}
.price-range-shell input[type="range"]::-webkit-slider-runnable-track {
  height: 30px;
  background: transparent;
}
.price-range-shell input[type="range"]::-moz-range-track {
  height: 30px;
  background: transparent;
}
.brand-filter-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.filter-actions {
  display: grid;
  gap: 10px;
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.toolbar--catalog {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(219,226,234,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.toolbar-meta strong {
  display: block;
  font-size: 18px;
}
.catalog-toolbar-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-sort label {
  display: grid;
  gap: 8px;
  min-width: 270px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-sort--inline label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}
.catalog-sort--inline span {
  flex: 0 0 auto;
}
.catalog-per-page select {
  min-width: 84px;
}
.catalog-sort select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  background: #fff;
}
.section-head--compact h2 {
  margin-bottom: 6px;
}
.section-head--compact p {
  margin: 0;
  color: var(--muted);
}
.catalog-subcategories {
  display: grid;
  gap: 18px;
}
.catalog-subcategories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card--sub {
  min-height: 100%;
}
.category-card--sub .illustration {
  height: 148px;
  margin-bottom: 16px;
}
.catalog-products {
  display: grid;
  gap: 20px;
}
.products-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.empty-state {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(219,226,234,.9);
  text-align: center;
}
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.pagination-link:hover {
  border-color: rgba(217,48,37,.35);
  color: var(--brand-dark);
}
.pagination-link.is-current {
  background: linear-gradient(135deg,#ef4444,#d93025);
  color: #fff;
  border-color: transparent;
}
.pagination-link.is-nav {
  padding: 0 18px;
}
.pagination-link--gap {
  border-style: dashed;
  color: var(--muted);
}
.site-footer { margin-top: 40px; padding: 40px 0 56px; background: linear-gradient(180deg,#1f2937,#111827); color: rgba(255,255,255,.84); }
.cart-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  opacity: 0; pointer-events: none; min-width: min(560px, calc(100% - 32px));
  padding: 16px 18px; border-radius: 22px; background: rgba(27,36,48,.96); color: #fff;
  box-shadow: 0 24px 60px rgba(15,23,42,.35); transition: opacity .25s ease, transform .25s ease; z-index: 50;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cart-toast strong { display: block; margin-bottom: 4px; }
.cart-toast .muted { color: rgba(255,255,255,.72); }
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.footer-grid h3, .footer-grid h4 { margin-top: 0; color: #fff; }
.footer-links { display: grid; gap: 10px; }
.muted { color: var(--muted); }
.hidden-mobile { display: block; }
@media (min-width: 1201px) {
  .header-main {
    grid-template-columns: auto auto minmax(360px, 1fr) auto auto;
    gap: 16px;
  }
  .catalog-trigger {
    min-width: 132px;
  }
  .searchbar {
    width: 100%;
  }
}
@media (max-width: 1200px) {
  .catalog-layout-menu { grid-template-columns: 240px 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track { grid-auto-columns: calc((100% - 20px) / 3); }
  .promo-strip-sale-track { grid-auto-columns: calc((100% - 40px) / 4); }
  .hero-grid, .product-layout, .auth-grid, .footer-grid, .quick-grid, .categories-grid, .cards-grid, .products-grid, .news-layout, .promo-grid, .brands-grid { grid-template-columns: repeat(2,1fr); }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-hero { grid-column: 1 / -1; }
  .header-main { grid-template-columns: auto auto minmax(220px,1fr) auto auto; gap: 14px; }
  .cart-layout, .checkout-layout, .catalog-layout, .account-layout { grid-template-columns: 1fr; }
  .sidebar, .checkout-sidebar { position: static; }
  .catalog-subcategories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid,
  .brand-hero-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-carousel-track { grid-auto-columns: calc((100% - 20px) / 3); }
  .hits-track { grid-auto-columns: calc((100% - 30px) / 3); }
}
@media (max-width: 860px) {
  .catalog-layout-menu { grid-template-columns: 1fr; }
  .catalog-sidebar { border-right: 0; border-bottom: 1px solid rgba(219,226,234,.92); }
  .catalog-grid, .carousel-track { grid-template-columns: 1fr; grid-auto-columns: 100%; }
  .promo-strip-sale { padding: 22px 18px 20px; }
  .promo-strip-sale-head { align-items: flex-start; flex-direction: column; }
  .carousel-arrow-floating { display: none; }
  .hero-main {
    min-height: 340px;
  }
  .hero-media {
    width: min(42%, 220px);
    right: -6px;
    bottom: -26px;
    border-radius: 24px;
  }
  .topbar { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .header-main {
    grid-template-columns: 48px minmax(0,1fr) auto;
    grid-template-areas:
      "menu brand actions"
      "search search search";
    gap: 12px;
    padding: 12px 0 14px;
  }
  .mobile-toggle { grid-area: menu; }
  .brand {
    grid-area: brand;
    gap: 10px;
    font-size: 17px;
  }
  .brand-text {
    overflow: hidden;
    min-width: 0;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .catalog-trigger {
    display: none;
  }
  .header-actions {
    display: inline-flex;
    grid-area: actions;
    justify-self: end;
    gap: 6px;
    margin-right: 0;
  }
  .header-action {
    position: relative;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
  }
  .header-actions .header-action:nth-child(1),
  .header-actions .header-action:nth-child(2),
  .header-actions .header-action:nth-child(3) {
    display: none;
  }
  .header-action i { font-size: 16px; }
  .header-action span:not(.badge) { display: none; }
  .header-action .badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 18px;
    padding: 2px 5px;
    font-size: 11px;
  }
  .searchbar {
    grid-area: search;
    width: 100%;
    padding: 8px 8px 8px 14px;
    border-radius: 16px;
  }
  .searchbar button {
    min-width: 46px;
    padding: 11px 14px;
  }
  .searchbar button span { display: none; }
  .header-auth-button { display: none; }
  .header-nav { display: none; padding: 0 0 14px; }
  .header-nav.open { display: block; }
  .nav-list { display: grid; gap: 8px; }
  .catalog-menu {
    margin-top: 6px;
    border-radius: 20px;
  }
  .toolbar--catalog {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .catalog-toolbar-controls {
    justify-content: stretch;
  }
  .catalog-sort--inline label {
    display: grid;
    gap: 8px;
    white-space: normal;
  }
  .catalog-sort label {
    min-width: 0;
  }
  .catalog-subcategories-grid {
    grid-template-columns: 1fr;
  }
  .products-grid--catalog { grid-template-columns: 1fr; }
  .products-grid--cart { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr; }
  .card-actions-inline,
  .product-secondary-actions { grid-template-columns: 1fr; }
  .order-card-head, .order-item-row { display: grid; grid-template-columns: 1fr; }
  .order-card-meta, .order-item-meta { justify-items: start; text-align: left; }
  .hero-main, .promo-block, .page-title, .panel, .cart-list, .checkout-card, .account-card, .auth-card, .article-card { padding: 22px; }
  .hero-grid, .quick-grid, .categories-grid, .cards-grid, .products-grid, .news-layout, .auth-grid, .footer-grid, .form-grid, .gallery-thumbs, .promo-grid, .brands-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .business-hero {
    padding: 22px 22px 160px;
  }
  .business-list { grid-template-columns: 1fr; }
  .business-hero-media {
    width: 100%;
    height: 150px;
    align-items: stretch;
  }
  .cart-item { grid-template-columns: 1fr; }
  .variation-selector { padding: 16px; }
  .hidden-mobile { display: none; }
  .hero-main {
    min-height: 300px;
    padding: 18px;
  }
  .hero-media {
    width: 160px;
    right: -6px;
    bottom: -18px;
  }
  .hero-copy {
    max-width: calc(100% - 118px);
  }
  .hero-controls {
    padding-top: 12px;
  }
  .hero-dots {
    gap: 6px;
  }
  .hero-dot {
    width: 9px;
    height: 9px;
  }
  .hero-side .hero-banner-card {
    display: none;
  }
  .product-layout {
    gap: 18px;
  }
  .gallery-main {
    height: 360px;
  }
  .gallery-thumbs {
    gap: 10px;
    margin-top: 12px;
  }
  .thumb {
    height: 82px;
    border-radius: 14px;
  }
  .variation-selector {
    padding: 16px;
    margin: 16px 0 18px;
  }
  .summary-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .summary-actions .quantity,
  .summary-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .product-secondary-actions {
    margin-top: 12px;
    gap: 10px;
  }
  .delivery-box {
    margin-top: 14px;
    padding: 14px 16px;
  }
  .rating-row {
    gap: 8px 12px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section {
    padding: 10px 0;
  }
  .promo-strip-sale-track {
    grid-auto-columns: calc((100% - 16px) / 2.15);
  }
  .sale-card {
    padding: 10px;
    border-radius: 16px;
  }
  .sale-card-media {
    height: 110px;
    border-radius: 14px;
  }
  .sale-card-prices strong {
    font-size: 16px;
  }
  .sale-card h3 {
    font-size: 12px;
  }
  .brand-carousel-track {
    grid-auto-columns: calc((100% - 18px) / 2.4);
  }
  .hits-track {
    grid-auto-columns: calc((100% - 18px) / 2.35);
  }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .header-main { grid-template-columns: 42px minmax(0,1fr) auto; gap: 8px; }
  .mobile-toggle, .catalog-trigger, .header-action {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .header-actions {
    margin-right: 0;
    gap: 4px;
  }
  .header-auth-button { display: none; }
  .brand {
    font-size: 14px;
    gap: 8px;
    min-width: 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .brand-text {
    gap: 0;
  }
  .brand-text span:first-child { font-size: 16px; }
  .brand-text span:last-child { font-size: 13px; }
  .searchbar {
    gap: 6px;
    padding: 6px 6px 6px 10px;
    border-radius: 14px;
  }
  .searchbar input { font-size: 14px; }
  .searchbar button {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .product-layout {
    gap: 16px;
  }
  .gallery-main {
    height: 280px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .thumb {
    height: 72px;
  }
  .product-summary {
    padding: 20px;
  }
  .product-summary h1 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.12;
  }
  .variation-list {
    gap: 8px;
  }
  .variation-option {
    min-width: 48px;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px;
  }
  .variation-option span {
    min-height: 46px;
    font-size: 12px;
  }
  .variation-option--chip {
    width: 48px;
  }
  .tab-list {
    gap: 8px;
  }
  .tab-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .image-lightbox {
    padding: 12px;
  }
  .image-lightbox-dialog img {
    border-radius: 16px;
    max-height: calc(100vh - 44px);
  }
  .image-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .hero h1, .page-title h1 {
    font-size: 24px;
    line-height: 1.05;
  }
  .hero p {
    font-size: 13px;
    max-width: 170px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
  .hero-side {
    gap: 12px;
  }
  .stat-card,
  .small-card {
    padding: 16px;
    border-radius: 18px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .hero-side .small-card {
    padding: 16px;
  }
  .carousel-actions {
    gap: 8px;
  }
  .carousel-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
  }
  .business-card {
    min-height: auto;
    padding: 18px 16px;
  }
  .business-card h3 {
    font-size: 18px;
  }
  .business-hero {
    min-height: 0;
    padding: 18px 18px 122px;
  }
  .business-hero h3 {
    font-size: 20px;
  }
  .business-hero-media {
    height: 116px;
  }
  .promo-strip-sale {
    padding: 18px 14px 16px;
  }
  .promo-strip-sale-track {
    grid-auto-columns: calc((100% - 10px) / 1.9);
  }
  .sale-card {
    min-width: 0;
  }
  .sale-card-badge {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 4px 7px;
  }
  .brand-carousel-track {
    grid-auto-columns: calc((100% - 10px) / 2.1);
  }
  .hits-track {
    grid-auto-columns: calc((100% - 10px) / 1.3);
  }
  .cookie-notice {
    padding: 12px 14px;
    border-radius: 14px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .cookie-notice__text {
    font-size: 12px;
    line-height: 1.4;
  }
  .cookie-notice__button {
    min-width: 0;
    padding: 10px 14px;
    border-radius: 12px;
  }
  .catalog-main { padding: 18px 16px; }
  .catalog-side-item { padding: 12px; }
  .variation-option,
  .variation-option--chip { width: 48px; min-width: 48px; min-height: 48px; border-radius: 14px; }
.variation-option span,
.variation-option--chip span { min-height: 46px; font-size: 12px; }
}

.auth-page {
  padding-bottom: 48px;
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auth-shell--single {
  grid-template-columns: minmax(0, 720px);
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 12px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.field {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
}

.auth-message {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}

.auth-message--error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.auth-message--success {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.auth-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.auth-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-consent {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.consent-check input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.consent-check a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.auth-actions-row {
  margin-top: 24px;
}

.field--sm {
  min-height: 40px;
  max-width: 96px;
}

.cart-server-list {
  display: grid;
  gap: 16px;
}

.cart-server-list--compact .cart-item {
  grid-template-columns: 1fr auto;
}

.cart-page-shell {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.cart-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.cart-heading-row h1 {
  margin: 0 0 6px;
}

.cart-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 440px);
}

.cart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.cart-clean-form,
.cart-qty-box {
  margin: 0;
}

.cart-link-action {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.cart-server-list--styled {
  gap: 0;
}

.cart-item--styled {
  grid-template-columns: auto 108px 1fr 150px;
  gap: 16px;
  align-items: start;
}

.cart-item-check {
  padding-top: 8px;
}

.cart-item-copy h3 {
  margin: 0 0 8px;
}

.cart-item-recommend {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.cart-mini-recommend {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
}

.cart-mini-recommend-thumb {
  width: 64px;
  height: 54px;
  border-radius: 12px;
}

.cart-mini-recommend-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.cart-item-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.quantity--cart {
  gap: 0;
  padding: 4px;
  border-radius: 999px;
}

.quantity--cart input {
  width: 42px;
}

.cart-remove-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #fdecec;
  color: var(--primary);
  cursor: pointer;
}

.cart-summary-note {
  margin-top: 14px;
}

.cart-delivery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-delivery-tab {
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.cart-delivery-tab.active {
  background: #fff;
  border-color: rgba(217,48,37,.28);
  box-shadow: inset 0 0 0 1px rgba(217,48,37,.16);
}

.cart-delivery-empty {
  margin-top: 20px;
  padding: 42px 20px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.products-grid--cart {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cart-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.cart-inline-form--danger {
  margin-top: 0;
}

.cookie-notice {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25);
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice__text {
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice__text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-notice__button {
  min-width: 140px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .cart-auth-banner,
  .cart-heading-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-search {
    width: 100%;
  }
  .cart-item--styled {
    grid-template-columns: 1fr;
  }
  .cart-item-side {
    justify-items: start;
  }
  .products-grid--cart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-notice__button {
    width: 100%;
  }
}
