@import url("https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Manrope:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #f5f0ff;
  --surface: #ffffff;
  --primary: #8f1fff;
  --primary-dark: #6610c4;
  --accent: #f7de25;
  --accent-soft: #fffce8;
  --text: #26173b;
  --muted: #6b5b82;
  --line: #e8dcfa;
  --success: #1f8b55;
  --danger: #bd2e4e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(52, 18, 84, 0.12);
  --brand-font: "Berkshire Swash", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", "Roboto", sans-serif;
  --font-heading: "Sora", "Poppins", "Montserrat", sans-serif;
  --font-ui: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  --space-2xs: 6px;
  --space-xs: 10px;
  --space-sm: 14px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 44px;
}

* {
  box-sizing: border-box;
}

html {
  background: #f8f4ff;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: #f6f1ff;
  background: radial-gradient(circle at top right, #e6d1ff 0, var(--bg) 45%);
  line-height: 1.45;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: var(--space-xs) 0;
}

.social {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 90px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}

.topbar-search {
  justify-self: center;
  width: min(420px, 100%);
  min-width: 260px;
}

.account-links {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 20px;
  align-items: center;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-cart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  background: #fff;
}

.topbar-cart svg {
  width: 18px;
  height: 18px;
}

.topbar-cart strong {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  padding: 0 4px;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.topbar-user__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(51, 28, 82, 0.12);
}

.topbar-user__icon svg {
  width: 16px;
  height: 16px;
}

.auth-logout {
  color: var(--primary-dark);
  font-weight: 600;
}

.auth-logout:hover {
  text-decoration: underline;
}

.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.main-header__content {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-wrap img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-wrap--compact {
  gap: 12px;
}

.logo-wrap--compact img {
  width: 56px;
  height: 56px;
}

.logo-wrap--compact .logo-title {
  font-size: 18px;
}

.logo-wrap--compact .logo-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.logo-wrap--home {
  gap: 18px;
  align-items: center;
}

.logo-wrap--home img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(69, 21, 116, 0.16);
}

.logo-wrap--home .logo-title {
  font-family: var(--brand-font);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  color: #522985;
}

.logo-wrap--home .logo-subtitle {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #7a5aa7;
}

.logo-wrap--home.logo-wrap--small img {
  width: 86px;
  height: 86px;
}

.logo-wrap--home.logo-wrap--small .logo-title {
  font-size: 22px;
}

.logo-wrap--home.logo-wrap--small .logo-subtitle {
  font-size: 10px;
}

.search {
  position: relative;
  min-width: 0;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 50px 13px 18px;
  font-size: 14px;
  background: #fcfaff;
}

.search button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  cursor: pointer;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f2e8ff;
  border: 1px solid #dcc3ff;
  font-weight: 600;
}

.cart-badge strong {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.main-nav__content {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: var(--space-xs) 0;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--accent);
  color: var(--primary-dark);
  background: var(--accent-soft);
}

.home-banner {
  background: transparent;
  border-bottom: 0;
}

.home-banner__content {
  padding: 14px 0 8px;
}

.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #1f1032;
  border: 1px solid rgba(139, 108, 184, 0.28);
  box-shadow: 0 16px 34px rgba(46, 20, 73, 0.2);
}

.banner-track {
  display: flex;
  transition: transform 0.55s ease;
  width: 100%;
}

.banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: clamp(304px, 38vw, 440px);
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0;
  background: #2a1743;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.banner-slide__link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}

.banner-slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.banner-slide__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(17, 8, 27, 0.06) 28%, rgba(17, 8, 27, 0.74) 100%),
    linear-gradient(96deg, rgba(17, 8, 27, 0.62) 0%, rgba(17, 8, 27, 0.22) 52%, rgba(17, 8, 27, 0.02) 100%);
}

.banner-slide::after {
  content: none;
}

.banner-slide--promo-full::before {
  background: none;
}

.banner-slide--promo-full {
  height: clamp(304px, 38vw, 440px);
}

.banner-media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
  box-shadow: none;
}

.banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 6, 20, 0) 12%, rgba(12, 6, 20, 0.22) 50%, rgba(12, 6, 20, 0.58) 100%);
  pointer-events: none;
}

.banner-slide--promo-full .banner-media::after {
  background: none;
}

.banner-slide--promo-full .banner-media {
  background-color: #6d34b8;
  z-index: 1;
}

.banner-slide.banner-slide--promo-full img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  transform: scale(1);
}

.banner-slide.banner-slide--promo-full:hover img {
  transform: scale(1);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.banner-slide:hover img {
  transform: scale(1.04);
}

.banner-copy {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 52px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
  gap: 10px;
  margin: clamp(16px, 2.4vw, 28px);
  padding: 0;
  min-width: 0;
  max-height: calc(100% - 42px);
  overflow: clip;
  color: #fff;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 8, 22, 0.34);
  color: #f4da89;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}

.banner-category {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f1d7ff;
  opacity: 0.98;
}

.banner-copy h2 {
  margin: 0;
  font-family: "Montserrat", "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  max-width: 660px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 10px 22px rgba(11, 5, 18, 0.4);
}

.banner-text {
  margin: 0;
  color: rgba(249, 244, 255, 0.94);
  font-size: 15px;
  line-height: 1.46;
  max-width: 620px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 4px 12px rgba(9, 5, 15, 0.34);
}

.banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.banner-features span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 6, 19, 0.34);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 3px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(246, 214, 66, 0.95);
  color: #4a3072;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(15, 7, 23, 0.24);
}

.btn-banner {
  align-self: start;
  margin-top: 2px;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 14px rgba(28, 12, 43, 0.2);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 11px 0 0;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #d7c5f3;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.banner-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #7a2dd6;
  transform: none;
}

.banner-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.banner-admin-bar[hidden] {
  display: none !important;
}

.banner-admin-add {
  min-height: 40px;
}

.banner-admin-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.banner-admin-actions[hidden] {
  display: none !important;
}

.banner-admin-action {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 198, 243, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #5f3c90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(33, 16, 54, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.banner-admin-action:hover {
  transform: translateY(-1px);
  border-color: #c09fe7;
  box-shadow: 0 12px 22px rgba(33, 16, 54, 0.28);
}

.banner-admin-action--delete {
  border-color: #efc2ce;
  background: rgba(255, 245, 247, 0.96);
  color: #b93859;
}

.banner-admin-action--delete:hover {
  border-color: #dd8ba3;
}

.banner-admin-action svg {
  width: 18px;
  height: 18px;
}

.banner-slide--empty {
  align-items: center;
  justify-content: center;
}

.banner-empty-state {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #5f3c90;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 26px rgba(33, 16, 54, 0.18);
}

@media (max-width: 860px) {
  .banner-slide {
    height: 302px;
  }

  .banner-slide--promo-full {
    height: 302px;
  }

  .banner-copy {
    width: min(100%, 640px);
    margin: 14px;
    padding: 0;
    max-height: calc(100% - 28px);
    gap: 8px;
  }

  .banner-copy h2 {
    font-size: 25px;
    -webkit-line-clamp: 2;
  }

  .banner-text {
    -webkit-line-clamp: 2;
  }

  .banner-features {
    display: none;
  }

  .banner-features span {
    min-height: 28px;
    font-size: 11px;
    padding: 0 10px;
  }

  .banner-admin-actions {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .banner-slide {
    height: 294px;
  }

  .banner-slide--promo-full {
    height: 294px;
  }

  .banner-copy {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 0;
    gap: 7px;
    max-height: calc(100% - 20px);
  }

  .banner-copy h2 {
    font-size: 22px;
    -webkit-line-clamp: 2;
  }

  .banner-text {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .banner-features {
    display: none;
  }

  .banner-features span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .banner-cta {
    min-height: 31px;
    padding: 0 13px;
    font-size: 10px;
  }

  .banner-chip {
    font-size: 9px;
    padding: 4px 8px;
  }
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
}

.hero-card {
  background: linear-gradient(135deg, #f8f0ff 10%, #fffce9 100%);
  border: 1px solid #e7d8fb;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: calc(var(--space-lg) + 2px);
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-light {
  border-color: #d7bfff;
  color: var(--primary-dark);
  background: #fcf8ff;
}

.btn-light:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  margin: 0 0 var(--space-sm);
  font-size: 26px;
}

.section-subtitle {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card__image {
  display: block;
  overflow: hidden;
  background: #f4ecff;
  padding: var(--space-xs);
  aspect-ratio: 1 / 1;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__body {
  padding: var(--space-sm);
  display: grid;
  gap: var(--space-xs);
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.product-meta {
  color: var(--muted);
  font-size: 13px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.price small {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.actions-row {
  display: flex;
  gap: var(--space-2xs);
}

.actions-row .btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
}

.filters {
  margin: var(--space-sm) 0 var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: 1fr 200px;
}

.catalog-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 10px;
}

.catalog-admin-add {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filters input,
.filters select,
.field,
textarea {
  border: 1px solid #ddcff5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  font: inherit;
  background: #fefcff;
}

.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
}

.product-view img {
  border-radius: 12px;
  background: #f4ecff;
}

.product-view h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

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

.chip-row {
  display: flex;
  gap: var(--space-2xs);
  flex-wrap: wrap;
  margin: var(--space-sm) 0;
}

.chip {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: #6a11cd;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.qty-row input {
  width: 84px;
  text-align: center;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
}

.cart-list,
.summary,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.checkout-state {
  margin-bottom: var(--space-md);
  display: grid;
  gap: 16px;
}

.checkout-state[hidden] {
  display: none !important;
}

.checkout-state__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-state__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d5f85;
}

.checkout-state__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.checkout-state__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.checkout-state__badge--success {
  border-color: #bde6ca;
  background: #eefaf2;
  color: #257248;
}

.checkout-state__badge--warning {
  border-color: #f3dfb0;
  background: #fff8e7;
  color: #9b6a05;
}

.checkout-state__badge--error {
  border-color: #efc6cf;
  background: #fff3f6;
  color: #b04063;
}

.checkout-state__badge--info {
  border-color: #cddcf8;
  background: #f5f8ff;
  color: #375eb8;
}

.checkout-state__message {
  margin: 0;
  color: #594b70;
  line-height: 1.6;
}

.checkout-state__hint {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(107, 90, 133, 0.18);
  background: rgba(244, 239, 250, 0.9);
  color: #604f7b;
  line-height: 1.55;
}

.checkout-state__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.checkout-state__card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #eadff8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 255, 0.96) 100%);
}

.checkout-state__card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a6a94;
}

.checkout-state__card strong {
  display: block;
  margin-top: 6px;
  color: #342249;
  line-height: 1.35;
  word-break: break-word;
}

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

.checkout-state__actions .btn {
  margin-top: 0;
}

.checkout-state__status {
  display: grid;
  gap: 10px;
}

.checkout-state__status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee5f9;
}

.checkout-state__status-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checkout-state__status-row span {
  color: #75668d;
}

.checkout-state__status-row strong {
  text-align: right;
  color: #2f2042;
}

.checkout-state__code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.cart-item img {
  border-radius: 10px;
  background: #f4ecff;
}

.summary h3 {
  margin-top: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  margin-top: 14px;
}

.summary-row--discount strong {
  color: #31875f;
}

.summary-benefits {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(114, 78, 164, 0.2);
  background: rgba(241, 235, 252, 0.72);
}

.summary-benefits strong {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a3d84;
}

.summary-benefits span {
  font-size: 13px;
  color: #5a4a76;
  line-height: 1.45;
}

.summary-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #6f6090;
}

.summary-hint strong {
  color: #543984;
}

.summary-hint--error {
  color: #b04063;
}

.notice {
  border: 1px solid #c9f0dc;
  background: #f1fff8;
  color: var(--success);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  display: none;
}

.notice.error {
  border-color: #f3cfd9;
  background: #fff5f8;
  color: var(--danger);
}

.form-grid {
  display: grid;
  gap: var(--space-xs);
}

.info-page {
  padding-top: calc(var(--space-lg) + 2px);
  padding-bottom: calc(var(--space-xl) + 8px);
}

.content-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 34px);
  display: grid;
  gap: var(--space-sm);
}

.content-card .section-title {
  margin-bottom: 4px;
}

.content-card .section-subtitle {
  margin-bottom: var(--space-sm);
}

.content-card h2 {
  margin: var(--space-xs) 0 0;
  font-size: clamp(22px, 2.1vw, 28px);
  color: #4e2f7b;
}

.content-card p {
  margin: 0;
  color: #564072;
  line-height: 1.65;
}

.content-list {
  margin: 2px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: #564072;
}

.content-list li {
  line-height: 1.6;
}

.content-list--ordered {
  list-style: decimal;
}

.footer {
  margin-top: var(--space-xl);
  background: #2b1247;
  color: #d9c9f4;
}

.footer-top {
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.footer-top > div {
  display: grid;
  align-content: flex-start;
  gap: 8px;
}

.footer h4 {
  margin: 0 0 var(--space-xs);
  color: var(--accent);
}

.footer p,
.footer a {
  color: #cdb8ee;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-top > div:not(:first-child) a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.footer-top > div:not(:first-child) a::before {
  content: "→";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f7de25;
  background: rgba(247, 222, 37, 0.15);
  border: 1px solid rgba(247, 222, 37, 0.4);
  box-shadow: inset 0 0 0 1px rgba(247, 222, 37, 0.05);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-top > div:not(:first-child) a:hover::before {
  transform: translateX(3px);
  background: rgba(247, 222, 37, 0.24);
  border-color: rgba(247, 222, 37, 0.75);
}

.footer-top > div:first-child p:last-child a {
  color: #f7de25;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer--home .footer-top > div:first-child p:last-child a {
  color: #b17a1b;
}

.footer--home .footer-top > div:not(:first-child) a::before {
  color: #4c2b79;
  background: #efe6ff;
  border-color: #d9c3ff;
  box-shadow: inset 0 0 0 1px rgba(76, 43, 121, 0.08);
}

.footer--home .footer-top > div:not(:first-child) a:hover::before {
  background: #e5d7ff;
  border-color: #c8abfb;
}

.footer-top p + p {
  margin-top: 2px;
}

.footer a:hover {
  color: #fff3a8;
}

.footer--home a:hover {
  color: #4c2b79;
}

.footer--home .footer-top > div:first-child p:last-child a:hover {
  color: #8d6417;
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payments img {
  width: 44px;
  height: 28px;
  border-radius: 5px;
  background: #fffef9;
  padding: 4px;
}

.footer-bottom {
  border-top: 1px solid #4a2f72;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  color: #b8a0de;
}

.empty-state {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--muted);
  border: 1px dashed #d9c9f4;
  border-radius: 12px;
  background: #fcf8ff;
}

@media (max-width: 980px) {
  .main-header__content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .logo-wrap {
    flex-wrap: wrap;
  }

  .hero-grid,
  .product-view,
  .cart-layout,
  .footer-top {
    grid-template-columns: 1fr;
  }

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

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

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

  .section {
    padding: var(--space-lg) 0;
  }

  .cart-list,
  .summary,
  .contact-box {
    padding: var(--space-sm);
  }
}

@media (max-width: 620px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .topbar__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-wrap {
    justify-content: center;
    text-align: center;
  }

  .logo-title {
    max-width: 100%;
  }

  .section-title {
    font-size: 22px;
  }

  .empty-state {
    padding: var(--space-xl);
  }
}

/* Home page redesign */
.home-page {
  background: #f8f4ff;
}

.home-page .topbar {
  background: linear-gradient(180deg, #654297 0%, #58398a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-page .topbar__content {
  display: grid;
  grid-template-columns: auto minmax(320px, 500px) auto;
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  padding: 9px 0;
}

.home-page .social {
  justify-self: start;
  justify-content: flex-start;
  gap: 8px;
}

.home-page .topbar-search {
  justify-self: center;
  width: min(460px, 100%);
}

.home-page .topbar-link {
  color: #f6efff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.home-page .topbar-search input {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.96);
  color: #4a2f72;
  min-height: 34px;
  padding: 8px 40px 8px 14px;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(76, 43, 121, 0.08);
}

.home-page .topbar-search input::placeholder {
  color: #8a75aa;
}

.home-page .topbar-search button {
  background: var(--accent);
  color: #4a3073;
  width: 28px;
  height: 28px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(38, 20, 59, 0.16);
}

.home-page .topbar-search button svg {
  width: 14px;
  height: 14px;
}

.home-page .topbar-user {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  min-height: 34px;
  gap: 8px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.home-page .topbar-user__icon {
  background: var(--accent);
  color: #4a3073;
  width: 24px;
  height: 24px;
  box-shadow: none;
}

.home-page .account-links {
  justify-self: auto;
  gap: 8px;
}

.home-page .topbar-actions {
  justify-self: end;
  gap: 10px;
}

.home-page .auth-logout {
  color: #f5ecff;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
}

.home-page .auth-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.home-page .social a {
  color: #f6efff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 32px;
  min-width: 78px;
  padding: 0 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-page .social a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.home-page .topbar-cart {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: #4a3073;
  box-shadow: 0 6px 12px rgba(42, 21, 66, 0.18);
}

.home-page .topbar-cart strong {
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  background: var(--accent);
  color: #4a3073;
}

.home-page .brand-header {
  border-bottom: 0;
  background: #f8f4ff;
}

.home-page .brand-header__content {
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
}

.home-page .logo-wrap--home {
  gap: 20px;
  align-items: center;
}

.home-page .logo-wrap--home img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  box-shadow: 0 14px 32px rgba(69, 21, 116, 0.16);
}

.home-page .logo-title {
  font-family: var(--brand-font);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 400;
  max-width: none;
  color: #522985;
  letter-spacing: 0;
}

.home-page .logo-subtitle {
  margin-top: 8px;
  font-size: clamp(12px, 1.6vw, 20px);
  letter-spacing: 0;
  color: #7a5aa7;
  font-weight: 700;
  display: block;
  text-align: left;
  white-space: nowrap;
}

.home-page .cart-badge--home {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e8dcfa;
  box-shadow: 0 8px 20px rgba(63, 32, 98, 0.1);
}

.home-page .main-nav {
  background: #fff;
  border-top: 1px solid #ebdefd;
  border-bottom: 1px solid #ebdefd;
}

.home-page .main-nav__content--home {
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  padding: 6px 0;
}

.home-page .main-nav a {
  border-radius: 8px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 8px 11px;
  color: #645180;
}

.home-page .main-nav a:hover,
.home-page .main-nav a.active {
  border-color: #e0d0f9;
  color: #4c2a7a;
  background: #f5efff;
}

.showcase {
  padding: 4px 0 var(--space-sm);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-lg);
}

.showcase-copy {
  background: linear-gradient(150deg, #ffffff 0%, #f6edff 100%);
  border: 1px solid #e7d9fc;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(63, 24, 104, 0.08);
  padding: calc(var(--space-lg) + 4px);
  display: grid;
  align-content: center;
}

.showcase-kicker {
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7e67a5;
  font-weight: 700;
  font-size: 12px;
}

.showcase-copy h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  color: #3f1f67;
}

.showcase-copy p {
  margin: 0;
  color: #695785;
  font-size: 16px;
  line-height: 1.55;
}

.showcase-mosaic {
  background: #f0e6ff;
  border: 1px solid #e4d5fb;
  border-radius: 18px;
  padding: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 88px;
  gap: var(--space-xs);
}

.mosaic-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4d5fb;
  box-shadow: 0 10px 18px rgba(72, 35, 113, 0.09);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-item--a {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
}

.mosaic-item--b {
  grid-column: 4 / 7;
  grid-row: 1 / 5;
}

.mosaic-item--c {
  grid-column: 1 / 3;
  grid-row: 4 / 6;
}

.mosaic-item--d {
  grid-column: 3 / 5;
  grid-row: 4 / 6;
}

.mosaic-block {
  border-radius: 12px;
  background: #6a3ea4;
}

.mosaic-block--a {
  grid-column: 5 / 7;
  grid-row: 5 / 6;
}

.mosaic-block--b {
  grid-column: 1 / 2;
  grid-row: 6 / 7;
}

.benefits {
  padding: var(--space-sm) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: #fff;
  border: 1px solid #eadffc;
  border-radius: 12px;
  padding: var(--space-sm);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f5ebff;
  color: #5d388f;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.benefit-card strong {
  color: #4a2d75;
  font-size: 17px;
}

.benefit-card p {
  margin: 4px 0 0;
  color: #75628f;
  font-size: 14px;
}

.section-categories {
  padding: var(--space-lg) 0 var(--space-sm);
}

.section-title--center,
.section-subtitle--center {
  text-align: center;
}

.home-page .section-title--center {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #4d2d7c;
}

.category-grid--home {
  gap: var(--space-sm);
}

.category-grid--home .category-card {
  border: 1px solid #ebdefd;
  background: #fff;
  color: #584378;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-grid--home .category-card span:last-child {
  color: #7f5db1;
  font-weight: 700;
}

.section-launches {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xl);
}

.products-grid--home {
  gap: var(--space-md);
}

.products-grid--home .product-card {
  border: 1px solid #ece2fc;
  box-shadow: 0 12px 22px rgba(66, 34, 102, 0.08);
}

.products-grid--home .product-card__image {
  background: #fcf9ff;
  padding: var(--space-sm);
}

.products-grid--home .product-card__image img {
  border-radius: 10px;
}

.products-grid--home .product-card__body {
  text-align: center;
  gap: var(--space-sm);
}

.products-grid--home .product-meta {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.products-grid--home h3 {
  font-size: 22px;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.25;
  font-weight: 500;
  color: #4f3b6f;
  min-height: 2.6em;
}

.products-grid--home h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid--home .price {
  color: #b8891f;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.products-grid--home .price .price-value {
  white-space: nowrap;
}

.products-grid--home .price .price-prefix {
  color: #8e7da9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.products-grid--home .price small {
  display: block;
  flex-basis: 100%;
  margin: 2px 0 0;
}

.products-grid--home .actions-row {
  margin-top: 2px;
}

.products-grid--home .actions-row .btn {
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.products-grid--home .actions-row--single .btn {
  flex: 1 1 100%;
}

.section-actions {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
}

.footer--home {
  margin-top: 0;
  background: #f5f0ff;
  border-top: 1px solid #dccaf8;
  color: #5d497e;
}

.footer--home .footer-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  padding: calc(var(--space-lg) + 6px) 0;
}

.footer--home h4 {
  color: #4c2b79;
  font-size: 32px;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer--home p,
.footer--home a {
  color: #695785;
  font-size: 16px;
  line-height: 1.45;
}

.footer--home .footer-bottom {
  border-top: 1px solid #d8c3f5;
  background: #6b48a1;
  color: #f4ebff;
  padding: 14px 0;
}

@media (max-width: 1100px) {
  .home-page .topbar__content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-page .topbar-link,
  .home-page .social {
    justify-self: center;
    text-align: center;
  }

  .home-page .social {
    justify-content: center;
  }

  .home-page .topbar-actions {
    justify-self: center;
  }

  .home-page .account-links {
    justify-content: center;
  }

  .home-page .brand-header__content {
    min-height: 0;
    padding-bottom: 14px;
  }

  .home-page .cart-badge--home {
    position: static;
    transform: none;
    margin-top: 10px;
  }

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

@media (max-width: 980px) {
  .home-page .logo-wrap--home {
    flex-direction: column;
    text-align: center;
  }

  .home-page .logo-wrap--home img {
    width: 116px;
    height: 116px;
  }

  .home-page .main-nav__content--home {
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 620px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .products-grid--home {
    grid-template-columns: 1fr;
  }

  .showcase-copy {
    padding: 22px 18px;
  }

  .showcase-mosaic {
    grid-auto-rows: 66px;
  }
}

/* Professional Visual Refresh */
:root {
  --bg: #f6f1ff;
  --surface: #ffffff;
  --primary: #7a2dd6;
  --primary-dark: #5a1ea5;
  --accent: #f2cf2d;
  --accent-soft: #fff8d9;
  --text: #221531;
  --muted: #645476;
  --line: #e7def6;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(41, 22, 69, 0.08);
  --font-body: "Manrope", "Segoe UI", "Roboto", sans-serif;
  --font-heading: "Sora", "Poppins", "Montserrat", sans-serif;
  --font-ui: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top right, #efe2ff 0, #f8f3ff 34%, #f6f1ff 100%);
  line-height: 1.55;
}

input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.showcase-copy h1,
.banner-copy h2,
.product-view h1 {
  font-family: var(--font-heading);
}

.btn,
.main-nav a,
.social a,
.topbar-link,
.auth-logout,
.cart-badge,
.topbar-user,
.product-meta,
.banner-category {
  font-family: var(--font-ui);
}

a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar,
.home-page .topbar {
  background: linear-gradient(180deg, #5d3b8f 0%, #4f327c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 56px;
}

.topbar__content,
.home-page .topbar__content {
  grid-template-columns: auto minmax(280px, 540px) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0;
}

.social,
.home-page .social {
  align-items: center;
  gap: 8px;
}

.social a,
.home-page .social a {
  height: 34px;
  min-width: 82px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #f8f3ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social a:hover,
.home-page .social a:hover {
  background: rgba(255, 255, 255, 0.23);
  border-color: rgba(255, 255, 255, 0.54);
}

.topbar-search,
.home-page .topbar-search {
  width: min(500px, 100%);
}

.topbar-search input,
.home-page .topbar-search input {
  min-height: 36px;
  padding: 8px 42px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.96);
  color: #4a3072;
  box-shadow: inset 0 0 0 1px rgba(90, 30, 165, 0.08);
}

.topbar-search input::placeholder,
.home-page .topbar-search input::placeholder {
  color: #8a78a8;
}

.topbar-search button,
.home-page .topbar-search button {
  width: 28px;
  height: 28px;
  right: 5px;
  border-radius: 50%;
  background: var(--accent);
  color: #4a3072;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(38, 20, 59, 0.18);
}

.topbar-search button svg,
.home-page .topbar-search button svg {
  width: 14px;
  height: 14px;
}

.topbar-actions,
.home-page .topbar-actions {
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.account-links,
.home-page .account-links {
  color: #f4ebff;
  gap: 8px;
}

.topbar-link,
.home-page .topbar-link {
  color: #f4ebff;
  font-size: 13px;
  font-weight: 500;
}

.topbar-user,
.home-page .topbar-user {
  min-height: 34px;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.topbar-user__icon,
.home-page .topbar-user__icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #4a3072;
  box-shadow: none;
}

.topbar-cart,
.home-page .topbar-cart {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.95);
  color: #4a3072;
  box-shadow: 0 6px 12px rgba(39, 20, 61, 0.18);
}

.topbar-cart strong,
.home-page .topbar-cart strong {
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-size: 10px;
  background: var(--accent);
  color: #4a3072;
}

.auth-logout,
.home-page .auth-logout {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f5ecff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.auth-logout:hover,
.home-page .auth-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.main-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(2px);
}

.main-header__content {
  gap: 18px;
  padding: 14px 0;
}

.logo-title {
  color: #4d3078;
}

.search input {
  border: 1px solid #dacbf2;
  border-radius: 999px;
  background: #fff;
  padding: 12px 46px 12px 16px;
  font-size: 14px;
}

.search button {
  width: 32px;
  height: 32px;
  right: 6px;
  background: #f4d640;
  color: #4f307d;
}

.main-nav,
.home-page .main-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.main-nav__content,
.home-page .main-nav__content--home {
  gap: 8px;
  padding: 8px 0;
}

.main-nav a,
.home-page .main-nav a {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  color: #635078;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active,
.home-page .main-nav a:hover,
.home-page .main-nav a.active {
  border-color: #dac7f8;
  background: #f3ecff;
  color: #4a2c74;
}

.section {
  padding: 30px 0;
}

.section-title {
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.02em;
  color: #3f2367;
}

.section-subtitle {
  color: #6e5c84;
  font-size: 15px;
}

.category-card,
.product-card,
.product-view,
.cart-list,
.summary,
.contact-box,
.content-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-card {
  padding: 12px 14px;
  font-weight: 600;
  color: #4d3770;
}

.category-card:hover {
  border-color: #d6c2f5;
  box-shadow: 0 12px 26px rgba(58, 32, 90, 0.12);
}

.product-card {
  overflow: hidden;
}

.product-card__image {
  background: #f8f4ff;
  padding: 12px;
}

.product-card__body {
  padding: 14px;
  gap: 10px;
}

.product-card h3 {
  color: #3f2a5d;
  font-size: 16px;
}

.product-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: #7b6596;
  font-weight: 700;
}

.price {
  color: #5b2b96;
}

.price small {
  color: #8b78a5;
}

.actions-row .btn {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(160deg, #7a2dd6 0%, #6626b7 100%);
  color: #fff;
  border-color: #6b29bc;
}

.btn-primary:hover {
  background: linear-gradient(160deg, #6d28bf 0%, #5c20a7 100%);
}

.btn-light {
  border-color: #d9c8f4;
  color: #5e388f;
  background: #f9f5ff;
}

.btn-light:hover {
  border-color: #ccb4ee;
  background: #f1e9ff;
  color: #4e2e79;
}

.btn-danger {
  background: linear-gradient(160deg, #d84f70 0%, #ad2f52 100%);
  color: #fff;
  border-color: #b93859;
}

.btn-danger:hover {
  background: linear-gradient(160deg, #c84666 0%, #982947 100%);
  border-color: #9f2e4c;
}

.filters input,
.filters select,
.field,
textarea {
  border: 1px solid #d9c8f4;
  border-radius: 10px;
  background: #fff;
}

.filters input:focus,
.filters select:focus,
.field:focus,
textarea:focus,
.search input:focus,
.topbar-search input:focus {
  outline: none;
  border-color: #a67be0;
  box-shadow: 0 0 0 3px rgba(122, 45, 214, 0.15);
}

.notice {
  border-radius: 10px;
}

.content-card {
  max-width: 960px;
  padding: clamp(22px, 2.6vw, 34px);
}

.content-card h2 {
  color: #4a2f73;
}

.content-card p,
.content-list {
  color: #5f4b77;
}

.home-page .showcase-copy,
.showcase-copy {
  border-radius: 16px;
}

.home-page .showcase-copy h1 {
  color: #3f2367;
}

.showcase-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.showcase-spotlight {
  position: relative;
  border-radius: 16px;
  border: 1px solid #e5d9f7;
  background: #fff;
  box-shadow: 0 12px 24px rgba(54, 28, 84, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.showcase-spotlight__admin-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #d9c6f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #5f3c90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(65, 35, 103, 0.16);
  z-index: 4;
}

.showcase-spotlight__admin-edit[hidden] {
  display: none !important;
}

.showcase-spotlight__admin-edit:hover {
  transform: translateY(-1px);
  border-color: #c09fe7;
  box-shadow: 0 10px 18px rgba(65, 35, 103, 0.24);
}

.showcase-spotlight__admin-edit svg {
  width: 18px;
  height: 18px;
}

.showcase-spotlight__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.showcase-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 12, 38, 0) 40%, rgba(25, 12, 38, 0.45) 100%);
}

.showcase-spotlight__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #4e2f78;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-spotlight__content {
  padding: 18px 18px 16px;
  display: grid;
  gap: 12px;
}

.showcase-spotlight__content h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.2;
  color: #3e245f;
}

.showcase-spotlight__content p {
  margin: 0;
  color: #66547d;
  font-size: 14px;
  line-height: 1.6;
}

.showcase-spotlight__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.showcase-spotlight__list li {
  position: relative;
  padding-left: 24px;
  color: #4f3a6f;
  font-size: 14px;
  font-family: var(--font-ui);
  font-weight: 600;
}

.showcase-spotlight__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 24%, #f2cf2d 26% 100%);
  box-shadow: 0 0 0 2px rgba(242, 207, 45, 0.25);
}

.benefits {
  position: relative;
  padding: 18px 0 10px;
}

.benefits::before {
  content: "";
  display: block;
  width: min(390px, 58vw);
  height: 10px;
  margin: 0 auto 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c7a8ee 0%, #f2cf2d 50%, #c7a8ee 100%);
  box-shadow: 0 12px 24px rgba(94, 53, 143, 0.26);
}

.benefits-grid {
  gap: 14px;
}

.benefit-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid #e8dbf8;
  background: linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%);
  box-shadow: 0 12px 24px rgba(54, 27, 86, 0.1);
  padding: 14px 14px 13px;
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #e9d8ff 0%, #f2cf2d 100%);
  opacity: 0.96;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f4e9ff 0%, #ebddff 100%);
  border: 1px solid #dec8f8;
  color: #5a318c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.benefit-card strong {
  color: #4a2d75;
  font-size: 16px;
  line-height: 1.25;
  display: block;
}

.benefit-card p {
  margin: 5px 0 0;
  color: #6f5b89;
  font-size: 13.5px;
  line-height: 1.45;
}

.footer,
.footer--home {
  margin-top: 28px;
  background: linear-gradient(180deg, #2f164f 0%, #2a1346 100%);
  border-top: 1px solid #43226b;
  color: #dacbf2;
}

.footer-top,
.footer--home .footer-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 0 14px;
  column-gap: 24px;
  row-gap: 10px;
  align-items: flex-start;
}

.footer-top > div {
  min-width: 0;
  gap: 5px;
}

.footer-top > div:first-child {
  padding-left: 16px;
  border-left: 1px solid rgba(242, 207, 45, 0.18);
}

.footer-top > div:not(:first-child) {
  padding-left: 16px;
  border-left: 1px solid rgba(242, 207, 45, 0.18);
}

.footer-top > div:last-child {
  padding-right: 16px;
  border-right: 1px solid rgba(242, 207, 45, 0.18);
}

.footer h4,
.footer--home h4 {
  color: #f2cf2d;
  font-size: 18px;
  margin-bottom: 4px;
}

.footer p,
.footer a,
.footer--home p,
.footer--home a {
  color: #d4c4ef;
  font-size: 14px;
  line-height: 1.38;
}

.footer-top p + p {
  margin-top: 2px;
}

.footer-top > div:not(:first-child) a {
  padding: 0;
}

.footer a:hover,
.footer--home a:hover {
  color: #fff3b5;
}

.footer-bottom,
.footer--home .footer-bottom {
  border-top: 1px solid #4a2973;
  background: rgba(0, 0, 0, 0.08);
  color: #bfa8e1;
  padding: 12px 0;
}

@media (max-width: 1100px) {
  .topbar__content,
  .home-page .topbar__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .social,
  .home-page .social,
  .topbar-actions,
  .home-page .topbar-actions {
    justify-content: center;
  }

  .topbar-search,
  .home-page .topbar-search {
    width: min(620px, 100%);
  }

  .footer-top,
  .footer--home .footer-top {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .footer-top > div {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .topbar__content,
  .home-page .topbar__content {
    padding: 8px 0;
  }

  .social a,
  .home-page .social a {
    min-width: 74px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .main-nav__content,
  .home-page .main-nav__content--home {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .main-nav a,
  .home-page .main-nav a {
    font-size: 11px;
    padding: 7px 10px;
  }

  .section {
    padding: 24px 0;
  }

  .showcase-spotlight__content {
    padding: 14px;
    gap: 10px;
  }

  .showcase-spotlight__content h3 {
    font-size: 18px;
  }

  .showcase-spotlight__content p,
  .showcase-spotlight__list li {
    font-size: 13px;
  }
}

/* Internal pages refinement */
body:not(.home-page) {
  background: radial-gradient(circle at top right, #efe3ff 0, #f8f3ff 36%, #f5f1ff 100%);
}

body:not(.home-page) .topbar {
  background: linear-gradient(180deg, #5d3b8f 0%, #4f327c 100%);
}

body:not(.home-page) .topbar__content {
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  min-height: 56px;
  padding: 0;
}

body:not(.home-page) .social {
  justify-self: start;
  justify-content: flex-start;
  gap: 8px;
}

body:not(.home-page) .social a {
  min-width: 82px;
  height: 34px;
  padding: 0 12px;
}

body:not(.home-page) .topbar-search {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  min-width: 0;
}

body:not(.home-page) .topbar-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body:not(.home-page) .account-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4ebff;
  min-width: 0;
}

body:not(.home-page) .account-links > .topbar-link:not(.auth-logout) {
  color: #f4ebff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

body:not(.home-page) .main-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e4d8f5;
  box-shadow: 0 8px 18px rgba(56, 29, 89, 0.08);
}

body:not(.home-page) .main-header__content {
  grid-template-columns: minmax(260px, 390px) auto;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 14px;
}

body:not(.home-page) .logo-wrap--home.logo-wrap--small {
  gap: 14px;
}

body:not(.home-page) .logo-wrap--home.logo-wrap--small img {
  width: 80px;
  height: 80px;
}

body:not(.home-page) .logo-wrap--home.logo-wrap--small .logo-title {
  font-size: clamp(26px, 2.4vw, 34px);
  color: #4c2b77;
}

body:not(.home-page) .logo-wrap--home.logo-wrap--small .logo-subtitle {
  margin-top: 5px;
  font-size: clamp(10px, 1vw, 12px);
  color: #7b63a1;
}

body:not(.home-page) .search input {
  min-height: 44px;
  border: 1px solid #d9c8f3;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(94, 56, 143, 0.05);
}

body:not(.home-page) .header-shortcuts {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body:not(.home-page) .header-shortcut {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d8c4f3;
  background: linear-gradient(180deg, #fbf8ff 0%, #f3ebff 100%);
  color: #563387;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(70, 38, 106, 0.1);
}

body:not(.home-page) .header-shortcut svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body:not(.home-page) .header-shortcut:hover {
  border-color: #cdb4ef;
  background: linear-gradient(180deg, #f6efff 0%, #ece0ff 100%);
  color: #4e2e79;
}

body:not(.home-page) .cart-badge {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #d8c4f3;
  background: linear-gradient(180deg, #fbf8ff 0%, #f3ebff 100%);
  color: #563387;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 16px rgba(70, 38, 106, 0.1);
}

body:not(.home-page) .cart-badge strong {
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  background: #6d2ec0;
}

body:not(.home-page) .cart-badge strong[hidden] {
  display: none;
}

[data-cart-count][hidden],
.topbar-cart strong[hidden],
.cart-badge strong[hidden] {
  display: none !important;
}

body:not(.home-page) .main-nav {
  background: transparent;
  border: 0;
}

body:not(.home-page) .main-nav__content {
  gap: 9px;
  padding: 10px 0 12px;
  flex-wrap: wrap;
  overflow: visible;
}

body:not(.home-page) .main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid #e4d7f6;
  background: #fff;
  color: #5f4a7a;
  box-shadow: 0 4px 10px rgba(58, 30, 92, 0.06);
}

body:not(.home-page) .main-nav a:hover,
body:not(.home-page) .main-nav a.active {
  border-color: #cfb8ef;
  background: #f1e8ff;
  color: #4b2a74;
}

body:not(.home-page) .section {
  padding: 34px 0;
}

body:not(.home-page) .section-title {
  margin-bottom: 8px;
}

body:not(.home-page) .section-subtitle {
  margin-bottom: 20px;
  max-width: 760px;
  line-height: 1.58;
}

body:not(.home-page) .filters {
  margin: 14px 0 24px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e6daf8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 16px rgba(68, 35, 103, 0.08);
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
}

body:not(.home-page) .filters input,
body:not(.home-page) .filters select,
body:not(.home-page) .field,
body:not(.home-page) textarea {
  min-height: 44px;
  border-radius: 12px;
}

body:not(.home-page) textarea {
  min-height: 140px;
  resize: vertical;
}

body:not(.home-page) .products-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body:not(.home-page) .catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

body:not(.home-page) .catalog-pagination__button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #d9c7f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #5b2b96;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(57, 29, 91, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body:not(.home-page) .catalog-pagination__button:hover:not(:disabled),
body:not(.home-page) .catalog-pagination__button[aria-current="page"] {
  transform: translateY(-1px);
  background: linear-gradient(160deg, #7a2dd6 0%, #6626b7 100%);
  color: #fff;
  border-color: #6b29bc;
  box-shadow: 0 12px 22px rgba(87, 35, 145, 0.18);
}

body:not(.home-page) .catalog-pagination__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body:not(.home-page) .catalog-pagination__button--control {
  padding: 0 18px;
}

body:not(.home-page) .product-card {
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(57, 29, 91, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.home-page) .product-card:hover {
  transform: translateY(-2px);
  border-color: #d9c7f2;
  box-shadow: 0 14px 28px rgba(57, 29, 91, 0.14);
}

@media (max-width: 1100px) {
  body:not(.home-page) .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body:not(.home-page) .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:not(.home-page) .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body:not(.home-page) .products-grid {
    grid-template-columns: 1fr;
  }
}

body:not(.home-page) .product-view {
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 24px;
  border-radius: 18px;
  padding: 22px;
}

body:not(.home-page) .product-view h1 {
  font-size: clamp(30px, 3vw, 40px);
}

body:not(.home-page) .cart-layout {
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr);
  gap: 20px;
}

body:not(.home-page) .cart-list,
body:not(.home-page) .summary,
body:not(.home-page) .contact-box,
body:not(.home-page) .content-card,
body:not(.home-page) .auth-panel {
  border-radius: 18px;
  border: 1px solid #e8dcf8;
  box-shadow: 0 14px 28px rgba(58, 30, 91, 0.1);
}

body:not(.home-page) .cart-item {
  grid-template-columns: 88px 1fr auto;
  padding: 14px 0;
}

body:not(.home-page) .cart-item > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}

body:not(.home-page) .cart-item .field {
  width: 92px;
  text-align: center;
}

body:not(.home-page) .checkout-state {
  border-radius: 24px;
  padding: clamp(20px, 2.8vw, 30px);
  background:
    radial-gradient(circle at top right, rgba(146, 105, 199, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(249, 244, 255, 0.97) 100%);
}

body:not(.home-page) .summary {
  position: sticky;
  top: 14px;
  align-self: start;
}

body:not(.home-page) .summary-action {
  width: 100%;
  margin-top: 8px;
}

body:not(.home-page) .summary-action--inline {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

body:not(.home-page) .checkout-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

body:not(.home-page) .checkout-field-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
}

body:not(.home-page) .checkout-installments[hidden] {
  display: none !important;
}

body:not(.home-page) .checkout-field label {
  font-size: 12px;
  color: #6b5a85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body:not(.home-page) .summary-row small {
  color: #7d6b98;
}

body:not(.home-page) .contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

body:not(.home-page) .contact-header .section-title {
  margin: 0 0 4px;
  line-height: 1.12;
}

body:not(.home-page) .contact-header .section-subtitle {
  margin-bottom: 0;
  line-height: 1.42;
}

body:not(.home-page) .contact-header__cta {
  margin-top: 2px;
  flex-shrink: 0;
}

body:not(.home-page) .contact-box__actions {
  margin-top: 12px;
}

body:not(.home-page) .info-page {
  padding-top: 28px;
  padding-bottom: 42px;
}

body:not(.home-page) .content-card {
  max-width: 980px;
  padding: clamp(24px, 2.7vw, 36px);
  gap: 12px;
}

body:not(.home-page) .content-card p .btn + .btn {
  margin-left: 10px;
}

body:not(.home-page) .form-grid {
  gap: 12px;
}

body:not(.home-page) .auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body:not(.home-page) .auth-panel {
  padding: 22px;
  display: grid;
  gap: 14px;
  background: #fff;
}

body:not(.home-page) .auth-panel h2 {
  margin: 0;
  color: #492f6f;
  font-size: 24px;
}

@media (max-width: 1100px) {
  body:not(.home-page) .main-header__content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:not(.home-page) .header-shortcuts {
    justify-self: flex-start;
    flex-wrap: wrap;
  }

  body:not(.home-page) .cart-layout,
  body:not(.home-page) .auth-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .contact-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body:not(.home-page) .summary {
    position: static;
  }

  body:not(.home-page) .checkout-state__header {
    flex-direction: column;
  }

  body:not(.home-page) .checkout-state__badge {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  body:not(.home-page) .social,
  body:not(.home-page) .topbar-actions {
    justify-content: center;
  }

  body:not(.home-page) .main-nav__content {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  body:not(.home-page) .header-shortcuts {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  body:not(.home-page) .header-shortcut {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  body:not(.home-page) .filters {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .product-view {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body:not(.home-page) .checkout-state__summary {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .checkout-state__status-row {
    flex-direction: column;
  }

  body:not(.home-page) .checkout-state__status-row strong {
    text-align: left;
  }
}

/* Topbar parity - enforce identical topbar on every page */
.topbar {
  background: linear-gradient(180deg, #5d3b8f 0%, #4f327c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 56px;
}

.topbar__content {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  min-height: 56px;
  padding: 0;
}

.social {
  justify-self: start;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 82px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #f8f3ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.23);
  border-color: rgba(255, 255, 255, 0.54);
}

.topbar-search {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  min-width: 0;
}

.topbar-search input {
  min-height: 36px;
  padding: 8px 42px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.96);
  color: #4a3072;
  box-shadow: inset 0 0 0 1px rgba(90, 30, 165, 0.08);
}

.topbar-search input::placeholder {
  color: #8a78a8;
}

.topbar-search button {
  width: 28px;
  height: 28px;
  right: 5px;
  border-radius: 50%;
  background: var(--accent);
  color: #4a3072;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(38, 20, 59, 0.18);
}

.topbar-search button svg {
  width: 14px;
  height: 14px;
}

.topbar-actions {
  align-items: center;
  justify-self: end;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.account-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f4ebff;
  min-width: 0;
}

.topbar-link {
  color: #f4ebff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-user {
  min-height: 34px;
  gap: 8px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.topbar-user__icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #4a3072;
  box-shadow: none;
}

.topbar-user--account,
.home-page .topbar-user--account,
body:not(.home-page) .topbar-user--account {
  text-decoration: none;
}

.topbar-user--account:hover,
.home-page .topbar-user--account:hover,
body:not(.home-page) .topbar-user--account:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.48);
}

.topbar-user--account:focus-visible,
.home-page .topbar-user--account:focus-visible,
body:not(.home-page) .topbar-user--account:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.topbar-cart {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.95);
  color: #4a3072;
  box-shadow: 0 6px 12px rgba(39, 20, 61, 0.18);
}

.topbar-cart strong {
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  font-size: 10px;
  background: var(--accent);
  color: #4a3072;
}

.auth-logout {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f5ecff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.auth-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
  .topbar__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .social,
  .topbar-actions {
    justify-content: center;
  }

  .topbar-search {
    width: min(620px, 100%);
  }
}

@media (max-width: 620px) {
  .topbar__content {
    min-height: 0;
    padding: 8px 0;
  }

  .social a {
    min-width: 74px;
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* Topbar hard lock - identical to home on every page */
.home-page .topbar,
body:not(.home-page) .topbar {
  background: linear-gradient(180deg, #5d3b8f 0%, #4f327c 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  min-height: 56px !important;
}

.home-page .topbar__content,
body:not(.home-page) .topbar__content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px) minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 12px !important;
  min-height: 56px !important;
  padding: 0 !important;
}

.home-page .social,
body:not(.home-page) .social {
  justify-self: stretch !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.home-page .social a,
body:not(.home-page) .social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f8f3ff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.home-page .topbar-search,
body:not(.home-page) .topbar-search {
  justify-self: center !important;
  width: 100% !important;
  max-width: 500px !important;
}

.home-page .topbar-search input,
body:not(.home-page) .topbar-search input {
  min-height: 34px !important;
  padding: 8px 40px 8px 14px !important;
  font-size: 13px !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #4a2f72 !important;
  box-shadow: inset 0 0 0 1px rgba(76, 43, 121, 0.08) !important;
}

.home-page .topbar-search button,
body:not(.home-page) .topbar-search button {
  width: 28px !important;
  height: 28px !important;
  right: 5px !important;
}

.home-page .topbar-actions,
body:not(.home-page) .topbar-actions {
  justify-self: stretch !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.home-page .account-links,
body:not(.home-page) .account-links {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.home-page .topbar-link,
body:not(.home-page) .topbar-link {
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.home-page .topbar-cart,
body:not(.home-page) .topbar-cart {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}

.home-page .topbar-user,
body:not(.home-page) .topbar-user {
  min-height: 32px !important;
  max-width: 190px !important;
  padding: 0 10px !important;
  gap: 7px !important;
}

.home-page .topbar-user__icon,
body:not(.home-page) .topbar-user__icon {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}

.home-page .topbar-user span:last-child,
body:not(.home-page) .topbar-user span:last-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .auth-logout,
body:not(.home-page) .auth-logout {
  min-height: 32px !important;
  padding: 0 9px !important;
  font-size: 11.5px !important;
}

@media (max-width: 1100px) {
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 8px !important;
  }

  .home-page .social,
  body:not(.home-page) .social,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    justify-content: center !important;
  }

  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    width: min(620px, 100%) !important;
  }
}

@media (max-width: 620px) {
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  .home-page .social a,
  body:not(.home-page) .social a {
    min-width: 74px !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* Admin panel - product management */
.admin-panel {
  max-width: 1120px;
  display: grid;
  gap: 18px;
}

.admin-subtitle {
  margin: -6px 0 2px;
  color: #6b5a85;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-products {
  border-top: 1px solid #e8dcf8;
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.admin-products__header h2 {
  margin: 0;
  color: #462f69;
}

.admin-products__header p {
  margin: 4px 0 0;
  color: #6b5a85;
}

.admin-products .notice {
  margin: 0;
}

.admin-products__list {
  display: grid;
  gap: 14px;
}

.admin-payments {
  border-top: 1px solid #e8dcf8;
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.admin-payments__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-payments__header h2 {
  margin: 0;
  color: #462f69;
}

.admin-payments__header p {
  margin: 4px 0 0;
  color: #6b5a85;
}

.admin-payments .notice {
  margin: 0;
}

.admin-payments__provider {
  display: grid;
  gap: 12px;
}

.admin-payments-provider__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-payments-provider__card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e5d8f5;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  box-shadow: 0 10px 18px rgba(58, 30, 91, 0.06);
  display: grid;
  gap: 6px;
}

.admin-payments-provider__card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c6a98;
}

.admin-payments-provider__card strong {
  color: #4b316f;
}

.admin-payments-provider__card small {
  color: #6f5d8a;
  line-height: 1.45;
}

.admin-payments-provider__methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-payments-provider__method {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5d8f5;
  background: #fff;
  display: grid;
  gap: 4px;
}

.admin-payments-provider__method strong {
  color: #4a326d;
}

.admin-payments-provider__method span,
.admin-payments-provider__method small {
  color: #705f8c;
}

.admin-payments-provider__method--success {
  border-color: #cbe7d5;
  background: #f6fff9;
}

.admin-payments-provider__method--warning {
  border-color: #f1deb3;
  background: #fffaf0;
}

.admin-payments-provider__method--error {
  border-color: #efc8d2;
  background: #fff6f8;
}

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

.admin-payments__filters label {
  display: grid;
  gap: 6px;
  color: #5d4d79;
  font-size: 13px;
  font-weight: 600;
}

.admin-payments__list {
  display: grid;
  gap: 14px;
}

.admin-payment-card {
  border: 1px solid #e6daf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(58, 30, 91, 0.08);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin-payment-card.is-open {
  border-color: #ccb3ea;
  box-shadow: 0 14px 26px rgba(74, 36, 116, 0.14);
}

.admin-payment-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-payment-card__title {
  display: grid;
  gap: 3px;
}

.admin-payment-card__title h3 {
  margin: 0;
  color: #4d3472;
  font-size: 20px;
}

.admin-payment-card__title small {
  color: #7e6b9d;
  font-size: 12px;
}

.admin-payment-card__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-payment-toggle {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #dac7f3;
  background: linear-gradient(180deg, #f7f1ff 0%, #f0e5ff 100%);
  color: #5f3c90;
  cursor: pointer;
  font-weight: 700;
}

.admin-payment-card__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-payment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4ecff;
  color: #67458f;
  font-size: 12px;
  font-weight: 600;
}

.admin-payment-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-payment-card__meta div {
  display: grid;
  gap: 4px;
}

.admin-payment-card__meta span {
  color: #7d6b98;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-payment-card__meta strong {
  color: #37244d;
}

.admin-payment-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  word-break: break-word;
}

.admin-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-payment-badge--success {
  border-color: #bee7ca;
  background: #eefaf2;
  color: #257248;
}

.admin-payment-badge--warning {
  border-color: #f2dfb4;
  background: #fff9ec;
  color: #9a6b10;
}

.admin-payment-badge--error {
  border-color: #efc6cf;
  background: #fff4f6;
  color: #b04063;
}

.admin-payment-badge--info {
  border-color: #cddcf8;
  background: #f5f8ff;
  color: #375eb8;
}

.admin-payment-detail {
  border-top: 1px solid #ede4f8;
  padding-top: 14px;
  display: grid;
  gap: 16px;
}

.admin-payment-detail[hidden] {
  display: none !important;
}

.admin-payment-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-payment-detail__card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #eadff8;
  background: linear-gradient(180deg, #fff 0%, #faf7ff 100%);
  display: grid;
  gap: 5px;
}

.admin-payment-detail__card span {
  color: #7c6a98;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-payment-detail__card strong {
  color: #3f2a5c;
}

.admin-payment-detail__card small {
  color: #6f5d8a;
  line-height: 1.45;
}

.admin-payment-detail__empty {
  padding: 16px;
  border-radius: 14px;
  background: #fbf8ff;
  border: 1px dashed #d8c6ef;
  color: #735f91;
}

.admin-payment-detail__link {
  margin: 0;
}

.admin-payment-detail__link a {
  color: #5b3693;
  font-weight: 700;
}

.admin-payment-section {
  display: grid;
  gap: 10px;
}

.admin-payment-section__head {
  display: grid;
  gap: 3px;
}

.admin-payment-section__head h4 {
  margin: 0;
  color: #452f67;
}

.admin-payment-section__head p {
  margin: 0;
  color: #6b5a85;
}

.admin-payment-items,
.admin-payment-logs {
  display: grid;
  gap: 8px;
}

.admin-payment-items__row,
.admin-payment-log {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e8dcf8;
  background: #fff;
}

.admin-payment-items__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-payment-items__row strong,
.admin-payment-log strong {
  color: #40295f;
}

.admin-payment-items__row span,
.admin-payment-log p,
.admin-payment-log span {
  color: #6f5d8a;
}

.admin-payment-log__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-payment-log p {
  margin: 6px 0 0;
}

.admin-payment-ops__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-payment-ops__grid label {
  display: grid;
  gap: 6px;
  color: #5d4d79;
  font-size: 13px;
  font-weight: 600;
}

.admin-payment-ops__full {
  grid-column: 1 / -1;
}

.admin-payment-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.admin-payment-checkbox span {
  color: #6b5a85;
  font-size: 13px;
  font-weight: 600;
}

.admin-payment-ops__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-payment-op-status {
  color: #5f4f77;
  font-size: 13px;
  font-weight: 600;
}

.admin-payment-op-status.error {
  color: #b04063;
}

.admin-product-card {
  border: 1px solid #e8dcf8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(58, 30, 91, 0.08);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin-product-card.is-open {
  border-color: #ccb3ea;
  box-shadow: 0 14px 26px rgba(74, 36, 116, 0.14);
}

.admin-product-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-product-card__title {
  display: grid;
  gap: 2px;
}

.admin-product-card__head h3 {
  margin: 0;
  color: #4d3472;
  font-size: 20px;
}

.admin-product-card__head small {
  color: #7e6b9d;
  font-size: 12px;
}

.admin-product-card__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-gear-btn,
.admin-delete-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #dac7f3;
  background: linear-gradient(180deg, #f7f1ff 0%, #f0e5ff 100%);
  color: #5f3c90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-gear-btn:hover,
.admin-delete-btn:hover {
  border-color: #bf9fe6;
  box-shadow: 0 10px 18px rgba(89, 51, 136, 0.18);
}

.admin-delete-btn {
  border-color: #efc2ce;
  background: #fff5f7;
  color: #b93859;
}

.admin-delete-btn:hover {
  border-color: #dd8ba3;
  background: #ffe9ef;
}

.admin-gear-btn svg,
.admin-delete-btn svg {
  width: 20px;
  height: 20px;
}

.admin-product-card.is-open .admin-gear-btn {
  transform: rotate(22deg);
  border-color: #b794e1;
}

.admin-product-card__summary {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  background: #faf6ff;
  border: 1px solid #e8ddf8;
  border-radius: 12px;
  padding: 10px;
}

.admin-product-thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2e7ff;
  border: 1px solid #ddc8f8;
}

.admin-product-card__summary-text {
  display: grid;
  gap: 6px;
}

.admin-product-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d2bbee;
  background: #f2e8ff;
  color: #5f3f8a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-product-card__summary-text p {
  margin: 0;
  color: #4f3a71;
  font-size: 14px;
}

.admin-product-card__summary-text small {
  color: #7e6a9f;
  margin-left: 6px;
  text-decoration: line-through;
}

.admin-product-editor {
  border-top: 1px dashed #d7c5f0;
  padding-top: 12px;
}

.admin-product-editor[hidden] {
  display: none !important;
}

.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-product-grid label {
  display: grid;
  gap: 6px;
  color: #5e4b7b;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-product-grid__full {
  grid-column: 1 / -1;
}

.admin-product-preview {
  display: flex;
  justify-content: center;
  border: 1px dashed #d6c5ee;
  border-radius: 12px;
  padding: 10px;
  background: #faf6ff;
}

.admin-product-preview img {
  width: min(100%, 300px);
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
}

.admin-product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-product-actions .admin-product-status {
  margin-left: auto;
}

.admin-product-status {
  color: #1f8f57;
  font-size: 13px;
  font-weight: 600;
}

.admin-product-status.error {
  color: #b33f5f;
}

@media (max-width: 900px) {
  .admin-payments__header {
    flex-direction: column;
  }

  .admin-payments-provider__grid,
  .admin-payments__filters,
  .admin-payment-card__meta,
  .admin-payment-detail__grid,
  .admin-payment-ops__grid {
    grid-template-columns: 1fr;
  }

  .admin-product-card__summary {
    grid-template-columns: 56px 1fr;
  }

  .admin-product-thumb {
    width: 56px;
    height: 56px;
  }

  .admin-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline admin edit on storefront cards */
.product-card__media {
  position: relative;
}

.product-card__admin-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.product-card__admin-actions .product-card__admin-edit,
.product-card__admin-delete {
  position: static;
  width: 36px;
  height: 36px;
  border: 1px solid #d9c6f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #5f3c90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(65, 35, 103, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card__admin-actions .product-card__admin-edit:hover,
.product-card__admin-delete:hover {
  transform: translateY(-1px);
  border-color: #c09fe7;
  box-shadow: 0 10px 18px rgba(65, 35, 103, 0.24);
}

.product-card__admin-delete {
  border-color: #efc2ce;
  background: rgba(255, 245, 247, 0.96);
  color: #b93859;
}

.product-card__admin-delete:hover {
  border-color: #dd8ba3;
}

.product-card__admin-edit svg,
.product-card__admin-delete svg {
  width: 18px;
  height: 18px;
}

.admin-inline-editor {
  position: fixed;
  inset: 0;
  background: rgba(27, 13, 45, 0.56);
  backdrop-filter: blur(2px);
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-inline-editor[hidden] {
  display: none !important;
}

.admin-inline-editor__dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #ddcdf6;
  background: #fff;
  box-shadow: 0 24px 40px rgba(35, 16, 61, 0.24);
  padding: 18px;
}

.admin-inline-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-inline-editor__head h3 {
  margin: 0;
  color: #4e3375;
}

.admin-inline-editor__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dbc8f4;
  background: #f8f2ff;
  color: #5a3a89;
  cursor: pointer;
  font-weight: 700;
}

.admin-inline-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.admin-inline-editor__grid label {
  display: grid;
  gap: 6px;
  color: #614d80;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-inline-editor__full {
  grid-column: 1 / -1;
}

.admin-inline-editor__preview {
  display: flex;
  justify-content: center;
  border: 1px dashed #d5c2ee;
  border-radius: 12px;
  padding: 10px;
  background: #fbf8ff;
}

.admin-inline-editor__preview img {
  width: min(100%, 300px);
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
}

.admin-inline-editor__preview--banner img {
  width: min(100%, 680px);
  max-height: 260px;
}

.admin-inline-editor__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#admin-inline-editor-status {
  font-size: 13px;
  color: #246d4c;
}

#admin-inline-editor-status.error {
  color: #a83e5d;
}

body.admin-inline-editor-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .catalog-admin-actions {
    justify-content: stretch;
  }

  .catalog-admin-add {
    width: 100%;
  }

  .product-card__admin-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .product-card__admin-actions .product-card__admin-edit,
  .product-card__admin-delete {
    width: 34px;
    height: 34px;
  }

  .admin-inline-editor__grid {
    grid-template-columns: 1fr;
  }
}

/* Internal pages spacing parity */
body:not(.home-page) .section {
  padding: clamp(24px, 2.6vw, 32px) 0;
}

body:not(.home-page) .section-title {
  margin: 0 0 6px;
  line-height: 1.16;
}

body:not(.home-page) .section-subtitle {
  margin: 0 0 18px;
  max-width: 760px;
  line-height: 1.5;
}

body:not(.home-page) .catalog-admin-actions {
  margin: -2px 0 2px;
}

body:not(.home-page) .filters {
  margin: 0 0 18px;
}

body:not(.home-page) .contact-header {
  margin-bottom: 16px;
}

body:not(.home-page) .contact-header .section-title {
  margin: 0 0 2px;
}

body:not(.home-page) .contact-header .section-subtitle {
  margin: 0;
}

body:not(.home-page) .contact-box,
body:not(.home-page) .content-card,
body:not(.home-page) .cart-list,
body:not(.home-page) .summary,
body:not(.home-page) .auth-panel,
body:not(.home-page) .product-view {
  padding: clamp(18px, 2.1vw, 24px);
}

body:not(.home-page) .form-grid,
body:not(.home-page) .auth-grid {
  gap: 14px;
}

body:not(.home-page) .account-panel {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

body:not(.home-page) .account-hero {
  max-width: 860px;
  margin: 0 auto 12px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid #e4d5f7;
  border-radius: 18px;
  background: linear-gradient(140deg, #faf5ff 0%, #f2e9ff 72%, #efe5ff 100%);
  box-shadow: 0 12px 28px rgba(70, 38, 110, 0.08);
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

body:not(.home-page) .account-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -60px;
  top: -84px;
  background: radial-gradient(circle, rgba(255, 230, 159, 0.35) 0%, rgba(255, 230, 159, 0) 70%);
  pointer-events: none;
}

body:not(.home-page) .account-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(95, 60, 145, 0.12);
  color: #5c3c8f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.home-page) .account-hero .section-title {
  margin: 6px 0 2px;
  color: #482c73;
  line-height: 1.08;
  font-size: clamp(32px, 4.6vw, 44px);
}

body:not(.home-page) .account-hero .section-subtitle {
  margin: 0;
  max-width: 720px;
  color: #654c89;
  line-height: 1.45;
}

body:not(.home-page) .account-panel[hidden],
body:not(.home-page) #account-form[hidden] {
  display: none !important;
}

body:not(.home-page) .account-group-title {
  margin: 2px 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #674a90;
}

body:not(.home-page) .account-group-title--spaced {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e3d5f5;
}

body:not(.home-page) .account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.home-page) .account-summary__item {
  border: 1px solid #e8dbf8;
  border-radius: 12px;
  background: #faf6ff;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

body:not(.home-page) .account-summary__item span {
  color: #6f5f88;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

body:not(.home-page) .account-summary__item strong {
  color: #4a2f73;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

body:not(.home-page) .account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body:not(.home-page) .account-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 10px;
}

body:not(.home-page) .account-form-unified {
  margin-top: 2px;
}

body:not(.home-page) .account-field {
  display: grid;
  gap: 5px;
}

body:not(.home-page) .account-field > span {
  color: #69538b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body:not(.home-page) .account-form-unified .field[disabled] {
  background: #f7f2ff;
  border-color: #e1d0f5;
  color: #4f386f;
  cursor: default;
  opacity: 1;
}

body:not(.home-page) #account-edit-toggle[disabled] {
  opacity: 0.8;
  cursor: default;
}

body:not(.home-page) .account-field--full {
  grid-column: 1 / -1;
}

body:not(.home-page) .footer {
  margin-top: clamp(22px, 2.4vw, 30px);
}

body:not(.home-page) .footer-top {
  padding: 16px 0;
  row-gap: 10px;
}

body:not(.home-page) .footer-top > div {
  gap: 6px;
}

body:not(.home-page) .footer h4 {
  margin: 0 0 6px;
}

body:not(.home-page) .footer-top p + p {
  margin-top: 3px;
}

@media (max-width: 900px) {
  body:not(.home-page) .account-hero {
    margin-bottom: 10px;
    border-radius: 15px;
    gap: 5px;
  }

  body:not(.home-page) .account-hero .section-title {
    font-size: clamp(26px, 6.7vw, 34px);
  }

  body:not(.home-page) .account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not(.home-page) .account-form-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .section {
    padding: 22px 0;
  }

  body:not(.home-page) .section-subtitle {
    margin-bottom: 16px;
  }

  body:not(.home-page) .filters {
    margin-bottom: 16px;
  }

  body:not(.home-page) .contact-header {
    margin-bottom: 14px;
  }

  body:not(.home-page) .footer-top {
    row-gap: 8px;
  }
}

@media (max-width: 620px) {
  body:not(.home-page) .account-hero .section-subtitle {
    max-width: none;
  }

  body:not(.home-page) .account-summary {
    grid-template-columns: 1fr;
  }
}

/* Product page format refinement */
.product-detail {
  display: grid;
  gap: 18px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #75638f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.product-breadcrumb a {
  color: #604684;
}

.product-breadcrumb strong {
  color: #3f2766;
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.product-gallery,
.product-purchase {
  box-sizing: border-box;
  border: 1px solid #e5d7f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(59, 29, 93, 0.1);
}

.product-gallery {
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  align-self: start;
}

.product-gallery__main {
  border: 1px solid #eadff9;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcf9ff 0%, #f4ebff 100%);
  display: block;
  overflow: hidden;
}

.product-gallery__main img {
  display: block;
  width: 100%;
  height: auto;
}

.product-purchase {
  padding: clamp(12px, 1.5vw, 16px);
  display: grid;
  gap: 8px;
  align-content: start;
  align-self: stretch;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.product-purchase h1 {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  color: #402561;
}

.product-pricing {
  border: 1px solid #e7d9f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcf8ff 0%, #f5edff 100%);
  padding: 10px;
  display: grid;
  gap: 2px;
}

.product-pricing__from {
  margin: 0;
  color: #6f5a8d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.product-pricing .price {
  font-size: clamp(28px, 2.9vw, 36px);
  line-height: 1.06;
}

.product-pricing .price small {
  font-size: 18px;
}

.product-pricing p {
  margin: 0;
  color: #6a5787;
  font-size: 13px;
  line-height: 1.35;
}

.product-pricing strong {
  color: #4f2a81;
}

.product-summary {
  margin: 0;
  color: #5f4a77;
  line-height: 1.42;
}

.product-purchase .chip-row {
  margin: 4px 0 2px;
  gap: 8px;
}

.product-purchase .chip {
  padding: 6px 10px;
  font-size: 12px;
}

.product-options {
  display: grid;
  gap: 8px;
}

.product-options label,
.product-shipping label {
  display: grid;
  gap: 4px;
  color: #624f80;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-options textarea {
  min-height: 72px;
}

.product-qty-row {
  margin: 0;
}

.product-qty-row label {
  color: #604e7b;
  font-weight: 600;
}

.product-qty-row input {
  width: 110px;
}

.actions-row--single .btn {
  width: 100%;
}

.product-shipping {
  border-top: 1px dashed #dfcef5;
  padding-top: 8px;
  display: grid;
  gap: 4px;
}

.product-shipping__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.product-shipping__row .btn {
  min-height: 40px;
}

.product-shipping__result {
  margin: 0;
  color: #256744;
  font-size: 13px;
  font-weight: 600;
}

.product-shipping__result.error {
  color: #a23a58;
}

.product-info-panel {
  border: 1px solid #e6d8f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(56, 28, 89, 0.08);
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 12px;
}

.product-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tab {
  min-height: 36px;
  border: 1px solid #dbc7f3;
  border-radius: 999px;
  background: #f8f2ff;
  color: #583982;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
}

.product-tab.is-active {
  border-color: #b78de4;
  background: linear-gradient(160deg, #7a2dd6 0%, #6626b7 100%);
  color: #fff;
}

.product-tab-panel {
  display: none;
  color: #5f4b77;
}

.product-tab-panel.is-active {
  display: block;
}

.product-tab-panel h2 {
  margin: 0 0 8px;
  color: #432867;
  font-size: 22px;
}

.product-tab-panel p {
  margin: 0 0 10px;
}

body:not(.home-page) .product-page-related.section {
  padding-top: 16px;
}

body:not(.home-page) .product-page-related .section-title {
  margin-bottom: 4px;
}

body:not(.home-page) .product-page-related .section-subtitle {
  margin-bottom: 14px;
}

.products-grid--related {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.products-grid--related .product-card {
  border-radius: 13px;
}

.products-grid--related .product-card__image {
  padding: 8px;
  aspect-ratio: 4 / 3;
}

.products-grid--related .product-card__body {
  padding: 10px;
  gap: 6px;
}

.products-grid--related .product-meta {
  font-size: 10px;
}

.products-grid--related .product-card h3 {
  font-size: 14px;
  line-height: 1.22;
}

.products-grid--related .price {
  font-size: 16px;
}

.products-grid--related .price small {
  font-size: 11px;
}

.products-grid--related .actions-row .btn {
  padding: 8px 10px;
  font-size: 12px;
}

.products-grid--related .actions-row .btn.btn-light {
  display: none;
}

.products-grid--related .actions-row .btn.btn-primary {
  width: 100%;
}

@media (max-width: 980px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-purchase {
    overflow: visible;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 620px) {
  .product-gallery {
    padding: 12px;
  }

  .product-gallery__main {
    min-height: 260px;
  }

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

  .product-shipping__row {
    grid-template-columns: 1fr;
  }

  .product-shipping__row .btn {
    width: 100%;
  }
}

/* Home - creative logo area */
.home-page .brand-header {
  background: linear-gradient(180deg, #f6efff 0%, #f3eaff 50%, #f8f4ff 100%);
  border-bottom: 1px solid #e4d4f8;
}

.home-page .brand-header__content {
  min-height: 0;
  padding: 0;
}

.home-page .brand-panel {
  width: 100%;
  min-height: 172px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 16px 22px;
  border-top: 1px solid rgba(220, 201, 245, 0.8);
  border-bottom: 1px solid rgba(220, 201, 245, 0.8);
  background:
    radial-gradient(120% 130% at 6% 4%, rgba(143, 31, 255, 0.2) 0%, rgba(143, 31, 255, 0) 58%),
    radial-gradient(130% 120% at 95% 95%, rgba(247, 222, 37, 0.22) 0%, rgba(247, 222, 37, 0) 56%),
    linear-gradient(138deg, #ffffff 0%, #f9f4ff 44%, #f4ebff 100%);
  position: relative;
  overflow: hidden;
}

.home-page .brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(200px 120px at 14% 22%, rgba(154, 110, 225, 0.16) 0%, rgba(154, 110, 225, 0) 74%),
    radial-gradient(220px 128px at 82% 72%, rgba(247, 222, 37, 0.2) 0%, rgba(247, 222, 37, 0) 76%),
    repeating-linear-gradient(-42deg, rgba(121, 90, 165, 0.06) 0 1px, transparent 1px 15px);
  opacity: 0.9;
  pointer-events: none;
}

.home-page .brand-panel::after {
  content: "";
  position: absolute;
  inset: 12px 18px;
  border-radius: 42px 56px 46px 58px / 54px 42px 58px 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.32);
  pointer-events: none;
  opacity: 0.92;
}

.home-page .brand-panel > * {
  position: relative;
  z-index: 1;
}

.home-page .brand-panel .logo-wrap--signature {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 16px;
  justify-self: center;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: drop-shadow(0 10px 22px rgba(67, 34, 104, 0.18));
}

.home-page .brand-panel .logo-wrap--signature::before,
.home-page .brand-panel .logo-wrap--signature::after {
  content: none;
}

.home-page .brand-panel .logo-wrap--signature img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 22px rgba(69, 21, 116, 0.14);
}

.home-page .brand-panel .logo-title {
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 0.95;
  color: #4d2c79;
  white-space: nowrap;
}

.home-page .brand-panel .logo-subtitle {
  margin-top: 6px;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.2em;
  color: #7454a0;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .home-page .brand-panel {
    padding: 14px 16px;
  }

  .home-page .brand-panel::after {
    inset: 10px 12px;
  }

  .home-page .brand-panel .logo-wrap--signature {
    justify-content: center;
    padding: 0;
    gap: 12px;
  }

  .home-page .brand-panel .logo-wrap--signature img {
    width: 98px;
    height: 98px;
  }

  .home-page .brand-panel .logo-title {
    font-size: clamp(34px, 7.2vw, 46px);
  }
}

@media (max-width: 620px) {
  .home-page .brand-panel {
    padding: 12px;
    min-height: 150px;
  }

  .home-page .brand-panel .logo-wrap--signature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-page .brand-panel::after {
    display: none;
  }

  .home-page .brand-panel .logo-wrap--signature img {
    width: 86px;
    height: 86px;
  }

  .home-page .brand-panel .logo-subtitle {
    letter-spacing: 0.16em;
  }
}


/* Home - nav with side inset aligned to page body */
.home-page .main-nav {
  background: transparent;
  border: 0;
  padding: 8px 0 10px;
}

.home-page .main-nav > .container.main-nav__content--home {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6d9f8;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(58, 30, 92, 0.08);
  padding: 8px 12px;
  justify-content: center;
}

@media (max-width: 980px) {
  .home-page .main-nav > .container.main-nav__content--home {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 12px;
    padding: 8px 10px;
  }
}

/* Responsive polish - final overrides */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.main-nav__content,
.home-page .main-nav > .container.main-nav__content--home,
body:not(.home-page) .main-nav__content,
.header-shortcuts {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.main-nav__content::-webkit-scrollbar,
.header-shortcuts::-webkit-scrollbar {
  height: 6px;
}

.main-nav__content::-webkit-scrollbar-thumb,
.header-shortcuts::-webkit-scrollbar-thumb {
  background: rgba(102, 16, 196, 0.28);
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 900px) {
  .main-header__content,
  body:not(.home-page) .main-header__content {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .logo-wrap,
  .logo-wrap--home,
  body:not(.home-page) .logo-wrap--home {
    justify-content: center;
  }

  .logo-wrap--home .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    font-size: clamp(22px, 6vw, 34px);
  }

  .logo-wrap--home .logo-subtitle,
  body:not(.home-page) .logo-wrap--home .logo-subtitle {
    letter-spacing: 0.18em;
    overflow-wrap: anywhere;
  }

  .showcase-grid,
  .home-page .showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .showcase-spotlight,
  .home-page .showcase-spotlight {
    width: 100%;
    min-width: 0;
  }

  .banner-carousel {
    border-radius: 18px;
  }

  .banner-slide,
  .banner-slide--promo-full {
    height: clamp(188px, 42vw, 330px);
  }

  .banner-slide.banner-slide--promo-full img {
    object-fit: cover;
    object-position: center;
  }

  .products-grid,
  body:not(.home-page) .products-grid,
  .products-grid--home,
  .products-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .cart-item,
  body:not(.home-page) .cart-item {
    grid-template-columns: 84px 1fr !important;
    align-items: start;
  }

  .cart-item > div:last-child,
  body:not(.home-page) .cart-item > div:last-child {
    grid-column: 1 / -1;
    justify-self: stretch !important;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .home-page .topbar,
  body:not(.home-page) .topbar {
    position: static !important;
  }

  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions,
  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .topbar-link,
  .home-page .topbar-link,
  body:not(.home-page) .topbar-link,
  .topbar-user,
  .home-page .topbar-user,
  body:not(.home-page) .topbar-user {
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
  }

  .logo-wrap,
  .logo-wrap--home,
  body:not(.home-page) .logo-wrap--home {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .logo-wrap--home img,
  body:not(.home-page) .logo-wrap--home img {
    width: 74px !important;
    height: 74px !important;
  }

  .home-page .brand-panel .logo-subtitle,
  .logo-wrap--home .logo-subtitle,
  body:not(.home-page) .logo-wrap--home .logo-subtitle {
    max-width: 100%;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    white-space: normal !important;
    text-align: center;
  }

  .main-nav,
  .home-page .main-nav,
  body:not(.home-page) .main-nav {
    padding-block: 6px;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    gap: 6px !important;
    padding: 7px 8px !important;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    padding: 8px 10px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em;
  }

  .home-banner__content {
    padding-top: 8px;
  }

  .banner-carousel {
    border-radius: 14px;
  }

  .banner-slide,
  .banner-slide--promo-full {
    height: clamp(150px, 43vw, 230px) !important;
    min-height: 150px;
  }

  .banner-slide.banner-slide--promo-full img {
    object-fit: cover !important;
    object-position: center !important;
  }

  .banner-dots {
    gap: 8px;
    margin-top: 10px;
  }

  .banner-dot {
    width: 9px;
    height: 9px;
  }

  .section,
  body:not(.home-page) .section {
    padding: 22px 0 !important;
  }

  .section-title,
  body:not(.home-page) .section-title {
    font-size: clamp(24px, 8vw, 34px) !important;
    overflow-wrap: anywhere;
  }

  .section-subtitle,
  body:not(.home-page) .section-subtitle {
    font-size: 14px !important;
  }

  .filters,
  body:not(.home-page) .filters {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .products-grid,
  body:not(.home-page) .products-grid,
  .products-grid--home,
  .products-grid--related {
    grid-template-columns: 1fr !important;
  }

  .product-card,
  body:not(.home-page) .product-card {
    border-radius: 18px;
  }

  .product-card__image,
  body:not(.home-page) .product-card__image {
    min-height: 190px;
  }

  .actions-row,
  .product-actions,
  .section-actions,
  .admin-inline-editor__actions,
  .admin-product-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .actions-row .btn,
  .product-actions .btn,
  .section-actions .btn,
  .admin-inline-editor__actions .btn,
  .admin-product-actions .btn {
    width: 100%;
  }

  .cart-layout,
  body:not(.home-page) .cart-layout,
  .product-showcase,
  body:not(.home-page) .product-view,
  .content-card,
  .auth-card {
    grid-template-columns: 1fr !important;
  }

  .cart-item,
  body:not(.home-page) .cart-item {
    grid-template-columns: 72px 1fr !important;
    gap: 12px;
  }

  .cart-item img,
  body:not(.home-page) .cart-item img {
    width: 72px !important;
    height: 72px !important;
  }

  .checkout-field-row,
  body:not(.home-page) .checkout-field-row,
  .product-shipping__row {
    grid-template-columns: 1fr !important;
  }

  .admin-inline-editor {
    padding: 10px;
    place-items: end center;
  }

  .admin-inline-editor__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 16px 16px 0 0;
    padding: 14px;
  }

  .admin-inline-editor__grid,
  .admin-product-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-product-card__summary,
  .admin-product-card__head {
    grid-template-columns: 1fr !important;
    align-items: start;
  }

  .admin-product-card__controls {
    justify-content: flex-start;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 16px, 1180px);
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    padding-inline: 8px !important;
    font-size: 10px !important;
  }

  .banner-slide,
  .banner-slide--promo-full {
    min-height: 132px;
  }

  .logo-wrap--home .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    font-size: 24px !important;
  }
}

/* CSS quality guardrails */
img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

button,
.btn,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(143, 31, 255, 0.18);
}

button,
.btn,
[role="button"] {
  touch-action: manipulation;
}

button:disabled,
.btn:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

:focus-visible {
  outline: 3px solid rgba(247, 222, 37, 0.95);
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.btn:focus-visible,
.product-card a:focus-visible,
.catalog-pagination__button:focus-visible {
  outline: 3px solid rgba(143, 31, 255, 0.32);
  outline-offset: 3px;
}

.main-nav a:focus-visible,
.topbar a:focus-visible,
.banner-slide__link:focus-visible {
  outline-color: rgba(247, 222, 37, 0.95);
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

@media (max-width: 620px) {
  input,
  select,
  textarea,
  .filters input,
  .filters select,
  .field,
  .topbar-search input,
  body:not(.home-page) .filters input,
  body:not(.home-page) .filters select,
  body:not(.home-page) .field {
    font-size: 16px !important;
  }

  button,
  .btn,
  .main-nav a,
  .header-shortcut,
  .catalog-pagination__button,
  .topbar-cart {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .main-header,
  .main-nav,
  .home-banner,
  .footer,
  .banner-admin-bar,
  .product-card__admin-actions,
  .showcase-spotlight__admin-edit,
  .admin-inline-editor {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .container {
    width: 100% !important;
  }
}

/* Responsive hardening */
.topbar__content > *,
.topbar-actions,
.account-links,
.main-header__content > *,
.header-shortcuts,
.header-shortcut,
.main-nav__content > *,
.filters > *,
.products-grid > *,
.product-card,
.product-card__body,
.cart-layout > *,
.cart-item > *,
.summary,
.product-showcase > *,
.product-gallery,
.product-purchase,
.auth-grid > *,
.account-form-grid > *,
.admin-product-grid > *,
.admin-inline-editor__dialog,
.checkout-field-row > *,
.product-shipping__row > * {
  min-width: 0;
}

input,
select,
textarea,
.field,
.topbar-search,
.topbar-search input,
.filters input,
.filters select,
.checkout-field input,
.checkout-field select {
  max-width: 100%;
}

.header-shortcuts {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-shortcut {
  flex: 0 0 auto;
}

.product-card h3,
.product-card p,
.product-card__body,
.section-title,
.section-subtitle,
.summary-row,
.notice,
.footer a,
.footer p,
.product-summary,
.product-detail__info,
.admin-product-card__summary-text {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .product-purchase,
  body:not(.home-page) .product-purchase {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .summary,
  body:not(.home-page) .summary {
    position: static !important;
    top: auto !important;
  }

  .product-gallery,
  .product-purchase,
  body:not(.home-page) .product-gallery,
  body:not(.home-page) .product-purchase {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    height: 34px;
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 36px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .header-shortcuts,
  body:not(.home-page) .header-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
  }

  .header-shortcut,
  body:not(.home-page) .header-shortcut {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    padding-inline: 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .main-header__content,
  .home-page .brand-header__content,
  body:not(.home-page) .main-header__content {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 10px !important;
  }

  .logo-wrap,
  .logo-wrap--home,
  .home-page .brand-panel .logo-wrap--signature,
  body:not(.home-page) .logo-wrap--home {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .logo-wrap img,
  .logo-wrap--home img,
  .home-page .brand-panel .logo-wrap--signature img,
  body:not(.home-page) .logo-wrap--home img {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 auto;
  }

  .logo-wrap > div,
  .logo-wrap--home > div,
  .home-page .brand-panel .logo-wrap--signature > div,
  body:not(.home-page) .logo-wrap--home > div {
    min-width: 0;
    max-width: calc(100% - 66px);
  }

  .logo-wrap--home .logo-title,
  .home-page .brand-panel .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    max-width: 100%;
    font-size: 23px !important;
    line-height: 1;
    white-space: normal !important;
  }

  .logo-wrap--home .logo-subtitle,
  .home-page .brand-panel .logo-subtitle,
  body:not(.home-page) .logo-wrap--home .logo-subtitle {
    margin-top: 3px;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    white-space: normal !important;
    text-align: left;
  }

  .home-page .brand-panel {
    min-height: 92px;
    padding: 12px 14px;
  }

  .home-page .brand-panel::after {
    display: none;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    display: flex !important;
    width: min(100% - 16px, 1180px) !important;
    max-width: calc(100vw - 16px);
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: 6px !important;
    padding: 6px !important;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    flex: 0 0 auto;
    width: auto;
    min-width: 0 !important;
    min-height: 38px;
    justify-content: center;
    align-items: center;
    white-space: nowrap !important;
    text-align: center;
    line-height: 1;
    letter-spacing: 0;
    scroll-snap-align: start;
  }

  .topbar-actions,
  body:not(.home-page) .topbar-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: min(100%, 340px);
    margin-inline: auto;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .account-links,
  .topbar-user,
  .topbar-link {
    min-width: 0;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links {
    width: auto !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

  .topbar-link,
  .home-page .topbar-link,
  body:not(.home-page) .topbar-link {
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .catalog-pagination,
  body:not(.home-page) .catalog-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .catalog-pagination__button,
  body:not(.home-page) .catalog-pagination__button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container,
  .home-page .container,
  body:not(.home-page) .container {
    width: min(100% - 16px, 1180px);
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 220px);
    gap: 8px;
    margin-inline: auto;
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    width: min(100%, 300px);
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    padding: 0 11px !important;
    font-size: 10px !important;
  }

  .logo-wrap img,
  .logo-wrap--home img,
  .home-page .brand-panel .logo-wrap--signature img,
  body:not(.home-page) .logo-wrap--home img {
    width: 48px !important;
    height: 48px !important;
  }

  .logo-wrap--home .logo-title,
  .home-page .brand-panel .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    font-size: 20px !important;
  }

  .header-shortcut,
  body:not(.home-page) .header-shortcut {
    min-height: 36px;
    padding-inline: 6px;
    font-size: 10px;
  }

  .header-shortcut svg,
  body:not(.home-page) .header-shortcut svg {
    display: none;
  }

  .section-title,
  body:not(.home-page) .section-title {
    font-size: 26px !important;
    line-height: 1.12;
  }

  .banner-slide,
  .banner-slide--promo-full {
    background: #2a1743;
  }

  .banner-slide.banner-slide--promo-full img {
    object-fit: contain !important;
  }

  .showcase-copy h1,
  .home-page .showcase-copy h1 {
    font-size: 26px !important;
    line-height: 1.12;
  }

  .showcase-copy p,
  .home-page .showcase-copy p {
    font-size: 15px;
    line-height: 1.5;
  }

  .product-card__body,
  body:not(.home-page) .product-card__body {
    padding: 14px !important;
  }

  .cart-item,
  body:not(.home-page) .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) !important;
  }

  .cart-item img,
  body:not(.home-page) .cart-item img {
    width: 64px;
    height: 64px;
  }

  .summary-row,
  body:not(.home-page) .summary-row {
    align-items: flex-start;
    gap: 8px;
  }

  .summary-row strong,
  body:not(.home-page) .summary-row strong {
    text-align: right;
  }

  .checkout-field-row,
  body:not(.home-page) .checkout-field-row,
  .product-shipping__row,
  body:not(.home-page) .product-shipping__row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    scroll-snap-type: none;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    flex: 0 0 auto;
  }

  .banner-admin-actions {
    top: 8px;
    right: 8px;
    gap: 4px;
  }

  .banner-admin-action {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Mobile layout finishing pass */
.banner-dots {
  align-items: center;
}

.banner-dot,
.banner-dot.active {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  line-height: 0;
}

.banner-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
}

.banner-dot.active {
  width: 28px !important;
  height: 10px !important;
}

@media (max-width: 1100px) {
  .topbar,
  .home-page .topbar,
  body:not(.home-page) .topbar {
    min-height: 0 !important;
  }

  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "social social"
      "search actions";
    align-items: center !important;
    justify-items: stretch !important;
    gap: 8px 10px !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    grid-area: social;
    width: 100%;
    justify-content: center !important;
    gap: 8px !important;
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    height: 30px !important;
    min-width: 86px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    grid-area: search;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 38px !important;
    padding: 8px 42px 8px 14px !important;
    font-size: 13px !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 0 !important;
    padding: 0 !important;
    right: 5px !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    grid-area: actions;
    display: inline-flex !important;
    width: auto !important;
    justify-self: end !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: auto !important;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 0 !important;
    border-radius: 10px !important;
  }

  .topbar-user,
  .home-page .topbar-user,
  body:not(.home-page) .topbar-user {
    max-width: 220px;
    min-height: 34px !important;
    padding: 0 10px !important;
    gap: 7px !important;
    font-size: 12px !important;
  }

  .topbar-user__icon,
  .home-page .topbar-user__icon,
  body:not(.home-page) .topbar-user__icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px;
  }

  .topbar-user span:last-child,
  .home-page .topbar-user span:last-child,
  body:not(.home-page) .topbar-user span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-logout,
  .home-page .auth-logout,
  body:not(.home-page) .auth-logout {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 7px !important;
    padding: 8px !important;
    scrollbar-width: none;
  }

  .main-nav__content::-webkit-scrollbar,
  .home-page .main-nav > .container.main-nav__content--home::-webkit-scrollbar,
  body:not(.home-page) .main-nav__content::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }

  .banner-dots {
    gap: 8px !important;
    padding: 12px 0 4px !important;
  }

  .banner-admin-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .banner-admin-action {
    width: 34px !important;
    height: 34px !important;
    min-height: 0 !important;
    border-radius: 8px;
  }

  .banner-admin-action svg {
    width: 16px;
    height: 16px;
  }

  .banner-admin-bar {
    justify-content: flex-end;
    margin-top: 8px;
  }

  .banner-admin-add {
    min-height: 38px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .footer,
  .footer--home,
  body:not(.home-page) .footer {
    margin-top: 22px !important;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 18px !important;
    padding: 20px 0 !important;
  }

  .footer-top > div,
  .footer--home .footer-top > div,
  body:not(.home-page) .footer-top > div {
    padding: 0 !important;
    border: 0 !important;
    gap: 5px !important;
  }

  .footer-top > div:first-child,
  .footer--home .footer-top > div:first-child,
  body:not(.home-page) .footer-top > div:first-child {
    grid-column: 1 / -1;
  }

  .footer h4,
  .footer--home h4,
  body:not(.home-page) .footer h4 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
  }

  .footer p,
  .footer a,
  .footer--home p,
  .footer--home a,
  body:not(.home-page) .footer p,
  body:not(.home-page) .footer a {
    font-size: 13.5px !important;
    line-height: 1.42 !important;
  }

  .footer-top > div:not(:first-child) a {
    gap: 6px !important;
    padding: 1px 0 !important;
  }

  .footer-top > div:not(:first-child) a::before {
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    box-shadow: none !important;
  }

  .footer-bottom,
  .footer--home .footer-bottom,
  body:not(.home-page) .footer-bottom {
    padding: 10px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 680px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "social"
      "search"
      "actions";
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    justify-self: center !important;
    justify-content: center !important;
  }

  .banner-admin-bar {
    justify-content: stretch;
  }

  .banner-admin-add {
    width: 100%;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: 1fr !important;
    gap: 14px 12px !important;
  }

  .footer h4,
  .footer--home h4,
  body:not(.home-page) .footer h4 {
    font-size: 15px !important;
  }

  .footer p,
  .footer a,
  .footer--home p,
  .footer--home a,
  body:not(.home-page) .footer p,
  body:not(.home-page) .footer a {
    font-size: 12.5px !important;
  }
}

/* Final mobile polish for topbar/footer */
.banner-slide:not(.is-active) .banner-admin-actions {
  display: none !important;
}

.banner-dots,
.home-page .banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-dots .banner-dot,
.banner-dots .banner-dot.active {
  appearance: none;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
  flex: 0 0 auto !important;
}

@media (max-width: 1100px) {
  .footer-top > div:not(:first-child) a::before,
  .footer--home .footer-top > div:not(:first-child) a::before,
  body:not(.home-page) .footer-top > div:not(:first-child) a::before {
    content: ">";
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f7de25 !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .footer-top > div:not(:first-child) a,
  .footer--home .footer-top > div:not(:first-child) a,
  body:not(.home-page) .footer-top > div:not(:first-child) a {
    align-items: baseline !important;
    gap: 8px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1100px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas: "social search actions" !important;
    gap: 10px !important;
    align-items: center !important;
    justify-items: stretch !important;
    padding: 8px 0 !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    grid-area: social !important;
    width: auto !important;
    flex-wrap: nowrap !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    height: 30px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    grid-area: search !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 42px 0 14px !important;
    font-size: 12px !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    grid-area: actions !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links,
  .account-links--logged-in,
  .home-page .account-links--logged-in,
  body:not(.home-page) .account-links--logged-in,
  .account-links--logged-out,
  .home-page .account-links--logged-out,
  body:not(.home-page) .account-links--logged-out {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 180px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .topbar-link,
  .home-page .topbar-link,
  body:not(.home-page) .topbar-link,
  .topbar-user,
  .home-page .topbar-user,
  body:not(.home-page) .topbar-user,
  .auth-logout,
  .home-page .auth-logout,
  body:not(.home-page) .auth-logout {
    min-width: 0 !important;
    max-width: 180px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    align-items: center !important;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    text-align: center !important;
  }
}

@media (max-width: 760px) {
  .topbar,
  .home-page .topbar,
  body:not(.home-page) .topbar {
    padding: 8px 0 10px !important;
  }

  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "social"
      "search"
      "actions" !important;
    align-items: center !important;
    gap: 8px 8px !important;
    padding: 0 !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    flex: 1 1 132px !important;
    min-width: 0 !important;
    max-width: 156px !important;
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    min-width: 0 !important;
    width: 100% !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 42px 8px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    top: 50% !important;
    right: 5px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    transform: translateY(-50%) !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    justify-content: center !important;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    max-width: 100% !important;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .topbar-user,
  .home-page .topbar-user,
  body:not(.home-page) .topbar-user {
    min-height: 38px !important;
    max-width: 156px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }

  .topbar-user__icon,
  .home-page .topbar-user__icon,
  body:not(.home-page) .topbar-user__icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
  }

  .topbar-link,
  .home-page .topbar-link,
  body:not(.home-page) .topbar-link,
  .auth-logout,
  .home-page .auth-logout,
  body:not(.home-page) .auth-logout {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .main-nav,
  .home-page .main-nav,
  body:not(.home-page) .main-nav {
    padding: 10px 0 !important;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 4px 4px 6px !important;
    border-radius: 18px !important;
    scrollbar-width: none !important;
  }

  .main-nav__content::-webkit-scrollbar,
  .home-page .main-nav > .container.main-nav__content--home::-webkit-scrollbar,
  body:not(.home-page) .main-nav__content::-webkit-scrollbar {
    display: none !important;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  .banner-dots {
    gap: 8px !important;
    padding: 10px 0 2px !important;
  }

  .banner-dots .banner-dot,
  .banner-dots .banner-dot.active {
    width: 8px !important;
    height: 8px !important;
  }

  .banner-dots .banner-dot.active {
    width: 24px !important;
  }

  .banner-admin-actions {
    top: 8px !important;
    right: 8px !important;
    gap: 4px !important;
  }

  .banner-admin-action {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .banner-admin-action svg {
    width: 14px !important;
    height: 14px !important;
  }

  .banner-admin-add {
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  .footer,
  .footer--home,
  body:not(.home-page) .footer {
    margin-top: 18px !important;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 18px 0 !important;
  }

  .footer-top > div,
  .footer--home .footer-top > div,
  body:not(.home-page) .footer-top > div {
    gap: 4px !important;
  }

  .footer h4,
  .footer--home h4,
  body:not(.home-page) .footer h4 {
    margin: 0 0 2px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .footer p,
  .footer a,
  .footer--home p,
  .footer--home a,
  body:not(.home-page) .footer p,
  body:not(.home-page) .footer a {
    font-size: 12.5px !important;
    line-height: 1.34 !important;
  }

  .footer-top p + p,
  .footer--home .footer-top p + p,
  body:not(.home-page) .footer-top p + p {
    margin-top: 2px !important;
  }

  .footer-bottom,
  .footer--home .footer-bottom,
  body:not(.home-page) .footer-bottom {
    padding: 10px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 380px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    justify-self: center !important;
    justify-content: center !important;
  }

  .topbar-user,
  .home-page .topbar-user,
  body:not(.home-page) .topbar-user {
    max-width: 170px !important;
  }
}

/* Mobile layout redesign */
@media (max-width: 760px) {
  .topbar,
  .home-page .topbar,
  body:not(.home-page) .topbar {
    padding: 10px 0 12px !important;
    background: linear-gradient(180deg, #643d99 0%, #4e2f7c 100%) !important;
  }

  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "search"
      "social"
      "actions" !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    grid-area: search;
    width: 100% !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 52px 0 16px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.14) !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    width: 34px !important;
    height: 34px !important;
    right: 6px !important;
    box-shadow: 0 6px 14px rgba(35, 15, 55, 0.2) !important;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social {
    grid-area: social;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px);
  }

  .social a,
  .home-page .social a,
  body:not(.home-page) .social a {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 38px !important;
    min-width: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .social a:hover,
  .home-page .social a:hover,
  body:not(.home-page) .social a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    grid-area: actions;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr);
    width: 100% !important;
    gap: 6px !important;
    padding: 4px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #4a3072 !important;
    box-shadow: none !important;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links {
    width: 100% !important;
    min-width: 0 !important;
  }

  .account-links--logged-out,
  .home-page .account-links--logged-out,
  body:not(.home-page) .account-links--logged-out {
    display: block !important;
  }

  .account-links--logged-in,
  .home-page .account-links--logged-in,
  body:not(.home-page) .account-links--logged-in {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .account-links--logged-out .topbar-link,
  .home-page .account-links--logged-out .topbar-link,
  body:not(.home-page) .account-links--logged-out .topbar-link {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #4a3072 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .account-links--logged-in .topbar-user,
  .home-page .account-links--logged-in .topbar-user,
  body:not(.home-page) .account-links--logged-in .topbar-user {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #4a3072 !important;
    font-size: 12px !important;
  }

  .account-links--logged-in .topbar-user__icon,
  .home-page .account-links--logged-in .topbar-user__icon,
  body:not(.home-page) .account-links--logged-in .topbar-user__icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }

  .account-links--logged-in .topbar-user span:last-child,
  .home-page .account-links--logged-in .topbar-user span:last-child,
  body:not(.home-page) .account-links--logged-in .topbar-user span:last-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .account-links--logged-in .auth-logout,
  .home-page .account-links--logged-in .auth-logout,
  body:not(.home-page) .account-links--logged-in .auth-logout {
    min-height: 46px !important;
    padding: 0 12px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }

  .header-shortcuts,
  body:not(.home-page) .header-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .header-shortcut,
  body:not(.home-page) .header-shortcut {
    min-height: 42px !important;
    padding: 0 8px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #eadffc !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
  }

  .header-shortcut svg,
  body:not(.home-page) .header-shortcut svg {
    width: 15px !important;
    height: 15px !important;
  }

  .main-nav,
  .home-page .main-nav,
  body:not(.home-page) .main-nav {
    padding: 12px 0 0 !important;
    background: linear-gradient(180deg, #f8f3ff 0%, #f2ebff 100%) !important;
    border-top: 1px solid #eadffc !important;
    border-bottom: 1px solid #eadffc !important;
  }

  .main-nav__content,
  .home-page .main-nav > .container.main-nav__content--home,
  body:not(.home-page) .main-nav__content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    gap: 8px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .main-nav a,
  .home-page .main-nav a,
  body:not(.home-page) .main-nav a {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #dfcff9 !important;
    background: #fff !important;
    box-shadow: 0 6px 14px rgba(73, 41, 117, 0.05) !important;
    color: #5d497e !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.15 !important;
    font-size: 10.5px !important;
    letter-spacing: 0 !important;
  }

  .main-nav a:hover,
  .main-nav a.active,
  .home-page .main-nav a:hover,
  .home-page .main-nav a.active,
  body:not(.home-page) .main-nav a:hover,
  body:not(.home-page) .main-nav a.active {
    border-color: #d1b7fb !important;
    background: #f3eaff !important;
    color: #4a2d75 !important;
    box-shadow: 0 4px 10px rgba(88, 46, 144, 0.08) !important;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    gap: 18px !important;
    padding: 20px 0 !important;
  }

  .footer-top > div,
  .footer--home .footer-top > div,
  body:not(.home-page) .footer-top > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .footer-top > div:first-child,
  .footer--home .footer-top > div:first-child,
  body:not(.home-page) .footer-top > div:first-child {
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer--home .footer-top > div:first-child {
    border-bottom-color: #e4d6fb;
  }

  .footer-top > div h4,
  .footer-top > div p,
  .footer--home .footer-top > div h4,
  .footer--home .footer-top > div p,
  body:not(.home-page) .footer-top > div h4,
  body:not(.home-page) .footer-top > div p {
    flex: 0 0 100%;
  }

  .footer-top > div:nth-child(2) p,
  .footer--home .footer-top > div:nth-child(2) p,
  body:not(.home-page) .footer-top > div:nth-child(2) p {
    flex: 1 1 calc(50% - 4px);
  }

  .footer-top > div:nth-child(3) p:first-of-type,
  .footer--home .footer-top > div:nth-child(3) p:first-of-type,
  body:not(.home-page) .footer-top > div:nth-child(3) p:first-of-type {
    color: inherit !important;
  }

  .footer-top > div:nth-child(3) p:not(:first-of-type),
  .footer--home .footer-top > div:nth-child(3) p:not(:first-of-type),
  body:not(.home-page) .footer-top > div:nth-child(3) p:not(:first-of-type) {
    flex: 1 1 calc(50% - 4px);
  }

  .footer-top > div:not(:first-child) a,
  .footer--home .footer-top > div:not(:first-child) a,
  body:not(.home-page) .footer-top > div:not(:first-child) a {
    display: flex !important;
    width: 100% !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    gap: 0 !important;
  }

  .footer--home .footer-top > div:not(:first-child) a {
    border-color: #e4d6fb !important;
    background: rgba(255, 255, 255, 0.86) !important;
  }

  .footer-top > div:not(:first-child) a::before,
  .footer--home .footer-top > div:not(:first-child) a::before,
  body:not(.home-page) .footer-top > div:not(:first-child) a::before {
    display: none !important;
  }

  .footer-top > div:first-child p:last-child a,
  .footer--home .footer-top > div:first-child p:last-child a,
  body:not(.home-page) .footer-top > div:first-child p:last-child a {
    display: inline-flex !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(247, 222, 37, 0.45) !important;
    background: rgba(247, 222, 37, 0.12) !important;
  }

  .footer-bottom,
  .footer--home .footer-bottom,
  body:not(.home-page) .footer-bottom {
    padding: 12px 8px !important;
  }
}

.mobile-menu-toggle,
.mobile-menu-shell {
  display: none;
}

.mobile-menu-shell[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .social,
  .home-page .social,
  body:not(.home-page) .social,
  .header-shortcuts,
  body:not(.home-page) .header-shortcuts,
  .main-nav,
  .home-page .main-nav,
  body:not(.home-page) .main-nav {
    display: none !important;
  }

  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "search"
      "actions" !important;
    gap: 10px !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    grid-template-columns: 46px 46px minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #4a3072;
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.14);
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.14) !important;
  }

  .account-links--logged-out .topbar-link,
  .home-page .account-links--logged-out .topbar-link,
  body:not(.home-page) .account-links--logged-out .topbar-link,
  .account-links--logged-in .topbar-user,
  .home-page .account-links--logged-in .topbar-user,
  body:not(.home-page) .account-links--logged-in .topbar-user {
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.14) !important;
  }

  .mobile-menu-shell {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 2100;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(25, 10, 42, 0.52);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 18px 16px 20px;
    background: linear-gradient(180deg, #fff 0%, #f6f0ff 100%);
    box-shadow: 18px 0 40px rgba(27, 10, 47, 0.28);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-menu-shell.is-open .mobile-menu-backdrop {
    opacity: 1;
  }

  .mobile-menu-shell.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-menu-panel__header strong {
    display: block;
    color: #4a2d75;
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.1;
  }

  .mobile-menu-panel__header span {
    display: block;
    margin-top: 4px;
    color: #7b6798;
    font-size: 12px;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #dfcff9;
    border-radius: 14px;
    background: #fff;
    position: relative;
  }

  .mobile-menu-close span {
    position: absolute;
    top: 19px;
    left: 10px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #5b3b8f;
  }

  .mobile-menu-close span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu-panel__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .mobile-menu__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu__section h2 {
    margin: 0;
    color: #4a2d75;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #dfcff9;
    background: #fff;
    color: #5d497e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(73, 41, 117, 0.05);
  }

  .mobile-menu__section--accent .mobile-menu__link {
    border-color: rgba(247, 222, 37, 0.4);
    background: linear-gradient(180deg, #fff7cb 0%, #fff 100%);
    color: #4b356f;
  }

  .main-header__content,
  .home-page .brand-header__content,
  body:not(.home-page) .main-header__content {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .home-page .brand-panel {
    min-height: 0 !important;
    padding: 18px 14px !important;
  }

  .logo-wrap,
  .logo-wrap--home,
  .home-page .brand-panel .logo-wrap--signature,
  body:not(.home-page) .logo-wrap--home {
    gap: 14px !important;
  }

  .logo-wrap img,
  .logo-wrap--home img,
  .home-page .brand-panel .logo-wrap--signature img,
  body:not(.home-page) .logo-wrap--home img {
    width: 70px !important;
    height: 70px !important;
  }

  .logo-wrap > div,
  .logo-wrap--home > div,
  .home-page .brand-panel .logo-wrap--signature > div,
  body:not(.home-page) .logo-wrap--home > div {
    max-width: calc(100% - 84px) !important;
  }

  .logo-wrap--home .logo-title,
  .home-page .brand-panel .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    font-size: 27px !important;
    line-height: 0.98 !important;
    white-space: nowrap !important;
  }

  .logo-wrap--home .logo-subtitle,
  .home-page .brand-panel .logo-subtitle,
  body:not(.home-page) .logo-wrap--home .logo-subtitle {
    margin-top: 5px !important;
    width: auto !important;
    display: block !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    white-space: nowrap !important;
    text-align: left !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  .logo-wrap img,
  .logo-wrap--home img,
  .home-page .brand-panel .logo-wrap--signature img,
  body:not(.home-page) .logo-wrap--home img {
    width: 66px !important;
    height: 66px !important;
  }

  .logo-wrap--home .logo-title,
  .home-page .brand-panel .logo-title,
  body:not(.home-page) .logo-wrap--home .logo-title {
    font-size: 25px !important;
  }

  .logo-wrap--home .logo-subtitle,
  .home-page .brand-panel .logo-subtitle,
  body:not(.home-page) .logo-wrap--home .logo-subtitle {
    font-size: 10.5px !important;
  }
}

@media (max-width: 1024px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-areas: "menu search" !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    grid-area: menu;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    grid-area: search;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 46px 0 14px !important;
  }

  .mobile-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 14px !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
}

@media (max-width: 390px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  .mobile-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 40px !important;
    height: 40px !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    max-width: none !important;
  }
}

@media (max-width: 1024px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    grid-template-areas: "menu search actions" !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .topbar-actions,
  .home-page .topbar-actions,
  body:not(.home-page) .topbar-actions {
    grid-area: actions !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    justify-self: end !important;
  }

  .topbar-cart,
  .home-page .topbar-cart,
  body:not(.home-page) .topbar-cart {
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }

  .account-links,
  .home-page .account-links,
  body:not(.home-page) .account-links,
  .account-links--logged-in,
  .home-page .account-links--logged-in,
  body:not(.home-page) .account-links--logged-in,
  .account-links--logged-out,
  .home-page .account-links--logged-out,
  body:not(.home-page) .account-links--logged-out {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    grid-area: search !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  .topbar-user--compact-name,
  .home-page .topbar-user--compact-name,
  body:not(.home-page) .topbar-user--compact-name {
    min-height: 42px !important;
    min-width: 0 !important;
    max-width: 108px !important;
    padding: 0 10px 0 8px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #4a3072 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.14) !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .topbar-user--compact-name .topbar-user__icon,
  .home-page .topbar-user--compact-name .topbar-user__icon,
  body:not(.home-page) .topbar-user--compact-name .topbar-user__icon {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex: 0 0 22px !important;
    background: var(--accent) !important;
    color: #4a3072 !important;
    box-shadow: none !important;
  }

  .topbar-user--compact-name span:last-child,
  .home-page .topbar-user--compact-name span:last-child,
  body:not(.home-page) .topbar-user--compact-name span:last-child {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .auth-logout--compact,
  .home-page .auth-logout--compact,
  body:not(.home-page) .auth-logout--compact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 22px rgba(35, 15, 55, 0.12) !important;
  }
}

@media (max-width: 760px) {
  .footer,
  .footer--home,
  body:not(.home-page) .footer {
    margin-top: 14px !important;
  }

  .footer-top,
  .footer--home .footer-top,
  body:not(.home-page) .footer-top {
    gap: 10px !important;
    padding: 14px 0 12px !important;
  }

  .footer-top > div,
  .footer--home .footer-top > div,
  body:not(.home-page) .footer-top > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start !important;
    gap: 6px 8px !important;
  }

  .footer-top > div:first-child,
  .footer--home .footer-top > div:first-child,
  body:not(.home-page) .footer-top > div:first-child {
    grid-template-columns: 1fr !important;
    padding-bottom: 8px !important;
  }

  .footer-top > div h4,
  .footer-top > div p,
  .footer--home .footer-top > div h4,
  .footer--home .footer-top > div p,
  body:not(.home-page) .footer-top > div h4,
  body:not(.home-page) .footer-top > div p {
    grid-column: auto;
    margin: 0 !important;
  }

  .footer-top > div h4,
  .footer--home .footer-top > div h4,
  body:not(.home-page) .footer-top > div h4,
  .footer-top > div:first-child p,
  .footer--home .footer-top > div:first-child p,
  body:not(.home-page) .footer-top > div:first-child p,
  .footer-top > div:nth-child(3) p:first-of-type,
  .footer--home .footer-top > div:nth-child(3) p:first-of-type,
  body:not(.home-page) .footer-top > div:nth-child(3) p:first-of-type {
    grid-column: 1 / -1 !important;
  }

  .footer h4,
  .footer--home h4,
  body:not(.home-page) .footer h4 {
    margin: 0 0 2px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
  }

  .footer p,
  .footer a,
  .footer--home p,
  .footer--home a,
  body:not(.home-page) .footer p,
  body:not(.home-page) .footer a {
    font-size: 11.5px !important;
    line-height: 1.32 !important;
  }

  .footer-top > div:not(:first-child) a,
  .footer--home .footer-top > div:not(:first-child) a,
  body:not(.home-page) .footer-top > div:not(:first-child) a {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    border: 1px solid #d8c7f7 !important;
    background: #f3ecff !important;
    color: #5b3d87 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  .footer-top > div:first-child p:last-child a,
  .footer--home .footer-top > div:first-child p:last-child a,
  body:not(.home-page) .footer-top > div:first-child p:last-child a {
    min-height: 30px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
  }

  .footer-top > div:not(:first-child) a:hover,
  .footer--home .footer-top > div:not(:first-child) a:hover,
  body:not(.home-page) .footer-top > div:not(:first-child) a:hover {
    color: #4a2d75 !important;
    background: #efe5ff !important;
  }

  .footer-bottom,
  .footer--home .footer-bottom,
  body:not(.home-page) .footer-bottom {
    padding: 8px 6px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 390px) {
  .topbar__content,
  .home-page .topbar__content,
  body:not(.home-page) .topbar__content {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }

  .topbar-user--compact-name,
  .home-page .topbar-user--compact-name,
  body:not(.home-page) .topbar-user--compact-name {
    min-height: 38px !important;
    max-width: 96px !important;
    padding: 0 8px !important;
    font-size: 10.5px !important;
    gap: 5px !important;
  }

  .topbar-user--compact-name .topbar-user__icon,
  .home-page .topbar-user--compact-name .topbar-user__icon,
  body:not(.home-page) .topbar-user--compact-name .topbar-user__icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-basis: 20px !important;
  }

  .auth-logout--compact,
  .home-page .auth-logout--compact,
  body:not(.home-page) .auth-logout--compact {
    min-height: 38px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .mobile-menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 12px !important;
  }

  .topbar-search input,
  .home-page .topbar-search input,
  body:not(.home-page) .topbar-search input {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 42px 0 12px !important;
    font-size: 12px !important;
  }

  .topbar-search,
  .home-page .topbar-search,
  body:not(.home-page) .topbar-search {
    max-width: none !important;
  }

  .topbar-search button,
  .home-page .topbar-search button,
  body:not(.home-page) .topbar-search button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

@media (min-width: 1025px) {
  html {
    background: #f8f4ff !important;
  }

  body {
    background-color: #f6f1ff !important;
    background-image: radial-gradient(circle at top right, #efe2ff 0, #f8f3ff 34%, #f6f1ff 100%) !important;
  }
}
