/* Zvezmarket Editorial Premium v1
 * Loaded only for the allowlisted design_preset. Existing admin variables remain
 * authoritative; merchant custom CSS is emitted after this file.
 */

:root {
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: ease-in-out;
  --premium-paper: #f7f4ec;
  --premium-paper-deep: #eee8dc;
  --premium-ink: #18201d;
  --premium-ink-soft: #4d5a54;
  --premium-line: rgba(33, 48, 42, 0.12);
  --premium-accent: var(--accent-primary, #147a68);
  --premium-accent-dark: color-mix(in srgb, var(--premium-accent) 64%, #102d27);
  --premium-sun: #f3b84b;
  --premium-sky: #76b9d5;
  --premium-berry: #dc7185;
  --premium-shadow: 0 20px 60px rgba(51, 45, 34, 0.09);
  --premium-shadow-raised: 0 24px 70px rgba(43, 39, 30, 0.15);
  --stagger-dur: var(--duration-very-slow);
  --stagger-distance: 12px;
  --stagger-stagger: var(--duration-stagger);
  --stagger-blur: 3px;
  --stagger-ease: var(--ease-smooth-out);
  --panel-open-dur: var(--duration-slow);
  --panel-close-dur: var(--duration-medium);
  --panel-translate-y: 100px;
  --panel-blur: 2px;
  --panel-ease: var(--ease-smooth-out);
}

html {
  scroll-behavior: smooth;
  background: var(--premium-paper);
}

body {
  color: var(--premium-ink);
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--premium-accent) 8%, transparent), transparent 29rem),
    linear-gradient(180deg, #fff 0, var(--premium-paper) 42rem, #fff 100%);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(24, 32, 29, 0.04) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 75% 65%, rgba(24, 32, 29, 0.025) 0 0.6px, transparent 0.7px);
  background-size: 18px 18px, 23px 23px;
}

::selection {
  color: #fff;
  background: var(--premium-accent-dark);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--premium-accent) 55%, #fff);
  outline-offset: 3px;
}

:where(.btn, button, .nav-link, .sidebar-menu-link, .cart-button, .account-button, .mobile-menu-toggle, .mobile-search-toggle) {
  min-height: 44px;
}

.container {
  width: min(100% - 2rem, 1320px);
  max-width: 1320px;
}

h1,
h2,
h3,
.section-title,
.product-title,
.catalog-header h1 {
  color: var(--premium-ink);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p,
.product-title,
.page-body {
  text-wrap: pretty;
}

.price,
.current-price,
.product-price,
.product-price-original,
.summary-total,
.cart-item-total {
  font-variant-numeric: tabular-nums;
}

/* Header and navigation */
.store-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  border-bottom: 1px solid var(--premium-line);
  background: color-mix(in srgb, var(--bg-header, #fff) 88%, transparent);
  box-shadow: 0 8px 32px rgba(30, 42, 37, 0.06);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header-top-bar {
  min-height: 34px;
  color: var(--premium-ink-soft);
  border-bottom: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.58);
}

.header-content {
  min-height: 78px;
  gap: clamp(1rem, 3vw, 3.5rem);
}

.store-logo img {
  filter: drop-shadow(0 8px 14px rgba(31, 43, 38, 0.08));
}

.store-title {
  color: var(--premium-ink);
  font-weight: 760;
  letter-spacing: -0.035em;
}

/* На широком экране название магазина и пункты меню были мельче, чем требует
   размер шапки: 19px рядом с логотипом 48px и 14px в навигации. Прибавляем
   только на десктопе — мобильная шапка специально ужата, там места нет. */
@media (min-width: 992px) {
  .store-title {
    font-size: 23px;
  }

  .nav-link {
    font-size: 16px;
  }
}

.search-input-group,
.mobile-search-form {
  min-height: 48px;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out);
}

.search-input-group:focus-within,
.mobile-search-form:focus-within {
  border-color: color-mix(in srgb, var(--premium-accent) 65%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--premium-accent) 12%, transparent);
  transform: translateY(-1px);
}

.search-input,
.mobile-search-input {
  min-height: 46px;
  background: transparent;
}

.account-button,
.cart-button,
.mobile-search-toggle,
.mobile-phone-button,
.mobile-menu-toggle {
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  color: var(--premium-ink);
  box-shadow: 0 10px 28px rgba(40, 53, 47, 0.08);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.store-nav {
  border-top: 0;
  border-bottom: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.78);
}

.nav-links {
  gap: clamp(0.25rem, 1.4vw, 1.25rem);
}

.nav-link {
  min-height: 48px;
  padding: 0.85rem 0.8rem;
  color: var(--premium-ink-soft);
  border-radius: 0;
  background: transparent;
  font-weight: 560;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.55rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 2px;
  background: var(--premium-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.nav-link.active,
.nav-link:hover {
  color: var(--premium-ink);
  background: transparent;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Hero and proof */
.commercial-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(390px, 44vw, 540px);
  margin-top: 0;
  border: 1px solid rgba(35, 48, 42, 0.08);
  border-radius: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(circle at 82% 26%, color-mix(in srgb, var(--premium-accent) 18%, transparent), transparent 17rem),
    radial-gradient(circle at 72% 12%, color-mix(in srgb, var(--premium-sky) 18%, transparent), transparent 11rem),
    radial-gradient(circle at 86% 86%, rgba(231, 181, 111, 0.24), transparent 20rem),
    linear-gradient(135deg, #fffdf8 0%, #f1ede2 100%);
  box-shadow: var(--premium-shadow);
}

.commercial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--premium-sun) 48%, transparent) 0 2px, transparent 2.5px),
    radial-gradient(circle, color-mix(in srgb, var(--premium-berry) 34%, transparent) 0 1.5px, transparent 2px);
  background-position: 0 0, 18px 19px;
  background-size: 38px 38px, 46px 46px;
  mask-image: linear-gradient(100deg, transparent 0 52%, #000 78% 100%);
}

.commercial-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -48%;
  border: 1px solid rgba(24, 32, 29, 0.08);
  border-radius: 44% 56% 58% 42%;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(-12deg);
}

.commercial-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(2rem, 4.4vw, 4.5rem);
}

.commercial-hero.has-premium-products {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.commercial-hero.has-premium-products .commercial-hero__content {
  grid-area: 1 / 1;
  align-self: center;
  max-width: none;
}

.commercial-hero h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 5.5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.commercial-hero__subtitle {
  max-width: 62ch;
  color: var(--premium-ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.commercial-hero__cta,
.btn-primary,
.btn-add-cart,
.add-to-cart-btn,
.checkout-btn,
.submit-order-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--premium-accent-dark);
  color: #fff;
  font-weight: 680;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--premium-accent) 24%, transparent);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    filter var(--duration-fast) var(--ease-smooth-out);
}

.commercial-hero__audiences {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 46px rgba(50, 46, 36, 0.1), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
}

.commercial-hero.has-premium-products .commercial-hero__audiences {
  grid-area: 1 / 2;
  z-index: 4;
  align-self: end;
  margin: 0 1.35rem 1.35rem;
  padding: 0.85rem 1rem;
}

.commercial-hero__audience-list {
  gap: 0.5rem 1rem;
  color: var(--premium-ink);
}

.premium-hero-products {
  position: relative;
  grid-area: 1 / 2;
  align-self: stretch;
  min-height: 500px;
  margin: 0;
  perspective: 1100px;
}

.premium-hero-products::before {
  content: "";
  position: absolute;
  inset: 10% 8% 18%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 46% 54% 42% 58% / 52% 42% 58% 48%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.35) 56%, transparent 57%),
    color-mix(in srgb, var(--premium-sky) 12%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(-5deg);
}

.premium-hero-products__eyebrow {
  position: absolute;
  top: 8.5%;
  right: 6%;
  z-index: 5;
  padding: 0.52rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--premium-ink-soft);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(47, 45, 37, 0.1);
  backdrop-filter: blur(12px);
}

.premium-hero-product {
  position: absolute;
  display: block;
  overflow: hidden;
  width: clamp(124px, 13vw, 190px);
  aspect-ratio: 0.76;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(46, 44, 35, 0.2);
  transform-origin: 50% 90%;
  transition:
    transform var(--duration-medium) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out),
    filter var(--duration-fast) var(--ease-in-out);
  will-change: transform;
}

.premium-hero-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-hero-product--1 {
  z-index: 3;
  top: 14%;
  left: 27%;
  width: clamp(150px, 15vw, 220px);
  transform: rotate(-4deg) translateY(0);
  animation: premium-cover-float-a 4.1s ease-in-out 0.25s 1 alternate forwards;
}

.premium-hero-product--2 {
  z-index: 2;
  top: 24%;
  right: 4%;
  transform: rotate(8deg) translateY(0);
  animation: premium-cover-float-b 4.4s ease-in-out 0.45s 1 alternate forwards;
}

.premium-hero-product--3 {
  z-index: 1;
  top: 32%;
  left: 2%;
  width: clamp(112px, 11vw, 164px);
  transform: rotate(-11deg) translateY(0);
  animation: premium-cover-float-c 4.2s ease-in-out 0.65s 1 alternate forwards;
}

.premium-hero-product--4 {
  z-index: 4;
  right: 13%;
  bottom: 21%;
  width: clamp(94px, 9vw, 136px);
  transform: rotate(5deg) translateY(0);
  animation: premium-cover-float-b 3.9s ease-in-out 0.85s 1 alternate-reverse forwards;
}

@keyframes premium-cover-float-a {
  to { transform: rotate(-2deg) translateY(-9px); }
}

@keyframes premium-cover-float-b {
  to { transform: rotate(5deg) translateY(-7px); }
}

@keyframes premium-cover-float-c {
  to { transform: rotate(-8deg) translateY(-6px); }
}

.commercial-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 clamp(1.5rem, 3vw, 2.75rem);
}

.commercial-proof > * {
  min-height: 52px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--premium-ink-soft);
  font-size: 0.87rem;
  line-height: 1.35;
}

/* Sections, brands and featured */
.content-wrapper,
.page-content,
.page-product,
.cart-page {
  padding-top: clamp(0.85rem, 2vw, 1.8rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-title,
.catalog-header h1,
.related-products > h2,
.category-section h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  line-height: 1.03;
}

.categories-section {
  margin-block: clamp(1.75rem, 4vw, 3.75rem);
}

.home-categories-rail {
  margin-block: clamp(1rem, 2.2vw, 2rem);
}

.home-categories-rail .categories-section {
  padding: 0 !important;
  margin: 0;
}

.home-categories-rail .categories-section > .container {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--premium-line);
  border-radius: clamp(20px, 2.6vw, 30px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(43, 51, 47, 0.055);
}

.home-categories-rail .categories-section > .container > .d-flex {
  margin-bottom: 0 !important;
}

.home-categories-rail .section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.65rem);
  letter-spacing: -0.045em;
}

.home-categories-rail .categories-grid-icons {
  grid-template-columns: repeat(auto-fit, minmax(112px, 142px)) !important;
  justify-content: start;
  gap: 0.75rem !important;
}

.home-categories-rail .category-icon-style {
  min-height: 128px;
  padding: 0.9rem;
  border-radius: 18px;
}

.home-categories-rail .category-icon-circle {
  width: 62px !important;
  height: 62px !important;
  margin-bottom: 0.55rem !important;
}

.categories-grid-icons {
  gap: 1.25rem;
}

.category-icon-style {
  min-height: 150px;
  padding: 1.25rem;
  border: 1px solid var(--premium-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out);
}

.featured-section-wrapper {
  position: relative;
  overflow: hidden;
  margin-block: clamp(2rem, 4.5vw, 4.5rem);
  border-radius: clamp(24px, 3.2vw, 42px);
  background:
    radial-gradient(circle at 95% 10%, color-mix(in srgb, var(--premium-accent) 44%, transparent), transparent 24rem),
    linear-gradient(135deg, #14231f 0%, #203c33 100%);
  box-shadow: var(--premium-shadow-raised);
}

.featured-section-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.8px, transparent 0.9px);
  background-size: 18px 18px;
}

.featured-header,
.featured-products-container {
  position: relative;
}

.featured-title {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.7rem);
  letter-spacing: -0.04em;
}

.featured-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.featured-nav-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

/* Product grids and cards */
.products-grid {
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: stretch;
}

.product-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(39, 49, 44, 0.06);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out);
}

.product-image-wrapper {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 0;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--premium-sun) 14%, transparent), transparent 30%),
    linear-gradient(135deg, rgba(249, 247, 240, 0.98), rgba(238, 232, 220, 0.72));
}

.product-image {
  width: 100%;
  height: 100%;
  padding: clamp(0.65rem, 2vw, 1.2rem);
  object-fit: contain;
  transition:
    transform var(--duration-slow) var(--ease-smooth-out),
    opacity var(--duration-slow) var(--ease-in-out),
    filter var(--duration-slow) var(--ease-in-out);
}

.product-image-placeholder {
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--premium-ink-soft);
  background:
    radial-gradient(circle at 20% 22%, color-mix(in srgb, var(--premium-sky) 28%, transparent), transparent 30%),
    radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--premium-sun) 28%, transparent), transparent 31%),
    linear-gradient(145deg, #f8f5ed, #eee8dc);
}

.product-image-placeholder::before {
  content: "А  Б  В";
  display: grid;
  width: min(68%, 150px);
  aspect-ratio: 0.84;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: color-mix(in srgb, var(--premium-accent) 78%, var(--premium-ink));
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  font-weight: 820;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 38px rgba(43, 47, 39, 0.1);
  transform: rotate(-3deg);
}

.product-image-placeholder::after {
  content: "Фото товара готовится";
  position: absolute;
  right: 0.75rem;
  bottom: 0.7rem;
  left: 0.75rem;
  color: var(--premium-ink-soft);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.product-image-placeholder > i {
  display: none;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 190px;
  padding: 1rem 1rem 1.1rem;
}

.product-brand {
  color: var(--premium-ink-soft);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0.55rem 0 0.75rem;
  color: var(--premium-ink);
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  font-weight: 610;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-prices {
  margin-top: auto;
  margin-bottom: 0.8rem;
}

.product-price,
.price {
  color: var(--premium-ink);
  font-weight: 780;
  letter-spacing: -0.025em;
}

.old-price,
.product-price-original {
  color: #909991;
}

.product-badge,
.discount-badge,
.in-stock-badge,
.out-stock-badge {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-add-cart {
  width: 100%;
  margin-top: auto;
}

.btn-wishlist,
.wishlist-icon,
.btn-quick-view {
  border: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--premium-ink-soft);
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.btn-wishlist {
  top: 12px !important;
  right: 12px !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #6c7771 !important;
  box-shadow: 0 12px 28px rgba(41, 48, 44, 0.13) !important;
  backdrop-filter: blur(14px) saturate(1.15);
}

.btn-wishlist .wishlist-icon {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  filter: none;
}

.btn-wishlist.active {
  border-color: color-mix(in srgb, var(--premium-berry) 44%, #fff) !important;
  background: color-mix(in srgb, var(--premium-berry) 14%, #fff) !important;
  color: #c74f69 !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--premium-berry) 24%, transparent) !important;
}

.btn-wishlist.active .wishlist-icon {
  animation: premium-heart-pop var(--duration-medium) cubic-bezier(0.34, 1.96, 0.64, 1);
}

.btn-wishlist.active .wishlist-icon path {
  fill: currentColor;
  stroke: currentColor;
}

@keyframes premium-heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(0.78); }
  100% { transform: scale(1); }
}

/* Catalog and content */
.page-layout {
  gap: clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 992px) {
  .page-layout.catalog-layout--filters {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-items: start;
    column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
    row-gap: 0;
  }

  .catalog-layout--filters > .store-sidebar {
    display: none !important;
  }

  .catalog-layout--filters > .catalog-content {
    display: contents;
  }

  .catalog-layout--filters > .catalog-content > * {
    grid-column: 2;
    min-width: 0;
  }

  .catalog-layout--filters > .catalog-content > .filters-panel {
    display: block !important;
    grid-column: 1;
    grid-row: 1 / span 100;
    position: sticky;
    top: 152px;
    max-height: calc(100dvh - 172px);
    padding: 1.15rem;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .catalog-layout--filters > .catalog-content > .filters-panel::before {
    content: "Фильтры";
    display: block;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--premium-line);
    color: var(--premium-ink);
    font-size: 1.05rem;
    font-weight: 780;
  }

  .catalog-layout .filter-toggle {
    display: none;
  }

  .catalog-layout .filters-bar {
    display: none;
  }

  .catalog-layout .catalog-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1rem;
  }

  .catalog-layout .catalog-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .catalog-layout .catalog-info {
    margin: 0;
    color: var(--premium-ink-soft);
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .catalog-layout .catalog-header__sort {
    min-width: min(100%, 280px);
    margin-left: auto;
  }

  .catalog-layout .catalog-header__sort .sort-select {
    min-width: 190px;
  }

  .catalog-layout--filters .filters-panel {
    overflow-x: hidden;
  }

  .catalog-layout--filters .filters-form {
    gap: 1.1rem;
  }

  .catalog-layout--filters .filter-group h4 {
    margin-bottom: 0.7rem;
  }

  .catalog-layout--filters .price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .catalog-layout--filters .price-inputs > span {
    display: none;
  }

  .catalog-layout--filters .price-input {
    width: 100%;
    min-width: 0;
  }

  .catalog-layout--filters .filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding-top: 0.9rem;
  }

  .catalog-layout--filters :where(.btn-apply-filters, .btn-reset-filters) {
    width: 100%;
    min-width: 0;
    padding-inline: 0.75rem;
  }

  .catalog-layout--filters .categories-section {
    padding: 0 !important;
    margin: 0 0 1rem;
  }

  .catalog-layout--filters .categories-section > .container {
    padding-inline: 0;
  }

  .catalog-layout--filters .categories-grid-icons {
    grid-template-columns: repeat(auto-fit, minmax(112px, 148px)) !important;
    justify-content: start;
    gap: 0.75rem !important;
  }

  .catalog-layout--filters .category-icon-style {
    min-height: 128px;
    padding: 0.85rem;
    border-radius: 18px;
  }

  .catalog-layout--filters .category-icon-circle {
    width: 62px !important;
    height: 62px !important;
    margin-bottom: 0.5rem !important;
  }
}

.store-sidebar,
.filters-panel {
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 38px rgba(43, 51, 47, 0.05);
}

.sidebar-header,
.filter-group + .filter-group {
  border-color: var(--premium-line);
}

.sidebar-menu-link,
.brand-checkbox,
.filter-toggle,
.sort-select,
.form-control,
.form-select {
  min-height: 44px;
  border-radius: 12px;
}

.filters-bar,
.catalog-header {
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.breadcrumbs {
  color: var(--premium-ink-soft);
  font-size: 0.85rem;
}

.custom-page .page-body,
.page-body {
  max-width: 72ch;
  color: var(--premium-ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.custom-page .page-body h2,
.custom-page .page-body h3 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

/* Product detail */
.product-container,
.product-page {
  gap: clamp(2rem, 5vw, 5.5rem);
}

.product-gallery-slider,
.product-gallery-slide {
  border-radius: 26px;
  background: #f2eee4;
}

.thumbnail {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: #fff;
}

.product-details {
  position: relative;
}

.product-details > h1,
.product-details .product-title {
  display: block;
  min-height: 0;
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.98;
  -webkit-line-clamp: unset;
}

.price-section,
.product-decision,
.product-ai-qa {
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(44, 52, 48, 0.06);
}

.price-section .current-price {
  color: var(--premium-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 790;
  letter-spacing: -0.045em;
}

.product-decision {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--premium-accent) 7%, #fff), #fff 52%),
    var(--premium-paper);
}

.product-decision > h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}

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

.product-decision__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
  min-width: 0;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.product-decision__row dt,
.product-decision__row dd {
  min-width: 0;
  margin: 0;
}

.product-decision__row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--premium-ink);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-decision__row dt i {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--premium-accent-dark);
  background: color-mix(in srgb, var(--premium-accent) 11%, #fff);
}

.product-decision__row dd {
  color: var(--premium-ink-soft);
  font-size: 0.88rem;
  line-height: 1.42;
}

.product-decision__availability {
  border-color: color-mix(in srgb, var(--premium-accent) 22%, var(--premium-line));
  background: color-mix(in srgb, var(--premium-accent) 6%, #fff);
}

.product-decision__documents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--premium-line);
  font-size: 0.82rem;
}

.product-decision__documents a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--premium-ink-soft);
  text-underline-offset: 0.2em;
}

/* Product availability stays close to the buying action; secondary terms live lower. */
.premium-product-availability {
  margin: 0.75rem 0 0;
  padding: 0;
}

.premium-product-availability__row {
  display: flex;
  width: 100%;
  gap: 0.65rem;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 0.68rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--premium-accent) 24%, var(--premium-line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--premium-accent) 6%, #fff);
  box-shadow: 0 10px 26px rgba(44, 52, 48, 0.045);
}

.premium-product-availability__row :where(dt, dd) {
  min-width: 0;
  margin: 0;
}

.premium-product-availability__row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  color: var(--premium-ink);
  font-size: 0.76rem;
  font-weight: 790;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.premium-product-availability__row dt i {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--premium-accent-dark);
  background: #fff;
}

.premium-product-availability__row dd {
  margin-left: auto;
  flex: 1 1 auto;
  color: var(--premium-ink);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.42;
  text-align: right;
}

.premium-purchase-terms {
  margin-top: clamp(1.4rem, 3vw, 2.25rem);
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.premium-purchase-terms__head {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 0;
  color: var(--premium-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.premium-purchase-terms__copy {
  display: grid;
  gap: 0.18rem;
}

.premium-purchase-terms__title {
  font-size: 1.02rem;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.premium-purchase-terms__hint {
  color: var(--premium-ink-soft);
  font-size: 0.78rem;
  font-weight: 520;
}

.premium-purchase-terms__chevron {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  color: var(--premium-accent-dark);
  background: #fff;
}

.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms var(--ease-smooth-out);
}

.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
}

.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 210ms var(--ease-smooth-out),
    filter 210ms var(--ease-smooth-out);
}

.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
}

.premium-purchase-terms__inner {
  padding: 0 1.15rem 1.15rem;
}

.premium-purchase-terms__inner :where(.product-decision__list, .product-purchase-facts__list) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.premium-purchase-terms__inner :where(.product-purchase-facts__row) {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.premium-purchase-terms__inner :where(.product-purchase-facts__row) :where(dt, dd) {
  margin: 0;
}

.premium-purchase-terms__inner :where(.product-purchase-facts__row) dt {
  color: var(--premium-ink);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.premium-purchase-terms__inner :where(.product-purchase-facts__row) dd {
  color: var(--premium-ink-soft);
  font-size: 0.88rem;
  line-height: 1.42;
}

.t-acc-chevron {
  transform: scaleY(1);
  transform-origin: center;
  transition: transform 250ms var(--ease-smooth-out);
}

.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

.quantity-selector,
.quantity-selector--sticky {
  min-height: 48px;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
}

.quantity-btn {
  min-width: 44px;
  min-height: 44px;
}

.product-description__content {
  max-width: 72ch;
  color: var(--premium-ink-soft);
  line-height: 1.72;
}

.spec-row,
.product-decision__row {
  border-color: var(--premium-line);
}

/* Cart, checkout and auth */
.cart-items,
.cart-summary,
.checkout-content,
.auth-card {
  border: 1px solid var(--premium-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--premium-shadow);
}

.cart-empty {
  position: relative;
  isolation: isolate;
  min-height: min(46vh, 470px);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--premium-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--premium-sun) 18%, transparent), transparent 15rem),
    linear-gradient(135deg, color-mix(in srgb, var(--premium-sky) 10%, #fff), #fff 58%);
  box-shadow: var(--premium-shadow);
}

.cart-container {
  align-items: start;
}

.cart-page {
  min-height: 0;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.cart-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(24, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 29, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 12%, #000 62%);
}

.cart-empty > .bi-cart3 {
  display: none;
}

.cart-empty h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cart-empty > p {
  max-width: 42ch;
  margin: 0 auto 1.35rem;
  color: var(--premium-ink-soft);
  line-height: 1.55;
}

.premium-surface-eyebrow,
.premium-auth-story__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--premium-accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.premium-empty-visual {
  position: relative;
  width: min(100%, 250px);
  height: 130px;
  margin: 0 auto 1rem;
}

.premium-empty-visual__tile {
  position: absolute;
  top: 12px;
  left: 50%;
  display: grid;
  width: 92px;
  aspect-ratio: 0.82;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 18px;
  color: var(--premium-ink);
  box-shadow: 0 18px 34px rgba(55, 48, 37, 0.17);
  font-size: 2.1rem;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 18px) rotate(0deg) scale(0.9);
  transition:
    opacity var(--duration-medium) var(--ease-smooth-out),
    transform var(--duration-slow) cubic-bezier(0.34, 1.4, 0.64, 1);
}

.premium-empty-visual__tile--1 {
  z-index: 1;
  margin-left: -62px;
  background: color-mix(in srgb, var(--premium-sky) 52%, #fff);
  transition-delay: 70ms;
}

.premium-empty-visual__tile--2 {
  z-index: 3;
  background: color-mix(in srgb, var(--premium-sun) 52%, #fff);
  transition-delay: 120ms;
}

.premium-empty-visual__tile--3 {
  z-index: 2;
  margin-left: 62px;
  background: color-mix(in srgb, var(--premium-berry) 38%, #fff);
  transition-delay: 170ms;
}

.premium-empty-visual[data-open="true"] .premium-empty-visual__tile,
.premium-empty-visual.t-panel-slide[data-open="true"] .premium-empty-visual__tile {
  opacity: 1;
}

.premium-empty-visual[data-open="true"] .premium-empty-visual__tile--1 {
  transform: translate(-50%, 0) rotate(-11deg) scale(1);
}

.premium-empty-visual[data-open="true"] .premium-empty-visual__tile--2 {
  transform: translate(-50%, -5px) rotate(2deg) scale(1);
}

.premium-empty-visual[data-open="true"] .premium-empty-visual__tile--3 {
  transform: translate(-50%, 2px) rotate(12deg) scale(1);
}

.cart-empty .btn-catalog {
  min-height: 48px;
  padding-inline: 1.25rem;
  border: 1px solid var(--premium-accent-dark);
  border-radius: 14px;
  color: #fff;
  background: var(--premium-accent-dark);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--premium-accent) 25%, transparent);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    filter var(--duration-fast) var(--ease-smooth-out);
}

.cart-item {
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-color: var(--premium-line);
}

.cart-item-image {
  border-radius: 14px;
  background: var(--premium-paper);
}

.delivery-info-block {
  border: 1px solid color-mix(in srgb, var(--premium-sky) 32%, var(--premium-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--premium-sky) 8%, #fff);
}

.checkout-page .checkout-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.checkout-page .checkout-header h1 {
  color: var(--premium-ink);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.checkout-page .checkout-section {
  position: relative;
  overflow: visible;
  border: 1px solid var(--premium-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(43, 51, 47, 0.055);
}

.checkout-page .col-lg-8 > .checkout-section {
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.checkout-page .section-title {
  color: var(--premium-ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.checkout-page .section-title > i {
  color: var(--premium-accent-dark);
}

.checkout-page .delivery-option {
  min-height: 64px;
  padding: 0.95rem;
  border: 1px solid var(--premium-line);
  border-radius: 15px;
  background: #fff;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.checkout-page .delivery-option.selected,
.checkout-page .delivery-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--premium-accent) 58%, #fff);
  background: color-mix(in srgb, var(--premium-accent) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--premium-accent) 10%, transparent);
}

.checkout-page .delivery-option input[type="radio"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--premium-accent-dark);
}

.checkout-page .city-search {
  position: relative;
  z-index: 5;
}

.checkout-page .city-results {
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--premium-shadow-raised);
}

.checkout-page .order-summary {
  position: sticky;
  top: 138px;
}

.checkout-page .order-summary .checkout-section {
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.checkout-page .order-summary .form-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 44px;
  align-items: start;
  padding-left: 0;
}

.checkout-page .order-summary .form-check-input {
  position: static;
  width: 20px;
  height: 20px;
  margin: 0.12rem 0 0;
  accent-color: var(--premium-accent-dark);
}

.checkout-page .submit-order-btn {
  min-height: 50px;
  border: 1px solid var(--premium-accent-dark);
  border-radius: 14px;
  color: #fff;
  background: var(--premium-accent-dark);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--premium-accent) 25%, transparent);
}

.auth-card {
  overflow: hidden;
  border-radius: 26px;
}

.premium-auth-shell {
  width: min(100%, 1040px);
  max-width: 1040px;
  flex: 0 1 1040px;
}

.auth-card.is-premium-auth {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 560px;
  border: 1px solid var(--premium-line);
  background: #fff;
  box-shadow: var(--premium-shadow-raised);
}

.premium-auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(243, 184, 75, 0.28), transparent 14rem),
    var(--premium-accent-dark);
}

.premium-auth-story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.premium-auth-story__eyebrow {
  color: color-mix(in srgb, var(--premium-sun) 78%, #fff);
}

.premium-auth-story__title {
  max-width: 9ch;
  margin: 0.85rem 0 1rem;
  color: #fff;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 0.94;
}

.premium-auth-story__text {
  max-width: 34ch;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.58;
}

.premium-auth-story__benefits {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-auth-story__benefit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.premium-auth-story__benefit::before {
  content: "✓";
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--premium-accent-dark);
  background: var(--premium-sun);
  font-size: 0.78rem;
  font-weight: 900;
}

.premium-auth-story__visual {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 170px;
  height: 115px;
  opacity: 0.95;
}

.premium-auth-story__tile {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 74px;
  aspect-ratio: 0.85;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  color: var(--premium-ink);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
  font-size: 1.45rem;
  font-weight: 850;
}

.premium-auth-story__tile--1 {
  right: 92px;
  bottom: 4px;
  background: var(--premium-sky);
  transform: rotate(-10deg);
}

.premium-auth-story__tile--2 {
  right: 46px;
  bottom: 18px;
  background: var(--premium-sun);
  transform: rotate(4deg);
}

.premium-auth-story__tile--3 {
  background: color-mix(in srgb, var(--premium-berry) 72%, #fff);
  transform: rotate(11deg);
}

.auth-card.is-premium-auth .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem);
}

.auth-card.is-premium-auth .card-body .btn.btn-primary {
  min-height: 48px;
  border: 1px solid var(--premium-accent-dark);
  border-radius: 13px;
  color: #fff;
  background: var(--premium-accent-dark);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--premium-accent) 25%, transparent);
}

.auth-card.is-premium-auth .form-check {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0;
}

.auth-card.is-premium-auth .form-check-input {
  position: static;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  accent-color: var(--premium-accent-dark);
}

.auth-card.is-premium-auth :where(.auth-link, .text-center a) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--premium-accent-dark);
  font-weight: 650;
}

/* Account entry, authenticated cabinet and city selection. */
.header-right .premium-account-entry {
  width: auto;
  min-width: 52px;
  padding-inline: 0.9rem;
  gap: 0.5rem;
}

.header-right .premium-account-entry:hover {
  border-color: var(--premium-accent-dark) !important;
  background: var(--premium-accent-dark) !important;
  color: #fff !important;
}

.header-right .premium-account-entry:focus-visible {
  border-color: var(--premium-accent-dark) !important;
  background: var(--premium-accent-dark) !important;
  color: #fff !important;
}

.header-right .premium-account-entry :where(i, span) {
  color: inherit !important;
}

.premium-account-entry__label {
  color: inherit;
  font-size: 0.88rem;
  font-weight: 720;
}

.premium-account-page {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--premium-sky) 13%, transparent), transparent 22rem),
    var(--premium-paper);
}

.premium-account-shell {
  max-width: 1280px;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) !important;
}

.premium-account-shell > .row {
  align-items: start;
  row-gap: 1rem;
}

.premium-account-profile-card,
.premium-account-content > :where(.account-tab-panel, .tab-content) > .card,
.premium-account-content .order-card {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(44, 52, 48, 0.07);
}

.premium-account-profile-card {
  position: sticky;
  top: 132px;
}

.premium-account-profile-card .card-title {
  color: var(--premium-ink);
  font-size: 1.15rem;
  font-weight: 780;
}

.premium-account-nav {
  display: grid;
  gap: 0.35rem;
}

.premium-account-nav .nav-link {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 12px;
  color: var(--premium-ink-soft);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out);
}

.premium-account-nav .nav-link.active,
.premium-account-nav .nav-link[aria-selected="true"] {
  color: var(--premium-accent-dark);
  background: color-mix(in srgb, var(--premium-accent) 10%, #fff);
}

.premium-account-nav .nav-link.text-danger {
  margin-top: 0.4rem;
  color: #9f2d21 !important;
  background: color-mix(in srgb, #c14436 7%, #fff) !important;
}

.premium-account-content > :where(.account-tab-panel, .tab-content) > h1,
.premium-account-content > :where(.account-tab-panel, .tab-content) > h2 {
  margin-top: 0;
  color: var(--premium-ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}

.premium-account-content .table-responsive {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(44, 52, 48, 0.055);
}

.premium-account-content .table {
  margin-bottom: 0;
}

.premium-account-content .table th {
  padding-block: 0.9rem;
  color: var(--premium-ink-soft);
  background: color-mix(in srgb, var(--premium-paper) 82%, #fff);
  font-size: 0.74rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.premium-account-content .table td {
  padding-block: 0.9rem;
  border-color: var(--premium-line);
}

.premium-account-content :where(.account-action-btn, .btn) {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}

.store-header #citySelector.premium-city-trigger {
  position: relative;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.store-header #citySelector.premium-city-trigger[aria-expanded="true"],
.store-header #citySelector.premium-city-trigger:has(.city-change-btn[aria-expanded="true"]) {
  color: var(--premium-accent-dark);
  border-color: color-mix(in srgb, var(--premium-accent) 20%, var(--premium-line));
  background: color-mix(in srgb, var(--premium-accent) 7%, #fff);
}

.store-header #citySelector.premium-city-trigger:not(button) .city-change-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  color: transparent;
  background: transparent;
}

.store-header #citySelector.premium-city-trigger:not(button) .city-change-btn i {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  color: var(--premium-ink-soft);
  transform: translateY(-50%);
}

.store-header #citySelector.premium-city-trigger:not(button):has(.city-change-btn:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--premium-accent) 30%, transparent);
  outline-offset: 2px;
}

#cityModal .modal-dialog {
  width: min(calc(100% - 2rem), 620px);
  max-width: 620px;
}

#cityModal .modal-content {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 90px rgba(27, 36, 32, 0.22);
}

#cityModal .modal-header {
  padding: 1.25rem 1.35rem 0.9rem;
  border-bottom-color: var(--premium-line);
}

#cityModal .modal-title {
  color: var(--premium-ink);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 790;
  letter-spacing: -0.025em;
}

#cityModal .modal-body {
  padding: 1.2rem 1.35rem;
}

#cityModal #citySearchInput {
  min-height: 50px;
  padding-inline: 1rem;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(44, 52, 48, 0.04);
}

#cityModal .popular-cities .d-flex {
  gap: 0.5rem !important;
}

#cityModal .city-btn {
  min-height: 40px;
  padding-inline: 0.9rem;
  border-color: var(--premium-line);
  border-radius: 999px;
  color: var(--premium-ink-soft);
  background: #fff;
}

#cityModal .city-btn.active,
#cityModal .city-btn[aria-pressed="true"] {
  border-color: var(--premium-accent-dark);
  color: #fff;
  background: var(--premium-accent-dark);
}

#cityModal #citySearchResults {
  max-height: min(32vh, 240px) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(44, 52, 48, 0.1);
}

#cityModal .city-option {
  min-height: 46px;
  border-color: var(--premium-line);
  color: var(--premium-ink);
}

#cityModal .city-option[aria-selected="true"],
#cityModal .city-option:focus-visible {
  color: var(--premium-accent-dark);
  background: color-mix(in srgb, var(--premium-accent) 8%, #fff);
}

#cityModal .modal-footer {
  gap: 0.6rem;
  padding: 0.95rem 1.35rem 1.25rem;
  border-top-color: var(--premium-line);
}

#cityModal .modal-footer .btn {
  min-height: 46px;
  padding-inline: 1.1rem;
  border-radius: 12px;
}

#cityModal #confirmCityBtn {
  border-color: var(--premium-accent-dark);
  color: #fff;
  background: var(--premium-accent-dark);
}

body:has(#cityModal.show) .support-widget__toggle,
body.checkout-page:has(#citySearch:focus) .support-widget__toggle,
body.checkout-page:has(#cityResults[style*="display: block"]) .support-widget__toggle {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}

.checkout-page .premium-checkout-city-search .form-control {
  min-height: 52px;
  padding-inline: 1rem;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(44, 52, 48, 0.045);
}

.checkout-page .city-result-item {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--premium-line);
  color: var(--premium-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

.checkout-page .city-result-item[aria-selected="true"] {
  color: var(--premium-accent-dark);
  background: color-mix(in srgb, var(--premium-accent) 8%, #fff);
}

.checkout-page .premium-selected-city {
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--premium-accent) 22%, var(--premium-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--premium-accent) 6%, #fff);
  transform: translateY(-4px);
  opacity: 0;
  transition:
    opacity var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out);
}

.checkout-page .premium-selected-city.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Route-aware enhancement for the admin-authored delivery page. */
.custom-page--delivery {
  max-width: 1120px;
}

.custom-page--delivery > h1 {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.premium-delivery-journey {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--premium-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--premium-sky) 26%, transparent), transparent 17rem),
    linear-gradient(135deg, color-mix(in srgb, var(--premium-sun) 8%, #fff), #fff 56%);
  box-shadow: var(--premium-shadow);
}

.premium-delivery-journey::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, var(--premium-ink) 0 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
}

.premium-delivery-journey__title {
  max-width: 12ch;
  margin: 0.7rem 0 0.65rem;
  color: var(--premium-ink);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.96;
}

.premium-delivery-journey__lead {
  max-width: 48ch;
  margin-bottom: 1.6rem;
  color: var(--premium-ink-soft);
}

.premium-delivery-journey__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-delivery-journey__step {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--premium-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
}

.premium-delivery-journey__number {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--premium-accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.premium-delivery-journey__label {
  color: var(--premium-ink);
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.35;
}

.custom-page--delivery .page-body {
  max-width: 78ch;
}

.custom-page--delivery .page-body > ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
}

.custom-page--delivery .page-body > ul:first-of-type > li {
  padding: 1rem;
  border: 1px solid var(--premium-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(43, 51, 47, 0.045);
}

.auth-card .card-body {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.auth-card .card-title {
  color: var(--premium-ink);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  border: 1px solid var(--premium-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  transition:
    border-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}

/* Overlays, support and consent */
.quick-view-content,
.modal-content,
.support-widget__panel,
.cart-dropdown-content {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--premium-shadow-raised);
  backdrop-filter: blur(18px);
}

.cart-dropdown-content .btn-checkout {
  min-height: 52px;
  border: 1px solid var(--premium-accent-dark);
  background: var(--premium-accent-dark);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--premium-accent) 26%, transparent);
  font-weight: 740;
  letter-spacing: -0.01em;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.cart-dropdown-content .btn-checkout:hover,
.cart-dropdown-content .btn-checkout:focus-visible {
  border-color: color-mix(in srgb, var(--premium-accent-dark) 88%, #000);
  background: color-mix(in srgb, var(--premium-accent-dark) 88%, #000);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--premium-accent) 34%, transparent);
}

.support-widget__toggle,
.back-to-top {
  min-width: 48px;
  min-height: 48px;
  border-radius: 16px;
  background: var(--premium-accent-dark);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--premium-accent) 25%, transparent);
}

.cookie-consent {
  border-top: 1px solid var(--premium-line);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 -14px 50px rgba(45, 48, 38, 0.08);
  backdrop-filter: blur(18px);
}

.cookie-consent__inner {
  gap: 1rem 2rem;
  padding-block: 0.65rem;
}

.cookie-consent__text {
  max-width: 76ch;
  color: var(--premium-ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-consent__actions > * {
  min-height: 44px;
  border-radius: 12px;
}

.cookie-consent__accept {
  border: 1px solid var(--premium-accent-dark);
  background: var(--premium-accent-dark);
  color: #fff;
}

body:has(.cookie-consent:not([hidden]):not(.cookie-consent--in-flow)) {
  padding-bottom: var(--cookie-consent-height, 0px);
}

body:has(.cookie-consent:not([hidden]):not(.cookie-consent--in-flow)) .support-widget__toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.cookie-consent--in-flow {
  position: relative;
  inset: auto;
  z-index: 30;
  border-top: 0;
  border-bottom: 1px solid var(--premium-line);
}

body.premium-consent-in-flow {
  padding-bottom: 0;
}

body.premium-consent-in-flow .product-sticky-buy {
  bottom: 0;
}

.store-footer {
  border-top: 1px solid var(--premium-line);
  background: #f0ece3;
}

.footer-links {
  gap: 0.75rem 1.5rem;
}

.footer-links a,
.footer-cookie-settings {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Texts reveal transition from transitions.dev. */
.t-panel-slide {
  transform: translateY(var(--panel-translate-y));
  opacity: 0;
  filter: blur(var(--panel-blur));
  pointer-events: none;
  transition:
    transform var(--panel-close-dur) var(--panel-ease),
    opacity   var(--panel-close-dur) var(--panel-ease),
    filter    var(--panel-close-dur) var(--panel-ease);
  will-change: transform, opacity, filter;
}
.t-panel-slide[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transition:
    transform var(--panel-open-dur) var(--panel-ease),
    opacity   var(--panel-open-dur) var(--panel-ease),
    filter    var(--panel-open-dur) var(--panel-ease);
  will-change: auto;
}

.t-stagger-line {
  display: block;
  transition:
    opacity var(--stagger-dur) var(--stagger-ease),
    transform var(--stagger-dur) var(--stagger-ease),
    filter var(--stagger-dur) var(--stagger-ease);
  will-change: transform, opacity, filter;
}

/* Скрытое стартовое состояние — только когда JS реально включил премиум-слой
   (тот же принцип, что у .premium-reveal ниже). Раньше opacity:0 стоял безусловно,
   и на мобильной карточке товара H1 с ценой были невидимы до первого скролла,
   а при сбое JS не появлялись вовсе. */
.zmp-premium-ready .t-stagger-line {
  opacity: 0;
  transform: translateY(var(--stagger-distance));
  filter: blur(var(--stagger-blur));
}

.t-stagger-line--2 {
  transition-delay: var(--stagger-stagger);
}

.t-stagger.is-shown .t-stagger-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  will-change: auto;
}

.t-stagger.is-hiding .t-stagger-line {
  opacity: 0;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 200ms ease,
    transform 0s linear,
    filter 0s linear;
  transition-delay: 0s;
}

/* Shared reveal: only JS-enhanced pages begin hidden, so content is fail-safe. */
.zmp-premium-ready .premium-reveal {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(16px);
  transition:
    opacity var(--duration-very-slow) var(--ease-smooth-out),
    transform var(--duration-very-slow) var(--ease-smooth-out),
    filter var(--duration-very-slow) var(--ease-in-out);
  transition-delay: calc(var(--premium-reveal-order, 0) * var(--duration-stagger));
  will-change: transform, opacity, filter;
}

.zmp-premium-ready .premium-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  will-change: auto;
}

.sidebar-menu-link,
.home-tile,
.commercial-proof > *,
.featured-nav-btn,
.thumbnail,
.quantity-btn {
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out),
    border-color var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

@media (hover: hover) and (pointer: fine) {
  .account-button:hover,
  .cart-button:hover,
  .mobile-search-toggle:hover,
  .mobile-phone-button:hover,
  .mobile-menu-toggle:hover,
  .category-icon-style:hover,
  .product-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--premium-accent) 35%, transparent);
    box-shadow: var(--premium-shadow-raised);
  }

  .product-card:hover .product-image {
    transform: scale(1.035);
  }

  .premium-hero-product:hover {
    z-index: 8;
    filter: saturate(1.08);
    box-shadow: 0 30px 70px rgba(46, 44, 35, 0.28);
    animation-play-state: paused;
  }

  .premium-hero-products:focus-within .premium-hero-product {
    animation-play-state: paused;
  }

  .btn-wishlist:hover {
    border-color: color-mix(in srgb, var(--premium-berry) 38%, #fff) !important;
    background: #fff !important;
    color: #c74f69 !important;
    transform: translateY(-2px) scale(1.03);
  }

  .home-tile:hover,
  .commercial-proof > *:hover,
  .sidebar-menu-link:hover,
  .thumbnail:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--premium-accent) 28%, transparent);
    box-shadow: 0 16px 36px rgba(44, 51, 47, 0.09);
  }

  .commercial-hero__cta:hover,
  .btn-primary:hover,
  .btn-add-cart:hover,
  .add-to-cart-btn:hover,
  .checkout-btn:hover,
  .submit-order-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--premium-accent) 32%, transparent);
  }

  .product-decision__row:hover,
  .checkout-page .delivery-option:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--premium-accent) 28%, transparent);
    box-shadow: 0 14px 30px rgba(43, 51, 47, 0.08);
  }

  .cart-empty .btn-catalog:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--premium-accent) 32%, transparent);
  }
}

:where(.btn, button, .account-button, .cart-button):active {
  transform: translateY(1px) scale(0.985);
}

@media (max-width: 991.98px) {
  .container {
    width: min(100% - 1.5rem, 1320px);
  }

  .store-header {
    backdrop-filter: blur(14px);
  }

  .header-content {
    min-height: 62px;
  }

  .commercial-hero {
    min-height: 0;
    border-radius: 26px;
  }

  .commercial-hero.has-premium-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .commercial-hero.has-premium-products .commercial-hero__content {
    grid-area: 1 / 1;
  }

  .premium-hero-products {
    grid-area: 2 / 1;
    min-height: 340px;
  }

  .commercial-hero.has-premium-products .commercial-hero__audiences {
    grid-area: 2 / 1;
    margin: 0 1.1rem 1.1rem;
  }

  .premium-hero-product--1 {
    left: 35%;
    width: clamp(145px, 27vw, 205px);
  }

  .premium-hero-product--2 {
    right: 12%;
    width: clamp(118px, 22vw, 172px);
  }

  .premium-hero-product--3 {
    left: 13%;
    width: clamp(108px, 20vw, 155px);
  }

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

  .commercial-hero__content {
    padding: 2rem 1.4rem 2.4rem;
  }

  .commercial-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.4rem, 11vw, 4.2rem);
  }

  .commercial-proof {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .page-layout {
    gap: 1.25rem;
  }

  .store-sidebar,
  .filters-panel {
    border-radius: 16px;
  }

  .checkout-page .order-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .home-categories-rail .categories-section > .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }

  .home-categories-rail .categories-grid-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .premium-product-availability__row {
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
  }

  .premium-purchase-terms__inner :where(.product-decision__list, .product-purchase-facts__list) {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-purchase-terms__head {
    min-height: 60px;
    padding: 0.85rem 0.9rem;
  }

  .premium-purchase-terms__inner {
    padding: 0 0.9rem 0.9rem;
  }

  .premium-account-entry__label {
    display: none;
  }

  .header-right .premium-account-entry {
    width: 44px;
    min-width: 44px;
    padding-inline: 0;
  }

  .premium-account-profile-card {
    position: static;
  }

  .premium-account-shell {
    padding-inline: 0.75rem;
  }

  .premium-account-content > :where(.account-tab-panel, .tab-content) > h1,
  .premium-account-content > :where(.account-tab-panel, .tab-content) > h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

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

  #cityModal .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    align-items: flex-end;
    margin: 0;
  }

  #cityModal .modal-content {
    max-height: min(88dvh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  #cityModal .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #cityModal .modal-footer {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .auth-card.is-premium-auth {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .premium-auth-story {
    min-height: 275px;
    padding: 1.6rem;
  }

  .premium-auth-story__title {
    max-width: 10ch;
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .premium-auth-story__text {
    max-width: 19ch;
    margin-bottom: 1rem;
  }

  .premium-auth-story__benefits {
    display: none;
  }

  .premium-auth-story__visual {
    right: 1rem;
    bottom: 0.8rem;
    transform: scale(0.8);
    transform-origin: right bottom;
  }

  .auth-card.is-premium-auth .card-body {
    padding: 1.6rem;
  }

  .premium-delivery-journey__steps,
  .custom-page--delivery .page-body > ul:first-of-type {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .catalog-layout .filters-bar {
    display: flex;
  }

  .catalog-layout .filters-panel {
    display: none;
  }

  .catalog-layout .filters-panel.is-open {
    display: block;
  }

  .catalog-layout .catalog-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .catalog-layout .catalog-header__sort {
    width: 100%;
    margin-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    width: min(100% - 1.5rem, 1320px);
  }

  .commercial-hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    line-height: 0.98;
  }

  .commercial-hero__subtitle {
    line-height: 1.52;
  }

  .commercial-hero__content {
    padding: 1.65rem 1.15rem 1.25rem;
  }

  .premium-hero-products {
    min-height: 250px;
  }

  .premium-hero-products::before {
    inset: 5% 6% 20%;
  }

  .premium-hero-products__eyebrow {
    top: 2%;
    right: 4%;
    font-size: 0.62rem;
  }

  .premium-hero-product {
    border-width: 5px;
    border-radius: 13px;
  }

  .premium-hero-product--1 {
    top: 7%;
    left: 34%;
    width: clamp(118px, 37vw, 154px);
  }

  .premium-hero-product--2 {
    top: 18%;
    right: 4%;
    width: clamp(88px, 28vw, 118px);
  }

  .premium-hero-product--3 {
    top: 24%;
    left: 5%;
    width: clamp(82px, 26vw, 108px);
  }

  .commercial-hero.has-premium-products .commercial-hero__audiences {
    margin: 0 0.7rem 0.7rem;
    padding: 0.62rem 0.72rem;
  }

  .commercial-hero__audience-label {
    margin-bottom: 0.35rem;
    font-size: 0.66rem;
  }

  .commercial-hero__audience-list {
    gap: 0.3rem 0.55rem;
    font-size: 0.75rem;
  }

  .featured-section-wrapper {
    border-radius: 24px;
  }

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

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

  .product-info {
    min-height: 178px;
    padding: 0.8rem;
  }

  .product-title {
    min-height: 3.9em;
    font-size: 0.86rem;
    -webkit-line-clamp: 3;
  }

  .product-image {
    padding: 0.5rem;
  }

  .btn-add-cart {
    min-height: 44px;
    padding-inline: 0.4rem;
    font-size: 0.82rem;
  }

  .btn-wishlist {
    top: 8px !important;
    right: 8px !important;
  }

  .product-details > h1,
  .product-details .product-title {
    min-height: 0;
    font-size: clamp(2rem, 10vw, 3rem);
    -webkit-line-clamp: unset;
  }

  .page-product .breadcrumbs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.2rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .page-product .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .product-decision__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-decision__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-empty {
    min-height: min(420px, 54vh);
    padding: 1.5rem 1rem 2rem;
    border-radius: 22px;
  }

  .container.cart-page {
    margin-bottom: 0;
  }

  .premium-empty-visual {
    height: 115px;
  }

  .custom-page--delivery > h1 {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .premium-delivery-journey {
    padding: 1.35rem;
    border-radius: 20px;
  }

  .premium-delivery-journey__title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .checkout-page .checkout-header .d-flex {
    gap: 0.75rem;
  }

  .checkout-page .checkout-header .btn {
    min-height: 44px;
  }

  .cookie-consent__inner {
    gap: 0.55rem;
    padding-block: 0.55rem;
  }

  .cookie-consent__text {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
    flex-direction: initial;
  }

  .cookie-consent__actions .cookie-consent__accept,
  .cookie-consent__actions .cookie-consent__reject {
    width: 100%;
    padding-inline: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  body:not(.page-product) .support-widget__toggle {
    right: 10px;
    bottom: calc(16px + var(--cookie-consent-height) + env(safe-area-inset-bottom, 0px));
  }

  body.premium-consent-in-flow:not(.page-product) .support-widget__toggle {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.page-product.premium-consent-in-flow .support-widget {
    bottom: 0;
  }

  body.page-product.premium-consent-in-flow .support-widget__toggle {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  body.premium-cart-page .support-widget__toggle,
  body.premium-auth-page .support-widget__toggle,
  body.checkout-page .support-widget__toggle {
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .t-stagger-line {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
  }

  .t-panel-slide { transition: none !important; }

  .t-acc-panel,
  .t-acc-panel-inner,
  .t-acc-chevron {
    transition: none !important;
  }

  .premium-reveal,
  .premium-reveal.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .premium-hero-product {
    animation: none !important;
  }
}

/* ==========================================================================
   Правки по UI-аудиту, 2026-08-04.
   Блок намеренно в конце файла: editorial-premium-v1.css подключается ПОСЛЕ
   инлайнового <style> из components/design-vars.php, поэтому переопределения
   токенов здесь выигрывают по каскаду без !important.
   ========================================================================== */

/* 1. Контраст. Сами переменные (--btn-primary-bg, --text-muted и прочие) доводятся до
   WCAG AA в components/design-vars.php — там же, где они читаются из настроек магазина,
   поэтому смена фирменного цвета в админке продолжает работать. Здесь остаются только
   витринные селекторы, которые задают цвет мимо переменных. */

.product-price,
.price-current,
.product-details .price {
  color: #0b5e86; /* 7.0:1 вместо 2.56:1 — цена читается на всех экранах */
}

.product-price-original,
.price-old,
.product-price-old {
  color: #5a6678;
}

.spec-label,
.product-ai-qa__summary-note,
.product-ai-qa__captcha-hint {
  color: #5a6678;
}

.footer-copyright,
/* Нижняя строка: копирайт, документы и настройки cookies — одной строкой через
   разделители, а не столбиком. Документы перенесены сюда из отдельной колонки. */
.store-footer .footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  color: #5a6055;
}

.store-footer .footer-copyright a {
  color: #5a6055;
  text-decoration: none;
}

.store-footer .footer-copyright a:hover,
.store-footer .footer-copyright a:focus-visible {
  color: var(--premium-accent-dark, #007db1);
  text-decoration: underline;
}

.store-footer .footer-links a {
  color: #4d5a54;
}

.footer-cookie-settings {
  color: #005e86; /* на бежевом футере: 6.4:1 */
}

.search-input::placeholder,
.live-search-input::placeholder,
input[type="search"]::placeholder,
span.search-input {
  color: #6b7671;
  opacity: 1;
}

/* 2. Главная CTA первого экрана. Общее правило выше (селектор на шесть кнопок сразу)
   задаёт min-height, радиус, фон и тень, но не задаёт display — а это <a>, то есть
   inline: паддинги и min-height не работают, кнопка выходила 156×18 и читалась как
   выделенный мышкой текст. */
.commercial-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 14px 28px;
  min-height: 52px;
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 125, 177, 0.22);
}

/* 3. Кнопка «в избранное». Размеры и координаты уже заданы выше с !important, но не
   задан position — top/right игнорировались, кнопка уезжала под низ картинки и
   перехватывалась соседними элементами (elementFromPoint отдавал .product-brand). */
.btn-wishlist {
  position: absolute;
  /* Выше бейджей карточки (.product-badges-container = 10, .product-badge-discount = 11):
     при z-index 3 клик до кнопки не доходил — elementFromPoint отдавал обёртку картинки. */
  z-index: 12;
}

/* 4. Кнопка «Оформить заказ» (#submitOrderBtn.btn.btn-checkout). В разметке класс
   .btn-checkout, а премиальные стили написаны под .submit-order-btn, поэтому заливки
   не оставалось вовсе: фон rgba(0,0,0,0), тёмный текст, opacity .6 — кнопка читалась
   как неактивный текст. Задаём оба состояния явно. */
.checkout-page #submitOrderBtn,
#submitOrderBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--premium-accent-dark, #007db1);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(6, 125, 177, 0.24);
}

.checkout-page #submitOrderBtn:disabled,
#submitOrderBtn:disabled {
  background: #c9d2d6;
  color: #2f3a40;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}

/* 6. Категории на странице каталога (catalog.php). Раньше выбрать тему было нечем:
   в фильтрах только «Цена» и «Бренд», списка категорий на витрине не существовало. */
.catalog-categories {
  margin: 0 0 18px;
  padding: 14px 18px 16px;
  border: 1px solid rgba(24, 32, 29, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 29, 0.05);
}

.catalog-categories__title {
  margin-bottom: 10px;
  color: #5a6678;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-categories__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid rgba(24, 32, 29, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #18201d;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color var(--duration-fast, 0.15s) var(--ease-smooth-out, ease),
    border-color var(--duration-fast, 0.15s) var(--ease-smooth-out, ease),
    color var(--duration-fast, 0.15s) var(--ease-smooth-out, ease);
}

@media (hover: hover) and (pointer: fine) {
  .catalog-categories__link:hover {
    border-color: rgba(6, 125, 177, 0.45);
    background: #eef6fa;
  }
}

.catalog-categories__link.is-active {
  border-color: transparent;
  background: var(--premium-accent-dark, #007db1);
  color: #fff;
}

.catalog-categories__item--level1 .catalog-categories__link {
  background: #f7f5f0;
  color: #4d5a54;
  font-size: 13.5px;
}

.catalog-categories__item--level2 .catalog-categories__link {
  background: #faf9f6;
  color: #5a6678;
  font-size: 13px;
}

.catalog-categories__item--level1 .catalog-categories__link.is-active,
.catalog-categories__item--level2 .catalog-categories__link.is-active {
  background: var(--premium-accent-dark, #007db1);
  color: #fff;
}

@media (max-width: 575.98px) {
  .catalog-categories {
    padding: 12px 14px 14px;
    border-radius: 14px;
  }

  .catalog-categories__list {
    gap: 7px;
  }
}

/* Чипы категорий — одной строкой с горизонтальной прокруткой на всех ширинах.
   Переносами они занимали ~500 px высоты на телефоне, а на десктопе при подгрузке
   шрифта строка перескакивала и вся страница уезжала вниз (CLS каталога 0.07). */
.catalog-categories__list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.catalog-categories__list::-webkit-scrollbar {
  display: none;
}

.catalog-categories__list > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.catalog-categories__link {
  white-space: nowrap;
}

/* 7. Блок «Выберите тему» на главной (index.php). Единственный вход в ассортимент
   с главной вёл в общий каталог из 146 товаров; тем не было нигде. */
.home-categories {
  margin: clamp(28px, 5vw, 52px) 0 0;
}

.home-categories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.home-categories__title {
  margin: 0;
  color: #18201d;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-categories__all {
  color: var(--premium-accent-dark, #007db1);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.home-categories__all:hover {
  text-decoration: underline;
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.home-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid rgba(24, 32, 29, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 32, 29, 0.05);
  color: #18201d;
  text-decoration: none;
  transition:
    transform var(--duration-fast, 0.15s) var(--ease-smooth-out, ease),
    box-shadow var(--duration-fast, 0.15s) var(--ease-smooth-out, ease),
    border-color var(--duration-fast, 0.15s) var(--ease-smooth-out, ease);
}

.home-category-card__name {
  /* Занимает всё свободное место, чтобы стрелка осталась у правого края,
     когда слева появилась иконка категории. */
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.home-category-card__arrow {
  flex: 0 0 auto;
  color: var(--premium-accent-dark, #007db1);
  font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .home-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 125, 177, 0.35);
    box-shadow: 0 14px 32px rgba(24, 32, 29, 0.1);
  }
}

@media (max-width: 575.98px) {
  .home-categories__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .home-category-card {
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .home-category-card__name {
    font-size: 14.5px;
  }
}

/* 8. Мобильная шапка: постоянный поиск вместо иконки, бургер в 44 px.
   Поиск на телефоне был спрятан за иконкой, хотя категорий в меню не было и поиск
   оставался главным способом что-то найти. Показываем ту же строку живого поиска,
   что и на десктопе (разметка и обработчики уже есть), отдельным рядом под логотипом;
   иконку-переключатель прячем, чтобы не было двух входов в одно и то же. */
@media (max-width: 767.98px) {
  /* Раскладка сеткой, а не переносом флексов: при wrap браузер предпочитает перенести
     корзину на новую строку, вместо того чтобы сжать длинный логотип, и шапка растёт
     до трёх рядов. Сетка задаёт ровно два ряда: [бургер | логотип | иконки] и поиск. */
  .store-header .header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "burger brand actions"
      "search search search";
    align-items: center;
    gap: 8px 10px;
  }

  .store-header .header-content .mobile-menu-toggle {
    grid-area: burger;
  }

  .store-header .header-content .header-left {
    grid-area: brand;
  }

  .store-header .header-content .header-right {
    grid-area: actions;
  }

  /* перебиваем store.css: .header-center { display: none !important } */
  .store-header .header-content .header-center {
    display: block !important;
    grid-area: search;
    max-width: 100%;
    margin: 0;
  }

  .store-header .header-content .live-search-container {
    width: 100%;
  }

  .store-header .mobile-search-toggle {
    display: none;
  }

  .store-header .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .store-header .header-top-bar {
    padding: 0.3rem 0;
  }

  .store-header .header-content {
    padding: 8px 0 10px;
  }
}

/* Уточнение к п.8: после разрешения переноса строк логотип с длинным названием
   выдавливал корзину на отдельную строку — шапка вырастала до 252 px. Логотипу даём
   сжиматься, кегли и отступы поля поиска приводим к 44 px строке. */
@media (max-width: 767.98px) {
  .store-header .header-content {
    padding: 10px 0;
  }

  .store-header .header-content .header-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .store-header .header-content .store-brand {
    min-width: 0;
  }

  .store-header .header-content .store-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-header .header-content .search-input {
    padding: 9px 42px 9px 38px;
    font-size: 16px; /* меньше 16px — iOS зумит страницу при фокусе */
  }
}

/* Иконка бургера: три толстые синие полосы во всю ширину кнопки читались как артефакт
   вёрстки и выбивались из ряда тонких тёмных иконок шапки. */
.store-header .mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #18201d;
}

.store-header .mobile-menu-toggle {
  gap: 5px;
  flex-direction: column;
}

/* 9. Бейджи карточки в одном углу. В настройках магазина «ХИТ» стоит сверху слева,
   а скидка — снизу слева: два ярлыка в разных углах поверх обложки читаются как
   случайность и перекрывают картинку снизу. Ставим скидку под стопку бейджей;
   если бейджей нет, скидка остаётся в своём углу (правило работает через :has). */
.product-image-wrapper:has(.product-badges-container.product-badges-top-left)
  .product-badge-discount.product-badge-bottom-left {
  top: 42px;
  bottom: auto;
}

@media (max-width: 575.98px) {
  .product-image-wrapper:has(.product-badges-container.product-badges-top-left)
    .product-badge-discount.product-badge-bottom-left {
    top: 36px;
  }
}

/* Кнопка «Спросить» в блоке вопросов о товаре. В разметке у неё класс nav-link,
   и она выглядела как пункт меню: прозрачный фон, серый текст, нулевое
   скругление — на действие не похоже. Приводим к виду основной кнопки. */
.product-ai-qa .product-ai-qa__btn.nav-link {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--premium-accent-dark, #0b5e86);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: filter 0.15s ease;
}

.product-ai-qa .product-ai-qa__btn.nav-link:hover,
.product-ai-qa .product-ai-qa__btn.nav-link:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.product-ai-qa .product-ai-qa__btn.nav-link[disabled] {
  opacity: 0.55;
  filter: none;
  cursor: default;
}

/* Индикаторы карусели «Рекомендуем».
   Флекс-контейнер растягивал точки по вертикали до 44 px: вместо кружков
   получались вытянутые овалы, а активная — прямоугольник со скруглением 5 px.
   Точка теперь рисуется псевдоэлементом с фиксированным размером, а сама
   кнопка остаётся крупной областью нажатия.
   Цвета светлые: фон секции тёмно-зелёный, и белые точки на нём — это не
   случайность старого кода, а осознанный выбор. */
.featured-indicators {
  align-items: center;
}

.featured-indicators .featured-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 44px;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
}

.featured-indicators .featured-indicator::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.featured-indicators .featured-indicator:hover::before,
.featured-indicators .featured-indicator:focus-visible::before {
  background: rgba(255, 255, 255, 0.7);
  transform: none;
}

.featured-indicators .featured-indicator.active {
  width: 40px;
}

.featured-indicators .featured-indicator.active::before {
  width: 26px;
  background: #fff;
}

/* Иконка категории в карточке блока «Выберите тему»: раньше карточки были
   чисто текстовыми, теперь у категорий есть свои иллюстрации. */
.home-category-card__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Кнопка «Вернуться в корзину» на чекауте. Была на голых классах Bootstrap
   (btn-outline-secondary btn-sm): серая рамка #6c757d, скругление 4px, кегль 14
   и display:block — стрелка с текстом не выравнивались, и кнопка выбивалась
   из оформления витрины. */
.checkout-header .checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(24, 32, 29, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #2b3531;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.checkout-header .checkout-back-link:hover,
.checkout-header .checkout-back-link:focus-visible {
  border-color: var(--premium-accent-dark, #007db1);
  color: var(--premium-accent-dark, #007db1);
}

@media (max-width: 575.98px) {
  .checkout-header .checkout-back-link {
    padding: 0 14px;
    font-size: 14px;
  }
}

/* 10. Футер с контактами. Раньше это был один ряд ссылок и копирайт: ни телефона,
   ни почты, ни реквизитов — для розничного магазина это и потеря доверия, и пробел
   по закону. Колонки появляются только на публичной витрине; страницы входа
   и кабинета продолжают показывать компактный вариант. */
/* Колонки футера: слева бренд, дальше короткие группы ссылок, справа контакты.
   Раньше колонок было три и все семь ссылок шли одним столбцом высотой 398 px —
   футер занимал 0,7 экрана на десктопе и почти целый экран на телефоне. */
.store-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  padding: 32px 0 24px;
  border-bottom: 1px solid rgba(24, 32, 29, 0.08);
  text-align: left;
}

/* Если описание магазина в настройках не заполнено, колонка бренда — это одна
   короткая строка, и широкая колонка оставляет пустую треть футера. */
.store-footer .footer-main--compact {
  grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr));
}

.store-footer .footer-store-name {
  color: #18201d;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-footer .footer-tagline {
  margin: 8px 0 0;
  max-width: 42ch;
  color: #4d5a54;
  font-size: 14.5px;
  line-height: 1.5;
}

.store-footer .footer-col-title {
  margin-bottom: 12px;
  color: #5a6055;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-footer .footer-col--links .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.store-footer .footer-col--links .footer-links a {
  color: #4d5a54;
  font-size: 15px;
  text-decoration: none;
}

.store-footer .footer-col--links .footer-links a:hover {
  color: var(--premium-accent-dark, #007db1);
  text-decoration: underline;
}

.store-footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-footer .footer-contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4d5a54;
  font-size: 15px;
}

.store-footer .footer-contacts i {
  color: var(--premium-accent-dark, #007db1);
}

.store-footer .footer-contacts a {
  color: #18201d;
  font-weight: 600;
  text-decoration: none;
}

.store-footer .footer-contacts a:hover {
  text-decoration: underline;
}

.store-footer .footer-legal {
  margin-top: 14px;
  color: #5a6055;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .store-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    padding: 26px 0 20px;
  }

  /* Бренд и контакты — во всю ширину, группы ссылок — в две колонки:
     семь ссылок столбиком давали 410 px высоты на телефоне. */
  .store-footer .footer-col--brand,
  .store-footer .footer-col--contacts {
    grid-column: 1 / -1;
  }

  .store-footer .footer-col--links .footer-links {
    gap: 4px;
  }

  .store-footer .footer-contacts li {
    min-height: 32px;
  }

  .store-footer .footer-contacts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  /* Нижняя строка на телефоне: четыре пункта столбиком занимали 125 px —
     ужимаем кегль и отступы, чтобы влезало по два в ряд. */
  .store-footer .footer-copyright {
    gap: 2px 12px;
    font-size: 13px;
    line-height: 1.4;
  }

}

@media (max-width: 479.98px) {
  .store-footer .footer-main {
    gap: 18px 16px;
  }
}

/* Ссылки футера: на тач-устройствах оставляем 44 px (глобальный минимум цели),
   на десктопе с мышью ужимаем — иначе колонка из семи ссылок растягивает футер
   на 300+ px без пользы. */
@media (hover: hover) and (pointer: fine) {
  .store-footer .footer-col--links .footer-links a {
    display: flex;
    align-items: center;
    min-height: 30px;
  }

  .store-footer .footer-col--links .footer-links {
    gap: 2px;
  }
}

/* 11. Строка гарантий на первом экране: у списка остались дисковые маркеры и левый
   отступ 32px, поэтому рядом с карточками болтались точки «•» вне их границ,
   а иконка ✓ стояла вплотную к тексту. */
.commercial-proof {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commercial-proof > li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.commercial-proof > li::marker {
  content: "";
}

.commercial-proof > li > i {
  flex: 0 0 auto;
  color: var(--premium-accent-dark, #007db1);
}

/* 12. Липкая панель оформления на телефоне. Сумма и кнопка «Оформить заказ» лежали
   на дне страницы высотой больше 3000 px: заполнив контакты, покупатель не видел ни
   итога, ни кнопки и не понимал, что делать дальше. */
.checkout-mobile-bar {
  display: none;
}

@media (max-width: 767.98px) {
  .checkout-page .checkout-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(24, 32, 29, 0.1);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(24, 32, 29, 0.08);
  }

  .checkout-mobile-bar__total {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .checkout-mobile-bar__label {
    color: #5a6678;
    font-size: 12px;
  }

  .checkout-mobile-bar__value {
    color: #18201d;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
  }

  .checkout-mobile-bar__button {
    flex: 0 1 auto;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--premium-accent-dark, #007db1);
    color: #fff;
    font-size: 16px;
    font-weight: 650;
  }

  /* чтобы панель не накрывала футер и последнюю секцию формы */
  .checkout-page {
    padding-bottom: 88px;
  }

  /* плавающий чат не должен стоять на кнопке заказа */
  .checkout-page .support-widget,
  .checkout-page [class*="support-fab"],
  .checkout-page [class*="chat-fab"] {
    bottom: 92px;
  }
}

/* Подсказка о пределе количества на карточке товара */
.quantity-limit-hint {
  flex-basis: 100%;
  margin-top: 6px;
  color: #8c5b0e;
  font-size: 13.5px;
}

/* 13. Корзина резервирует место под содержимое: #cartContent заполняется скриптом,
   и до этого футер стоял на 700 px выше, а потом уезжал вниз — CLS 0.077 на пустой
   корзине. Минимальная высота убирает прыжок и на пустой, и на заполненной корзине. */
#cartContent {
  min-height: 420px;
}

@media (max-width: 767.98px) {
  #cartContent {
    min-height: 360px;
  }
}

/* Чипы категорий на тач-устройствах — полноценные 44 px цели */
@media (hover: none), (pointer: coarse) {
  .catalog-categories__link {
    min-height: 44px;
    padding-block: 10px;
  }
}

/* 14. Пагинация каталога рядом с бесконечной лентой: лента удобна для прокрутки,
   но не позволяет ни вернуться на нужную страницу, ни попасть на товары со второй
   страницы по ссылке (?page=2 раньше отдавал первую). */
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 32px;
}

.catalog-pagination__page,
.catalog-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(24, 32, 29, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #18201d;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.catalog-pagination__nav {
  padding-inline: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-pagination__page:hover,
  .catalog-pagination__nav:hover {
    border-color: rgba(6, 125, 177, 0.45);
    background: #eef6fa;
  }
}

.catalog-pagination__page.is-current {
  border-color: transparent;
  background: var(--premium-accent-dark, #007db1);
  color: #fff;
}

.catalog-pagination__gap {
  color: #5a6678;
  padding-inline: 2px;
}

/* 15. Нижняя навигация на телефонах. Каталог на мобиле вырастает до нескольких тысяч
   пикселей, и до корзины или поиска приходилось прокручивать страницу обратно наверх. */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(24, 32, 29, 0.1);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 -6px 20px rgba(24, 32, 29, 0.07);
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: #5a6678;
    font-size: 11px;
    line-height: 1.1;
    text-decoration: none;
  }

  .mobile-bottom-nav__item i {
    font-size: 19px;
  }

  .mobile-bottom-nav__item.is-active {
    color: var(--premium-accent-dark, #007db1);
    font-weight: 600;
  }

  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d93025;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  /* Контент не должен прятаться под панелью.
     padding-bottom на body тут не работает: body — флекс-контейнер фиксированной
     высоты (100vh), контент из него выпадает, и внутренний паддинг на конец
     страницы не влияет — последняя строка футера уходила под панель на 9 px.
     Поэтому резерв ставим на сам футер, а паддинг body оставляем для раскладок,
     где футера нет. */
  body,
  body.premium-consent-in-flow {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  /* Именно padding, а не margin: нижний внешний отступ переполняющего контента
     не попадает в область прокрутки, и панель по-прежнему накрывала последнюю
     строку. Padding входит в бокс футера и увеличивает высоту страницы честно. */
  .store-footer {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  /* плавающие кнопки поднимаем над панелью */
  .support-widget,
  .support-widget__toggle,
  .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* липкие панели покупки и оформления — тоже над ней */
  .product-sticky-buy,
  .checkout-page .checkout-mobile-bar {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .checkout-page {
    padding-bottom: 150px;
  }
}

/* Кнопка «наверх» над нижней панелью: базовое правило в store.css считает отступ
   от высоты cookie-баннера и на карточке товара добавляет ещё 84px — перебиваем
   тем же уровнем специфичности, но с учётом панели. */
@media (max-width: 767.98px) {
  body .back-to-top,
  body.page-product .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.page-product .back-to-top {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
}
