:root {
  color-scheme: light;
  --navy: #102a4c;
  --ink: #152235;
  --muted: #647084;
  --line: #e4ebf4;
  --soft: #f7faff;
  --accent: #0fb7a2;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 42, 82, 0.1);
  --shadow-soft: 0 10px 26px rgba(15, 42, 82, 0.07);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-price: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

/* Compact mobile navigation. */
.mobile-menu-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--navy) 13%, transparent);
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-menu-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy);
}

.mobile-nav-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  padding: max(10px, env(safe-area-inset-top)) 10px 10px;
  background: rgba(8, 18, 32, 0.42);
  backdrop-filter: blur(3px);
  animation: mobile-nav-fade 160ms ease-out;
}

.mobile-nav-drawer {
  width: min(84vw, 310px);
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(8, 18, 32, 0.24);
  animation: mobile-nav-enter 180ms ease-out;
}

.mobile-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #ffffff 94%, var(--accent));
}

.mobile-nav-heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mobile-nav-heading small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-nav-heading b {
  overflow: hidden;
  color: var(--navy);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font: 400 25px/1 var(--font-body);
}

.mobile-nav-links {
  display: grid;
  gap: 4px;
  padding: 9px;
}

.mobile-nav-links button {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.mobile-nav-links button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mobile-nav-links button.active {
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
  color: color-mix(in srgb, var(--accent) 78%, var(--navy));
}

body.mobile-menu-visible {
  overflow: hidden;
}

@keyframes mobile-nav-fade {
  from { opacity: 0; }
}

@keyframes mobile-nav-enter {
  from { opacity: 0; transform: translateX(18px); }
}

.price-range-filter {
  min-width: min(100%, 290px);
  padding: 9px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.catalog-filter-controls {
  flex-wrap: wrap;
}

.price-range-heading,
.price-range-limits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-range-heading {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-range-heading output {
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
}

.dual-price-range {
  position: relative;
  height: 25px;
  margin-top: 4px;
}

.price-range-track {
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--navy) 16%, #ffffff) 0 var(--price-start),
      var(--accent) var(--price-start) var(--price-end),
      color-mix(in srgb, var(--navy) 16%, #ffffff) var(--price-end) 100%
    );
}

.dual-price-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 25px;
  margin: 0;
  border: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

#price-min-range {
  z-index: 2;
}

#price-max-range {
  z-index: 3;
}

.price-range-filter.handles-close #price-min-range,
.price-range-filter[data-active-handle="min"] #price-min-range {
  z-index: 5;
}

.price-range-filter[data-active-handle="max"] #price-max-range {
  z-index: 6;
}

.dual-price-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.dual-price-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  appearance: none;
  background: var(--accent);
  box-shadow: 0 1px 5px color-mix(in srgb, var(--navy) 28%, transparent);
  pointer-events: auto;
  cursor: grab;
}

.dual-price-range input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.dual-price-range input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 5px color-mix(in srgb, var(--navy) 28%, transparent);
  pointer-events: auto;
  cursor: grab;
}

.price-range-limits {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 6px;
}

.price-range-inputs label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-range-inputs input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
  border-radius: 5px;
  padding: 3px 6px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  text-transform: none;
}

.price-range-inputs input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.mobile-only-branch {
  display: none !important;
}

#order {
  scroll-margin-top: 118px;
}

.collection-page-heading {
  position: relative;
}

.collection-page-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, transparent) 68%, transparent);
}

.collection-empty .primary-btn {
  margin-top: 14px;
}

.about-page {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 34px 18px 54px;
}

.about-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.about-logo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.about-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero h1,
.about-shop-cta h2 {
  margin: 4px 0 10px;
  color: var(--navy);
}

.about-hero p,
.about-shop-cta p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 30px 0;
}

.about-contact-grid a {
  min-width: 0;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--navy);
  text-decoration: none;
}

.about-contact-grid svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}

.about-contact-grid span,
.about-contact-grid small,
.about-contact-grid b {
  min-width: 0;
  display: block;
}

.about-contact-grid small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.about-contact-grid b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.about-shop-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 34px 0 0;
}

.about-shop-cta .primary-btn {
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .price-range-filter {
    flex: 1 1 280px;
  }
}

@media (max-width: 899px) {
  .price-range-filter {
    width: 100%;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
  }

  .about-shop-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .about-page {
    padding: 20px 16px 42px;
  }

  .about-hero {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0 28px;
  }

  .about-logo {
    width: 68px;
    height: 68px;
    font-size: 20px;
  }

  .about-hero h1 {
    font-size: 27px;
  }
}

@media (max-width: 720px) {
  .catalog-filter-controls .price-range-filter {
    grid-column: 1 / -1;
  }
}

/* Checkout match: shared by every storefront template. */
.match-panel {
  max-width: 760px;
}

.checkout-match-card {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--border, #dbe3ec);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.checkout-match-card > img,
.match-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2f6;
}

.match-image-placeholder {
  display: grid;
  place-items: center;
  color: #64748b;
}

.checkout-match-copy h3,
.checkout-match-copy p {
  margin: 0 0 8px;
}

.checkout-match-copy strong {
  display: block;
  margin-top: 12px;
  color: var(--theme, #123765);
  font-size: 1.35rem;
}

.checkout-match-copy small {
  display: block;
  margin-top: 5px;
  color: #15803d;
  font-weight: 700;
}

.match-options {
  margin-top: 8px;
}

.summary-list b small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 560px) {
  .checkout-match-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 30rem),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

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

body.retail-fashion {
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: Didot, "Bodoni MT", "Times New Roman", serif;
  --font-price: "Avenir Next Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

body.retail-electronics {
  --font-body: "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Arial Narrow", "Segoe UI Semibold", Arial, sans-serif;
  --font-price: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

body.retail-beauty {
  --font-body: "Segoe UI", Tahoma, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-price: "Segoe UI Semibold", "Arial Narrow", sans-serif;
}

body.retail-shoes {
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: Impact, "Arial Narrow", "Trebuchet MS", sans-serif;
  --font-price: "Arial Narrow", "Trebuchet MS", sans-serif;
}

body.retail-bags {
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Bodoni MT", Didot, Georgia, serif;
  --font-price: "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

body.retail-home {
  --font-body: Aptos, Calibri, "Segoe UI", sans-serif;
  --font-display: "Trebuchet MS", Aptos, "Segoe UI", sans-serif;
  --font-price: "Arial Narrow", Aptos, sans-serif;
}

body.retail-furniture {
  --font-body: "Segoe UI", Tahoma, sans-serif;
  --font-display: Rockwell, "Rockwell Nova", Georgia, serif;
  --font-price: "Arial Narrow", "Segoe UI", sans-serif;
}

body.retail-cakes {
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-price: "Trebuchet MS", "Arial Narrow", sans-serif;
}

body.retail-general {
  --font-body: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: "Segoe UI Semibold", Inter, sans-serif;
  --font-price: "Arial Narrow", "Segoe UI", sans-serif;
}

.brand-button b,
.hero-greeting h1,
.section-title h2,
.commerce-section-title h2,
.catalog-toolbar h2,
.featured-copy b,
.editorial-feature-copy b,
.cake-feature-copy b,
.promo-banner b,
.product-name,
.detail-body h2,
.result-panel h2,
.order-card-title h3 {
  font-family: var(--font-display);
}

.price,
.featured-copy small,
.editorial-feature-copy em,
.cake-feature-copy em,
.detail-price-row strong,
.checkout-summary b,
.sticky-buy-bar b {
  font-family: var(--font-price);
  font-variant-numeric: tabular-nums;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.loading-card,
.empty,
.error-card {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.loader {
  width: 34px;
  height: 34px;
  border: 3px solid #d7e3f3;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -18px -14px 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 235, 242, 0.88);
}

.hero-panel {
  border: 1px solid rgba(230, 235, 242, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 42, 82, 0.18);
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.05;
  color: var(--navy);
}

.subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.store-stats div {
  border: 1px solid rgba(230, 235, 242, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 10px;
}

.store-stats b,
.store-stats span {
  display: block;
}

.store-stats b {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.1;
}

.store-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-actions::-webkit-scrollbar {
  display: none;
}

.hero-action {
  min-height: 34px;
  border: 1px solid rgba(15, 42, 82, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 42, 82, 0.08);
  font-size: 11px;
  line-height: 1;
}

.hero-action.active {
  background: var(--navy);
  color: #ffffff;
}

.hero-action.active .nav-icon {
  background: rgba(255, 255, 255, 0.16);
}

.hero-action.telegram {
  background: rgba(20, 184, 166, 0.11);
  color: #08796d;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 9px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: white;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-soft);
  min-height: 40px;
}

.search input:focus {
  border-color: rgba(20, 184, 166, 0.75);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.bot-link,
.primary-btn {
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.bot-link {
  background: linear-gradient(135deg, var(--navy), #193a70);
}

.filter-stack {
  margin-bottom: 8px;
}

.shop-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}

.shop-promise div {
  border: 1px solid rgba(230, 235, 242, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.shop-promise b,
.shop-promise span {
  display: block;
}

.shop-promise b {
  color: var(--navy);
  font-size: 13px;
}

.shop-promise span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin: 0 -2px 7px;
  scrollbar-width: none;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.chip small {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.07);
  color: inherit;
  font-size: 10px;
}

.chip.active small {
  background: rgba(255, 255, 255, 0.2);
}

.subchips {
  padding-bottom: 10px;
}

.subchip {
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: #08796d;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.subchip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.featured-section {
  margin: 2px -2px 18px;
  padding: 0 2px;
}

.featured-section .section-title {
  padding: 0 2px;
}

.featured-section .count {
  color: #0f766e;
}

.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(172px, 224px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: 2px 2px 9px;
  scrollbar-width: none;
}

.featured-rail::-webkit-scrollbar {
  display: none;
}

.featured-card {
  position: relative;
  border: 1px solid rgba(230, 235, 242, 0.96);
  border-radius: 20px;
  background: white;
  padding: 8px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  overflow: hidden;
}

.featured-card::after {
  content: "Featured";
  position: absolute;
  top: 13px;
  left: 13px;
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.88);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.featured-card img,
.featured-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ecf4fc, #ffffff);
  color: var(--navy);
  font-weight: 900;
}

.featured-copy {
  display: grid;
  gap: 2px;
  padding: 9px 2px 2px;
}

.featured-copy b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.featured-copy small {
  color: var(--navy);
  font-weight: 900;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

.catalog-toolbar h2,
.catalog-toolbar p {
  margin: 0;
}

.catalog-toolbar h2 {
  color: var(--navy);
  font-size: 20px;
}

.catalog-toolbar p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sort-control select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
  font-weight: 850;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 8px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
}

.count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:active {
  transform: scale(0.99);
}

.photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eaf1fa, #ffffff);
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9aa9bc;
  font-weight: 800;
}

.image-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.84);
  color: white;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.sale-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
}

.product-body {
  padding: 11px;
}

.product-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 850;
  min-height: 36px;
}

.meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.card-desc {
  margin: 7px 0 0;
  color: #4f5f75;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.price {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.code {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.old-price {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 850;
  text-decoration: line-through;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.availability {
  color: #08796d;
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
}

.product-action {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.13), rgba(20, 184, 166, 0.07));
  color: #08796d;
  font-size: 12px;
  font-weight: 900;
  padding: 9px;
  text-align: center;
  text-decoration: none;
  display: block;
}

.detail-page,
.result-page {
  min-height: 100vh;
  margin: -18px -14px -32px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 96px);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: calc((env(safe-area-inset-top, 0px) + 12px) * -1) -14px 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 12px;
  background: rgba(248, 251, 255, 0.94);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
  backdrop-filter: blur(18px);
}

.page-topbar h1 {
  font-size: 18px;
}

.back-btn {
  border: 1px solid rgba(15, 42, 82, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--navy);
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 42, 82, 0.08);
}

.detail-hero,
.detail-card,
.result-panel {
  border: 1px solid rgba(230, 235, 242, 0.94);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-card,
.result-panel {
  padding: 18px;
}

.order-card-title {
  margin: 20px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 42, 82, 0.06), rgba(20, 184, 166, 0.08));
}

.order-card-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.order-card-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-gallery {
  background: linear-gradient(135deg, #eef5fc, #ffffff);
  padding: 0 0 12px;
  min-width: 0;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eff4fa;
}

.empty-image {
  display: grid;
  place-items: center;
  color: #9aa9bc;
  font-weight: 900;
}

.thumb-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 10px 14px 0;
}

.thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  background: #e8f0f8;
}

.thumb.active {
  border-color: var(--accent);
}

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

.detail-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-body h2,
.result-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.detail-price-row div {
  display: grid;
  gap: 3px;
}

.detail-price-row strong {
  color: var(--navy);
  font-size: 20px;
}

.detail-price-row del {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 850;
}

.detail-price-row span {
  color: var(--accent);
  font-weight: 900;
}

.detail-desc {
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}

.spec-preview {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.spec-preview::-webkit-scrollbar {
  display: none;
}

.spec-preview div {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(230, 235, 242, 0.96);
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px 10px;
  white-space: nowrap;
}

.spec-preview span,
.spec-preview b {
  display: inline;
}

.spec-preview span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-preview b {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 0;
}

.telegram-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.11), rgba(15, 42, 82, 0.04));
  padding: 12px;
}

.telegram-nudge b,
.telegram-nudge span {
  display: block;
}

.telegram-nudge b {
  color: var(--navy);
  font-size: 13px;
}

.telegram-nudge span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin-top: 3px;
}

.telegram-nudge a {
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.product-facts div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 10px;
  min-width: 0;
}

.product-facts span,
.product-facts b {
  display: block;
  overflow-wrap: anywhere;
}

.product-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-facts b {
  color: var(--navy);
  font-size: 12px;
  margin-top: 4px;
}

.checkout-form {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.checkout-form label,
.option-group label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.quantity-control {
  display: grid;
  grid-template-columns: 42px minmax(56px, 1fr) 42px;
  gap: 7px;
}

.quantity-control input {
  text-align: center;
  font-weight: 950;
}

.qty-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
  min-height: 44px;
  box-shadow: var(--shadow-soft);
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  border-color: rgba(20, 184, 166, 0.75);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.form-grid.two {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
}

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

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.option-pill span,
.single-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafc;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.option-pill.color-photo-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.option-pill.color-photo-option > span {
  padding: 0;
  border: 0;
  background: transparent;
}

.option-pill.color-photo-option .color-photo-swatch {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--navy) 7%, transparent);
}

.color-single-row {
  align-items: center;
}

.option-pill.color-photo-option .color-photo-swatch img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #f1f5f9;
}

.color-single-photo {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--navy) 7%, transparent);
}

.color-single-photo.active,
.option-pill.color-photo-option.active .color-photo-swatch,
.option-pill.color-photo-option input:checked ~ .color-photo-swatch {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.color-single-photo::after,
.option-pill.color-photo-option .color-photo-swatch::after {
  content: "✓";
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 140ms ease, transform 140ms ease;
}

.color-single-photo.active::after,
.option-pill.color-photo-option.active .color-photo-swatch::after,
.option-pill.color-photo-option input:checked ~ .color-photo-swatch::after {
  opacity: 1;
  transform: scale(1);
}

.color-single-photo img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #f1f5f9;
}

.sr-only,
.option-pill.color-photo-option .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.checkout-summary {
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(15, 42, 82, 0.04));
  padding: 13px;
}

.checkout-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary span,
.checkout-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.checkout-summary b {
  color: var(--navy);
  font-size: 18px;
}

.checkout-summary small {
  display: block;
  margin-top: 5px;
}

.sticky-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(230, 235, 242, 0.96);
  box-shadow: 0 -14px 36px rgba(15, 42, 82, 0.1);
  backdrop-filter: blur(18px);
}

.sticky-buy-bar div {
  min-width: 0;
}

.sticky-buy-bar span,
.sticky-buy-bar b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-buy-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sticky-buy-bar b {
  color: var(--navy);
  font-size: 14px;
}

@media (max-width: 759px) {
  .sticky-buy-bar {
    grid-template-columns: 1fr auto;
  }

  .sticky-buy-bar div {
    text-align: center;
    justify-self: center;
  }
}

.option-pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.option-pill.color-photo-option input:checked ~ .color-photo-swatch {
  background: #ffffff;
}

.single-option {
  display: inline-flex;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.full {
  width: 100%;
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--navy);
  padding: 12px 14px;
  font-weight: 900;
  min-height: 44px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.success-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 6px auto 12px;
  background: rgba(20, 184, 166, 0.14);
  color: #08796d;
  font-weight: 950;
  font-size: 12px;
}

.result-lead {
  color: var(--muted);
  margin: 8px 0 16px;
}

.summary-list,
.payment-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  text-align: left;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.summary-list span {
  color: var(--muted);
  font-size: 12px;
}

.summary-list b {
  color: var(--navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.result-panel h3 {
  color: var(--navy);
  margin: 18px 0 8px;
  text-align: left;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fbfdff;
}

.payment-card b,
.payment-card p,
.payment-card code {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.payment-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.payment-card code {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 900;
}

.copy-btn {
  border: 0;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: #08796d;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 900;
}

.notice-box {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.1);
  color: #8a4b00;
  padding: 12px;
  line-height: 1.45;
  margin-top: 12px;
  text-align: left;
}

.notice-box.success {
  border-color: rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.1);
  color: #08796d;
}

.proof-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.proof-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.proof-form textarea,
.proof-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.proof-form textarea {
  resize: vertical;
}

.result-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.track-page {
  min-height: 100vh;
  margin: -18px -14px -32px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 32px);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.track-panel {
  text-align: left;
}

.track-panel h2,
.track-panel .result-lead {
  text-align: center;
}

.tracking-card {
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 20px;
  background: #fbfdff;
  padding: 14px;
  margin-top: 14px;
  text-align: left;
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tracking-head span {
  color: var(--accent);
  font-weight: 950;
}

.tracking-head b {
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #08796d;
  padding: 6px 10px;
  font-size: 12px;
}

.empty-box {
  margin: 30px auto;
  max-width: 320px;
  padding: 24px;
  border: 1px dashed #c9d5e5;
  border-radius: 20px;
  background: white;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 680px) {
  .app-shell {
    padding-inline: 20px;
  }

  .hero {
    margin-inline: -20px;
    padding-inline: 20px;
  }

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

  .detail-page,
  .result-page,
  .track-page {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .page-topbar {
    margin-inline: -20px;
    padding-inline: 20px;
  }

}

@media (min-width: 760px) {
  .hero {
    border-radius: 0 0 28px 28px;
  }

  .grid {
    gap: 16px;
  }

  .hero-panel {
    padding: 18px;
  }

  .product-body {
    padding: 13px;
  }
}

@media (min-width: 860px) {
  .detail-gallery {
    min-height: 100%;
  }

  .detail-image {
    height: auto;
    max-height: min(72vh, 680px);
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 900px) {
  .detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 18px;
    align-items: start;
  }

  .detail-page .page-topbar {
    grid-column: 1 / -1;
  }

  .detail-hero {
    position: sticky;
    top: 86px;
  }

  .detail-card {
    min-width: 0;
  }

  .sticky-buy-bar {
    display: none;
  }

  .detail-page {
    padding-bottom: 34px;
  }
}

@media (min-width: 1040px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    position: relative;
    margin-top: 0;
    border-radius: 30px;
  }
}

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

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

  .store-stats div:last-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 640px) {
  .app-shell {
    padding: 10px 10px 24px;
  }

  .hero {
    position: relative;
    margin: -10px -10px 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
    background: rgba(248, 251, 255, 0.98);
  }

  .hero-panel {
    border-radius: 16px;
    padding: 9px;
  }

  .brand-row {
    align-items: center;
    gap: 9px;
  }

  .logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  h1 {
    font-size: 18px;
    line-height: 1.08;
  }

  .subtitle {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .store-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
  }

  .store-stats div {
    border-radius: 12px;
    padding: 7px 8px;
  }

  .store-stats b {
    font-size: 13px;
  }

  .store-stats span {
    font-size: 9px;
  }

  .hero-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }

  .hero-action {
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .search {
    margin-top: 8px;
    gap: 7px;
  }

  .search input,
  .bot-link {
    min-height: 38px;
    border-radius: 999px;
    padding: 10px 12px;
  }

  .shop-promise {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .shop-promise div {
    border-radius: 16px;
    padding: 10px 12px;
  }

  .shop-promise div:nth-child(n+3) {
    display: none;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .spec-preview {
    grid-template-columns: 1fr;
  }

  .telegram-nudge {
    align-items: stretch;
    flex-direction: column;
  }
}

/* V1 storefront polish: compact app header, dense commerce screens, account page. */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -18px -14px 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 9px;
  background: rgba(248, 251, 255, 0.96);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
  backdrop-filter: blur(18px);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-button {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(15, 42, 82, 0.14);
}

.brand-button span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-button b {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-button small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.desktop-shop-nav,
.desktop-trust-strip,
.footer-shop-nav {
  display: none;
}

.desktop-action-label {
  display: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 42, 82, 0.1);
  border-radius: 999px;
  background: white;
  color: transparent;
  font-size: 0;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.icon-btn::before {
  color: var(--navy);
  font-size: 15px;
  line-height: 1;
}

.icon-btn[data-toggle-search]::before { content: "⌕"; }
.icon-btn[data-view="account"]::before { content: "👤"; }

.quick-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin-top: 8px;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar { display: none; }

.quick-pill {
  border: 1px solid rgba(15, 42, 82, 0.1);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.quick-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.quick-pill.telegram {
  background: rgba(20, 184, 166, 0.11);
  color: #08796d;
}

.search-drawer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 8px;
}

.search-drawer input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  min-height: 38px;
  padding: 9px 12px;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.screen {
  animation: screenIn 0.16s ease;
}

@keyframes screenIn {
  from { opacity: 0.7; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog-screen .filter-stack {
  margin-bottom: 2px;
}

.catalog-screen .chips {
  padding-bottom: 8px;
  margin-bottom: 3px;
}

.catalog-screen .chip {
  padding: 7px 10px;
  font-size: 12px;
}

.catalog-screen .subchip {
  padding: 7px 10px;
  font-size: 11px;
}

.catalog-toolbar {
  margin: 5px 0 9px;
}

.catalog-toolbar h2 {
  font-size: 17px;
}

.sort-control select {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.featured-section {
  margin: 0 -1px 12px;
}

.featured-rail {
  grid-auto-columns: minmax(142px, 172px);
  gap: 9px;
  padding-bottom: 6px;
}

.featured-card {
  border-radius: 18px;
  padding: 6px;
}

.featured-card::after {
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  font-size: 9px;
}

.featured-card img,
.featured-empty {
  border-radius: 13px;
}

.grid {
  gap: 10px;
}

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

.product-card .product-action {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: white;
  color: inherit;
  display: block;
  margin: 0;
  padding: 10px;
  text-align: left;
}

.product-name {
  min-height: 0;
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  margin-top: 6px;
}

.price {
  font-size: 14px;
}

.image-count {
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
  font-size: 10px;
}

.support-page {
  padding-bottom: 92px;
}

.support-card {
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: min(680px, calc(100vh - 190px));
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, #ffffff 97%, var(--accent));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--navy) 9%, transparent);
}

.support-heading {
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  background: color-mix(in srgb, #ffffff 94%, var(--accent));
}

.support-heading > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.support-heading-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
}

.support-heading-icon svg,
.support-welcome svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-heading h2,
.support-heading p {
  margin: 0;
}

.support-heading h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 18px;
}

.support-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.support-heading > em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--accent) 82%, #102a43);
  padding: 7px 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.support-thread {
  min-height: 0;
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.support-welcome {
  width: min(100%, 520px);
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.support-welcome > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  color: var(--accent);
}

.support-welcome svg {
  width: 27px;
  height: 27px;
}

.support-welcome b {
  color: var(--navy);
  font-size: 17px;
}

.support-welcome p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.support-message {
  width: fit-content;
  max-width: min(84%, 540px);
  border-radius: 14px;
  padding: 9px 11px 7px;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--navy) 6%, transparent);
}

.support-message small,
.support-message time {
  display: block;
  font-size: 9px;
  font-weight: 850;
  opacity: 0.68;
}

.support-message p {
  margin: 3px 0 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}

.support-products {
  display: grid;
  gap: 8px;
  margin: 6px 0 6px;
}

.support-product-card {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--navy) 10%, var(--line));
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  padding: 8px;
  text-align: left;
  color: var(--ink);
}

.support-product-image {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 42, 82, 0.08);
  display: grid;
  place-items: center;
}

.support-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-product-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
}

.support-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.support-product-copy b {
  font-size: 13px;
  color: var(--navy);
  line-height: 1.3;
}

.support-product-copy small {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
}

.support-product-copy em {
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  color: var(--navy);
  opacity: 0.78;
}

.support-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.support-product-facts span {
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.07);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
}

.support-message time {
  text-align: right;
}

.support-message.from-shop {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--navy) 9%, var(--line));
  border-bottom-left-radius: 4px;
  background: #ffffff;
  color: var(--ink);
}

.support-message.from-shop small {
  color: var(--accent);
}

.support-message.from-shopper {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--navy);
  color: #ffffff;
}

.support-loading {
  margin: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.support-error {
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid rgba(220, 38, 38, 0.14);
  background: #fff1f2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 750;
}

.support-composer {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  background: #ffffff;
}

.support-composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid color-mix(in srgb, var(--navy) 14%, var(--line));
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.support-composer textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
}

.support-composer button {
  min-width: 64px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.support-composer button:disabled {
  opacity: 0.62;
}

.support-send-spinner {
  width: 17px;
  height: 17px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: support-spin 0.7s linear infinite;
}

@keyframes support-spin {
  to { transform: rotate(360deg); }
}

.detail-screen,
.result-page,
.track-page,
.account-page {
  margin: 0;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 86px);
  background: transparent;
  min-height: auto;
}

.back-inline {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.08);
  color: var(--navy);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  margin: 2px 0 9px;
}

.detail-screen {
  display: grid;
  gap: 10px;
}

.detail-hero,
.detail-card,
.result-panel,
.account-card {
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.detail-card,
.result-panel,
.account-card {
  padding: 14px;
}

.detail-image {
  aspect-ratio: 1 / 0.95;
}

.thumb-row {
  padding: 8px 10px 0;
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.detail-body h2,
.result-panel h2 {
  font-size: 21px;
}

.detail-price-row {
  margin-top: 8px;
}

.product-facts,
.spec-preview {
  margin-top: 10px;
  gap: 7px;
}

.product-facts div,
.spec-preview div {
  border-radius: 13px;
  padding: 8px;
}

.detail-desc {
  margin-top: 9px;
  font-size: 13px;
}

.order-card-title {
  margin-top: 13px;
  padding: 11px;
  border-radius: 14px;
}

.checkout-form {
  gap: 10px;
  margin-top: 11px;
}

.form-alert {
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 14px;
  background: rgba(254, 226, 226, 0.78);
  color: #991b1b;
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.proof-form input,
.proof-form textarea {
  border-radius: 12px;
  padding: 10px 11px;
}

.checkout-form input.field-missing,
.checkout-form textarea.field-missing,
.checkout-form select.field-missing,
.option-group.field-missing .option-pill span {
  border-color: rgba(220, 38, 38, 0.72);
  background: rgba(254, 242, 242, 0.92);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.delivery-address-fields label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.option-group.field-missing > label {
  color: #991b1b;
}

.option-row {
  gap: 7px;
}

.option-pill span,
.single-option {
  padding: 8px 10px;
  font-size: 12px;
}

.quantity-control {
  grid-template-columns: 38px minmax(52px, 1fr) 38px;
}

.qty-btn {
  min-height: 40px;
  border-radius: 12px;
}

.checkout-summary {
  border-radius: 14px;
  padding: 11px;
}

.sticky-buy-bar {
  padding-top: 8px;
}

.account-page {
  display: grid;
  gap: 12px;
}

.account-card {
  border: 1px solid rgba(230, 235, 242, 0.94);
  background: white;
}

.account-note {
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.08);
  color: #08796d;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title.compact {
  margin: 0 0 10px;
}

.section-title.compact h2 {
  font-size: 17px;
}

.order-history {
  display: grid;
  gap: 8px;
}

.history-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.history-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #ecf4fc, #ffffff);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
  flex: 0 0 auto;
}

.history-row span,
.history-row b,
.history-row small {
  min-width: 0;
  display: block;
}

.history-row .history-thumb {
  display: grid;
}

.history-row img.history-thumb {
  display: block;
}

.history-row b {
  color: var(--navy);
  font-size: 13px;
}

.history-row small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.history-row em {
  color: #08796d;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.history-status {
  border-radius: 999px;
  background: rgba(15, 42, 82, 0.07);
  color: var(--navy);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.compact-empty {
  margin: 0;
  max-width: none;
}

@media (min-width: 760px) {
  .app-header {
    border-radius: 0 0 24px 24px;
  }

  .detail-screen {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    align-items: start;
  }

  .detail-screen .back-inline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .app-header {
    margin: -10px -10px 9px;
    padding: calc(env(safe-area-inset-top, 0px) + 7px) 10px 8px;
  }

  .brand-button b {
    font-size: 15px;
  }

  .brand-button small {
    max-width: 190px;
  }

  .mini-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

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

  .home-brand-row .icon-btn[title="My orders"],
  .app-header .icon-btn[title="My orders"] {
    display: none;
  }

  .quick-nav {
    margin-top: 7px;
  }

  .quick-pill {
    padding: 6px 10px;
  }

  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    max-width: 142px;
  }

  .grid {
    gap: 9px;
  }

  .product-card .product-action {
    padding: 9px;
  }

  .detail-card,
  .result-panel,
  .account-card {
    padding: 12px;
  }
}

/* Commerce home redesign */
body {
  background:
    radial-gradient(circle at 20% -10%, rgba(253, 237, 209, 0.72), transparent 24rem),
    linear-gradient(180deg, #fffaf1 0%, #fbf7ec 58%, #f7fbf5 100%);
}

.app-shell {
  width: min(100%, 560px);
  padding: 0 16px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid rgba(68, 43, 28, 0.07);
  backdrop-filter: blur(18px);
}

.header-main {
  max-width: 560px;
  margin: 0 auto;
}

.brand-button {
  gap: 10px;
}

.brand-button b {
  color: #20140d;
  font-size: 16px;
  font-weight: 950;
}

.brand-button small {
  color: #7b6d63;
  font-size: 11px;
  font-weight: 750;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(65, 40, 25, 0.12);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: #2b1b12;
  box-shadow: none;
  font-size: 17px;
}

.search-drawer {
  max-width: 560px;
  margin: 8px auto 0;
  grid-template-columns: 1fr auto;
}

.search-drawer.home-drawer {
  margin: 8px 0 4px;
}

.commerce-home {
  padding-bottom: 8px;
}

.commerce-hero {
  padding: 6px 0 2px;
}

.home-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hero-greeting h1 {
  color: #17110c;
  font-size: clamp(24px, 6.2vw, 31px);
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-greeting p {
  margin: 5px 0 0;
  color: #7e736b;
  font-size: 14px;
  line-height: 1.35;
}

.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(42vw, 220px);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2d5b36;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(45, 91, 54, 0.08);
  white-space: nowrap;
}

.branch-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.branch-chip svg {
  flex: 0 0 auto;
}

.home-search {
  margin-top: 16px;
  min-height: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 15px;
  box-shadow: 0 12px 34px rgba(50, 35, 23, 0.08);
  color: #81756d;
}

.home-search input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 50px;
  background: transparent;
  color: #20140d;
  font-weight: 750;
}

.home-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f8f2e7;
  color: #5f5147;
  font-size: 15px;
}

.telegram-soft {
  display: block;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(46, 125, 70, 0.08);
  color: #2e7d46;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.category-browse {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.category-browse .section-title {
  margin: 0;
}

.category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 18px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-tile {
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #20140d;
  padding: 0;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
  box-shadow: 0 12px 24px rgba(50, 35, 23, 0.08);
  overflow: hidden;
}

.icon-btn svg,
.home-search svg,
.branch-chip svg,
.tile-icon svg,
.promo-icon svg,
.bottom-nav svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn::before {
  content: none !important;
}

.tile-icon svg {
  width: 27px;
  height: 27px;
}

.tile-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.promo-icon svg {
  width: 34px;
  height: 34px;
}

.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 42vw;
  overflow: hidden;
}

.branch-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tile.active .tile-icon {
  background: #25140b;
  color: #fff;
}

.category-tile b {
  display: block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 950;
}

.promo-banner {
  width: 100%;
  border: 0;
  border-radius: 23px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 12rem),
    linear-gradient(135deg, #3b1f12, #1f1009);
  color: #fff7ed;
  min-height: 92px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 18px 34px rgba(46, 24, 14, 0.18);
  margin-bottom: 18px;
}

.promo-icon {
  font-size: 30px;
  opacity: 0.9;
}

.promo-banner small,
.promo-banner em {
  display: block;
  color: rgba(255, 247, 237, 0.68);
  font-style: normal;
  font-weight: 750;
}

.promo-banner b {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.promo-banner strong {
  border-radius: 999px;
  background: #2fa84f;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}

.subchips {
  margin-bottom: 8px;
}

.commerce-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 14px;
}

.commerce-section-title h2 {
  margin: 0;
  color: #17110c;
  font-family: var(--font-display);
  font-size: 23px;
}

.commerce-section-title button {
  border: 0;
  background: transparent;
  color: #2e7d46;
  font-size: 14px;
  font-weight: 950;
}

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

.compact-product {
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.compact-product .photo-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 18px;
  background: #fbf3e9;
}

.compact-product .photo-wrap img {
  object-fit: cover;
}

.compact-product .product-body {
  border: 0;
  background: transparent;
  padding: 9px 6px 8px;
  text-align: left;
  display: grid;
  align-content: start;
}

.compact-product .product-name {
  min-height: auto;
  color: #17110c;
  font-size: 15px;
  font-weight: 950;
}

.compact-product p {
  margin: 5px 0 0;
  color: #8a7d73;
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-product .price-row {
  margin-top: 7px;
  align-items: center;
  justify-content: space-between;
}

.compact-product .price {
  color: #20140d;
  font-size: 14px;
}

.add-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e8f8e7;
  color: #2fa84f;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.compact-product .image-count {
  min-width: 24px;
  height: 24px;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  background: rgba(31, 16, 9, 0.82);
}

.mini-order-card {
  width: 100%;
  margin: 18px 0 4px;
  border: 0;
  border-radius: 22px;
  background: #dff6df;
  color: #174324;
  min-height: 74px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.mini-order-card span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  display: grid;
  place-items: center;
}

.mini-order-card b,
.mini-order-card small,
.mini-order-card em {
  display: block;
}

.mini-order-card small {
  font-weight: 800;
  color: #477953;
}

.mini-order-card em {
  font-style: normal;
  color: #2e7d46;
  font-size: 12px;
  font-weight: 950;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, 560px);
  padding: 8px 18px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: rgba(255, 250, 241, 0.94);
  border-top: 1px solid rgba(68, 43, 28, 0.08);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #8b7d72;
  display: grid;
  place-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 3px;
}

.bottom-nav button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 17px;
}

.bottom-nav button.active {
  color: #2e7d46;
}

.bottom-nav button.active span {
  background: #e3f7e2;
}

.in-form-order {
  min-height: 48px;
  font-size: 15px;
}

.detail-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 15, 26, 0.94);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.image-viewer-toolbar {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.image-viewer-toolbar button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  min-width: 38px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 950;
}

.image-viewer-toolbar b {
  color: white;
  min-width: 44px;
  text-align: center;
  font-size: 12px;
}

.image-viewer-close {
  justify-self: end;
}

.image-viewer-stage {
  overflow: auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  touch-action: pinch-zoom pan-x pan-y;
}

.image-viewer-stage img {
  max-width: none;
  width: min(96vw, 900px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.image-viewer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

body.cake-shop {
  --ink: #24151d;
  --muted: #755f68;
  --line: #f1dce4;
  --soft: #fff7f4;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 26rem),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 22rem),
    linear-gradient(180deg, #fffaf7 0%, #fff2f5 100%);
}

/* Design B: an image-led editorial storefront over the shared commerce engine. */
body.template-editorial {
  --ink: #171914;
  --muted: #6f716a;
  --line: #dfddd3;
  --soft: #f6f4ed;
  --card: #fffefa;
  --editorial-gold: var(--accent);
  --editorial-dark: var(--navy);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--editorial-gold) 5%, #f8f6f0) 0%,
      #f5f3eb 46rem
    );
  color: var(--ink);
}

body.template-editorial .app-shell {
  width: min(100%, 1180px);
  max-width: none;
  padding: 0 20px 104px;
}

body.template-editorial .commerce-home {
  padding-bottom: 16px;
}

body.template-editorial .commerce-hero,
body.template-editorial .app-header {
  position: sticky;
  top: 0;
  z-index: 35;
  margin: 0 -20px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px;
  background: color-mix(in srgb, var(--editorial-dark) 96%, #000000);
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--editorial-gold) 56%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--editorial-dark) 18%, transparent);
  backdrop-filter: blur(18px);
}

body.template-editorial .app-header {
  margin-bottom: 18px;
}

body.template-editorial .home-brand-row,
body.template-editorial .header-main {
  width: min(100%, 1140px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body.template-editorial .brand-button b,
body.template-editorial .brand-button small {
  color: #ffffff;
}

body.template-editorial .brand-button b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

body.template-editorial .brand-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

body.template-editorial .mini-logo {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--editorial-gold) 76%, #ffffff);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

body.template-editorial .icon-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

body.template-editorial .icon-btn:hover {
  border-color: color-mix(in srgb, var(--editorial-gold) 72%, #ffffff);
  color: color-mix(in srgb, var(--editorial-gold) 45%, #ffffff);
}

body.template-editorial .branch-chip {
  max-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

body.template-editorial .search-drawer {
  width: min(100%, 1140px);
  margin: 10px auto 0;
}

body.template-editorial .search-drawer input {
  border-radius: 3px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.template-editorial .search-drawer .bot-link {
  border-radius: 3px;
  background: var(--editorial-gold);
  color: #ffffff;
}

body.template-editorial .telegram-soft {
  width: min(100%, 1140px);
  margin: 9px auto 0;
  border-radius: 3px;
  background: color-mix(in srgb, var(--editorial-gold) 19%, transparent);
  color: color-mix(in srgb, var(--editorial-gold) 40%, #ffffff);
}

body.template-editorial .editorial-featured-section {
  position: relative;
  margin: 12px 0 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--editorial-dark) 16%, transparent);
}

body.template-editorial .editorial-featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body.template-editorial .editorial-featured-rail::-webkit-scrollbar {
  display: none;
}

body.template-editorial .editorial-feature-card {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 68vw, 720px);
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #d8d3c6;
  color: white;
  text-align: left;
  scroll-snap-align: start;
}

body.template-editorial .editorial-feature-card > img,
body.template-editorial .editorial-feature-card > .featured-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.template-editorial .editorial-feature-card:hover > img {
  transform: scale(1.025);
}

body.template-editorial .editorial-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 20, 0.76) 0%, rgba(8, 12, 20, 0.26) 52%, rgba(8, 12, 20, 0.05) 100%);
}

body.template-editorial .editorial-feature-copy {
  position: absolute;
  left: clamp(24px, 7vw, 84px);
  bottom: clamp(30px, 8vw, 88px);
  z-index: 2;
  display: grid;
  justify-items: start;
  max-width: min(78%, 520px);
}

body.template-editorial .editorial-feature-copy small {
  color: color-mix(in srgb, var(--editorial-gold) 42%, #ffffff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

body.template-editorial .editorial-feature-copy b {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 500;
  line-height: 0.98;
}

body.template-editorial .editorial-feature-copy em {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-style: normal;
}

body.template-editorial .editorial-feature-copy strong {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 2px;
  padding: 11px 22px;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.template-editorial .editorial-swipe-note {
  position: relative;
  width: max-content;
  margin: -31px auto 0;
  z-index: 3;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.template-editorial .editorial-feature-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

body.template-editorial .editorial-feature-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: width 0.2s ease, background 0.2s ease;
}

body.template-editorial .editorial-feature-dots button.active {
  width: 24px;
  background: var(--editorial-gold);
}

body.template-editorial .category-browse {
  margin: 32px 0 44px;
}

body.template-editorial .category-browse .section-title h2,
body.template-editorial .commerce-section-title h2 {
  font-family: var(--font-display);
  color: #151812;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 500;
}

body.template-editorial .category-strip {
  grid-auto-columns: 112px;
  gap: 18px;
  padding: 14px 2px 8px;
}

body.template-editorial .category-tile {
  gap: 11px;
}

body.template-editorial .tile-icon {
  width: 88px;
  height: 88px;
  border: 1px solid #d5d0c2;
  background: #ece9df;
  box-shadow: none;
}

body.template-editorial .category-tile.active .tile-icon {
  color: #ffffff;
  background: var(--editorial-dark);
  border-color: var(--editorial-gold);
  box-shadow: 0 0 0 3px #f5f3eb, 0 0 0 4px var(--editorial-gold);
}

body.template-editorial .category-tile b {
  max-width: 110px;
  color: #292b25;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

body.template-editorial .promo-banner {
  border-radius: 3px;
  background: var(--editorial-dark);
  box-shadow: none;
}

body.template-editorial .promo-banner strong {
  border-radius: 2px;
  background: var(--editorial-gold);
  color: #ffffff;
}

body.template-editorial .subchip,
body.template-editorial .chip {
  border-radius: 2px;
}

body.template-editorial .subchip.active,
body.template-editorial .chip.active {
  background: var(--editorial-dark);
  border-color: var(--editorial-dark);
  color: #ffffff;
}

body.template-editorial .commerce-section-title {
  margin: 28px 0 20px;
  border-bottom: 1px solid #d8d4c8;
  padding-bottom: 12px;
}

body.template-editorial .commerce-section-title button {
  color: var(--editorial-gold);
}

body.template-editorial .grid {
  grid-template-columns: 1fr;
  gap: 42px;
}

body.template-editorial .compact-product {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.template-editorial .compact-product .photo-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: #ebe7dc;
}

body.template-editorial .compact-product .product-body {
  padding: 14px 0 0;
  justify-items: center;
  text-align: center;
}

body.template-editorial .compact-product .product-name {
  color: #171914;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

body.template-editorial .compact-product p {
  min-height: 38px;
  max-width: 62ch;
  color: #73736c;
  font-size: 13px;
  text-align: center;
}

body.template-editorial .compact-product .price-row {
  position: relative;
  width: 100%;
  justify-content: center;
}

body.template-editorial .compact-product .price {
  color: #171914;
  font-size: 15px;
}

body.template-editorial .add-dot {
  position: absolute;
  right: 0;
  border: 1px solid #c9c4b6;
  border-radius: 2px;
  background: transparent;
  color: #171914;
}

body.template-editorial .bottom-nav {
  width: min(100%, 1180px);
  background: color-mix(in srgb, var(--editorial-dark) 96%, #000000);
  border-top-color: color-mix(in srgb, var(--editorial-gold) 58%, transparent);
}

body.template-editorial .bottom-nav button {
  color: rgba(255, 255, 255, 0.62);
}

body.template-editorial .bottom-nav button.active {
  color: color-mix(in srgb, var(--editorial-gold) 42%, #ffffff);
}

body.template-editorial .bottom-nav button.active span {
  border-radius: 3px;
  background: color-mix(in srgb, var(--editorial-gold) 22%, transparent);
}

body.template-editorial .primary-btn,
body.template-editorial .bot-link {
  border-radius: 3px;
  background: var(--editorial-dark);
}

body.template-editorial .detail-card,
body.template-editorial .result-panel,
body.template-editorial .account-card {
  border-radius: 4px;
}

@media (min-width: 680px) {
  body.template-editorial .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 28px;
  }
}

@media (min-width: 1040px) {
  body.template-editorial .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 62px 34px;
  }
}

@media (max-width: 679px) {
  body.template-editorial .app-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    gap: 7px;
  }

  body.template-editorial .branch-chip {
    display: none;
  }

  body.template-editorial .home-brand-row .icon-btn[title="My orders"],
  body.template-editorial .app-header .icon-btn[title="My orders"] {
    display: none;
  }

  body.template-editorial .brand-button b {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.template-editorial .editorial-featured-section {
    margin: 10px 0 28px;
    border-radius: 9px;
  }

  body.template-editorial .editorial-feature-card {
    min-height: min(132vw, 590px);
  }

  body.template-editorial .editorial-feature-shade {
    background: linear-gradient(0deg, rgba(8, 12, 20, 0.78) 0%, rgba(8, 12, 20, 0.12) 65%, transparent 100%);
  }

  body.template-editorial .editorial-feature-copy {
    left: 22px;
    bottom: 42px;
  }

  body.template-editorial .editorial-feature-copy b {
    font-size: clamp(34px, 11vw, 52px);
  }

  body.template-editorial .category-strip {
    grid-auto-columns: 94px;
  }

  body.template-editorial .tile-icon {
    width: 76px;
    height: 76px;
  }

}

body.cake-shop .commerce-hero,
body.cake-shop .detail-card,
body.cake-shop .result-panel,
body.cake-shop .featured-card,
body.cake-shop .product-card {
  border-color: rgba(240, 220, 230, 0.96);
  box-shadow: 0 18px 48px rgba(91, 43, 66, 0.1);
}

body.cake-shop .category-tile.active,
body.cake-shop .primary-btn,
body.cake-shop .bot-link,
body.cake-shop .option-pill input:checked + span {
  background: linear-gradient(135deg, #5b2b42, #e25588);
  border-color: transparent;
}

body.cake-shop .cake-featured-section {
  display: grid;
  gap: 12px;
  margin: 10px 0 18px;
}

body.cake-shop .cake-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.cake-shop .cake-carousel-controls button {
  min-width: 34px;
  min-height: 30px;
  border: 1px solid rgba(240, 220, 230, 0.98);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(91, 43, 66, 0.08);
}

body.cake-shop .cake-featured-carousel {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px 8px;
}

body.cake-shop .cake-featured-carousel::-webkit-scrollbar {
  display: none;
}

body.cake-shop .cake-featured-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 14px;
}

body.cake-shop .cake-feature-card {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(240, 220, 230, 0.96);
  border-radius: 28px;
  background: #fff;
  color: inherit;
  padding: 0;
  text-align: left;
  box-shadow: 0 22px 56px rgba(91, 43, 66, 0.14);
  scroll-snap-align: center;
}

body.cake-shop .cake-feature-card img,
body.cake-shop .cake-feature-card .featured-empty {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff2f7, #fff9ec);
}

body.cake-shop .cake-feature-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(40, 24, 34, 0.78));
  pointer-events: none;
}

body.cake-shop .cake-feature-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
}

body.cake-shop .cake-feature-copy small {
  width: max-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

body.cake-shop .cake-feature-copy b {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.26);
}

body.cake-shop .cake-feature-copy em {
  color: #ffe8a9;
  font-style: normal;
  font-size: 15px;
  font-weight: 950;
}

body.cake-shop .cake-feature-hero {
  position: relative;
  min-height: clamp(260px, 58vw, 390px);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(91, 43, 66, 0.16);
}

body.cake-shop .cake-feature-hero .cake-feature-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 58vw, 390px);
  border: 0;
  border-radius: 30px;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.62s ease;
}

body.cake-shop .cake-feature-hero .cake-feature-card.active {
  opacity: 1;
  pointer-events: auto;
}

body.cake-shop .cake-feature-hero .cake-feature-card img,
body.cake-shop .cake-feature-hero .cake-feature-card .featured-empty {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 58vw, 390px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

body.cake-shop .cake-feature-hero .cake-feature-card::after {
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(40, 24, 34, 0.86));
}

body.cake-shop .cake-feature-hero .cake-feature-copy {
  left: 18px;
  right: 18px;
  bottom: 18px;
  gap: 5px;
}

body.cake-shop .cake-feature-hero .cake-feature-copy b {
  max-width: 82%;
  font-size: clamp(23px, 6vw, 34px);
}

body.cake-shop .cake-feature-hero .cake-feature-copy strong {
  width: max-content;
  margin-top: 5px;
  border-radius: 999px;
  background: #ffffff;
  color: #5b2b42;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
}

body.cake-shop .cake-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5b2b42;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(40, 24, 34, 0.16);
  backdrop-filter: blur(10px);
}

body.cake-shop .cake-hero-nav.prev {
  left: 12px;
}

body.cake-shop .cake-hero-nav.next {
  right: 12px;
}

body.cake-shop .cake-feature-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: -2px;
}

body.cake-shop .cake-feature-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 43, 66, 0.22);
  padding: 0;
}

body.cake-shop .cake-feature-dots button.active {
  width: 22px;
  background: #e25588;
}

body.cake-shop .category-browse {
  margin: 18px 0 22px;
}

body.cake-shop .category-browse .section-title h2 {
  font-size: 21px;
}

body.cake-shop .category-strip {
  grid-auto-columns: 94px;
  gap: 16px;
  padding: 8px 0 14px;
}

body.cake-shop .tile-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(74, 32, 54, 0.13);
}

body.cake-shop .tile-icon svg {
  width: 34px;
  height: 34px;
}

body.cake-shop .category-tile b {
  max-width: 94px;
  font-size: 12px;
}

body.cake-shop .grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

body.cake-shop .product-card.cake-product-card {
  border-radius: 28px;
  box-shadow: 0 20px 54px rgba(91, 43, 66, 0.12);
  margin-bottom: 4px;
}

body.cake-shop .product-card.cake-product-card .photo-wrap {
  aspect-ratio: 1 / 1;
}

body.cake-shop .product-card.cake-product-card .product-action {
  padding: 15px 16px 16px;
}

body.cake-shop .product-card.cake-product-card .product-name {
  font-size: 18px;
  line-height: 1.18;
  min-height: 0;
}

body.cake-shop .product-card.cake-product-card .card-desc {
  min-height: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  -webkit-line-clamp: 3;
}

body.cake-shop .product-card.cake-product-card .price {
  font-size: 18px;
}

.cake-order-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(226, 85, 136, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(226, 85, 136, 0.08), rgba(248, 196, 105, 0.08));
  padding: 14px;
}

.cake-order-box h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.cake-order-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 759px) {
  .detail-screen {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }

  .checkout-summary div {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }

  .checkout-summary small {
    text-align: center;
  }

  .sticky-buy-bar {
    display: none;
  }

  body.cake-shop .cake-featured-section {
    width: auto;
    margin-right: 0;
    margin-left: 0;
    gap: 10px;
  }

  body.cake-shop .cake-featured-section > .section-title,
  body.cake-shop .cake-feature-dots {
    padding-right: 0;
    padding-left: 0;
  }

  body.cake-shop .cake-feature-hero {
    min-height: min(68vh, 540px);
    border-radius: 14px;
    box-shadow: 0 20px 46px color-mix(in srgb, var(--navy) 18%, transparent);
  }

  body.cake-shop .cake-feature-hero .cake-feature-card,
  body.cake-shop .cake-feature-hero .cake-feature-card img,
  body.cake-shop .cake-feature-hero .cake-feature-card .featured-empty {
    min-height: min(68vh, 540px);
    border-radius: 14px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .grid {
    gap: 10px;
  }

  .compact-product {
    min-height: 0;
  }

  .compact-product .photo-wrap {
    height: auto;
  }

  .compact-product .product-name {
    font-size: 13px;
  }

  .compact-product p {
    font-size: 11px;
    min-height: 29px;
  }

  .compact-product .price {
    font-size: 12px;
  }

  body.cake-shop .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.cake-shop .cake-featured-section {
    gap: 10px;
  }

  body.cake-shop .cake-featured-section > .section-title {
    padding: 0;
  }

  body.cake-shop .cake-feature-hero {
    min-height: min(68vh, 540px);
    border-radius: 12px;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--navy) 18%, transparent);
  }

  body.cake-shop .cake-feature-hero .cake-feature-card,
  body.cake-shop .cake-feature-hero .cake-feature-card img,
  body.cake-shop .cake-feature-hero .cake-feature-card .featured-empty {
    min-height: min(68vh, 540px);
    border-radius: 12px;
  }

  body.cake-shop .cake-feature-card,
  body.cake-shop .cake-feature-card img,
  body.cake-shop .cake-feature-card .featured-empty {
    min-height: 215px;
  }

  body.cake-shop .cake-featured-track {
    grid-auto-columns: 88%;
  }

  body.cake-shop .product-card.cake-product-card .product-action {
    padding: 14px;
  }

  body.cake-shop .product-card.cake-product-card .product-name {
    font-size: 17px;
  }

  body.cake-shop .product-card.cake-product-card .card-desc {
    font-size: 12px;
    min-height: 0;
  }

  body.cake-shop .product-card.cake-product-card .price {
    font-size: 17px;
  }
}

/* Desktop storefront: preserve mobile behavior below 960px. */
@media (min-width: 960px) {
  .mobile-menu-toggle,
  .mobile-nav-backdrop {
    display: none;
  }

  body {
    background-attachment: fixed;
  }

  .app-shell,
  body.template-editorial .app-shell {
    width: min(calc(100% - 48px), 1320px);
    max-width: none;
    padding: 0 28px 56px;
  }

  .commerce-home {
    padding-bottom: 0;
  }

  .commerce-hero,
  .app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0 -28px 24px;
    padding: 14px 28px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
    border-radius: 0 0 12px 12px;
    background: color-mix(in srgb, #ffffff 94%, var(--accent));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--navy) 9%, transparent);
    backdrop-filter: blur(20px);
  }

  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    width: 100%;
    min-height: 52px;
    margin: 0 auto;
    gap: 14px;
  }

  .home-brand-row {
    grid-template-columns: auto minmax(300px, 1fr) auto auto;
  }

  .header-main .desktop-shop-nav {
    margin-right: auto;
    margin-left: clamp(24px, 5vw, 72px);
  }

  .desktop-shop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .desktop-shop-nav button {
    position: relative;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 15px;
    background: transparent;
    color: color-mix(in srgb, var(--navy) 76%, #ffffff);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
  }

  .desktop-shop-nav button:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--navy);
  }

  .desktop-shop-nav button.active {
    color: var(--accent);
  }

  .desktop-shop-nav button.active::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 2px;
    left: 15px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }

  .brand-button {
    gap: 12px;
  }

  .brand-button b {
    font-size: 20px;
  }

  .brand-button small {
    margin-top: 2px;
    font-size: 11px;
  }

  .mini-logo,
  body.template-editorial .mini-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .header-icons {
    gap: 8px;
  }

  .icon-btn,
  body.template-editorial .icon-btn {
    width: auto;
    min-width: 44px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 0 13px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
  }

  body.template-editorial .icon-btn {
    color: #ffffff;
  }

  .desktop-action-label {
    display: inline;
    white-space: nowrap;
  }

  .branch-chip,
  body.template-editorial .branch-chip {
    max-width: 320px;
    min-height: 40px;
    border-radius: 8px;
    padding: 0 13px;
  }

  .search-drawer,
  body.template-editorial .search-drawer {
    width: min(100%, 760px);
    margin: 12px 0 0 auto;
  }

  .search-drawer input,
  .search-drawer .bot-link,
  body.template-editorial .search-drawer input,
  body.template-editorial .search-drawer .bot-link {
    min-height: 44px;
    border-radius: 8px;
  }

  .telegram-soft,
  body.template-editorial .telegram-soft {
    width: max-content;
    max-width: 100%;
    margin: 10px 0 0 auto;
    border-radius: 8px;
    padding: 8px 14px;
  }

  .desktop-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -8px 0 24px;
    border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, #ffffff 92%, var(--accent));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--navy) 6%, transparent);
    overflow: hidden;
  }

  .desktop-trust-strip > div,
  .desktop-trust-strip > button {
    min-width: 0;
    min-height: 74px;
    border: 0;
    border-right: 1px solid color-mix(in srgb, var(--navy) 9%, transparent);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--navy);
    text-align: left;
  }

  .desktop-trust-strip > :last-child {
    border-right: 0;
  }

  .desktop-trust-strip > button {
    cursor: pointer;
  }

  .desktop-trust-strip > button:hover {
    background: color-mix(in srgb, var(--accent) 7%, transparent);
  }

  .desktop-trust-strip svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
  }

  .desktop-trust-strip span {
    min-width: 0;
  }

  .desktop-trust-strip b,
  .desktop-trust-strip small {
    display: block;
  }

  .desktop-trust-strip b {
    font-size: 13px;
  }

  .desktop-trust-strip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
  }

  .bottom-nav {
    display: none !important;
  }

  .category-browse {
    margin: 28px 0 36px;
  }

  .category-strip {
    grid-auto-columns: 96px;
    gap: 22px;
    padding: 16px 4px 12px;
  }

  .tile-icon {
    width: 68px;
    height: 68px;
  }

  .category-tile b {
    max-width: 96px;
    font-size: 12px;
  }

  .promo-banner {
    min-height: 112px;
    margin: 8px 0 32px;
    border-radius: 12px;
    padding: 22px 28px;
  }

  .commerce-section-title {
    margin: 32px 0 22px;
  }

  .commerce-section-title h2 {
    font-size: 30px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .shop-screen .catalog-toolbar {
    position: sticky;
    top: 86px;
    z-index: 18;
    margin: 0 0 24px;
    border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
    border-radius: 8px;
    padding: 10px 14px;
    background: color-mix(in srgb, #ffffff 95%, var(--accent));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--navy) 7%, transparent);
    backdrop-filter: blur(18px);
  }

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

  .product-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .product-card .photo-wrap img {
    transition: transform 260ms ease;
  }

  .product-card:hover,
  .product-card:focus-within {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 20px 44px color-mix(in srgb, var(--navy) 13%, transparent);
    transform: translateY(-4px);
  }

  .product-card:hover .photo-wrap img {
    transform: scale(1.025);
  }

  .compact-product .photo-wrap {
    border-radius: 12px;
  }

  .compact-product .product-body {
    padding: 14px 8px 10px;
  }

  .compact-product .product-name {
    font-size: 17px;
  }

  .compact-product p {
    font-size: 13px;
  }

  .compact-product .price {
    font-size: 16px;
  }

  .featured-section {
    margin: 24px 0 38px;
  }

  .featured-rail {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 2px 0 8px;
  }

  .featured-card {
    border-radius: 12px;
    padding: 8px;
  }

  .featured-card img,
  .featured-empty {
    border-radius: 9px;
  }

  .featured-copy b {
    font-size: 15px;
  }

  .detail-screen {
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.85fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
  }

  .detail-screen .back-inline {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
  }

  .detail-hero {
    position: sticky;
    top: 104px;
    border-radius: 16px;
  }

  .detail-image {
    max-height: calc(100vh - 176px);
    aspect-ratio: 4 / 5;
    object-fit: contain;
  }

  .detail-gallery {
    min-height: 0;
    padding-bottom: 14px;
  }

  .thumb-row {
    padding: 12px 16px 0;
  }

  .thumb {
    width: 68px;
    height: 68px;
  }

  .detail-card {
    border-radius: 16px;
    padding: 28px;
  }

  .detail-body h2 {
    font-size: 34px;
  }

  .detail-price-row strong {
    font-size: 26px;
  }

  .detail-desc {
    font-size: 15px;
    line-height: 1.65;
  }

  .spec-preview {
    flex-wrap: wrap;
    overflow: visible;
  }

  .order-card-title {
    margin-top: 22px;
  }

  .checkout-form {
    gap: 14px;
  }

  .account-page,
  .track-page,
  .result-page {
    width: min(100%, 980px);
    margin-right: auto;
    margin-left: auto;
  }

  .result-panel,
  .account-card {
    border-radius: 16px;
    padding: 28px;
  }

  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    margin: 0 -28px 24px;
    padding: 14px 28px;
    border-radius: 0 0 8px 8px;
  }

  body.template-editorial .desktop-shop-nav button {
    color: rgba(255, 255, 255, 0.72);
  }

  body.template-editorial .desktop-shop-nav button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  body.template-editorial .desktop-shop-nav button.active {
    color: color-mix(in srgb, var(--editorial-gold) 52%, #ffffff);
  }

  body.template-editorial .desktop-shop-nav button.active::after {
    background: var(--editorial-gold);
  }

  body.template-editorial .desktop-trust-strip {
    border-color: #d8d4c8;
    background: #fffdf8;
    box-shadow: none;
  }

  body.template-editorial .desktop-trust-strip > div,
  body.template-editorial .desktop-trust-strip > button {
    border-right-color: #ded9cc;
    color: var(--editorial-dark);
  }

  body.template-editorial .editorial-featured-section {
    margin: 22px 0 46px;
    border-radius: 12px;
  }

  body.template-editorial .editorial-feature-card {
    min-height: 520px;
    height: min(62vh, 620px);
    border-radius: 12px;
  }

  body.template-editorial .editorial-feature-copy {
    left: 56px;
    bottom: 54px;
    max-width: 560px;
  }

  body.template-editorial .editorial-feature-copy b {
    font-size: 58px;
  }

  body.template-editorial .category-strip {
    grid-auto-columns: 112px;
    gap: 24px;
  }

  body.template-editorial .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px 28px;
  }

  body.cake-shop .cake-featured-section {
    width: min(100%, 1080px);
    margin: 24px auto 46px;
  }

  body.cake-shop .cake-feature-hero,
  body.cake-shop .cake-feature-hero .cake-feature-card,
  body.cake-shop .cake-feature-hero .cake-feature-card img,
  body.cake-shop .cake-feature-hero .cake-feature-card .featured-empty {
    min-height: 500px;
    border-radius: 18px;
  }

  body.cake-shop .cake-feature-hero .cake-feature-copy {
    left: 36px;
    bottom: 34px;
  }

  body.cake-shop .cake-feature-hero .cake-feature-copy b {
    max-width: 70%;
    font-size: 38px;
  }

  body.cake-shop .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }

  body.cake-shop .product-card.cake-product-card .photo-wrap {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 960px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.55fr) minmax(300px, 0.9fr);
    column-gap: 52px;
  }

  .storefront-footer.compact .footer-main {
    display: grid;
    grid-template-columns: minmax(160px, 0.55fr) minmax(300px, 1fr);
    gap: 40px;
  }

  .footer-shop-nav {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
  }

  .footer-shop-nav small {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .footer-shop-nav button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .footer-shop-nav button:hover {
    color: var(--accent);
  }

  .storefront-footer.compact .footer-shop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .storefront-footer.compact .footer-shop-nav small {
    display: none;
  }
}

@media (min-width: 1200px) {
  body:not(.template-editorial):not(.cake-shop) .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Storefront professionalization: sharing, trust, resilience, and accessibility. */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, #ffffff);
  outline-offset: 3px;
}

.storefront-skeleton {
  width: min(100% - 28px, 1240px);
  min-height: 70vh;
  margin: 18px auto;
  display: grid;
  align-content: start;
  gap: 18px;
}

.storefront-skeleton p {
  margin: 0;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.skeleton-header,
.skeleton-row {
  display: flex;
  gap: 12px;
}

.skeleton-header {
  justify-content: space-between;
}

.skeleton-header span,
.skeleton-row span,
.skeleton-hero {
  display: block;
  border-radius: 7px;
  background: linear-gradient(100deg, #e8edf3 20%, #f8fafc 38%, #e8edf3 56%);
  background-size: 220% 100%;
  animation: storefront-skeleton 1.45s ease-in-out infinite;
}

.skeleton-header span:first-child {
  width: 190px;
  height: 48px;
}

.skeleton-header span:last-child {
  width: 270px;
  height: 48px;
}

.skeleton-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
}

.skeleton-row span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

@keyframes storefront-skeleton {
  to { background-position-x: -220%; }
}

img.is-broken {
  display: none !important;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  background: color-mix(in srgb, var(--navy) 9%, #f8fafc);
  color: var(--navy);
  font-family: var(--font-display, inherit);
  font-size: clamp(18px, 4vw, 42px);
  font-weight: 800;
}

.logo-image-fallback {
  position: static;
  inset: auto;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 7px;
  font-size: 14px;
}

.share-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 10px 0 4px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent);
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.share-product-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.share-product-btn:hover,
.share-product-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
}

.checkout-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 20px 0 18px;
  padding: 0;
  list-style: none;
}

.checkout-progress::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: #dbe2ea;
}

.checkout-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

.checkout-progress li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #dbe2ea;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.checkout-progress li.active,
.checkout-progress li.complete {
  color: var(--navy);
}

.checkout-progress li.active span {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.checkout-progress li.complete span {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.storefront-footer {
  width: 100%;
  margin: 52px auto 0;
  padding: 30px max(20px, calc((100% - 1320px) / 2)) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--navy) 3%, #ffffff), color-mix(in srgb, var(--accent) 5%, #ffffff));
  color: #475569;
}

.storefront-footer.has-bottom-nav,
.storefront-footer.has-sticky-buy {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.footer-main {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.storefront-footer.compact {
  margin-top: 30px;
  padding-top: 22px;
}

.storefront-footer.compact .footer-main {
  display: block;
}

.storefront-footer.compact .footer-links {
  justify-content: flex-start;
  margin: 0 0 18px;
}

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

.footer-brand .footer-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-brand b {
  display: block;
  color: var(--navy);
  font-family: var(--font-display, inherit);
  font-size: 22px;
}

.footer-brand p {
  margin: 8px 0;
  line-height: 1.6;
}

.footer-brand .footer-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.footer-address svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--navy) 13%, transparent);
  border-radius: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom b {
  color: inherit;
}

.error-card {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-card > div {
  max-width: 460px;
}

.error-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 28px;
  font-weight: 900;
}

@media (min-width: 960px) {
  .storefront-footer.has-sticky-buy {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr);
    column-gap: 60px;
  }

  .footer-links {
    justify-content: flex-end;
    align-content: start;
    margin-top: 0;
  }

  .storefront-footer.compact .footer-main {
    display: block;
  }

  .storefront-footer.compact .footer-links {
    justify-content: flex-start;
  }

}

@media (max-width: 640px) {
  .storefront-skeleton {
    width: calc(100% - 24px);
  }

  .skeleton-header span:last-child {
    width: 100px;
  }

  .skeleton-hero {
    aspect-ratio: 4 / 5;
  }

  .storefront-footer {
    margin-top: 34px;
    padding-inline: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .footer-bottom a {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact catalog controls and refined product details. */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  margin: -4px 0 18px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  border-radius: 0;
  background: transparent;
}

.catalog-result-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #64748b;
  white-space: nowrap;
}

.catalog-result-count b {
  color: var(--navy);
  font-size: 16px;
}

.catalog-result-count span {
  font-size: 12px;
  font-weight: 750;
}

.catalog-filter-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.catalog-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-filter select {
  width: auto;
  max-width: 170px;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--navy) 14%, transparent);
  border-radius: 6px;
  padding: 5px 28px 5px 9px;
  background-color: #ffffff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.clear-catalog-filters {
  min-height: 36px;
  border: 0;
  padding: 5px 8px;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.shop-page-heading {
  margin: 4px 0 20px;
}

.shop-page-heading .eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display, inherit);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.1;
}

.shop-page-heading > p:last-child {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shop-all-cta {
  width: 100%;
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.shop-all-cta > svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}

.shop-all-cta span {
  min-width: 0;
}

.shop-all-cta b,
.shop-all-cta small {
  display: block;
}

.shop-all-cta b {
  font-size: 14px;
}

.shop-all-cta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.shop-all-cta strong {
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.shop-all-cta:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
}

.home-merch-section {
  --merch-color: var(--accent);
  margin: 26px 0;
  padding: 18px 0 16px;
  border-top: 1px solid color-mix(in srgb, var(--merch-color) 24%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--merch-color) 16%, transparent);
}

.home-merch-bestseller {
  --merch-color: #b7791f;
}

.home-merch-trending {
  --merch-color: #c2413b;
}

.home-merch-loved {
  --merch-color: #b83268;
}

.home-merch-new_arrival {
  --merch-color: #147d6f;
}

.home-merch-limited {
  --merch-color: #6654a3;
}

.home-merch-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.home-merch-heading small {
  color: var(--merch-color);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-merch-heading h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-family: var(--font-display, inherit);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
}

.home-merch-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.home-merch-see-all {
  flex: 0 0 auto;
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--merch-color);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.home-merch-see-all span {
  margin-left: 3px;
  font-size: 14px;
}

.home-merch-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-merch-scroll-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-merch-scroll-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--merch-color) 28%, var(--line));
  border-radius: 50%;
  background: #ffffff;
  color: var(--merch-color);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.home-merch-scroll-controls button:hover:not(:disabled) {
  border-color: var(--merch-color);
  background: var(--merch-color);
  color: #ffffff;
}

.home-merch-scroll-controls button:disabled {
  cursor: default;
  opacity: 0.3;
}

.home-merch-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(172px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--merch-color) 40%, transparent) transparent;
}

.home-merch-track .product-card {
  scroll-snap-align: start;
  min-width: 0;
  border-color: color-mix(in srgb, var(--merch-color) 16%, var(--line));
  background: #ffffff;
}

.home-merch-track .add-dot {
  background: color-mix(in srgb, var(--merch-color) 12%, #ffffff);
  color: var(--merch-color);
}

@media (min-width: 900px) {
  .home-merch-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 38px 0 34px;
  }

  .home-merch-primary-grid .home-merch-section {
    min-width: 0;
    margin: 0;
    padding: 24px 24px 26px;
    border: 1px solid color-mix(in srgb, var(--merch-color) 22%, var(--line));
    border-top: 4px solid var(--merch-color);
    border-radius: 8px;
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--merch-color) 7%, #ffffff), #ffffff 48%);
  }

  .home-merch-primary-grid .home-merch-heading {
    min-height: 76px;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .home-merch-primary-grid .home-merch-heading h2 {
    font-size: clamp(25px, 2.2vw, 34px);
  }

  .home-merch-primary-grid .home-merch-heading p {
    max-width: 38ch;
    font-size: 13px;
  }

  .home-merch-primary-grid .home-merch-track {
    grid-auto-flow: initial;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding: 0;
  }

  .home-merch-primary-grid > .home-merch-section:only-child .home-merch-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-merch-primary-grid .product-card {
    height: 100%;
  }

  .home-merch-primary-grid .photo-wrap {
    aspect-ratio: 4 / 5;
  }

  .home-merch-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0 36px;
  }

  .home-merch-secondary-grid .home-merch-section {
    min-width: 0;
    margin: 0;
    padding: 20px 0 0;
    border-top: 3px solid var(--merch-color);
    border-bottom: 0;
  }

  .home-merch-secondary-grid .home-merch-heading {
    min-height: 78px;
    align-items: flex-start;
  }

  .home-merch-secondary-grid .home-merch-heading p {
    max-width: 30ch;
  }

  .home-merch-secondary-grid .home-merch-track {
    grid-auto-flow: initial;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    padding: 0;
  }

  .home-merch-secondary-grid .home-merch-section:only-child .home-merch-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-merch-secondary-grid .photo-wrap {
    aspect-ratio: 1 / 1;
  }

  .home-merch-primary-grid .home-merch-section.home-merch-wide,
  .home-merch-secondary-grid .home-merch-section.home-merch-wide {
    grid-column: 1 / -1;
  }

  .home-merch-primary-grid .home-merch-section.home-merch-wide .home-merch-track,
  .home-merch-secondary-grid .home-merch-section.home-merch-wide .home-merch-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 54px) / 4);
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-merch-primary-grid .home-merch-section.home-merch-wide .product-card,
  .home-merch-secondary-grid .home-merch-section.home-merch-wide .product-card {
    scroll-snap-align: start;
  }

  body.template-editorial .home-merch-primary-grid .product-card,
  body.template-editorial .home-merch-secondary-grid .product-card {
    border: 0;
  }

  body.template-editorial .home-merch-primary-grid .compact-product .product-name {
    font-size: clamp(17px, 1.5vw, 21px);
  }

  body.template-editorial .home-merch-primary-grid .compact-product p,
  body.template-editorial .home-merch-secondary-grid .compact-product p {
    min-height: 34px;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 899px) {
  .home-merch-scroll-controls {
    display: none;
  }
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-title-row h2 {
  min-width: 0;
}

.detail-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.detail-title-actions .share-product-btn {
  min-height: 30px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
}

.detail-title-actions .share-product-btn svg {
  width: 14px;
  height: 14px;
}

.detail-title-actions .detail-code {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-price-row {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 5px;
}

.detail-price-row .detail-offer {
  color: #b42318;
  font-size: 11px;
}

body.template-editorial .compact-product .photo-wrap {
  aspect-ratio: 1 / 1;
}

@media (max-width: 720px) {
  .catalog-toolbar {
    display: grid;
    align-items: start;
    gap: 6px;
    margin-bottom: 14px;
    overflow: visible;
  }

  .catalog-result-count {
    min-height: 22px;
    align-items: center;
  }

  .catalog-filter-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

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

  .catalog-filter > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .catalog-filter select {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-right: 22px;
  }

  .clear-catalog-filters {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 24px;
    padding-block: 0;
  }

  .shop-page-heading {
    margin-top: 2px;
  }

  .shop-all-cta {
    padding: 12px;
  }

  .shop-all-cta strong {
    display: none;
  }

  .home-merch-section {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-merch-heading p {
    display: none;
  }

  .home-merch-track {
    grid-auto-columns: minmax(158px, 72vw);
  }

  .detail-desc {
    margin-top: 8px;
  }

  .detail-price-row {
    justify-content: flex-start;
    margin-top: 5px;
  }

  .detail-title-row {
    gap: 9px;
  }

  .detail-title-actions {
    gap: 5px;
  }

  .detail-title-actions .share-product-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Desktop editorial storefront: composed like a full e-commerce site, without changing mobile. */
@media (min-width: 960px) {
  .app-shell,
  body.template-editorial .app-shell {
    width: min(calc(100% - 56px), 1240px);
    padding-right: 0;
    padding-left: 0;
  }

  .commerce-hero,
  .app-header,
  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    margin-right: 0;
    margin-left: 0;
    padding: 15px 22px;
    border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }

  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    border-color: rgba(255, 255, 255, 0.09);
  }

  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    display: grid;
    max-width: none;
    min-height: 58px;
  }

  .header-main,
  body.template-editorial .header-main {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .home-brand-row,
  body.template-editorial .home-brand-row {
    grid-template-columns: auto minmax(240px, 1fr) auto auto;
  }

  .brand-button {
    min-width: 230px;
  }

  .brand-button b {
    font-size: 21px;
    letter-spacing: 0;
  }

  .brand-button small {
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .header-main .desktop-shop-nav {
    justify-self: center;
    margin: 0;
  }

  .desktop-shop-nav {
    gap: 10px;
  }

  .header-icons {
    justify-self: end;
  }

  .desktop-shop-nav button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .desktop-trust-strip {
    margin: -8px auto 34px;
    box-shadow: none;
  }

  .desktop-trust-strip > div,
  .desktop-trust-strip > button {
    min-height: 68px;
    padding: 12px 22px;
  }

  .category-browse,
  .promo-banner,
  .commerce-section-title,
  .home-product-grid,
  .shop-all-cta,
  .mini-order-card,
  .home-merch-primary-grid,
  .home-merch-secondary-grid {
    width: min(100%, 1160px);
    margin-right: auto;
    margin-left: auto;
  }

  .category-browse {
    padding-block: 10px 16px;
  }

  .category-browse .section-title h2,
  .commerce-section-title h2 {
    font-size: clamp(27px, 2.5vw, 36px);
  }

  .category-strip {
    justify-content: flex-start;
  }

  .shop-page-heading {
    width: min(100%, 1160px);
    margin: 46px auto 28px;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .shop-page-heading h1 {
    max-width: 760px;
    margin: 4px 0 8px;
    font-size: clamp(40px, 4.4vw, 62px);
    line-height: 1;
  }

  .shop-page-heading p:last-child {
    max-width: 620px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .shop-screen .subchips,
  .shop-screen .commerce-section-title,
  .shop-screen .catalog-toolbar,
  .shop-screen > .grid,
  .shop-screen > .empty-box {
    width: min(100%, 1160px);
    margin-right: auto;
    margin-left: auto;
  }

  .shop-screen .catalog-toolbar {
    top: 100px;
  }

  .home-merch-primary-grid,
  .home-merch-secondary-grid {
    display: block;
  }

  .home-merch-primary-grid .home-merch-section,
  .home-merch-secondary-grid .home-merch-section {
    margin: 60px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-merch-primary-grid .home-merch-heading,
  .home-merch-secondary-grid .home-merch-heading {
    min-height: 0;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid color-mix(in srgb, var(--merch-color) 28%, var(--line));
  }

  .home-merch-primary-grid .home-merch-heading h2,
  .home-merch-secondary-grid .home-merch-heading h2 {
    font-size: clamp(28px, 2.7vw, 39px);
  }

  .home-merch-primary-grid .home-merch-heading p,
  .home-merch-secondary-grid .home-merch-heading p {
    max-width: 54ch;
  }

  .home-merch-primary-grid .home-merch-track,
  .home-merch-secondary-grid .home-merch-track,
  .home-merch-primary-grid .home-merch-section:only-child .home-merch-track,
  .home-merch-secondary-grid .home-merch-section:only-child .home-merch-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 66px) / 4);
    grid-template-columns: none;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-merch-track .product-card {
    scroll-snap-align: start;
  }

  .compact-product {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .compact-product .photo-wrap {
    overflow: hidden;
    border-radius: 8px;
    background: #f2f0ea;
  }

  .compact-product .product-body {
    padding: 14px 2px 4px;
  }

  .compact-product .product-name {
    font-size: 18px;
  }

  .product-card:hover,
  .product-card:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-3px);
  }

  .detail-screen {
    width: min(100%, 1160px);
    margin: 34px auto 64px;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 48px;
  }

  .detail-hero {
    top: 112px;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, #ffffff 88%, var(--accent));
    box-shadow: none;
  }

  .detail-image {
    max-height: calc(100vh - 190px);
    border-radius: 8px;
  }

  .detail-card {
    padding: 12px 0 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .detail-body h2 {
    max-width: 15ch;
    font-size: clamp(36px, 3.5vw, 50px);
    line-height: 1.04;
  }

  .detail-price-row {
    margin-top: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .detail-price-row strong {
    font-size: 29px;
  }

  .detail-desc {
    max-width: 58ch;
    margin-top: 20px;
  }

  .detail-card .checkout-progress {
    margin-top: 28px;
  }

  .order-card-title {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .account-page {
    width: min(100%, 1160px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 28px;
    margin-top: 44px;
  }

  .account-card,
  .result-panel,
  .support-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    box-shadow: none;
  }

  .track-page,
  .result-page {
    width: min(100%, 820px);
    margin-top: 48px;
  }

  .support-page {
    width: min(100%, 980px);
    margin: 44px auto 70px;
  }

  .support-thread {
    min-height: 430px;
    max-height: 58vh;
  }

  .storefront-footer {
    width: min(100%, 1160px);
    margin-right: auto;
    margin-left: auto;
  }

  body.template-editorial .editorial-featured-section {
    width: min(100%, 1160px);
    margin: 34px auto 54px;
    overflow: hidden;
    border: 1px solid #ded8ca;
    border-radius: 10px;
    background: #f8f4ec;
    box-shadow: 0 18px 50px rgba(34, 29, 22, 0.08);
  }

  body.template-editorial .editorial-featured-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
  }

  body.template-editorial .editorial-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    min-height: 500px;
    height: min(62vh, 560px);
    overflow: hidden;
    border-radius: 0;
    background: #f8f4ec;
    text-align: left;
  }

  body.template-editorial .editorial-feature-card > img,
  body.template-editorial .editorial-feature-card > .featured-empty {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
  }

  body.template-editorial .editorial-feature-shade {
    display: none;
  }

  body.template-editorial .editorial-feature-copy {
    position: relative;
    z-index: 2;
    left: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    padding: clamp(42px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #1f211f;
    background: #f8f4ec;
  }

  body.template-editorial .editorial-feature-copy small {
    color: var(--editorial-gold);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body.template-editorial .editorial-feature-copy b {
    margin-top: 18px;
    color: #171918;
    font-size: clamp(39px, 4vw, 58px);
    line-height: 0.98;
    text-shadow: none;
  }

  body.template-editorial .editorial-feature-copy p {
    margin: 24px 0 0;
    color: #65635e;
    font-size: 14px;
    line-height: 1.7;
  }

  body.template-editorial .editorial-feature-copy em {
    margin-top: 24px;
    color: #242623;
    font-size: 18px;
    font-style: normal;
    font-weight: 850;
  }

  body.template-editorial .editorial-feature-copy strong {
    min-height: 42px;
    margin-top: 24px;
    border: 1px solid #252824;
    border-radius: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #252824;
    background: transparent;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.template-editorial .editorial-featured-section:hover .editorial-feature-copy strong {
    color: #ffffff;
    background: #252824;
  }

  body.template-editorial .editorial-feature-dots {
    position: absolute;
    right: clamp(42px, 5vw, 72px);
    bottom: 22px;
    z-index: 4;
  }

  body.template-editorial .grid {
    gap: 44px 24px;
  }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .desktop-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .brand-button {
    min-width: 190px;
  }
}

/* Full-bleed desktop masthead with centered storefront controls. */
@media (min-width: 960px) {
  .commerce-hero,
  .app-header,
  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    width: min(calc(100% - 56px), 1240px);
    margin-right: auto;
    margin-left: auto;
  }

  .desktop-header-lower {
    padding-right: max(28px, calc((100vw - 1240px) / 2 + 22px));
    padding-left: max(28px, calc((100vw - 1240px) / 2 + 22px));
  }
}

@media (min-width: 1200px) {
  body.template-editorial .shop-screen > .grid,
  body.template-editorial .home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  body.template-editorial .editorial-feature-copy p {
    display: none;
  }
}

.desktop-commerce-search,
.desktop-header-lower {
  display: none;
}

/* Professional two-level commerce masthead on desktop. */
@media (min-width: 960px) {
  .commerce-hero,
  .app-header,
  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: var(--navy);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--navy) 18%, transparent);
  }

  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    background: var(--editorial-dark);
  }

  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    width: 100%;
    min-height: 76px;
    grid-template-columns: minmax(230px, auto) minmax(300px, 590px) minmax(230px, auto);
    gap: clamp(20px, 3vw, 44px);
    padding: 14px 22px;
  }

  .brand-button,
  body.template-editorial .brand-button {
    min-width: 0;
  }

  .brand-button b,
  .brand-button small,
  body.template-editorial .brand-button b,
  body.template-editorial .brand-button small {
    color: #ffffff;
  }

  .brand-button small,
  body.template-editorial .brand-button small {
    color: rgba(255, 255, 255, 0.58);
  }

  .desktop-commerce-search {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 38px;
    align-items: center;
    justify-self: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    padding: 0 5px 0 14px;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 160ms ease, background 160ms ease;
  }

  .desktop-commerce-search:focus-within {
    border-color: color-mix(in srgb, var(--accent) 68%, #ffffff);
    background: rgba(255, 255, 255, 0.12);
  }

  .desktop-commerce-search > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 1.8;
  }

  .desktop-commerce-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 13px;
  }

  .desktop-commerce-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
  }

  .desktop-commerce-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: #ffffff;
    cursor: pointer;
  }

  .desktop-commerce-search button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .header-icons {
    gap: 8px;
  }

  .header-icons .mobile-search-action {
    display: none;
  }

  .icon-btn,
  body.template-editorial .icon-btn {
    min-width: 46px;
    height: 44px;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
  }

  .icon-btn:hover,
  body.template-editorial .icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
  }

  .desktop-header-lower {
    min-height: 48px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.1);
  }

  .desktop-header-lower .desktop-shop-nav {
    justify-self: auto;
    margin: 0;
  }

  .desktop-header-lower .desktop-shop-nav button,
  body.template-editorial .desktop-header-lower .desktop-shop-nav button {
    min-height: 48px;
    border-radius: 0;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.7);
  }

  .desktop-header-lower .desktop-shop-nav button:hover,
  body.template-editorial .desktop-header-lower .desktop-shop-nav button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  .desktop-header-lower .desktop-shop-nav button.active,
  body.template-editorial .desktop-header-lower .desktop-shop-nav button.active {
    color: #ffffff;
  }

  .desktop-header-lower .desktop-shop-nav button.active::after {
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 2px;
    background: color-mix(in srgb, var(--accent) 72%, #ffffff);
  }

  .header-context-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .header-location-link,
  .header-telegram-link {
    min-width: 0;
    min-height: 34px;
    border-radius: 5px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }

  .header-location-link:hover,
  .header-telegram-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
  }

  .header-location-link svg,
  .header-telegram-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .header-location-link span {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-telegram-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-only-branch,
  .telegram-soft,
  .search-drawer {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    grid-template-columns: minmax(180px, auto) minmax(260px, 1fr) auto;
    gap: 16px;
  }

  .header-location-link span {
    max-width: 180px;
  }
}

@media (min-width: 960px) {
  .home-brand-row,
  .header-main,
  body.template-editorial .home-brand-row,
  body.template-editorial .header-main {
    width: calc(100vw - 56px);
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Editorial storefront footer and persistent desktop masthead. */
.storefront-footer {
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy);
  border-top: 0;
}

body.template-editorial .storefront-footer {
  background: var(--editorial-dark);
}

.footer-brand-lockup {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-lockup > img,
.footer-brand-lockup > span {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  object-fit: cover;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.footer-brand-lockup > div {
  min-width: 0;
}

.footer-brand .footer-brand-lockup b {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand-lockup small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand .footer-kicker,
.footer-shop-nav > small,
.footer-contact > small {
  display: block;
  margin-bottom: 11px;
  color: color-mix(in srgb, var(--accent) 62%, #ffffff);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.64);
}

.footer-brand .footer-address {
  color: rgba(255, 255, 255, 0.54);
}

.footer-shop-nav button {
  color: rgba(255, 255, 255, 0.68);
}

.footer-shop-nav button:hover {
  color: #ffffff;
}

.footer-links {
  margin: 0;
  display: grid;
  gap: 5px;
}

.footer-links a {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom a,
.footer-bottom b {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover {
  color: #ffffff;
}

@media (min-width: 960px) {
  .commerce-hero,
  .app-header,
  body.template-editorial .commerce-hero,
  body.template-editorial .app-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .storefront-footer,
  body.template-editorial .storefront-footer {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 54px max(28px, calc((100vw - 1240px) / 2 + 22px)) 24px;
  }

  .footer-main {
    max-width: 1240px;
    grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.5fr) minmax(230px, 0.65fr);
    gap: clamp(40px, 6vw, 86px);
  }

  .storefront-footer.compact {
    margin-top: 42px;
    padding-top: 24px;
  }

  .storefront-footer.compact .footer-main {
    max-width: 1240px;
    display: flex;
    justify-content: flex-end;
  }

  .storefront-footer.compact .footer-contact {
    width: auto;
  }

  .storefront-footer.compact .footer-links {
    display: flex;
    justify-content: flex-end;
  }

  .footer-shop-nav {
    gap: 10px;
  }

  .footer-shop-nav button {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
  }

  .footer-shop-nav button:hover {
    color: #ffffff;
  }

  .footer-bottom {
    max-width: 1240px;
    margin-top: 36px;
    padding-top: 20px;
  }

  .storefront-footer.compact .footer-bottom {
    margin-top: 18px;
  }

  .detail-screen .back-inline {
    display: none;
  }
}
