:root {
  --bg: #0a0d14;
  --bg-soft: #0f1420;
  --surface: rgba(17, 23, 35, 0.9);
  --surface-2: rgba(12, 17, 27, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #9aa6bc;
  --primary: #7bff00;
  --primary-soft: rgba(123, 255, 0, 0.12);
  --accent: #00d1ff;
  --accent-2: #6f63ff;
  --danger: #ff3b5c;
  --warning: #ffb020;
  --success: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1480px;
  --header-container: 1480px;
  --base-font-size: 14.5px;
  --promo-total-h: 52px;
  --header-h: 74px;
  --promo-offset: 0px;
  --header-offset: 0px;
  --theme-switch-dur: 0.3s;
  --theme-switch-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-wave-x: 50vw;
  --theme-wave-y: 80px;
}

body.light-theme {
  --bg: #edf1f7;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(10, 20, 40, 0.08);
  --text: #101828;
  --muted: #667085;
  --primary: #3cbf2f;
  --primary-soft: rgba(60, 191, 47, 0.12);
  --accent: #0ea5e9;
  --accent-2: #6d5efc;
  --danger: #e11d48;
  --warning: #f59e0b;
  --success: #16a34a;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  padding-top: calc(var(--promo-total-h) + var(--header-h));
  font-family: "Inter", sans-serif;
  font-size: var(--base-font-size);
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 209, 255, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(123, 255, 0, 0.14),
      transparent 22%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  transition:
    background-duration var(--theme-switch-dur) var(--theme-switch-ease),
    color 0.28s ease;
}

html:has(body.catalog-lock) {
  overflow: hidden !important;
}

body.catalog-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
body.catalog-lock .catalog-mega,
body.catalog-lock .catalog-backdrop {
  touch-action: auto;
}

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
  padding: 0;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1005;
  background: rgba(10, 14, 22, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(20px);
  transform: translateY(var(--promo-offset));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 0.3s ease;
}

body.light-theme .promo-bar {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.08);
}

.promo-sale {
  display: flex;
  min-height: 0;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #c7ef1f, #d9ff33, #b8e61a);
  color: #193100;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.promo-sale:empty {
  display: none;
}

.promo-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.promo-left,
.promo-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
}

.lang-switch .lang {
  opacity: 0.5;
  font-weight: 700;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-switch .lang.active {
  opacity: 1;
  color: var(--primary);
}

.location-dropdown {
  position: relative;
}

.location-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .location-toggle {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.location-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}

.location-city {
  font-weight: 700;
  white-space: nowrap;
}

.location-address {
  display: block;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.location-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(15, 20, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

body.light-theme .location-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

.location-dropdown.open .location-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.location-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-option:hover,
.location-option.active {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

.option-city {
  font-weight: 700;
  font-size: 15px;
}

.option-address {
  color: var(--muted);
  font-size: 13px;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  transition: all 0.2s ease;
}

.top-socials a:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.top-account-link,
.top-hours {
  font-size: 13px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.top-account-link i {
  font-size: 15px;
}

.top-account-link.is-active {
  color: var(--primary);
}

.top-hours {
  opacity: 0.7;
}

.header {
  position: fixed;
  top: var(--promo-total-h);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 10, 18, 0.9);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(20px);
  transform: translateY(var(--header-offset));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 0.3s ease;
}

body.light-theme .header {
  background: rgba(255, 255, 255, 0.92);
}

.header-row {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto repeat(2, max-content) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 50px;
  min-width: 0;
  flex-shrink: 0;
}

.logo img {
  max-height: 50px;
  width: auto;
  max-width: 180px;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.logo-light {
  display: none !important;
}

body.light-theme .logo-dark {
  display: none !important;
}

body.light-theme .logo-light {
  display: block !important;
}

.catalog-btn,
.config-btn,
.consult-btn,
.primary-btn,
.ghost-btn,
.buy-btn,
.section-link,
.tab-btn,
.slider-arrow,
.circle-btn,
.icon-btn,
.mobile-menu-btn,
.outline-btn,
.danger-btn {
  border: 0;
  cursor: pointer;
  transition: 0.28s ease;
}

.catalog-btn,
.config-btn,
.consult-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.28s ease;
  overflow: hidden;
}

.catalog-btn .small-icon {
  margin-left: -2px;
  transition: all 0.2s ease;
}


.catalog-btn {
  background: linear-gradient(135deg, #2f55e7, #2558c9);
  color: white;
  min-height: 50px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(37, 88, 201, 0.2);
  z-index: 1002;
}

.catalog-menu-wrap {
  position: relative;
  width: fit-content;
}

.catalog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.catalog-mega {
  position: fixed;
  left: 50%;
  top: calc(var(--promo-total-h) + var(--header-h));
  transform: translateX(-50%) translateY(0);
  width: min(var(--container), 88vw);
  max-height: calc(95vh - (var(--promo-total-h) + var(--header-h) + 38px));
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
  z-index: 1001;
  overflow: hidden;
  visibility: visible;
  overscroll-behavior: contain;
}

body.light-theme .catalog-mega {
  background: rgba(255, 255, 255, 0.985);
  color: #111827;
  border-color: rgba(16, 24, 40, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.15);
}

.catalog-menu-wrap.open .catalog-mega {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.catalog-lock .catalog-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.catalog-lock main,
body.catalog-lock .footer {
  filter: blur(15px) brightness(0.8);
  pointer-events: none;
  transition: filter 0.35s ease;
}

.catalog-menu-wrap.open .catalog-mega {
  transform: translateX(-50%) translateY(0);
}

.catalog-sidebar {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 4px 8px 4px 0;
  overflow: auto;
  min-width: 0;
}

.catalog-nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #111827;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 500;
}

.catalog-nav-item + .catalog-nav-item {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  padding-top: 11px;
}

.catalog-nav-item.active {
  background: #050608;
  color: white;
  border-color: #050608;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.catalog-nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.04);
  font-size: 13px;
}

.catalog-nav-item.active .catalog-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.catalog-content {
  overflow: auto;
  min-width: 0;
  padding: 10px 10px 10px 24px;
  border-left: 1px solid rgba(16, 24, 40, 0.06);
}

.catalog-columns {
  display: grid;
  gap: 26px;
}

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

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

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

.catalog-column {
  min-width: 0;
}

.catalog-column h4 {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #111827;
}

.catalog-column h4 i {
  color: #1f2937;
  font-size: 14px;
}

.catalog-links {
  display: grid;
  gap: 10px;
}

.catalog-links a {
  color: #505a6d;
  font-size: 15px;
  line-height: 1.35;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.catalog-links a:hover {
  color: #111827;
  transform: translateX(3px);
}

.catalog-sidebar::-webkit-scrollbar,
.catalog-content::-webkit-scrollbar {
  width: 5px;
  display: block;
}

.catalog-sidebar::-webkit-scrollbar-thumb,
.catalog-content::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.2);
  border-radius: 99px;
}

.catalog-sidebar::-webkit-scrollbar-track,
.catalog-content::-webkit-scrollbar-track {
  background: transparent;
}

.config-btn {
  position: relative;
  width: fit-content;
  isolation: isolate;
  min-height: 50px;
  padding: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(10, 16, 26, 0.98), rgba(6, 12, 20, 0.98))
      padding-box,
    conic-gradient(
        from var(--cfg-angle),
        #26b4ff,
        #7cf7ff,
        #f7df4f,
        #7bff00,
        #26b4ff
      )
      border-box;
  animation: cfgBorderSpin 4s linear infinite;
  color: #f5f7fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(124, 247, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.2);
}

.config-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  width: 100%;
  height: 100%;
  color: inherit;
  background: transparent;
}

body.light-theme .config-btn {
  background:
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(247, 249, 252, 0.98)
      )
      padding-box,
    conic-gradient(
        from var(--cfg-angle),
        #26b4ff,
        #7cf7ff,
        #f7df4f,
        #7bff00,
        #26b4ff
      )
      border-box;
  color: #101828;
}

.consult-btn {
  position: relative;
  background: linear-gradient(135deg, #ff3057, #ff4c67);
  color: white;
  padding-inline: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 26px rgba(255, 47, 88, 0.2);
}

.consult-btn::after {
  content: none;
}

.consult-wrap {
  position: relative;
}

.consult-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 45;
}

body:not(.light-theme) .consult-panel {
  background: rgba(12, 16, 24, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}

.consult-wrap.open .consult-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #2b2f38;
  background: rgba(17, 24, 39, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.06);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

body:not(.light-theme) .consult-item {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.consult-item:hover {
  transform: translateY(-1px);
  background: rgba(41, 98, 255, 0.08);
  border-color: rgba(41, 98, 255, 0.18);
}

.consult-item-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e11d48, #ff4f79);
  color: #fff;
  font-size: 18px;
}

.consult-item-telegram .consult-item-icon {
  background: linear-gradient(135deg, #3ea5ee, #69c2ff);
}

.consult-item-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.consult-wrap.open .consult-btn::after {
  transform: none;
}

.small-icon {
  font-size: 12px;
}

.search-box {
  height: 50px;
  min-height: 50px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 8px 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body.light-theme .search-box {
  background: rgba(16, 24, 40, 0.04);
  border-color: rgba(16, 24, 40, 0.08);
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
}

.search-box input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.icon-btn,
.circle-btn,
.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
}

.voice-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.voice-btn.listening {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
  box-shadow: 0 0 12px var(--danger);
  animation: voice-pulse 1.4s infinite ease-in-out;
}

@keyframes voice-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.search-btn {
  color: rgba(255, 255, 255, 0.92);
}

body.light-theme .search-btn {
  color: #111827;
}

.icon-btn:hover,
.circle-btn:hover,
.mobile-menu-btn:hover,
.slider-arrow:hover,
.outline-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
}

.mobile-panel {
  display: none;
  padding-bottom: 16px;
  overflow: hidden;
}

.mobile-panel.active {
  display: block;
  animation: mobileSlideDown 0.28s ease forwards;
}

@keyframes mobileSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.theme-toggle {
  width: 68px !important;
  height: 36px !important;
  border-radius: 36px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer;
}

.theme-track {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 36px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

body.light-theme .theme-track {
  background: #eef2f6 !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

.theme-moon,
.theme-sun {
  position: relative !important;
  z-index: 5 !important;
  font-size: 14px !important;
  width: 14px !important;
  height: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.3s ease !important;
}

.theme-moon {
  color: #ffffff !important;
}
.theme-sun {
  color: #64748b !important;
}

body.light-theme .theme-moon {
  color: #94a3b8 !important;
}
body.light-theme .theme-sun {
  color: #ffffff !important;
}

.theme-thumb {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1d8cff, #624bff) !important;
  box-shadow: 0 4px 12px rgba(29, 140, 255, 0.3) !important;
  z-index: 2 !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease !important;
}

body.light-theme .theme-thumb {
  transform: translateX(32px) !important;
  background: linear-gradient(135deg, #ffb300, #ff8a00) !important;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3) !important;
}

.theme-wave-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 44;
  isolation: isolate;
}

.theme-wave-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  left: var(--wave-x, 50%);
  top: var(--wave-y, 50%);
  transform: translate(-50%, -50%) scale(0.18);
  opacity: 0;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.38),
      rgba(255, 255, 255, 0) 30%
    ),
    radial-gradient(
      circle,
      var(--wave-core, rgba(0, 209, 255, 0.18)) 0%,
      var(--wave-mid, rgba(0, 209, 255, 0.12)) 46%,
      rgba(0, 0, 0, 0) 74%
    );
  filter: blur(0.15px);
  animation: themeWaveExpand 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.theme-wave-ripple::before,
.theme-wave-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.theme-wave-ripple::before {
  border: 1.5px solid var(--wave-ring, rgba(255, 255, 255, 0.35));
  opacity: 0.55;
  animation: themeWaveRing 0.5s ease-out forwards;
}

.theme-wave-ripple::after {
  inset: -12%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0) 66%
  );
  filter: blur(4px);
  opacity: 0.7;
}

@keyframes themeWaveExpand {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.16);
  }

  12% {
    opacity: 0.96;
  }

  58% {
    opacity: 0.42;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(36);
  }
}

@keyframes themeWaveRing {
  0% {
    transform: scale(0.78);
    opacity: 0.75;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

html.theme-animating body,
html.theme-animating .promo-bar,
html.theme-animating .header,
html.theme-animating .card-surface,
html.theme-animating .search-box,
html.theme-animating .catalog-btn,
html.theme-animating .config-btn,
html.theme-animating .consult-btn,
html.theme-animating .location-toggle,
html.theme-animating .location-menu,
html.theme-animating .top-socials a,
html.theme-animating .icon-btn,
html.theme-animating .circle-btn,
html.theme-animating .voice-btn,
html.theme-animating .theme-track,
html.theme-animating .theme-thumb,
html.theme-animating .consult-panel,
html.theme-animating .consult-item,
html.theme-animating .catalog-mega,
html.theme-animating .catalog-nav-item,
html.theme-animating .showroom-pill,
html.theme-animating .category-card,
html.theme-animating .product-card,
html.theme-animating .side-card,
html.theme-animating .advantage-badge,
html.theme-animating .info-story,
html.theme-animating .story-image,
html.theme-animating .showroom-image {
  transition:
    background var(--theme-switch-dur) var(--theme-switch-ease),
    background-color var(--theme-switch-dur) var(--theme-switch-ease),
    color var(--theme-switch-dur) var(--theme-switch-ease),
    border-color var(--theme-switch-dur) var(--theme-switch-ease),
    box-shadow var(--theme-switch-dur) var(--theme-switch-ease);
}

.ai-consultant-float {
  position: fixed;
  right: 0;
  top: calc(var(--promo-total-h) + var(--header-h) + 84px);
  transform: none;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 12px 9px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #225dff, #2ec5ff);
  color: white;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 40px rgba(34, 93, 255, 0.3);
}

.ai-consultant-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ai-consultant-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ai-consultant-label {
  font-size: 13px;
}

@property --cfg-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes cfgBorderSpin {
  from {
    --cfg-angle: 0deg;
  }

  to {
    --cfg-angle: 360deg;
  }
}

@keyframes configSheen {
  0%,
  100% {
    background-position: 140% 0;
    opacity: 0.45;
  }

  45% {
    background-position: -40% 0;
    opacity: 0.95;
  }
}

section {
  margin-top: -5px;
  margin-bottom: -40px;
  padding: 36px 0;
}

.page-hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 36px 0 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.slide-content h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin-bottom: 14px;
}

.slide-content p {
  font-size: clamp(16px, 1.6vw, 22px);
}

h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.section-link,
.ghost-btn,
.outline-btn {
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
}

.primary-btn,
.buy-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #34d399);
  color: #07110c;
  font-weight: 800;
  font-size: 0.94em;
}

.danger-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff375f, #ff6b6b);
  color: #fff;
  font-weight: 800;
  font-size: 0.94em;
}

.primary-btn:hover,
.buy-btn:hover,
.catalog-btn:hover,
.config-btn:hover,
.consult-btn:hover,
.tab-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.danger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #041209;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #041209;
  border-radius: 50%;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  min-height: auto;
  border-radius: 999px;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  margin: 14px 0 6px;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  transition: transform 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #34d399;
}

textarea {
  padding-top: 14px;
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 209, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.small-text {
  font-size: 13px;
  color: var(--muted);
}

.error-text {
  color: #ff6b6b;
  font-size: 13px;
  display: none;
}

.form-group.invalid .error-text {
  display: block;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: rgba(255, 59, 92, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.08);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(10, 15, 25, 0.92);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 0.35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 34px 0 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1fr;
  align-items: start;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.footer-brand img {
  height: 76px;
  width: auto;
  max-width: 275px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-strip {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer-brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.68;
  filter: grayscale(1) brightness(1.12);
  transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.footer-brand-logo-item:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.footer-brand-logo-item img {
  display: block;
  max-width: 112px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.footer-brand-logo-item[aria-label="Deepcool"] img {
  max-width: 130px;
  max-height: 26px;
}

.footer-brand-logo-item[aria-label="Gigabyte"] img,
.footer-brand-logo-item[aria-label="Intel"] img,
.footer-brand-logo-item[aria-label="FIFINE"] img {
  max-height: 28px;
}

.footer-brand-logo-item[aria-label="HATOR"] img {
  max-height: 26px;
}


.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 220px;
}

.subscribe-form button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #34d399);
  font-weight: 800;
  color: #06120a;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Header scroll hide/show helpers ── */
.site-header-hidden {
  --promo-offset: calc(-1 * var(--promo-total-h));
  --header-offset: calc(-1 * (var(--promo-total-h) + var(--header-h) + 10px));
}

.header-compact .header {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

/* ── Responsive: 1500px ── */
@media (max-width: 1500px) {
  .header-row {
    gap: 12px;
  }
  .search-box {
    max-width: 440px;
  }
}

/* ── Responsive: 1280px ── */
@media (max-width: 1280px) {
  .header-row {
    gap: 10px;
  }
  .top-hours {
    display: none;
  }
  .location-address {
    display: none;
  }
  .location-toggle {
    min-width: auto;
  }
  .search-box {
    max-width: 340px;
  }
  .catalog-btn,
  .config-btn,
  .consult-btn {
    padding-inline: 14px;
    font-size: 14px;
  }
  .promo-inner {
    gap: 12px;
  }
}

/* ── Responsive: 1100px ── */
@media (max-width: 1100px) {
  .catalog-btn .btn-label,
  .config-btn .btn-label,
  .consult-btn .btn-label,
  .catalog-btn .small-icon {
    display: none;
  }
  .catalog-btn,
  .config-btn,
  .consult-btn {
    padding: 0;
    width: 50px;
    min-width: 50px;
    height: 50px;
    justify-content: center;
    gap: 0;
  }
  .config-btn-inner {
    padding: 0;
    gap: 0;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-row {
    gap: 10px;
  }
  .search-box {
    max-width: none;
  }
  .catalog-mega {
    width: min(var(--container), 90vw);
    grid-template-columns: 230px 1fr;
    gap: 18px;
  }
  .catalog-columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* ── Responsive: 960px ── */
@media (max-width: 960px) {
  .header-row {
    gap: 8px;
  }
  .search-box {
    max-width: none;
    padding: 0 14px;
  }
  .search-box .voice-btn {
    display: none;
  }
  .lang-switch {
    display: none;
  }
  .top-socials {
    display: none;
  }
  /* Звільняємо місце в header-actions */
  .header-actions .circle-btn[aria-label="Wishlist"] {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .theme-toggle {
    width: 62px;
    height: 40px;
  }
  .theme-thumb {
    width: 28px;
    height: 28px;
    top: 5px;
  }
  body.light-theme .theme-thumb {
    transform: translateX(24px);
  }
  .logo img {
    max-height: 46px;
    max-width: 140px;
  }
  .catalog-mega {
    grid-template-columns: 200px 1fr;
    gap: 14px;
    padding: 14px;
  }
  .catalog-columns-4,
  .catalog-columns-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Responsive: 860px — повне мобільне меню ── */
@media (max-width: 860px) {
  body {
    padding-top: 0;
  }
  .promo-bar {
    display: none !important;
  }
  .header {
    position: sticky;
    top: 0;
    transform: none !important;
  }
  .header-row {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 60px;
    padding: 0 10px;
    width: 100%;
  }
  .logo {
    flex: 1 1 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 !important;
  }
  .logo img {
    max-height: 34px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
    margin: 0;
  }
  
  .consult-wrap {
    display: none !important;
  }
  
  .theme-toggle {
    display: flex !important;
    transform: scale(0.75);
    transform-origin: center;
    margin: 0 -6px;
    flex-shrink: 0;
  }
  
  /* Пошук-трансформер і всі кнопки */
  .catalog-btn,
  .config-btn,
  .search-box {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .search-box {
    background: transparent;
    border: none;
    position: static;
  }
  .search-box input {
    width: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .search-box .voice-btn {
    display: none;
  }
  .search-box .search-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08); /* Або який в темі */
  }
  
  @keyframes searchPlashka {
    0% {
      opacity: 0;
      transform: translateY(-50%) scaleX(0.9) scaleY(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(-50%) scaleX(1) scaleY(1);
    }
  }

  @keyframes searchInputFade {
    0% { opacity: 0; transform: translateX(12px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  /* Спрацьовує при кліку на пошук */
  .search-box:focus-within {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 54px;
    width: calc(100% - 16px);
    background: var(--bg) !important;
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transform-origin: center right;
    animation: searchPlashka 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    outline: none !important;
  }
  .search-box:focus-within input {
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: auto;
    padding: 0 16px 0 20px;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: searchInputFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  }
  .search-box:focus-within .search-btn {
    background: transparent;
    height: 48px;
  }

  /* Каталог і Мобільне меню */
  .catalog-btn,
  .config-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }
  
  /* Ідеальний повноекранний каталог для телефону */
  .catalog-mega {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    max-height: none;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 20px 100px;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: var(--bg);
  }
  .catalog-content {
    display: none; /* Ховаємо правий блок, щоб не перевантажувати мобільний список */
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    margin: 0 !important;
    border-radius: 12px;
    padding: 0 !important;
  }
  .circle-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    margin: 0 !important;
    border-radius: 12px;
    padding: 0 !important;
  }
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    margin: 0 !important;
  }
  .ai-consultant-float {
    top: calc(var(--header-h) + 20px);
    padding: 10px 8px;
    font-size: 11px;
  }
}

/* ── Responsive: 640px ── */
@media (max-width: 640px) {
  .logo img {
    max-height: 42px;
  }
  .promo-left,
  .promo-right {
    gap: 8px;
  }
  .promo-inner {
    padding: 8px 0;
  }
  .location-toggle {
    padding: 0 10px;
    font-size: 13px;
  }
  .ai-consultant-float {
    display: none;
  }
}

/* ── Responsive: 480px ── */
@media (max-width: 480px) {
  .logo img {
    max-height: 38px;
  }
  .header-row {
    gap: 8px;
  }
  .location-toggle {
    width: 100%;
    justify-content: center;
  }
  .promo-left {
    flex-wrap: wrap;
    justify-content: center;
  }
  .lang-switch {
    display: none;
  }
  .consult-panel {
    right: -10px;
    width: 290px;
  }
  .location-menu {
    width: min(320px, 90vw);
  }
}

/* ── Responsive: 380px ── */
@media (max-width: 380px) {
  .header-row {
    gap: 6px;
  }
  .logo img {
    height: 40px;
  }
  .icon-btn,
  .circle-btn,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }
  .theme-toggle {
    width: 68px;
    height: 38px;
  }
  .theme-thumb {
    width: 28px;
    height: 28px;
    top: 4px;
  }
  body.light-theme .theme-thumb {
    transform: translateX(30px);
  }
}

@media (max-width: 860px) {
  /* ======== СУЧАСНИЙ МОБІЛЬНИЙ КАТАЛОГ ======== */
  .catalog-mega {
    display: flex !important;
    flex-direction: column;
    left: 0;
    right: 0;
    width: 100vw !important;
    max-width: 100vw;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    overflow: hidden;
    grid-template-columns: none !important;
    overscroll-behavior: contain !important;
  }
  
  .catalog-sidebar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 16px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: none;
  }
  .catalog-sidebar::-webkit-scrollbar {
    display: none;
  }

  .catalog-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 76px;
    min-width: 76px;
    height: auto;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    scroll-snap-align: start;
    gap: 8px;
    color: var(--text);
  }
  .catalog-nav-item + .catalog-nav-item {
    border-top: none;
    padding-top: 0;
  }
  
  .catalog-nav-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 20px;
    display: grid;
    place-items: center;
    transition: 0.2s;
  }
  
  .catalog-nav-item.active .catalog-nav-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
  
  .catalog-nav-item span:not(.catalog-nav-icon) {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    opacity: 0.8;
  }
  
  .catalog-nav-item.active span:not(.catalog-nav-icon) {
    opacity: 1;
    font-weight: 700;
    color: var(--text) !important;
  }

  .catalog-content {
    flex: 1;
    display: block !important;
    overflow-y: auto;
    padding: 24px 16px 120px;
    border-left: none;
    width: 100%;
  }
  
  .catalog-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .catalog-column {
    background: #ffffffe8;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
  }
  
  .catalog-column h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .catalog-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .catalog-links a {
    padding: 6px 0;
    font-size: 14px;
  }
  
  .catalog-columns-3, .catalog-columns-4, .catalog-columns-5 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Footer responsive ── */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .subscribe-form input {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer {
    padding: 24px 0 16px;
  }
}


/* Catalog dropdown: internal sidebar scroll only */
.catalog-sidebar {
  min-height: 0;
  max-height: calc(95vh - (var(--promo-total-h) + var(--header-h) + 74px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.22) transparent;
}

.catalog-sidebar::-webkit-scrollbar {
  display: block !important;
  width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.22);
  border-radius: 999px;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 24, 39, 0.32);
}

.header-cart-btn { position: relative; }
.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #79ff24;
  color: #06111c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(121, 255, 36, 0.28);
}
.cart-count-badge.is-visible { display: inline-flex; }


.cart-fly-token {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #86efac);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.12),
    0 10px 18px rgba(34, 197, 94, 0.32);
  pointer-events: none;
  z-index: 90;
  opacity: 0.96;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}

.cart-fly-token::after {
  content: '';
  position: absolute;
  inset: 2px 3px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.12));
  opacity: 0.6;
}

.cart-bump {
  animation: cartBump 0.45s ease;
}

@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  60% { transform: scale(0.96); }
  100% { transform: scale(1); }
}


/* Layout stability: keep footer at the viewport bottom on short pages. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > [data-site-footer] { margin-top: auto; }

/* Wishlist authentication prompt */
.wishlist-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 14, .62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.wishlist-auth-backdrop.open { opacity: 1; visibility: visible; }
.wishlist-auth-modal {
  width: min(430px, 100%);
  position: relative;
  padding: 30px 28px 26px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 75px rgba(0,0,0,.35);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.wishlist-auth-backdrop.open .wishlist-auth-modal { transform: translateY(0) scale(1); }
.wishlist-auth-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.wishlist-auth-icon {
  width: 62px; height: 62px; margin: 4px auto 17px; display: grid; place-items: center;
  border-radius: 20px; color: var(--primary); font-size: 27px;
  background: var(--primary-soft); border: 1px solid rgba(36,225,127,.2);
}
.wishlist-auth-modal h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 26px); }
.wishlist-auth-modal p { margin: 0 auto 24px; color: var(--muted); line-height: 1.55; max-width: 335px; }
.wishlist-auth-actions { display: flex; gap: 10px; }
.wishlist-auth-actions a { flex: 1; justify-content: center; }
@media (max-width: 460px) { .wishlist-auth-modal { padding: 28px 18px 20px; } .wishlist-auth-actions { flex-direction: column; } }
