:root {
  --navy: #111111;
  --navy-soft: #1a1a1a;
  --orange: #e30613;
  --orange-hover: #c10510;
  --bg: #f5f7fa;
  --white: #ffffff;
  --line: #e4eaf2;
  --text: #1c2b3d;
  --muted: #6b7c90;
  --success: #1f8a4c;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --radius: 8px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container-max: 1440px;
  --container-pad: 40px;
  --api: "http://localhost:5283/api";
}

@media (max-width: 768px) {
  :root { --container-pad: 24px; }
}

@media (max-width: 480px) {
  :root { --container-pad: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.admin-body { background: #eef2f7; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container {
  width: min(var(--container-max), calc(100% - var(--container-pad)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
}

.top-bar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  min-height: 36px;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-contact:hover { color: var(--orange); }
.top-contact-label { opacity: .8; font-weight: 500; }
.top-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.top-bar-ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  min-width: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.top-bar-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

.ticker-item::after {
  content: "•";
  margin-left: 28px;
  color: var(--orange);
  opacity: .9;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.top-links { display: none; }
.top-link-btn { display: none; }

.header-main { background: var(--white); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}

.brand-logo { height: 64px; width: auto; object-fit: contain; }

.header-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 18px;
}

.header-search button {
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}

.header-search button:hover { background: var(--orange-hover); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.action-link { font-weight: 700; color: var(--navy); }

.cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.18);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cart-btn:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 38, 63, 0.22);
  border-color: rgba(232, 119, 34, 0.35);
}
.cart-ico {
  width: 22px;
  height: 22px;
  display: block;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(232, 119, 34, 0.35);
  line-height: 1;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 52px;
}
.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-auth-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .88;
}
.nav-auth > a:hover .nav-auth-ico,
.nav-auth > .nav-logout:hover .nav-auth-ico {
  opacity: 1;
  color: var(--orange);
}
.nav-inner > a,
.nav-auth > a,
.nav-auth > .nav-logout,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-soft);
  padding: 16px 14px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  font: inherit;
}
.nav-inner > a:hover,
.nav-auth > a:hover,
.nav-auth > .nav-logout:hover,
.mega-trigger:hover,
.mega-trigger.is-open {
  color: var(--navy);
}
.nav-inner > a::after,
.nav-auth > a::after,
.nav-auth > .nav-logout::after,
.mega-trigger::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background .15s ease;
}
.nav-inner > a:hover::after,
.nav-auth > a:hover::after,
.nav-auth > .nav-logout:hover::after,
.mega-trigger:hover::after,
.mega-trigger.is-open::after {
  background: var(--orange);
}

.mega-wrap { position: relative; }
.mega-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform .15s ease;
}
.mega-trigger.is-open .mega-caret { transform: rotate(180deg); }

.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(18, 38, 63, 0.12);
  padding: 28px 0 32px;
  animation: megaIn .18s ease;
}
.mega-panel.is-open { display: block; }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-panel-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.mega-aside {
  padding: 8px 8px 8px 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.mega-aside-label {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.mega-aside h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}
.mega-aside p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding-right: 4px;
}
.mega-grid a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.mega-grid a:hover {
  background: #fff;
  border-color: var(--line);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.06);
}
.mega-grid strong {
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.3;
}
.mega-grid span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.site-main { min-height: 60vh; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.hero {
  background:
    linear-gradient(105deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.35) 100%),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1800&q=80") center/cover;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-inner { padding: 56px 0; max-width: 620px; animation: fadeUp .7s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo { height: 64px; margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero h1 span { color: var(--orange); }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}
.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 52ch;
}
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-link {
  flex-shrink: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.section-link:hover { color: var(--orange); }
.link-orange { color: var(--orange); font-weight: 700; }

.product-section {
  padding: 48px 0;
}
.product-section.is-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: .2s ease;
}
.category-card:hover {
  border-color: #f0c29a;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.category-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
}
.category-card span { color: var(--muted); font-size: .85rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 200px 1fr;
  min-height: 420px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  border-color: #d9e3f0;
  box-shadow: 0 16px 40px rgba(18, 38, 63, 0.1);
  transform: translateY(-3px);
}

.product-media {
  background:
    radial-gradient(circle at 70% 20%, rgba(232,119,34,.08), transparent 45%),
    #f4f7fb;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.product-media.is-placeholder {
  background:
    linear-gradient(145deg, #eef2f7 0%, #f8fafc 55%, #fff7f0 100%);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .4s ease;
}
.product-media img.product-logo-fallback {
  width: 62%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  padding: 0;
  opacity: .92;
  filter: saturate(1.05);
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-card:hover .product-media img.product-logo-fallback { transform: scale(1.03); }

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(18, 38, 63, 0.92);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}
.stock-badge.is-low { background: #b45309; }
.stock-badge.is-out { background: #9aa8b8; }

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
}

.product-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-template-rows: auto auto auto auto 1fr;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.product-meta .sku { color: var(--navy); }
.product-meta .cat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.product-body h3 {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--navy);
  min-height: 3.9em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body h3 a:hover { color: var(--orange); }
.product-oem,
.product-step {
  margin: 0;
  color: #6f8196;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.15em;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
.price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange);
  letter-spacing: .02em;
  line-height: 1;
}
.old-price {
  color: #9aa8b8;
  text-decoration: line-through;
  font-size: .88rem;
  margin-left: 8px;
}
.btn-sm {
  padding: 9px 12px;
  font-size: .82rem;
  white-space: nowrap;
}

.trust-strip {
  margin-top: 28px;
  padding: 8px 0 36px;
}
.trust {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}
.trust-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}
.trust-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .08em;
  color: #c9d4e3;
}
.trust-card h3,
.trust-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.25rem;
}
.trust-card p,
.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.page-head p { margin: 8px 0 0; color: var(--muted); }

.catalog {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 56px;
  align-items: start;
}

.catalog-head p strong { color: var(--navy); }

.filters, .panel, .auth-card, .profile-card, .cart-box, .checkout-box, .success-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters { padding: 18px; height: fit-content; position: sticky; top: 140px; }
.catalog-filters {
  padding: 0;
  top: 120px;
  overflow: hidden;
}
.filters h3, .panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.25rem;
}

.filter-block {
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.filter-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.filter-block-head h3 {
  margin: 0;
  font-size: .95rem;
}
.filter-clear-link {
  border: 0;
  background: none;
  color: var(--orange);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  padding: 0;
}
.filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--navy-soft);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-check:last-child { margin-bottom: 0; }
.filter-actions {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.cat-tree {
  display: grid;
  gap: 2px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.cat-tree-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--navy-soft);
  border-left: 3px solid transparent;
  font: inherit;
}
.cat-tree-item:hover {
  background: #fff;
  color: var(--navy);
}
.cat-tree-item.active {
  background: #fff;
  border-left-color: var(--orange);
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(232, 119, 34, 0.12);
}
.cat-tree-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d0dc;
  justify-self: center;
}
.cat-tree-item.active .cat-tree-marker { background: var(--orange); }
.cat-tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
}
.cat-tree-count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  background: #eef2f7;
  padding: 2px 7px;
  border-radius: 999px;
}
.cat-tree-item.active .cat-tree-count {
  background: rgba(232, 119, 34, 0.12);
  color: var(--orange);
}
.cat-tree-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

.catalog-main { min-width: 0; }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.catalog-toolbar-info {
  color: var(--muted);
  font-size: .92rem;
}
.catalog-toolbar-info strong { color: var(--navy); }
.page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy-soft);
}
.page-size-label select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}

.catalog-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}
.catalog-empty strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.catalog-empty p { color: var(--muted); margin: 0 0 14px; }

.catalog-pagination {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.pagination-meta {
  color: var(--muted);
  font-size: .9rem;
}
.pagination-meta strong { color: var(--navy); }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.page-btn:hover:not(:disabled):not(.ellipsis) {
  border-color: var(--orange);
  color: var(--orange);
}
.page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.page-btn.ellipsis {
  border: 0;
  background: transparent;
  cursor: default;
  min-width: 24px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #f0b27a;
  box-shadow: 0 0 0 3px rgba(232,119,34,.12);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 32px 0 56px;
}
.detail-media {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.detail-media img { max-height: 380px; object-fit: contain; }
.detail-info h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  background: #f2f5f9;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 700;
}
.detail-desc { color: var(--muted); line-height: 1.7; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row input {
  width: 80px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table th {
  background: #f7f9fc;
  color: var(--navy);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cart-layout, .checkout-layout, .auth-layout, .profile-layout {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.account-shell {
  width: min(var(--container-max), calc(100% - var(--container-pad)));
  margin: 20px auto 64px;
}
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.account-tabs button.active {
  background: #fff4eb;
  color: var(--navy);
}
.account-panel { min-height: 280px; }
.account-orders { display: grid; gap: 14px; }
.account-order {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fafbfd;
  overflow: hidden;
}
.account-order-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  cursor: pointer;
}
.account-order.expanded { background: #fff; box-shadow: 0 8px 24px rgba(18,38,63,.06); }
.account-order-detail {
  border-top: 1px solid var(--line);
  padding: 14px;
}
.account-order-actions { display: grid; gap: 10px; margin-top: 14px; }

.orders-panel-head {
  align-items: flex-start;
  gap: 16px;
}
.orders-panel-head h2 { margin-bottom: 4px; }
.orders-panel-head .muted { margin: 0; }
.orders-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}
.orders-stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.orders-stat:hover,
.orders-stat.active {
  border-color: rgba(227, 6, 19, .35);
  box-shadow: 0 8px 20px rgba(17, 17, 17, .06);
}
.orders-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.orders-stat.warn .orders-stat-value { color: #b86500; }
.orders-stat.ok .orders-stat-value { color: var(--success); }
.orders-stat-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.orders-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.orders-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
}
.orders-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.orders-filter-chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.orders-filter-chips button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.orders-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 28px 8px 12px;
}
.orders-empty strong { color: var(--navy); font-size: 1.05rem; }

.track-order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.track-order.is-open,
.track-order.is-attention {
  border-color: rgba(227, 6, 19, .22);
  box-shadow: 0 12px 28px rgba(17, 17, 17, .06);
}
.track-order-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 8px;
  cursor: pointer;
}
.track-order-eyebrow {
  display: block;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.track-order-id strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.track-order-id .muted { margin: 0; }
.track-order-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.track-order-total {
  color: var(--navy);
  font-size: 1.05rem;
  min-width: 88px;
  text-align: right;
}
.track-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}
.track-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
}
.track-badge.ok { background: rgba(31, 138, 76, .12); color: #146338; }
.track-badge.warn { background: rgba(184, 101, 0, .12); color: #8a4b00; }
.track-badge.danger { background: rgba(192, 57, 43, .12); color: #9b2b20; }
.track-badge.info { background: rgba(17, 17, 17, .08); color: var(--navy); }
.track-badge.soft { background: #f3f5f8; color: var(--muted); }

.track-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 18px 16px;
  cursor: pointer;
}
.track-step {
  position: relative;
  flex: 1 1 120px;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding-top: 10px;
}
.track-step::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  right: -8px;
  height: 2px;
  background: #e6ebf2;
}
.track-step:last-child::before { display: none; }
.track-step.done::before { background: rgba(227, 6, 19, .45); }
.track-step-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d7dee8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d7dee8;
}
.track-step.done .track-step-dot,
.track-step.current .track-step-dot {
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.track-step.current .track-step-dot {
  box-shadow: 0 0 0 4px rgba(227, 6, 19, .16);
}
.track-step.error .track-step-dot {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}
.track-step-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.track-step.done .track-step-label,
.track-step.current .track-step-label { color: var(--navy); }
.track-step.error .track-step-label { color: var(--danger); }
.track-step-date {
  font-size: .72rem;
  color: var(--muted);
}

.track-order-detail {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, #fcfdff 0%, #fff 40%);
}
.track-alert {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8f0;
  border: 1px solid rgba(184, 101, 0, .2);
}
.track-alert.shipping {
  background: #f4f7fb;
  border-color: var(--line);
}
.track-alert strong { display: block; color: var(--navy); margin-bottom: 4px; }
.track-alert p { margin: 0; color: var(--muted); line-height: 1.45; }
.track-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.track-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.track-detail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.track-detail-card h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.track-detail-card p { margin: 0 0 4px; line-height: 1.45; }
.track-person { font-weight: 700; color: var(--navy); }
.danger-text { color: var(--danger); }

.track-items {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.track-items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.track-items-head h4 { margin: 0; color: var(--navy); }
.track-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}
.track-item:last-of-type { border-bottom: 0; }
.track-item-info { display: grid; gap: 3px; min-width: 0; }
.track-item-info strong { color: var(--navy); }
.track-item-qty { color: var(--muted); font-weight: 700; }
.track-item-price { text-align: right; min-width: 90px; }
.track-totals {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  background: #fafbfd;
}
.track-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.track-totals .grand {
  color: var(--navy);
  font-size: 1.02rem;
  padding-top: 4px;
}

.track-timeline {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.track-timeline h4 { margin: 0 0 12px; color: var(--navy); }
.track-timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.track-timeline li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
}
.track-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c8d2de;
}
.track-timeline-dot.ok { background: var(--success); }
.track-timeline-dot.warn { background: #b86500; }
.track-timeline-dot.danger { background: var(--danger); }
.track-timeline-dot.info { background: var(--navy); }
.track-timeline strong { color: var(--navy); }
.track-timeline p { margin: 2px 0 0; }
.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.track-actions .account-return-box { flex: 1 1 100%; }

@media (max-width: 900px) {
  .orders-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .track-order-top { flex-direction: column; }
  .track-order-side { justify-content: flex-start; }
  .track-step::before { display: none; }
  .track-alert { flex-direction: column; align-items: flex-start; }
  .track-item { grid-template-columns: minmax(0, 1fr) auto; }
  .track-item-price { grid-column: 2; }
}

@media (max-width: 560px) {
  .orders-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.account-return-box {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.account-return-box textarea,
.account-return-box input,
.account-return-box select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-orders-list { display: grid; gap: 12px; }
.admin-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.admin-order-head:hover { background: #fafbfd; }
.admin-order-head-meta { text-align: right; display: grid; gap: 4px; }
.admin-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  vertical-align: middle;
}
.admin-badge.soft { background: #fff4eb; color: var(--orange); }
.admin-order-body { border-top: 1px solid var(--line); padding: 16px; }
.admin-order-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.admin-order-grid h4 { margin: 0 0 6px; color: var(--navy); }
.admin-order-grid h4 + p { margin: 0 0 12px; }
.admin-order-items { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.admin-order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: .9rem;
}
.admin-danger { color: var(--danger); }

@media (max-width: 900px) {
  .admin-order-grid,
  .account-order-top { grid-template-columns: 1fr; flex-direction: column; }
}
.account-order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.account-badge.soft {
  background: #eef2f7;
  color: var(--navy);
}
.account-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.account-entity-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fafbfd;
  text-align: left;
}
.account-entity-card.pickable {
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-entity-card.pickable:hover,
.account-entity-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,.12);
  background: #fff;
}
.account-entity-card.add-new {
  border-style: dashed;
  display: grid;
  align-content: center;
  min-height: 110px;
}
.account-entity-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.account-entity-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.account-editor {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.account-legal { margin: 0 0 14px; font-size: .86rem; line-height: 1.5; }
.billing-type-pick { margin-bottom: 14px; grid-template-columns: repeat(3, 1fr); }
.checkout-pick-grid { margin-bottom: 16px; }

.geo-select { position: relative; }
.geo-select-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.geo-select.disabled .geo-select-btn,
.geo-select-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.geo-select-panel {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  max-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.geo-select-panel input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
}
.geo-select-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 200px;
}
.geo-select-panel li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.geo-select-panel li:hover { background: #fff4eb; }

@media (max-width: 900px) {
  .account-order { flex-direction: column; }
  .billing-type-pick { grid-template-columns: 1fr; }
}

.checkout-shell {
  width: min(var(--container-max), calc(100% - var(--container-pad)));
  margin: 20px auto 64px;
}
.checkout-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}
.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f7fb;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}
.checkout-steps li span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d7e0ea;
  color: var(--navy);
  font-size: .8rem;
}
.checkout-steps li.active,
.checkout-steps li.done {
  background: #fff4eb;
  color: var(--navy);
}
.checkout-steps li.active span,
.checkout-steps li.done span {
  background: var(--orange);
  color: #fff;
}
.checkout-pro-grid,
.cart-pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: start;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}
.checkout-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.checkout-card-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}
.checkout-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}
.checkout-summary h3 { margin: 0 0 12px; color: var(--navy); }
.sticky-summary { position: sticky; top: 18px; }
.checkout-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.checkout-trust {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .86rem;
}
.checkout-trust li { margin-bottom: 6px; padding-left: 14px; position: relative; }
.checkout-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}
.cart-list-card { padding: 10px 18px 18px; }
.cart-list-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 150px 110px 44px;
  gap: 14px;
  padding: 10px 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--line);
}
.cart-list-head span:first-child { grid-column: 1 / span 2; }
.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px 150px 110px 44px;
  gap: 14px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line:hover { background: #fafbfd; }
.cart-line-media {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(232,119,34,.08), transparent 45%),
    #f4f7fb;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cart-line-media.is-placeholder {
  background: linear-gradient(145deg, #eef2f7 0%, #f8fafc 55%, #fff7f0 100%);
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.cart-line-media img.product-logo-fallback {
  width: 58%;
  height: auto;
  max-height: 70%;
  padding: 0;
  opacity: .9;
}
.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-line-info strong {
  font-size: .98rem;
  line-height: 1.35;
  color: var(--navy);
}
.cart-line-info strong a:hover { color: var(--orange); }
.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cart-sku {
  color: var(--muted);
  font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cart-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4eb;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.cart-line-mobile-price { display: none; }
.cart-col-label { display: none; }
.cart-line-unit,
.cart-line-total {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.cart-line-total strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qty-stepper input {
  width: 54px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  padding: 8px 4px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-btn {
  width: 36px;
  border: 0;
  background: #f4f7fb;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.qty-btn:hover {
  background: var(--orange);
  color: #fff;
}
.cart-line-remove {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cart-line-remove svg {
  width: 18px;
  height: 18px;
  display: block;
}
.cart-line-remove:hover {
  border-color: #f0c7c2;
  color: var(--danger);
  background: #fff5f4;
}
.cart-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #fff4eb, #f4f7fb);
  border: 1px solid var(--line);
  position: relative;
}
.cart-empty-icon::before {
  content: "";
  position: absolute;
  inset: 22px 18px 18px;
  border: 2.5px solid var(--navy);
  border-radius: 4px 4px 8px 8px;
  opacity: .55;
}
.cart-empty-icon::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 28px;
  height: 14px;
  margin-left: -14px;
  border: 2.5px solid var(--orange);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  opacity: .85;
}
.cart-free-ship {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f7fb;
}
.cart-free-ship.is-ready {
  background: #edf8f1;
  color: var(--success);
  font-weight: 700;
}
.cart-free-ship p { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }
.cart-free-ship.is-ready p { margin: 0; color: inherit; }
.cart-free-ship-bar {
  height: 6px;
  border-radius: 999px;
  background: #d7e0ea;
  overflow: hidden;
}
.cart-free-ship-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #f0a35a);
}
.cart-summary-note {
  font-size: .84rem;
  margin: 10px 0 0;
}
.cart-checkout-btn { margin-top: 16px; }
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.pay-method.active {
  border-color: var(--orange);
  background: #fff8f2;
}
.card-form,
.transfer-box {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 14px;
}
.transfer-box ul { margin: 10px 0 0; padding-left: 18px; }
.transfer-account + .transfer-account {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.os-bank-block + .os-bank-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.checkout-test-hint {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.checkout-test-hint code {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.review-grid h4 { margin: 0 0 8px; color: var(--navy); }
.review-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.mini-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 8px;
  color: var(--muted);
}
.success-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #12263f, #1d3554);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}
.success-banner h2 { margin: 4px 0 8px; }
.success-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.success-total strong {
  font-family: var(--font-display);
  font-size: 2rem;
}
.success-details .checkout-card h3 { margin-top: 0; }

.order-success { margin-top: 12px; }
.os-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, .9fr);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(232,119,34,.18), transparent 42%),
    linear-gradient(135deg, #12263f 0%, #1d3554 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(18, 38, 63, .18);
}
.os-hero-check {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #8dffb3;
  animation: os-pop .45s ease both;
}
.os-hero-check svg { width: 34px; height: 34px; }
.os-hero-copy h1 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.os-hero-lead {
  margin: 0 0 14px;
  color: rgba(255,255,255,.78);
  max-width: 42rem;
  line-height: 1.55;
}
.os-hero-lead a { color: #ffc28a; text-decoration: underline; }
.os-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.os-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  background: rgba(255,255,255,.12);
}
.os-chip.ok { background: rgba(31,138,76,.28); color: #b7f0cb; }
.os-chip.warn { background: rgba(232,119,34,.28); color: #ffd4ac; }
.os-chip.danger { background: rgba(192,57,43,.3); color: #ffc4bc; }
.os-chip.soft { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.os-hero-side {
  display: grid;
  gap: 10px;
}
.os-orderno,
.os-total-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px;
}
.os-orderno span,
.os-total-box span {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.os-orderno strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .04em;
  color: #ffb16a;
  margin-bottom: 10px;
}
.os-copy {
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
  padding: 7px 12px;
  font-size: .85rem;
}
.os-total-box strong {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .02em;
}
.os-transfer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff8f2;
  border: 1px solid #f0d2b8;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.os-transfer h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.15rem;
}
.os-transfer p { margin: 0 0 12px; color: var(--muted); }
.os-iban-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.os-iban-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.os-iban-list span { color: var(--muted); font-size: .84rem; }
.os-iban { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.os-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
}
.os-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
  margin-bottom: 12px;
}
.os-card h2,
.os-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
}
.os-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.os-card-head h2 { margin: 0; }
.os-person { margin: 0 0 4px; font-weight: 700; color: var(--navy); }
.os-card p { margin: 0 0 4px; line-height: 1.5; }
.os-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.os-item:last-of-type { border-bottom: 0; }
.os-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.os-item-info strong { color: var(--navy); line-height: 1.35; }
.os-item-qty {
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}
.os-item-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.os-item-price strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}
.os-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.os-actions { display: grid; gap: 8px; margin-top: 4px; }

@keyframes os-pop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .os-actions, .os-copy, .page-head { display: none !important; }
  .os-hero { box-shadow: none; }
  .checkout-shell { width: 100%; margin: 0; }
}

@media (max-width: 900px) {
  .os-hero { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .os-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info qty" "info price"; }
  .os-item-info { grid-area: info; }
  .os-item-qty { grid-area: qty; text-align: right; }
  .os-item-price { grid-area: price; }
}

@media (max-width: 900px) {
  .checkout-pro-grid,
  .cart-pro-grid,
  .pay-methods,
  .review-grid,
  .checkout-steps { grid-template-columns: 1fr; }
  .cart-list-head { display: none; }
  .cart-line {
    grid-template-columns: 84px minmax(0, 1fr) 44px;
    grid-template-areas:
      "media info remove"
      "media qty remove"
      "media total remove";
    gap: 10px 12px;
    padding: 14px 4px;
  }
  .cart-line-media { width: 84px; height: 84px; grid-area: media; align-self: start; }
  .cart-line-info { grid-area: info; }
  .cart-line-unit { display: none; }
  .cart-line-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; }
  .cart-line-remove { grid-area: remove; align-self: start; }
  .cart-col-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .cart-line-mobile-price {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .85rem;
  }
  .cart-line-mobile-price strong { color: var(--navy); }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.auth-layout { max-width: 460px; }
.auth-card, .profile-card, .cart-box, .checkout-box, .success-box { padding: 28px; }
.auth-card h1, .success-box h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 2rem;
}

.auth-shell {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 48px;
}
.auth-shell-wide { width: min(1080px, calc(100% - 32px)); }
.auth-shell-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.auth-brand-panel {
  background:
    linear-gradient(160deg, rgba(227, 6, 19, .92), rgba(17, 17, 17, .96)),
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 55%);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
}
.auth-brand-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.auth-brand-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.auth-brand-panel p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.6;
  max-width: 34ch;
}
.auth-brand-points {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.auth-brand-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: .95rem;
}
.auth-brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.auth-card-elevated {
  border: 0;
  border-radius: 0;
  padding: 36px 32px;
  box-shadow: none;
}
.auth-card-head { margin-bottom: 22px; }
.auth-eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-card-elevated h1 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
}
.auth-submit { margin-top: 8px; min-height: 48px; font-weight: 800; }
.auth-footer-link {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
}
.password-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.password-field input {
  border: 0 !important;
  border-radius: 0 !important;
  flex: 1;
  margin: 0;
}
.password-toggle {
  border: 0;
  background: #f7f8fa;
  color: var(--navy);
  font-weight: 700;
  font-size: .82rem;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  border-left: 1px solid var(--line);
}
.password-toggle:hover { background: #eef1f5; }
.password-meter { margin-top: 10px; }
.password-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}
.password-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width .2s ease, background .2s ease;
}
.password-meter-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: .85rem;
}
.password-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.password-rules li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: .8rem;
}
.password-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5ccd6;
}
.password-rules li.is-ok { color: #1f8a4c; font-weight: 600; }
.password-rules li.is-ok::before { background: #1f8a4c; }
.field-hint {
  margin: 8px 0 0;
  font-size: .85rem;
  font-weight: 600;
}
.field-hint.ok { color: #1f8a4c; }
.field-hint.bad { color: var(--danger); }

@media (max-width: 860px) {
  .auth-shell-inner { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 28px 24px; }
  .auth-card-elevated { padding: 28px 22px; }
  .password-rules { grid-template-columns: 1fr; }
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.order-list { display: grid; gap: 10px; }
.order-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.order-item strong { color: var(--orange); }

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}
.footer-logo { height: 56px; margin-bottom: 12px; object-fit: contain; }
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer-grid a, .footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 14, 18, .48);
  backdrop-filter: blur(3px);
}
.consent-modal {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  padding: 28px 28px 24px;
  animation: consent-in .35s ease;
}
.consent-brand {
  margin-bottom: 12px;
}
.consent-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.consent-modal h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
}
.consent-modal p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}
.consent-modal a {
  color: var(--orange);
  text-decoration: underline;
}
.consent-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.consent-list li { margin-bottom: 6px; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-page { padding-top: 28px; padding-bottom: 48px; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.legal-nav {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
}
.legal-nav h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal-nav a {
  display: block;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.legal-nav a:hover,
.legal-nav a.is-active {
  background: rgba(227, 6, 19, .08);
  color: var(--navy);
}
.legal-content h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}
.legal-kicker {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.legal-summary {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.legal-body p {
  margin: 0 0 16px;
  color: #2b3038;
  line-height: 1.7;
  white-space: pre-line;
}
.legal-updated {
  margin-top: 28px;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .consent-overlay { align-items: center; }
}

.loading, .error, .empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.error { color: var(--danger); }
.muted { color: var(--muted); }
.link-danger {
  background: none;
  border: 0;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy);
  color: #fff;
  padding: 24px 16px;
}
.admin-sidebar .brand-logo {
  height: 44px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
}
.admin-nav { display: grid; gap: 6px; }
.admin-nav a {
  color: rgba(255,255,255,.85);
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.admin-nav a.active, .admin-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-content { padding: 24px; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-top h1 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 2rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: .02em;
}
.panel { padding: 16px; margin-bottom: 16px; overflow: auto; }
.status-select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sales-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
  gap: 4px;
  align-items: end;
  height: 160px;
  margin-top: 12px;
}
.sales-bar {
  background: linear-gradient(180deg, var(--orange), #f3b27a);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.mega-wrap { position: relative; }
.mega-trigger { cursor: pointer; }
.mega-menu {
  display: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  padding: 24px 0 12px;
  align-items: stretch;
}

.home-cats {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}

.home-cats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}

.home-cats-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.35rem;
}

.home-cats-head span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.home-cats-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}

.home-cats-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  border-left: 3px solid transparent;
  transition: .15s ease;
}

.home-cats-list a:hover {
  background: #f7f9fc;
  border-left-color: var(--orange);
}

.home-cats-list .cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cats-list .cat-count {
  flex-shrink: 0;
  min-width: 34px;
  text-align: center;
  background: #eef3f9;
  color: var(--muted);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 7px;
}

.home-cats .all-link {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  font-weight: 800;
  text-align: center;
  background: #fffaf6;
}

.home-cats .all-link:hover { background: #fff3e8; }

.home-slider {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f1a2a;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.1);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  animation: fadeUp .45s ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 38%, rgba(18,38,63,.18) 100%);
}

.slide-content {
  position: relative;
  padding: 40px 48px;
  max-width: 560px;
  z-index: 1;
}

.slide-logo { height: 56px; margin-bottom: 14px; }

.slide-eyebrow {
  margin: 0 0 8px !important;
  color: var(--orange) !important;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.slide-content h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: .94;
}

.slide-content p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; max-width: 38ch; }

.slider-nav {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slider-dots {
  position: static;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(18,38,63,.22);
  cursor: pointer;
  padding: 0;
  transition: .2s ease;
}

.slider-dots button.active {
  background: var(--orange);
  width: 28px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(18,38,63,.12);
}

.slider-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.carousel-wrap {
  position: relative;
  display: block;
  padding: 0 0px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}
.carousel-item {
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
}
.carousel-btn {
  position: absolute;
  top: 95px; /* image area center (190px / 2) */
  transform: translateY(-50%);
  z-index: 3;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.06);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.carousel-btn:hover {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.cta-section { padding: 20px 0 56px; }
.cta-band {
  background:
    linear-gradient(120deg, #ffffff 0%, #f7f9fc 55%, #fff7f0 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.05);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.cta-band p { margin: 0; color: var(--muted); max-width: 48ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.seo-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 48px;
}
.seo-content h2, .seo-content h3 {
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.seo-content ul { padding-left: 18px; color: var(--muted); }
.seo-content .oem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.seo-content .oem-list span {
  background: #f2f5f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
}
.compat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
}
.compat-table th, .compat-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  font-size: .9rem;
}
.compat-table th { background: #f7f9fc; }
.search-tags { color: var(--muted); line-height: 1.7; }
.about-content, .contact-grid { max-width: none; }
.about-content h2 { color: var(--navy); }
.about-content p, .about-content li { color: var(--muted); line-height: 1.7; }

.about-hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(232, 119, 34, 0.12), transparent 55%),
    linear-gradient(135deg, #0f1c2e 0%, #1a314d 55%, #243f61 100%);
  color: #fff;
  padding: 56px 0 48px;
  overflow: hidden;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.about-kicker {
  margin: 0 0 10px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.62);
}
.about-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.about-lead {
  margin: 0 0 24px;
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 46ch;
}
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.about-hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.about-hero .btn-outline:hover {
  background: rgba(255,255,255,.08);
}
.about-hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 50px rgba(0,0,0,.28);
  min-height: 280px;
  background: #132337;
}
.about-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.about-section { padding: 48px 0; }
.about-story {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 28px;
  align-items: start;
}
.about-story-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.about-story-main h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.8rem;
}
.about-story-main p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}
.about-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.about-side h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.about-side-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-side-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.about-side-list span {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.about-side-list a,
.about-side-list strong {
  color: var(--navy);
  font-weight: 700;
}

.about-pillars-wrap {
  padding: 12px 0 48px;
}
.about-section-head {
  margin-bottom: 20px;
}
.about-section-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.8rem;
}
.about-section-head p { margin: 0; color: var(--muted); }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about-pillar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), #f3b27a);
}
.about-pillar-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(18, 38, 63, .25);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.about-pillar h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
}
.about-pillar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-mission {
  background: var(--navy);
  color: #fff;
  padding: 42px 0;
}
.about-mission .about-kicker { color: rgba(255,255,255,.55); }
.about-mission h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.about-cta {
  padding: 36px 0 56px;
}
.about-cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.about-cta h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.about-cta p { margin: 0; color: var(--muted); }
.about-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-hero {
  background: linear-gradient(135deg, #12263f 0%, #1d3554 55%, #243b55 100%);
  color: #fff;
  padding: 42px 0 36px;
}
.contact-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-hero .section-eyebrow { color: rgba(255,255,255,.7); }
.contact-hero h1 {
  margin: 6px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.contact-hero-lead {
  margin: 0;
  max-width: 42rem;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
}
.contact-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-cta:hover { transform: translateY(-1px); }
.contact-cta-call {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(232, 119, 34, 0.28);
}
.contact-cta-call:hover {
  background: var(--orange-hover);
  color: #fff;
}
.contact-cta-whatsapp {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(6px);
}
.contact-cta-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.contact-section { padding-top: 28px; }
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.04);
}
.contact-info-ico {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff4eb;
  color: var(--orange);
  margin-bottom: 10px;
}
.contact-info-ico svg { width: 18px; height: 18px; }
.contact-info-card h3 {
  margin: 0 0 6px;
  font-size: .95rem;
  color: var(--navy);
}
.contact-info-card a,
.contact-info-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.contact-info-card a:hover { color: var(--orange); }

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 18px;
  align-items: start;
}
.contact-map-panel,
.contact-form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(18, 38, 63, 0.05);
}
.contact-map-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.contact-map-head h2,
.contact-form-panel h2 {
  margin: 4px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy);
}
.contact-map-head p { margin: 0; color: var(--muted); }
.contact-map {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eef5;
}
.contact-map-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.contact-form-panel .field { margin-top: 12px; }
.contact-form-panel .btn { margin-top: 14px; }

.as-map-marker {
  background: transparent;
  border: 0;
}
.as-map-marker-pin {
  display: block;
  width: 22px;
  height: 22px;
  margin: 4px auto 0;
  background: var(--orange);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.28);
}
.as-map-marker-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.map-popup { font-family: Manrope, sans-serif; min-width: 180px; }
.map-popup-title {
  display: block;
  margin-bottom: 8px;
  color: #12263f;
  font-size: 1rem;
}
.map-popup p { margin: 0 0 8px; color: #4b5c72; font-size: .86rem; line-height: 1.45; }
.map-popup a { color: #e87722; font-weight: 700; }
.map-popup-cta { margin-top: 10px !important; }
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(18, 38, 63, 0.18);
}
.admin-contact-map {
  width: 100%;
  height: 340px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

@media (max-width: 980px) {
  .contact-info-grid,
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .contact-map { height: 320px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
.breadcrumb-wrap {
  position: relative;
  background: linear-gradient(90deg, #f7f9fc 0%, #eef3f8 55%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, #f0a05a 100%);
}
.breadcrumb-bar {
  padding: 14px 0;
}
.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-soft);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.breadcrumb a:hover {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 4px 14px rgba(18, 38, 63, 0.07);
  transform: translateY(-1px);
}
.breadcrumb .bc-home svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .9;
}
.breadcrumb .bc-sep {
  display: inline-flex;
  color: #b0bbc9;
  line-height: 0;
  margin: 0 1px;
}
.breadcrumb .bc-sep svg {
  width: 12px;
  height: 12px;
}
.breadcrumb .bc-current {
  display: inline-flex;
  align-items: center;
  max-width: min(420px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(232, 119, 34, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(18, 38, 63, 0.05);
}
.breadcrumb li.is-current {
  min-width: 0;
}

@media (max-width: 1024px) {
  .category-grid, .product-grid, .stats, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog, .detail, .profile-grid, .admin-shell, .footer-grid, .trust-grid,
  .home-hero-grid, .contact-grid, .about-hero-inner, .about-story {
    grid-template-columns: 1fr;
  }
  .mega-panel-inner { grid-template-columns: 1fr; }
  .mega-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
  }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-pillars { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .home-cats { min-height: 280px; max-height: 320px; }
  .home-slider { min-height: 380px; }
  .catalog-filters { position: static; }
  .filters { position: static; }
  .admin-sidebar { padding: 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .product-footer { flex-direction: column; align-items: stretch; }
  .btn-sm { width: 100%; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 10px 12px;
    padding: 10px 0 12px;
  }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .header-search {
    display: flex;
    grid-area: search;
    width: 100%;
  }
  .header-search input { padding: 11px 14px; font-size: 16px; }
  .brand-logo { height: 48px; }
  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
  }
  .cart-btn { min-width: 42px; min-height: 42px; }
  .main-nav .nav-inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 2px;
  }
  .main-nav.is-open .nav-inner { display: flex; }
  .main-nav .nav-inner > a,
  .mega-trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 4px;
    min-height: 44px;
  }
  .nav-auth {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 6px;
  }
  .nav-auth-link,
  .nav-logout {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
  }
  .mega-panel {
    position: static;
    display: none;
    box-shadow: none;
    padding: 12px 0 18px;
    background: #f7f9fc;
  }
  .mega-panel.is-open { display: block; }
  .mega-panel-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mega-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }
  .mega-grid { grid-template-columns: 1fr 1fr; max-height: none; }
  .about-hero-inner,
  .about-story,
  .about-pillars,
  .about-cta-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .about-side { position: static; }
  .top-bar-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .top-bar-contacts {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
  }
  .top-contact-label { display: none; }
  .top-bar-ticker { order: 3; width: 100%; }
  .product-grid,
  .category-grid,
  .stats,
  .form-grid,
  .account-cards-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .home-slider { min-height: 300px; }
  .home-hero-grid,
  .home-split { grid-template-columns: 1fr; }
  .home-cats { display: none; }
  .slide-content {
    padding: 24px 18px;
  }
  .slide-content h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .slide-content p { font-size: .95rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 28px 0;
  }
  .account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .account-tabs button {
    width: 100%;
    text-align: center;
    padding: 11px 8px;
    font-size: .82rem;
  }
  .orders-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orders-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .orders-filter-chips button { flex: 0 0 auto; }
  .track-order-top { flex-direction: column; align-items: flex-start; }
  .track-order-side { justify-content: flex-start; width: 100%; }
  .track-progress { gap: 10px; }
  .track-step { flex: 1 1 calc(50% - 10px); }
  .track-detail-grid { grid-template-columns: 1fr; }
  .checkout-shell,
  .checkout-layout,
  .cart-layout,
  .auth-layout,
  .auth-split {
    width: min(100%, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
  }
  .auth-split,
  .auth-grid,
  .checkout-grid,
  .review-grid { grid-template-columns: 1fr !important; }
  .checkout-nav,
  .track-actions,
  .consent-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .checkout-nav .btn,
  .track-actions .btn,
  .consent-actions .btn { width: 100%; }
  .consent-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .consent-modal {
    width: 100%;
    border-radius: 16px 16px 12px 12px;
    padding: 20px 16px 16px;
  }
  .page-head h1,
  .legal-content h1 { font-size: 1.55rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .os-hero,
  .os-grid { grid-template-columns: 1fr; }
  .os-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .breadcrumb .bc-current { max-width: min(240px, 55vw); }
  .catalog-toolbar,
  .filters-head { flex-wrap: wrap; }
  .product-card .product-footer .btn { width: 100%; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid,
  .category-grid,
  .mega-grid { grid-template-columns: 1fr; }
  .orders-summary { grid-template-columns: 1fr 1fr; }
  .account-tabs { grid-template-columns: 1fr; }
  .home-slider,
  .slider-frame,
  .slide { min-height: 260px; }
  .btn, .btn-primary, .btn-ghost, .btn-outline {
    min-height: 44px;
  }
  .form-grid .field input,
  .form-grid .field select,
  .form-grid .field textarea,
  .geo-select-btn {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .top-bar { font-size: .75rem; }
  .brand-logo { height: 42px; }
  .section { padding: 28px 0; }
  .page-head { padding: 20px 0 8px; }
}
