/* ==========================================================================
   PASHA ARCHIVE // HIGH-END STREETWEAR & HEADLESS WORDPRESS FRONTEND
   Modern CSS Architecture: View Transitions, Top-Layer @starting-style,
   content-visibility, and compositor-first animations.
   ========================================================================== */

:root {
  /* Disable default root full-page snapshot so element/group transitions stay interactive */
  view-transition-name: none;

  /* Dark Mode Palette (Default) */
  --bg-primary: #09090b;
  --bg-elevated: #121216;
  --bg-card: #16161c;
  --bg-glass: rgba(18, 18, 22, 0.78);
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #d4ff00;
  --accent-contrast: #09090b;
  --flame: #ff3e1d;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);

  /* Typography */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1400px;
}

[data-theme="light"] {
  --bg-primary: #f4f4f0;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent: #b8e600;
  --accent-contrast: #09090b;
  --flame: #e03214;
  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

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

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

/* ==========================================================================
   VIEW TRANSITIONS API (GROUP & SAME-DOCUMENT MORPHING)
   ========================================================================== */

::view-transition {
  /* Non-transitioned elements below the view transitions remain interactive */
  pointer-events: none;
}

.product-card {
  view-transition-class: catalog-card;
}

::view-transition-group(.catalog-card) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-new(.catalog-card):only-child {
  animation: card-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-old(.catalog-card):only-child {
  animation: card-exit 0.28s ease-in both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    scale: 0.92;
    translate: 0 20px;
  }
}

@keyframes card-exit {
  to {
    opacity: 0;
    scale: 0.92;
    translate: 0 -16px;
  }
}

/* Shared Hero Transition between clicked card thumbnail and detail modal */
#modalProductImg {
  view-transition-name: active-product-hero;
}

.product-card.is-transitioning-hero .card-img-primary {
  view-transition-name: active-product-hero;
}

::view-transition-old(active-product-hero),
::view-transition-new(active-product-hero) {
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================================
   DEFERRED RENDERING FOR BELOW-THE-FOLD HEAVY SECTIONS
   ========================================================================== */

.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 680px;
}

/* ==========================================================================
   TOP TICKER BAR
   ========================================================================== */

.ticker-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  height: 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: 1rem;
  animation: ticker-scroll 28s linear infinite;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.ticker-track.is-paused .ticker-content {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    translate: 0 0;
  }
  to {
    translate: -50% 0;
  }
}

.ticker-toggle {
  height: 100%;
  padding-inline: 0.75rem;
  background: rgba(0, 0, 0, 0.12);
  color: #09090b;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.ticker-toggle:hover {
  background: rgba(0, 0, 0, 0.24);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.wp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wp-status-pill:hover {
  border-color: var(--accent);
  translate: 0 -1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.status-dot.is-live {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  translate: 0 -1px;
}

.cart-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 42px;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-trigger-btn:hover {
  translate: 0 -1px;
  opacity: 0.92;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #09090b;
  font-size: 0.75rem;
}

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

.mobile-nav-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-drawer[hidden] {
  display: none;
}

.mobile-nav-link {
  padding: 0.6rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

/* ==========================================================================
   HERO BENTO & INTERACTIVE PROMO BANNERS
   ========================================================================== */

.hero-section {
  padding-block: 1.5rem 2.5rem;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1.25rem;
  min-height: 560px;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d11;
  border: 1px solid var(--border-subtle);
  min-height: 540px;
  display: flex;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.04;
  transition: scale 6s ease-out;
  @media (prefers-reduced-motion: reduce) {
    scale: 1;
    transition: none;
  }
}

.hero-slide.is-active .hero-slide-img {
  scale: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 9, 11, 0.94) 0%,
    rgba(9, 9, 11, 0.55) 50%,
    rgba(9, 9, 11, 0.2) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  color: #f4f4f6;
  padding-bottom: 2.5rem;
}

.slide-meta {
  display: flex;
   flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.badge-acid {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--accent);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-flame {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--flame);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  max-width: 54ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  translate: 0 -2px;
  box-shadow: 0 10px 25px rgba(212, 255, 0, 0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent);
}

[data-theme="light"] .modal-inner .btn-ghost,
[data-theme="light"] .drawer-inner .btn-ghost {
  background: rgba(0, 0, 0, 0.06);
  color: #09090b;
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
}

/* Контролы слайдера */
.slider-controls {
  position: absolute;
  bottom: 1.25rem;
  left: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
  position: relative;
}

.slider-dot.is-active {
  background: var(--accent);
}

.slider-arrows {
  display: flex;
  gap: 0.45rem;
}

.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.slider-arrow:hover {
  border-color: var(--accent);
  background: rgba(15, 15, 20, 0.95);
}

/* Боковые Bento баннеры */
.hero-side-banners {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.side-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  min-height: 250px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.side-banner:hover {
  translate: 0 -4px;
  border-color: var(--accent);
}

.side-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
  transition: scale 0.5s ease;
}

.side-banner:hover .side-banner-img {
  scale: 1.05;
}

.side-banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.side-banner h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin-block: 0.45rem 0.35rem;
}

.side-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.mono-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.mono-pill.dark {
  background: #09090b;
  color: var(--accent);
}

.side-banner-acid {
  background: linear-gradient(135deg, #d4ff00 0%, #9be600 100%);
  color: #09090b;
  cursor: default;
}

.side-banner-acid .side-banner-content {
  color: #09090b;
}

.discount-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-block: 0.75rem 1rem;
}

.time-box {
  background: rgba(9, 9, 11, 0.9);
  color: #ffffff;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}

.time-box small {
  font-size: 0.65rem;
  color: var(--accent);
}

.time-sep {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
}

.copy-promo-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  background: #09090b;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.copy-promo-btn:hover {
  opacity: 0.88;
}

/* ==========================================================================
   STATS RIBBON
   ========================================================================== */

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 3rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline: 0.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
  white-space: nowrap;
}

[data-theme="light"] .stat-num {
  color: #09090b;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   CATALOG SECTION & FILTERS
   ========================================================================== */

.catalog-section {
  padding-bottom: 4rem;
}

.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
}

.catalog-controls-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  min-width: 260px;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  width: 100%;
  outline: none;
  font-size: 0.88rem;
}

.select-wrapper select {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  cursor: pointer;
}

.grid-density-switch {
  display: inline-flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.density-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.density-btn.is-active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Чипсы категорий */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  translate: 0 -1px;
}

.filter-chip.is-active {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
}

.chip-count {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.7rem;
}

/* Сетка карточек */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.5rem;
}

.catalog-grid.is-large-grid {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.product-card:hover {
  translate: 0 -6px;
  border-color: var(--border-strong);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #101014;
  cursor: pointer;
}

.card-img-primary,
.card-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, scale 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-img-secondary {
  opacity: 0;
}

.product-card:hover .card-img-secondary {
  opacity: 1;
  scale: 1.05;
}

.product-card:hover .card-img-primary {
  scale: 1.04;
}

.card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent);
  color: #09090b;
}

.card-badge.sale {
  background: var(--flame);
  color: #ffffff;
}

.card-quick-btn {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.25s ease, translate 0.25s ease, border-color 0.2s ease;
}

.product-card:hover .card-quick-btn,
.card-quick-btn:focus-visible {
  opacity: 1;
  translate: 0 0;
}

.card-quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.card-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.card-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  width: fit-content;
}

.card-title:hover {
  color: var(--accent);
}

.card-sizes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-block: 0.15rem;
}

.mini-size {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.42rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.price-old {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-bag-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.add-bag-btn:hover {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
}

.empty-catalog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-elevated);
}

/* ==========================================================================
   LOOKBOOK INTERACTIVE HOTSPOTS
   ========================================================================== */

.lookbook-section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.lookbook-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lookbook-lead {
  color: var(--text-secondary);
  max-width: 46ch;
  font-size: 0.95rem;
}

.lookbook-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.lookbook-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.lookbook-main {
  grid-row: 1 / 3;
  min-height: 580px;
}

.lookbook-secondary {
  min-height: 300px;
}

.lookbook-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Пины на фото */
.hotspot-pin {
  position: absolute;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #09090b;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pin-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s infinite ease-out;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

@keyframes pulse-ring {
  from {
    scale: 0.85;
    opacity: 0.9;
  }
  to {
    scale: 1.45;
    opacity: 0;
  }
}

.pin-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  background: #09090b;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}

.hotspot-pin:hover .pin-tooltip,
.hotspot-pin:focus-visible .pin-tooltip {
  opacity: 1;
}

.lookbook-cta-box {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: radial-gradient(circle at top right, rgba(212, 255, 0, 0.14), transparent 65%), var(--bg-elevated);
}

.cta-box-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.cta-box-inner h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
}

.cta-box-inner p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   TOP-LAYER DIALOGS & DRAWERS (@starting-style + allow-discrete + fallback)
   ========================================================================== */

dialog {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

:is(dialog[open]):where(:not([data-closing])) {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);

    @starting-style {
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
    }
  }
}

/* Специфика для бокового выезда корзины */
dialog.cart-drawer {
  margin: 0 0 0 auto;
  width: min(560px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: translateX(100%);
}

:is(dialog.cart-drawer[open]):where(:not([data-closing])) {
  transform: translateX(0);

  @starting-style {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog.cart-drawer {
    transform: none;
    transition-duration: 0.1s;
  }

  @starting-style {
    dialog[open],
    dialog.cart-drawer[open] {
      transform: none;
    }
  }
}

/* Стили модалки товара */
.product-modal,
.wp-modal {
  margin: auto;
  width: min(920px, 94vw);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}

.wp-modal {
  width: min(640px, 94vw);
}

.modal-inner {
  position: relative;
  padding: 1.75rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  border-color: var(--accent);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
  align-items: start;
}

.modal-gallery {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: #101014;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--accent);
  color: #09090b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stock-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #22c55e;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  outline: none;
  width: fit-content;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.modal-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-old-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.size-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.size-btn {
  min-width: 48px;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.size-btn.is-selected {
  background: var(--accent);
  color: #09090b;
  border-color: var(--accent);
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Корзина внутри Drawer */
.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  outline: none;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.cart-item img {
  width: 72px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-block: 0.2rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.promo-input-row {
  display: flex;
  gap: 0.5rem;
}

.promo-input-row input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.summary-row.total-row {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

/* WordPress Modal Form */
.wp-modal-lead {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-block: 1rem 1.25rem;
}

.wp-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group select,
.form-group input {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wp-code-preview {
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  background: #09090b;
  border: 1px solid var(--border-subtle);
  color: #d4d4d8;
}

.wp-code-preview pre {
  margin-top: 0.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
}

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

/* ==========================================================================
   FOOTER & TOASTS
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 3.5rem 2rem;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 44ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-col a,
.footer-link-btn {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-link-btn:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #09090b;
  color: #ffffff;
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }

  .hero-side-banners {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .lookbook-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lookbook-main {
    min-height: 440px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-side-banners {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    min-width: 100%;
  }

  .catalog-controls-top {
    width: 100%;
  }
}



/* ==========================================================================
   NOVA POSHTA CHECKOUT & CUSTOMER LEADS DATABASE STYLES
   ========================================================================== */

.ua-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(212, 255, 0, 0.16);
  color: var(--accent);
  vertical-align: middle;
}

.leads-db-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.leads-db-pill:hover {
  border-color: var(--accent);
  translate: 0 -1px;
}

.leads-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #09090b;
  font-weight: 700;
  font-size: 0.7rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.np-checkout-box {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.np-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.np-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: #ed1c24;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  position: relative;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.field-group input,
.field-group select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--accent);
}

/* Modern post-interaction validation (:user-invalid / :user-valid) */
.field-error-msg {
  display: none;
  color: #ff5252;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  margin-top: 0.15rem;
}

.field-group input:user-invalid {
  border-color: #ff5252;
  background-color: rgba(255, 82, 82, 0.08);
}

.field-group input:user-invalid + .field-error-msg {
  display: block;
}

.field-group input:user-valid {
  border-color: #22c55e;
}

/* Перемикач Відділення / Поштомат */
.np-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.np-type-btn {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.np-type-btn.is-active {
  background: #ed1c24;
  color: #ffffff;
  border-color: #ed1c24;
}

/* Автокомпліт міст України */
.np-city-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.np-selected-area {
  position: absolute;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  pointer-events: none;
}

.np-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.city-pill {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.city-pill.is-active,
.city-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.np-dropdown-list {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 210px;
  overflow-y: auto;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.np-dropdown-list[hidden] {
  display: none;
}

.np-dropdown-item {
  width: 100%;
  padding: 0.55rem 0.8rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-subtle);
}

.np-dropdown-item:hover {
  background: rgba(212, 255, 0, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

/* VIP Lead Form in Lookbook */
.vip-lead-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.vip-form-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.6rem;
}

.vip-form-row input {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
  outline: none;
}

.vip-form-row input:focus {
  border-color: var(--accent);
}

.vip-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Модалка бази клієнтів та Email (CRM Table) */
.leads-modal {
  margin: auto;
  width: min(980px, 95vw);
  border-radius: var(--radius-lg);
  padding: 0;
}

.leads-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.leads-table-wrap {
  max-height: 55vh;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.leads-table th,
.leads-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.leads-table th {
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  position: sticky;
  top: 0;
}

@media (max-width: 640px) {
  .form-row-2col,
  .vip-form-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   DEEP MOBILE & TABLET UX OPTIMIZATION (iOS / Android / iPadOS)
   - Bottom App Navigation Dock + Safe Area Insets
   - 2-Column Mobile Streetwear Product Grid
   - Bottom-Sheet Modals & Touch Target Ergonomics (>=44px, 16px inputs)
   - Scroll-Snap Filter Chips & Touch Hotspot Pins
   ========================================================================== */

button,
a,
input,
select,
.product-card,
.filter-chip,
.city-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Mобільний нижній док (за замовчуванням прихований на десктопі) */
.mobile-bottom-dock {
  display: none;
}

/* Горизонтальний скрол-снеп для фільтрів категорій */
.filter-bar {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 1rem;
}

.filter-chip {
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   ПЛАНШЕТИ ТА КОМПАКТНІ НОУТБУКИ (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    width: min(var(--container-max), 100% - 1.5rem);
  }

  .header-inner {
    height: 64px;
  }

  .main-nav {
    gap: 1rem;
  }

  .hero-slider {
    min-height: 460px;
  }

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

  /* На сенсорних планшетах і телефонах кнопка огляду завжди видима */
  .card-quick-btn {
    opacity: 1;
    translate: 0 0;
  }

  .product-modal {
    max-height: 90dvh;
    overflow-y: auto;
  }
}

/* --------------------------------------------------------------------------
   ТЕЛЕФОНИ ТА ФАБЛЕТИ (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    /* Відступ знизу під фіксований мобільний док + iOS Safe Area */
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: calc(100% - 1.25rem);
  }

  .ticker-bar {
    height: 32px;
    font-size: 0.7rem;
  }

  .header-inner {
    height: 60px;
  }

  .brand-logo {
    font-size: 1.08rem;
    gap: 0.45rem;
  }

  .cart-trigger-btn {
    height: 38px;
    padding-inline: 0.75rem;
    font-size: 0.76rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  /* Компактний та зручний для свайпу Hero-слайдер */
  .hero-section {
    padding-block: 0.85rem 1.75rem;
  }

  .hero-bento {
    min-height: auto;
    gap: 0.9rem;
  }

  .hero-slider {
    min-height: 420px;
    border-radius: var(--radius-md);
    touch-action: pan-y;
  }

  .hero-slide {
    padding: 1.25rem 1.15rem 4rem;
  }

  .hero-slide-content {
    padding-bottom: 0.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.45rem);
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta-row {
    gap: 0.5rem;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
    flex: 1;
  }

  .slider-controls {
    bottom: 0.85rem;
    left: 1.15rem;
    right: 1.15rem;
  }

  .slider-dot {
    width: 30px;
    height: 5px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
  }

  .side-banner {
    min-height: 195px;
    padding: 1.2rem;
    border-radius: var(--radius-md);
  }

  .side-banner h3 {
    font-size: 1.35rem;
  }

  /* Стрічка переваг 2х2 на мобільних */
  .stats-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 2rem;
  }

  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.35rem;
  }

  .stat-num {
    font-size: 1.05rem;
  }

  .stat-desc {
    font-size: 0.74rem;
  }

  /* Пошук та сортування в один зручний блок */
  .catalog-header {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  /* Запобігаємо авто-зуму iOS Safari: мінімум 16px (1rem) на всіх полях вводу */
  .search-box input,
  .select-wrapper select,
  .field-group input,
  .field-group select,
  .promo-input-row input,
  .vip-form-row input,
  .form-group input,
  .form-group select {
    font-size: 16px !important;
  }

  .catalog-controls-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
  }

  .search-box {
    grid-column: 1 / -1;
    padding: 0.65rem 0.85rem;
  }

  .select-wrapper {
    width: 100%;
  }

  .select-wrapper select {
    width: 100%;
    padding: 0.65rem 0.8rem;
  }

  /* Фірмова мобільна сітка каталогу у 2 стовпчики (як у SNKRS / SSENSE) */
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .catalog-grid.is-large-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card:hover {
    translate: none;
  }

  .card-badges {
    top: 0.5rem;
    left: 0.5rem;
  }

  .card-badge {
    padding: 0.2rem 0.45rem;
    font-size: 0.62rem;
  }

  .card-quick-btn {
    display: none;
  }

  .card-body {
    padding: 0.75rem;
    gap: 0.35rem;
  }

  .card-category-row {
    font-size: 0.62rem;
  }

  .card-category-row span:last-child {
    display: none;
  }

  .card-title {
    font-size: 0.86rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-sizes-preview {
    gap: 0.25rem;
  }

  .mini-size {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding-top: 0.5rem;
  }

  .price-current {
    font-size: 0.92rem;
  }

  .price-old {
    font-size: 0.72rem;
  }

  .add-bag-btn {
    width: 100%;
    padding: 0.55rem 0.4rem;
    font-size: 0.68rem;
    text-align: center;
  }

  /* Лукбук адаптація пінів під палець */
  .lookbook-section {
    padding-block: 2.25rem;
  }

  .lookbook-main {
    min-height: 380px;
  }

  .lookbook-secondary {
    min-height: 260px;
  }

  .hotspot-pin {
    width: 42px;
    height: 42px;
  }

  .pin-tooltip {
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    translate: -50% 0;
    font-size: 0.7rem;
    padding: 0.45rem 0.65rem;
  }

  .lookbook-cta-box {
    padding: 1.35rem;
  }

  .cta-box-inner h3 {
    font-size: 1.2rem;
  }

  .vip-form-actions .btn-primary,
  .vip-form-actions .btn-ghost {
    width: 100%;
  }

  /* Модальні вікна у форматі Mobile Bottom Sheet */
  .product-modal,
  .wp-modal,
  .leads-modal {
    margin: auto 0 0 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
  }

  .modal-inner {
    padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-gallery {
    aspect-ratio: 1 / 1.05;
    max-height: 320px;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .modal-price {
    font-size: 1.25rem;
  }

  .size-btn {
    min-height: 44px;
    flex: 1;
  }

  /* Кошик на весь екран мобільного */
  dialog.cart-drawer {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .drawer-inner {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .np-checkout-box {
    padding: 0.9rem;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  /* Нижня мобільна панель (App Bottom Dock) */
  .mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-strong);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }

  .dock-btn {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
  }

  .dock-btn.is-active,
  .dock-btn:active {
    color: var(--accent);
  }

  [data-theme="light"] .dock-btn.is-active {
    color: #09090b;
    font-weight: 800;
  }

  .dock-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .dock-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding-inline: 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #09090b;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Піднімаємо тости над нижнім мобільним доком */
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    width: 100%;
    text-align: center;
  }
}

/* Дуже вузькі екрани (<= 360px) */
@media (max-width: 360px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
  }
}
