:root {
  --ink: #17171b;
  --muted: #6c6d75;
  --line: #e8e5df;
  --paper: #fbfaf8;
  --card: #fff;
  --accent: #8f5d4b;
  --accent-2: #d9b8aa;
  --dark: #1d1b1a;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(30, 24, 21, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.notice {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.site-header {
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 20px 0;
}
.site-logo {
  font-weight: 850;
  font-size: 23px;
  letter-spacing: 0.08em;
}
.site-logo span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.site-search {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 8px 30px rgba(30, 24, 21, 0.04);
}
.site-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 16px;
  outline: none;
  font-size: 15px;
}
.site-search button,
.primary-btn {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 750;
  cursor: pointer;
}
.header-link {
  font-size: 14px;
  color: var(--muted);
}
.category-nav {
  display: flex;
  gap: 24px;
  overflow: auto;
  padding: 0 0 16px;
  font-size: 14px;
}
.category-nav a {
  white-space: nowrap;
}
.store-hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at 85% 20%, #ead6ce 0, transparent 32%),
    linear-gradient(135deg, #f6eee9, #fbfaf8 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.store-hero h1,
.category-hero h1,
.product-info h1 {
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  margin: 18px 0 22px;
  letter-spacing: -0.045em;
}
.store-hero p {
  max-width: 650px;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.hero-panel b {
  font-size: 20px;
  margin-bottom: 8px;
}
.hero-panel span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 16px;
}
.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h1,
.section-head h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  margin: 8px 0 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(30, 24, 21, 0.04);
  transition: 0.2s;
}
.category-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-card img,
.category-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: linear-gradient(135deg, #eadbd3, #f7f2ef);
}
.category-card > div {
  padding: 20px;
}
.category-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.category-card span {
  color: var(--muted);
  font-size: 14px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s;
}
.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  background: #f3f0ec;
  color: var(--muted);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 18px;
}
.product-body small {
  color: var(--muted);
  font-size: 12px;
}
.product-body h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 7px 0 14px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-row strong {
  font-size: 20px;
}
.price-row del {
  color: var(--muted);
}
.stock {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3ece9;
  color: #8d4f3e;
  font-size: 12px;
  font-weight: 750;
}
.stock.ok {
  background: #e8f5ed;
  color: #277444;
}
.category-hero {
  position: relative;
  padding: 70px 0 20px;
}
.category-hero > img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 30px;
  margin-bottom: 30px;
}
.category-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.catalog-toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
}
.product-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 70px 0;
}
.product-main-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  background: #f1ede8;
  border-radius: 30px;
  overflow: hidden;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
}
.thumb-row img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.product-info {
  padding-top: 20px;
}
.product-info h1 {
  font-size: 56px;
}
.sku {
  color: var(--muted);
}
.product-price {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
}
.product-price strong {
  font-size: 36px;
}
.product-price del {
  font-size: 20px;
  color: var(--muted);
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.product-meta a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}
.product-description {
  padding: 0 0 80px;
  max-width: 900px;
  line-height: 1.8;
}
.site-footer {
  margin-top: 70px;
  background: var(--dark);
  color: #fff;
  padding: 60px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}
.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-grid p,
.footer-grid span,
.footer-grid a {
  color: #c9c5c2;
}
.empty-state {
  background: #fff;
  border: 1px dashed #d8d3ce;
  border-radius: 22px;
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }
  .site-search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .hero-inner,
  .product-page {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-panel {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .store-hero {
    padding: 48px 0;
  }
}
@media (max-width: 560px) {
  .header-link {
    display: none;
  }
  .category-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .store-hero h1,
  .category-hero h1,
  .product-info h1 {
    font-size: 42px;
  }
  .product-page {
    gap: 24px;
    padding: 36px 0;
  }
  .catalog-toolbar {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
}
.buy-box {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 28px 0;
}
.buy-box label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.buy-box input,
.qty-form input,
.coupon-form input {
  width: 84px;
  padding: 12px;
  border: 1px solid #d8d5ce;
  border-radius: 12px;
}
.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.checkout-main {
  min-width: 0;
}
.page-head {
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 8px 0;
}
.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e7e3dc;
}
.cart-line img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}
.cart-line-info {
  display: grid;
  gap: 5px;
}
.cart-line-info span {
  color: #777;
}
.qty-form {
  display: flex;
  gap: 8px;
}
.qty-form button,
.coupon-form button {
  border: 1px solid #d8d5ce;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.order-summary {
  position: sticky;
  top: 120px;
  align-self: start;
  background: #fff;
  border: 1px solid #e5e1d9;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(31, 41, 55, 0.07);
}
.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}
.summary-total {
  font-size: 20px;
  border-top: 1px solid #e5e1d9;
  margin-top: 10px;
  padding-top: 18px !important;
}
.coupon-form {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.coupon-form input {
  width: 100%;
}
.wide {
  display: flex;
  width: 100%;
  justify-content: center;
}
.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 14px 0;
}
.alert.danger {
  background: #fff1f2;
  color: #9f1239;
}
.empty-state,
.success-card {
  text-align: center;
  background: #fff;
  border: 1px solid #e5e1d9;
  border-radius: 24px;
  padding: 48px;
}
.form-card {
  background: #fff;
  border: 1px solid #e5e1d9;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}
.form-card h2 {
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.form-grid input,
.form-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d5ce;
  border-radius: 12px;
  padding: 13px;
  background: #fff;
}
.form-grid small {
  color: #b42318;
}
.span-2 {
  grid-column: span 2;
}
.choice-card {
  border: 1px solid #d8d5ce;
  border-radius: 14px;
  padding: 15px;
  display: grid;
  gap: 5px;
  margin-top: 10px;
}
.choice-card.active {
  border-color: #596c53;
  background: #f4f7f2;
}
.choice-card span {
  font-size: 13px;
  color: #666;
}
.success-card {
  max-width: 700px;
  margin: 70px auto;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9f4e7;
  color: #2f6b3b;
  font-size: 36px;
  margin: 0 auto 20px;
}
@media (max-width: 850px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .cart-line {
    grid-template-columns: 72px 1fr;
  }
  .cart-line img {
    width: 72px;
    height: 72px;
  }
  .qty-form,
  .cart-line > strong {
    grid-column: 2;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .buy-box {
    align-items: stretch;
    flex-direction: column;
  }
}

body {
  background: var(--bg, #f8f7fb);
  color: var(--text, #17141f);
  font-family: var(--font, Inter, system-ui, sans-serif);
}
.primary-btn,
.site-search button {
  background: var(--accent, #7c3aed);
}
.category-card,
.product-card,
.hero-panel {
  border-radius: var(--radius, 22px);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.benefit-card {
  background: var(--surface, #fff);
  border-radius: var(--radius, 22px);
  padding: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 760px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.account-auth {
  padding: 64px 0;
}
.narrow {
  max-width: 560px;
  margin: 0 auto;
}
.account-page {
  padding: 48px 0 80px;
}
.account-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.account-nav a {
  background: var(--surface);
  border: 1px solid #e7e3ec;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
}
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.order-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.choice-list {
  display: grid;
  gap: 12px;
}
.stack {
  display: grid;
  gap: 16px;
}
.form-card form {
  display: grid;
  gap: 16px;
}
.form-card label {
  display: grid;
  gap: 8px;
}
.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  box-sizing: border-box;
}

.marketing-banners {
  display: grid;
  gap: 20px;
  padding-top: 24px;
}
.marketing-banner {
  min-height: 320px;
  border-radius: var(--radius);
  background: #27232d center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  padding: 42px;
}
.marketing-banner > div {
  max-width: 580px;
}
.marketing-banner h2 {
  font-size: clamp(32px, 5vw, 64px);
  margin: 8px 0;
}
.marketing-banner p {
  font-size: 18px;
  line-height: 1.6;
}
.review-card {
  padding: 18px 0;
  border-bottom: 1px solid #ece8ef;
}
.review-card h3 {
  margin: 10px 0 4px;
}
.review-card .badge {
  display: inline-block;
  margin-top: 8px;
}
.product-card form {
  padding: 0 16px 16px;
}

.variant-group {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
.variant-group legend {
  font-weight: 700;
  margin-bottom: 10px;
}
.variant-values {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.variant-value {
  position: relative;
}
.variant-value input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.variant-value span {
  display: block;
  padding: 11px 16px;
  border: 1px solid #ddd6e2;
  border-radius: 999px;
  cursor: pointer;
  background: var(--surface);
}
.variant-value input:checked + span {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.variant-value.disabled span {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.variant-message {
  min-height: 22px;
  font-size: 14px;
}
.thumb-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.variant-summary {
  font-weight: 600;
  color: var(--text);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}
.catalog-filters {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid #e7e3ec;
  border-radius: var(--radius);
  padding: 20px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.catalog-filters fieldset {
  border: 0;
  border-top: 1px solid #ece8ef;
  margin: 18px 0 0;
  padding: 18px 0 0;
}
.catalog-filters legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-head button {
  display: none;
}
.filter-check {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}
.filter-check input {
  width: auto !important;
}
.filter-check span {
  flex: 1;
}
.filter-check small {
  opacity: 0.65;
}
.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.catalog-results {
  min-width: 0;
}
.filter-toggle {
  display: none;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e1dce6;
  text-decoration: none;
  color: inherit;
}
.pagination a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.product-card {
  position: relative;
}
.product-badges {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.product-badges span {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}
.card-rating {
  font-size: 14px;
  margin: 5px 0;
}
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}
.search-suggestions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}
.search-suggestions img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    position: fixed;
    z-index: 300;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: 0.25s;
  }
  .catalog-filters.open {
    transform: none;
  }
  .filter-head button,
  .filter-toggle {
    display: inline-flex;
  }
  .catalog-toolbar {
    gap: 10px;
    flex-wrap: wrap;
  }
}

.product-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}
.product-card-actions form {
  padding: 0;
}
.quick-view-dialog {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.quick-view-dialog::backdrop {
  background: rgba(14, 11, 18, 0.65);
}
.quick-view-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 25px;
  cursor: pointer;
  z-index: 2;
}
.quick-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quick-view-media {
  min-height: 460px;
  background: #f3f0f6;
}
.quick-view-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quick-view-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.quick-view-price {
  font-size: 32px;
}
.compare-page {
  padding: 48px 0 80px;
}
.compare-grid {
  display: grid;
  grid-template-columns: minmax(150px, 220px) repeat(
      var(--compare-columns),
      minmax(220px, 1fr)
    );
  overflow: auto;
  border: 1px solid #e7e2eb;
  border-radius: 20px;
  background: var(--surface);
}
.compare-grid > div,
.compare-grid > article {
  padding: 16px;
  border-right: 1px solid #eee8f0;
  border-bottom: 1px solid #eee8f0;
}
.compare-label {
  font-weight: 700;
  background: #f7f4f8;
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-product img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
}
.compare-product h2 {
  font-size: 18px;
}
.compare-product form {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .quick-view {
    grid-template-columns: 1fr;
  }
  .quick-view-media {
    min-height: 280px;
  }
  .quick-view-info {
    padding: 28px;
  }
  .compare-grid {
    grid-template-columns: 130px repeat(var(--compare-columns), 190px);
  }
}

.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.product-badge {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-accent {
  background: var(--accent);
  color: white;
}
.badge-success {
  background: #dff7e8;
  color: #176b3a;
}
.badge-warning {
  background: #fff0c7;
  color: #7a5200;
}
.badge-dark {
  background: #222;
  color: white;
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.bundle-card {
  background: var(--surface);
  border: 1px solid #e6e0e9;
  border-radius: 20px;
  padding: 22px;
}
.bundle-card > div {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.gift-offers {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}
.gift-offer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #fff7dc;
  border: 1px solid #f1d889;
  border-radius: 18px;
  padding: 16px;
}
.gift-offer span {
  display: grid;
  gap: 4px;
}

.field-error {
  color: #b42318;
  font-weight: 700;
}
.footer-links {
  padding: 12px 0 28px;
}

.dynamic-section-title {
  grid-column: 1/-1;
  margin: 18px 0 0;
}
.dynamic-field[hidden] {
  display: none !important;
}
.dynamic-form-block {
  display: grid;
  gap: 14px;
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.container {
  max-width: var(--container, 1240px);
}
.product-card,
.category-card,
.panel,
.form-card {
  box-shadow: var(--shadow);
}
.category-grid,
.product-grid,
.benefit-grid {
  grid-template-columns: repeat(var(--section-columns, 4), minmax(0, 1fr));
}
.builder-banner {
  min-height: 360px;
  border-radius: var(--radius);
  padding: 48px;
  background: #25202a center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.collection-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.collection-grid article,
.review-grid blockquote {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-section details {
  background: var(--surface);
  border: 1px solid #e5dfe8;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 10px 0;
}
.faq-section summary {
  font-weight: 700;
  cursor: pointer;
}
.rich-text-section {
  max-width: 900px;
  text-align: center;
}
.newsletter-block {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.align-center {
  text-align: center;
  justify-content: center;
}
.section-device-desktop {
}
.section-device-mobile {
  display: none;
}
@media (max-width: 760px) {
  .category-grid,
  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-device-desktop {
    display: none !important;
  }
  .section-device-mobile {
    display: block;
  }
  .newsletter-block {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .category-grid,
  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.design-preview-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #f59e0b;
  color: #1f1600;
  padding: 10px 18px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.design-preview-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.design-preview-bar form {
  display: inline-flex;
  margin: 0;
}
.design-preview-bar button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.category-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 20px;
  font-size: 14px;
  overflow: auto;
}
.category-hero picture,
.category-hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-hero {
  position: relative;
  overflow: hidden;
}
.category-hero > div {
  position: relative;
  z-index: 1;
}
.catalog-layout.without-filters {
  grid-template-columns: 1fr;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
  background: #f4f0f7;
  border-radius: 14px;
  margin-bottom: 16px;
}
.active-filters b {
  width: 100%;
}
.active-filters span {
  padding: 6px 9px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
}
.active-filters a {
  font-size: 12px;
  align-self: center;
}
.filter-check.disabled {
  opacity: 0.4;
}
.range-filter {
  display: grid;
  gap: 10px;
}
.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.range-filter input[type="range"] {
  width: 100%;
}
.facet-group[data-collapsed="1"] > :not(legend) {
  display: none;
}

.dual-range-track {
  position: relative;
  height: 30px;
}
.dual-range-track input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  background: transparent;
}
.dual-range-track input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}
.dual-range-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

.catalog-loading #catalog-results-region,
.catalog-loading #catalog-filter-region {
  opacity: 0.48;
  pointer-events: none;
}
.catalog-results,
#catalog-filter-region {
  transition: opacity 0.18s ease;
}
.saved-filter-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}
.saved-filter-panel details {
  position: relative;
}
.saved-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
}
.saved-filter-row form {
  margin: 0;
}
.saved-filter-row button {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.catalog-loading::after {
  content: "Обновляем каталог…";
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 999;
  background: #17131b;
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

button,
.btn,
.primary-btn {
  border-radius: var(--button-radius, 14px);
  transition: all var(--animation-speed, 180ms) ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: var(--surface, #ffffff);
  color: var(--text, #17141f);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

a.btn,
button.btn {
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover {
  border-color: color-mix(in srgb, var(--accent, #7c3aed) 28%, transparent);
  background: color-mix(in srgb, var(--accent, #7c3aed) 8%, var(--surface, #ffffff));
  color: var(--text, #17141f);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--accent, #7c3aed);
  background: var(--accent, #7c3aed);
  color: #ffffff;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent, #7c3aed) 26%, transparent);
}

.btn.primary:hover {
  background: color-mix(in srgb, var(--accent, #7c3aed) 88%, #000 12%);
  color: #ffffff;
}

.btn.danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.btn.danger:hover {
  background: #b91c1c;
  color: #ffffff;
}

.btn.small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.btn.wide {
  width: 100%;
}

.btn:disabled,
.btn[disabled],
button.btn:disabled,
a.btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

input,
select,
textarea {
  border-radius: var(--input-radius, 12px);
}
.theme-header-solid .site-header {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.theme-header-minimal .notice {
  display: none;
}
.theme-header-minimal .site-header {
  box-shadow: none;
  background: transparent;
}
.theme-cards-outline .product-card,
.theme-cards-outline .category-card {
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.theme-cards-editorial .product-card,
.theme-cards-editorial .category-card {
  box-shadow: none;
  border-radius: 4px;
}
.theme-cards-editorial .product-card img,
.theme-cards-editorial .category-card img {
  border-radius: 0;
}

/* 0.9.0-dev storefront integration */
.has-search-suggestions { position: relative; }
.checkout-sequential { align-items: start; }
.checkout-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}
.checkout-progress li > a,
.checkout-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: var(--input-radius, 12px);
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
}
.checkout-progress li > a > span,
.checkout-progress-label > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  font-weight: 800;
}
.checkout-progress .current > *,
.checkout-progress .completed > * { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.checkout-progress .current > * { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.checkout-progress .completed > * { color: var(--text); }
.checkout-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.checkout-step-head > span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.checkout-step-head h2 { margin: 0; }
.checkout-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.choice-list { display: grid; gap: 12px; }
.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.choice-card span { display: grid; gap: 4px; }
.choice-card small { color: var(--muted); }
.checkout-review-list { display: grid; gap: 0; margin: 0; }
.checkout-review-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.checkout-review-list dt { color: var(--muted); font-weight: 700; }
.checkout-review-list dd { margin: 0; }
.checkout-step-form[data-submitting="1"] { opacity: .72; pointer-events: none; }

@media (max-width: 820px) {
  .checkout-progress { grid-template-columns: 1fr; }
  .checkout-progress li.pending { display: none; }
  .checkout-progress li > a,
  .checkout-progress-label { min-height: 42px; }
  .checkout-actions { align-items: stretch; flex-direction: column-reverse; }
  .checkout-actions .btn,
  .checkout-actions button { width: 100%; justify-content: center; }
  .checkout-review-list > div { grid-template-columns: 1fr; gap: 6px; }
  .choice-card { grid-template-columns: auto minmax(0, 1fr); }
  .choice-card > strong { grid-column: 2; }
  .account-orders-table table,
  .account-orders-table tbody,
  .account-orders-table tr,
  .account-orders-table td { display: block; width: 100%; }
  .account-orders-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .account-orders-table tr { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
  .account-orders-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; }
  .account-orders-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
}


/* LIZORIA structured rich text */
.rich-text-content{line-height:1.68}.rich-text-content p,.rich-text-content h2,.rich-text-content h3,.rich-text-content h4,.rich-text-content blockquote{margin:.7em 0}.rich-text-content blockquote{border-inline-start:4px solid var(--accent,#6958d6);padding-inline-start:16px}.rich-text-content img{max-width:100%;height:auto}.rich-text-content figure{text-align:center;margin:1.4em 0}.rich-text-content figcaption{color:var(--muted,#667085);font-size:.9em;margin-top:.5em}.rich-text-code{white-space:pre-wrap;background:#111827;color:#f9fafb;padding:14px;border-radius:10px;overflow:auto}.rich-text-align-center{text-align:center}.rich-text-align-right{text-align:right}.rich-text-align-justify{text-align:justify}.rich-text-checklist{list-style:none;padding-inline-start:0}.rich-text-checklist li{position:relative;padding-inline-start:28px}.rich-text-check{position:absolute;inset-inline-start:0;top:.2em;width:18px;height:18px;border:2px solid currentColor;border-radius:5px;display:grid;place-items:center;font-size:12px}.rich-text-checklist .is-checked{opacity:.78;text-decoration:line-through}.rich-text-color-muted{color:#667085}.rich-text-color-brand{color:#6958d6}.rich-text-color-accent{color:#b54708}.rich-text-color-success{color:#067647}.rich-text-color-warning{color:#b54708}.rich-text-color-danger{color:#b42318}.rich-text-highlight-yellow{background:#fef0c7}.rich-text-highlight-mint{background:#d1fadf}.rich-text-highlight-blue{background:#d1e9ff}.rich-text-highlight-rose{background:#fee4e2}@media(max-width:700px){.editor-toolbar{flex-wrap:nowrap;overflow-x:auto}.editor-tool,.editor-select{flex:0 0 auto}.editor-surface,.editor-preview{padding:16px;min-height:220px}.editor-footer{align-items:flex-start;flex-direction:column}.lizoria-editor.is-fullscreen,.lizoria-plain-editor.is-fullscreen{inset:0;border-radius:0}}


/* Unified storefront navigation runtime. */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}.mobile-menu-button{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);padding:10px;cursor:pointer}.mobile-menu-button span{display:block;height:2px;background:currentColor;margin:4px 0}.category-nav-inner{display:flex;align-items:center;gap:24px}.nav-group{position:relative;flex:0 0 auto}.nav-group>a,.nav-home{display:block;white-space:nowrap}.mega-menu{position:absolute;left:0;top:calc(100% + 16px);width:min(640px,calc(100vw - 32px));padding:24px;background:var(--surface,#fff);color:var(--text,#17141f);border:1px solid var(--line);box-shadow:var(--shadow);display:grid;grid-template-columns:180px 1fr;gap:24px;opacity:0;visibility:hidden;transform:translateY(8px);transition:var(--animation-speed,.18s);z-index:50}.nav-group:hover .mega-menu,.nav-group:focus-within .mega-menu{opacity:1;visibility:visible;transform:translateY(0)}.mega-menu p{color:var(--muted);font-size:13px}.mega-all{font-weight:750;color:var(--accent)}.mega-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}.mega-links a{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}.mega-links small{color:var(--muted)}
@media(max-width:900px){.header-main{grid-template-columns:auto auto 1fr;gap:12px}.mobile-menu-button{display:block}.site-search{grid-column:1/-1;grid-row:2}.header-actions{margin-left:auto}.category-nav{display:none}.category-nav.is-open{display:block;position:fixed;inset:0 0 0 min(74px,18vw);padding:78px 20px 24px;background:var(--surface,#fff);z-index:60;overflow:auto}.category-nav.is-open .category-nav-inner{width:100%;display:grid;gap:0}.category-nav.is-open .nav-home,.category-nav.is-open .nav-group>a{padding:14px 0;border-bottom:1px solid var(--line)}.category-nav.is-open .mega-menu{position:static;width:auto;padding:14px 0;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none;display:block}.category-nav.is-open .mega-menu>div:first-child{display:none}.category-nav.is-open .mega-links{grid-template-columns:1fr}.category-nav.is-open .mega-links a{padding:10px 12px}.header-actions .header-link:not(.cart-link){display:none}}

/* RC21 — Official Demo Store / Extension Showcase */
.demo-extension-section .section-head p{max-width:760px;color:var(--muted)}.demo-extension-grid,.demo-core-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.demo-extension-card,.demo-core-grid>article{display:grid;align-content:start;gap:8px;min-width:0;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 10px 28px color-mix(in srgb,var(--text) 6%,transparent)}.demo-extension-card>span,.demo-core-grid>article>span{width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-size:.75rem;font-weight:800}.demo-extension-card h3,.demo-core-grid h3{margin:0;font-size:1.05rem;overflow-wrap:anywhere}.demo-extension-card p,.demo-core-grid p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.55}.demo-extension-card small{margin-top:auto;color:var(--muted)}
@media(max-width:980px){.demo-extension-grid,.demo-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.demo-extension-grid,.demo-core-grid{grid-template-columns:1fr}.demo-extension-card,.demo-core-grid>article{padding:16px}}

/* RC22 — Storefront mobile recovery and theme-independent section contracts.
   Structural rules live in the core stylesheet so Page Builder sections remain usable
   even when the active theme does not provide AdStore visual overrides. */
.notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.notice-inner > * { min-width: 0; }
img { max-width: 100%; }
picture { display: block; max-width: 100%; }
main, .section, .section-head, .adstore-section { min-width: 0; }

.adstore-slider {
  width: 100%;
  background: var(--surface, #fff);
  overflow: hidden;
}
.adstore-slider-frame {
  position: relative;
  width: min(var(--container, 1240px), calc(100% - 32px));
  min-height: clamp(360px, 55vw, 540px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius, 22px);
  box-shadow: var(--shadow);
}
.adstore-slide {
  display: none;
  min-height: clamp(360px, 55vw, 540px);
  padding: clamp(28px, 7vw, 76px);
  background-position: center;
  background-size: cover;
  color: #fff;
  align-items: center;
}
.adstore-slide.is-active { display: flex; }
.adstore-slide > div { width: min(100%, 620px); }
.adstore-slide h1 {
  margin: 14px 0 18px;
  color: inherit;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}
.adstore-slide .rich-text-content,
.adstore-slide p { color: rgba(255,255,255,.92); }
.adstore-slider-controls {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.adstore-slider-controls > button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(18,18,22,.72);
  color: #fff;
  cursor: pointer;
}
.adstore-slider-dots { display: flex; align-items: center; gap: 7px; }
.adstore-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.adstore-slider-dots button.is-active { background: #fff; }

.adstore-category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.adstore-category-strip a {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line, #e8e5df);
  border-radius: var(--radius, 22px);
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(20,18,26,.06);
}
.adstore-category-strip img,
.adstore-category-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius, 22px) * .7);
  background: #f3f0f5;
}
.adstore-category-strip b,
.adstore-category-strip small { min-width: 0; overflow-wrap: break-word; }
.adstore-category-strip small { color: var(--muted); }

.adstore-tab-head { gap: 16px; flex-wrap: wrap; }
.adstore-tabs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.adstore-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line, #e8e5df);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--text, #17141f);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.adstore-tabs button.is-active {
  border-color: var(--accent, #7c3aed);
  background: var(--accent, #7c3aed);
  color: #fff;
}
.adstore-tab-panel { display: none; }
.adstore-tab-panel.is-active { display: grid; }

.adstore-deals {
  min-width: 0;
  background: color-mix(in srgb, var(--surface, #fff) 70%, var(--bg, #f8f7fb));
  border-block: 1px solid var(--line, #e8e5df);
}
.adstore-deal-item { position: relative; min-width: 0; }
.adstore-countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #21182f;
  color: #fff;
  font-size: 13px;
}
.adstore-countdown small { color: #d8d2df; font-size: 10px; }
.adstore-countdown span { font-weight: 850; }

.adstore-product-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.adstore-product-lists > div { min-width: 0; }
.adstore-product-lists h3 { margin: 0 0 8px; }
.adstore-mini-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e8e5df);
}
.adstore-mini-product img,
.adstore-mini-product > span {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f0f5;
}
.adstore-mini-product div { min-width: 0; display: grid; gap: 5px; }
.adstore-mini-product b { overflow-wrap: break-word; }
.adstore-mini-product strong { color: var(--accent, #7c3aed); }

.adstore-brand-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.adstore-brand-strip a {
  min-width: 0;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line, #e8e5df);
  border-radius: 16px;
  background: var(--surface, #fff);
}
.adstore-brand-strip img { max-width: 100%; max-height: 52px; object-fit: contain; }

.adstore-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line, #e8e5df);
  border-radius: var(--radius, 22px);
  overflow: hidden;
  background: var(--surface, #fff);
}
.adstore-services > div {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line, #e8e5df);
}
.adstore-services > div:last-child { border-right: 0; }
.adstore-services > div > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent, #7c3aed);
  color: #fff;
  font-weight: 900;
}
.adstore-services p { min-width: 0; display: grid; gap: 4px; margin: 0; }
.adstore-services small { color: var(--muted); line-height: 1.4; }

.adstore-newsletter {
  padding: 48px 0;
  background: #21182f;
  color: #fff;
}
.adstore-newsletter > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.adstore-newsletter h2 { margin: 8px 0; color: inherit; }
.adstore-newsletter .rich-text-content,
.adstore-newsletter p { color: rgba(255,255,255,.82); }

/* Demo storefront compact product cards on phones: two columns without giant media. */
@media (max-width: 900px) {
  .notice-inner { justify-content: center; text-align: center; }
  .notice-inner > span:last-child { display: none; }
  .adstore-category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adstore-product-lists { grid-template-columns: 1fr; }
  .adstore-brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adstore-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adstore-services > div:nth-child(2n) { border-right: 0; }
  .adstore-services > div:nth-child(-n+2) { border-bottom: 1px solid var(--line, #e8e5df); }
  .adstore-newsletter > .container { display: grid; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container, 1240px), calc(100% - 24px)); }
  .header-main { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; padding: 14px 0; }
  .site-logo { min-width: 0; font-size: 20px; overflow-wrap: break-word; }
  .site-search { min-width: 0; }
  .site-search input { min-width: 0; width: 100%; padding-inline: 12px; }
  .site-search button { padding-inline: 16px; }
  .category-nav.is-open { inset: 0; padding: 76px 18px 24px; }
  body.menu-open { overflow: hidden; }
  .section { padding: 42px 0; }
  .section-head { align-items: flex-start; }
  .section-head h1, .section-head h2 { font-size: clamp(30px, 9vw, 40px); }
  .adstore-slider-frame { width: calc(100% - 24px); min-height: 390px; }
  .adstore-slide { min-height: 390px; padding: 34px 22px 72px; }
  .adstore-slide h1 { font-size: clamp(34px, 11vw, 48px); }
  .adstore-category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adstore-category-strip a { padding: 10px; border-radius: 16px; }
  .adstore-section .product-grid,
  .adstore-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adstore-section .product-card,
  .adstore-deal-grid .product-card { min-width: 0; border-radius: 16px; }
  .adstore-section .product-body,
  .adstore-deal-grid .product-body { padding: 12px; }
  .adstore-section .product-body h3,
  .adstore-deal-grid .product-body h3 { font-size: 14px; line-height: 1.3; min-height: 0; }
  .adstore-section .product-media,
  .adstore-deal-grid .product-media { aspect-ratio: 1 / 1; }
  .adstore-section .product-card-actions,
  .adstore-deal-grid .product-card-actions { padding: 8px 10px 10px; gap: 6px; flex-wrap: wrap; }
  .adstore-section .product-card-actions .btn,
  .adstore-deal-grid .product-card-actions .btn { min-height: 36px; padding: 7px 9px; font-size: 11px; }
  .adstore-brand-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adstore-services { grid-template-columns: 1fr; }
  .adstore-services > div { border-right: 0; border-bottom: 1px solid var(--line, #e8e5df); }
  .adstore-services > div:last-child { border-bottom: 0; }
  .adstore-newsletter { padding: 38px 0; }
}
@media (max-width: 340px) {
  .adstore-section .product-grid,
  .adstore-deal-grid { grid-template-columns: 1fr; }
}
