:root {
  --orange: #ef7d00;
  --orange-deep: #c75e08;
  --orange-soft: #fff0df;
  --ink: #211b17;
  --ink-soft: #554a43;
  --muted: #8a7f77;
  --paper: #fffdf9;
  --ivory: #f7f2eb;
  --line: #eadfd3;
  --green: #356a48;
  --red: #bd3f31;
  --shadow: 0 18px 52px rgba(63, 43, 28, .12);
  --header-h: 66px;
  --nav-h: 74px;
  --radius: 24px;
}

html[data-theme="dark"] {
  --orange: #ff8708;
  --orange-deep: #ff9e3d;
  --orange-soft: #3a2414;
  --ink: #f6efe8;
  --ink-soft: #d4c8bf;
  --muted: #a89b91;
  --paper: #151210;
  --ivory: #211c19;
  --line: #3b322c;
  --green: #76c18d;
  --red: #ff8b7d;
  --shadow: 0 18px 52px rgba(0, 0, 0, .34);
  color-scheme: dark;
  background: #0d0b0a;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e8e2da; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 15px 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid rgba(234, 223, 211, .82);
  backdrop-filter: blur(18px);
}

.brand-button {
  width: 188px;
  height: 46px;
  margin: 0 auto;
  padding: 7px 10px;
  border: 0;
  background: transparent;
}
.brand-button img { width: 100%; height: 100%; object-fit: contain; }

.icon-button {
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}
.icon-button:active { background: var(--ivory); transform: scale(.96); }
.icon-button.authenticated { color: var(--orange-deep); background: var(--orange-soft); }
.icon-button.authenticated::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
}
#accountButton { position: relative; }
.icon-button svg, .bottom-nav svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-content {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 22px);
  background: var(--paper);
}

.page { animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.bottom-nav {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 8px 7px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 249, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: 0 -12px 34px rgba(43, 29, 19, .05);
}
.nav-item {
  position: relative;
  min-width: 0;
  padding: 5px 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  color: #80756e;
  background: transparent;
  font-size: 10px;
  line-height: 1;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--orange-deep); font-weight: 700; }
.nav-item.active::before {
  content: "";
  position: absolute;
  top: -8px;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}
.nav-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-size: 9px;
  font-weight: 800;
}
.hidden { display: none !important; }

.home-top { padding: 16px 16px 0; }
.search-box {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 8px 26px rgba(58, 40, 27, .05);
}
.search-box svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 1.7; }
.search-box input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}
.search-box input::placeholder { color: #a0958d; }
.search-box button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--ivory);
}

.hero-card {
  position: relative;
  min-height: 366px;
  margin: 15px 16px 0;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: #5f3c2a url("assets/images/hero-premium.png") 73% center / auto 100% no-repeat;
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 21, 15, .08) 0%, rgba(31, 21, 15, .22) 45%, rgba(25, 17, 12, .83) 100%);
}
.hero-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.hero-kicker, .eyebrow {
  color: #ffb265;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 330px;
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero-copy p { max-width: 310px; margin: 0; color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.48; }
.hero-actions { margin-top: 20px; display: flex; gap: 9px; }

.primary-button, .secondary-button, .text-button {
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.primary-button { color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(239, 125, 0, .23); }
.primary-button:active { background: var(--orange-deep); transform: translateY(1px); }
.secondary-button { color: var(--ink); background: rgba(255,255,255,.9); }
.text-button { min-height: 36px; padding: 0; color: var(--orange-deep); background: transparent; }
.wide { width: 100%; }
.primary-button:disabled { box-shadow: none; opacity: .5; }

.section { padding: 32px 16px 0; }
.section.flush-right { padding-right: 0; }
.section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2, .page-title h1, .sheet h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-heading h2 { font-size: 27px; line-height: 1.05; }
.section-heading button { padding: 0 4px; border: 0; color: var(--orange-deep); background: transparent; font-size: 12px; font-weight: 700; }
.section-note { margin: -7px 0 15px; color: var(--muted); font-size: 11px; }

.category-row {
  padding: 0 16px 8px 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 11px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-row::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
.category-card {
  min-height: 194px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 21px;
  text-align: left;
  color: var(--ink);
  background: var(--ivory);
  scroll-snap-align: start;
}
.category-card .category-image { height: 128px; padding: 6px; background: #fff; }
.category-card img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.category-card span { padding: 12px 13px 3px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.category-card small { padding: 0 13px 13px; color: var(--muted); font-size: 9px; line-height: 1.25; }

.brand-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.brand-feature {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  color: var(--ink);
  background: #fbf6f0;
}
.brand-feature::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -18px;
  bottom: -18px;
  border: 18px solid rgba(239,125,0,.15);
  border-radius: 50%;
}
.brand-feature strong { position: relative; z-index: 1; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; }
.brand-feature small { position: relative; z-index: 1; display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.brand-feature.orange { color: #fff; background: var(--orange); border-color: var(--orange); }
.brand-feature.orange small { color: rgba(255,255,255,.78); }
.brand-feature.orange::after { border-color: rgba(255,255,255,.22); }

.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.product-open {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: block;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
}
.product-media {
  position: relative;
  width: 100%;
  height: 166px;
  min-width: 0;
  min-height: 166px;
  overflow: hidden;
  contain: layout paint;
  background: #faf8f5;
}
.product-media img[data-product-image] {
  position: absolute;
  inset: 11px;
  display: block;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  max-width: calc(100% - 22px);
  max-height: calc(100% - 22px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-media .product-no-image { position: absolute; inset: 11px; width: auto; height: auto; }
.product-no-image { width: 100%; height: 100%; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #a99d93; background: linear-gradient(145deg, #fbf9f6, #f4efe9); }
.product-no-image svg { width: 42px; height: 42px; fill: none; stroke: #c8bbb0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.product-no-image span { font-size: 9px; font-weight: 650; letter-spacing: .03em; }
.favorite-button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  color: #6e625b;
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 18px rgba(55,38,27,.1);
}
.favorite-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-button.selected { color: #fff; background: var(--orange); }
.favorite-button.selected svg { fill: currentColor; }
.product-copy { padding: 13px 13px 0; }
.product-brand { color: var(--orange-deep); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { min-height: 47px; margin: 7px 0 8px; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.32; }
.stock { color: var(--green); font-size: 9px; }
.product-footer { margin-top: auto; padding: 11px 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.add-button {
  width: 37px;
  height: 37px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.add-button.added { background: var(--orange); font-size: 15px; }

.service-bar {
  margin: 32px 16px 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 15px;
  align-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--ink);
}
.service-bar i { width: 1px; height: 42px; background: rgba(255,255,255,.16); }
.service-bar strong { display: block; margin-bottom: 4px; font-size: 12px; }
.service-bar span { display: block; color: rgba(255,255,255,.6); font-size: 9px; line-height: 1.4; }

.page-header { padding: 21px 16px 15px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-title h1 { font-size: 34px; line-height: 1; }
.page-title p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.round-action {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
}
.round-action svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }

.catalog-list { padding: 0 16px; display: grid; gap: 11px; }
.catalog-list-card {
  min-height: 142px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 142px;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: left;
  color: var(--ink);
  background: var(--ivory);
}
.catalog-list-copy { padding: 21px 10px 17px 19px; display: flex; flex-direction: column; align-items: flex-start; }
.catalog-list-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; line-height: 1.05; }
.catalog-list-copy small { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.catalog-list-copy b { margin-top: auto; color: var(--orange-deep); font-size: 18px; font-weight: 400; }
.catalog-list-image { min-width: 0; padding: 7px; display: grid; place-items: center; background: #fff; }
.catalog-list-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.chip-row {
  padding: 0 16px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip {
  min-height: 35px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
}
.chip.active { color: #fff; border-color: var(--orange); background: var(--orange); }
.catalog-toolbar {
  margin: 0 16px 13px;
  display: grid;
  grid-template-columns: minmax(112px, .85fr) minmax(0, 1.35fr);
  gap: 9px;
}
.catalog-filter-button,
.catalog-sort {
  min-width: 0;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
}
.catalog-filter-button {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}
.catalog-filter-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.catalog-filter-button b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--orange); font-size: 9px; }
.catalog-filter-button.active { color: var(--orange-deep); border-color: #f2c796; background: var(--orange-soft); }
.catalog-sort { position: relative; padding: 6px 10px 4px; display: flex; flex-direction: column; justify-content: center; }
.catalog-sort span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.catalog-sort select { width: 100%; min-width: 0; height: 25px; padding: 0 22px 0 0; overflow: hidden; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 650; text-overflow: ellipsis; }
.results-meta { padding: 0 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.catalog-source { padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.catalog-source.live { color: #17633c; background: #eaf7ef; }
.catalog-source.offline { color: #7a5a34; background: #f7eee3; }
.catalog-warning { margin: 0 16px 12px; padding: 10px 12px; border: 1px solid #ead9c5; border-radius: 12px; color: #735433; background: #fff8ef; font-size: 10px; line-height: 1.4; }
.catalog-products { padding: 0 16px; }
.load-more-wrap { padding: 18px 0 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.load-more-wrap .secondary-button { min-width: 180px; border: 1px solid var(--line); background: #fff; }
.load-more-wrap small { color: var(--muted); font-size: 9px; }
.product-card.newly-loaded { animation: product-loaded 1.7s ease-out; }
@keyframes product-loaded {
  0%, 35% { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), 0 16px 34px rgba(83, 52, 28, .12); }
  100% { border-color: var(--line); box-shadow: none; }
}
.search-results-box { padding-top: 0; }

.product-skeleton { min-height: 285px; padding: 10px; pointer-events: none; }
.product-skeleton span, .product-skeleton i, .product-skeleton b {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, #f1ebe4 25%, #faf7f3 50%, #f1ebe4 75%);
  background-size: 200% 100%;
  animation: skeleton-shift 1.15s linear infinite;
}
.product-skeleton span { height: 158px; }
.product-skeleton i { width: 78%; height: 11px; margin-top: 14px; }
.product-skeleton i + i { width: 92%; margin-top: 8px; }
.product-skeleton b { width: 48%; height: 18px; margin-top: 28px; }
@keyframes skeleton-shift { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.brands-search { padding: 0 16px 16px; }
.brand-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.brand-card-app {
  position: relative;
  min-width: 0;
  min-height: 148px;
  padding: 10px 10px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 9px 26px rgba(58, 40, 27, .045);
  text-align: left;
}
.brand-card-app:active { border-color: rgba(239,125,0,.45); transform: scale(.985); }
.brand-logo-wrap {
  position: relative;
  height: 82px;
  padding: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ivory);
}
.brand-logo-image {
  position: absolute;
  z-index: 1;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-monogram {
  display: none;
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: .04em;
}
.brand-monogram.visible { display: block; }
.brand-card-copy { min-width: 0; padding: 10px 4px 0; }
.brand-card-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-card-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.brand-card-arrow { position: absolute; top: 15px; right: 15px; z-index: 2; color: var(--orange-deep); font-size: 15px; }
.brand-list { padding: 0 16px; display: grid; border-top: 1px solid var(--line); }
.brand-row {
  min-height: 58px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.brand-row strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 400; }
.brand-row span { color: var(--muted); font-size: 11px; }
.brand-row b { color: var(--orange-deep); font-size: 18px; font-weight: 400; }

.empty-state { padding: 62px 28px; text-align: center; }
.empty-icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--orange-deep); background: var(--orange-soft); font-size: 30px; }
.empty-state h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 400; }
.empty-state p { max-width: 290px; margin: 10px auto 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.cart-list { padding: 0 16px; display: grid; gap: 10px; }
.cart-line {
  min-height: 120px;
  padding: 10px;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.cart-image { padding: 6px; display: grid; place-items: center; border-radius: 14px; background: #faf8f5; }
.cart-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-image .product-no-image { min-height: 88px; border-radius: 11px; }
.cart-image .product-no-image svg { width: 30px; height: 30px; }
.cart-image .product-no-image span { font-size: 7px; }
.cart-info { min-width: 0; display: flex; flex-direction: column; }
.cart-info h3 { margin: 3px 0 6px; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.3; }
.cart-info .price { font-size: 14px; }
.cart-controls { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.quantity { height: 34px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.quantity button { width: 33px; height: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 17px; }
.quantity span { min-width: 24px; text-align: center; font-size: 11px; font-weight: 700; }
.remove-line { padding: 7px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.cart-summary {
  margin: 15px 16px 0;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: var(--ink);
}
.summary-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: rgba(255,255,255,.68); font-size: 12px; }
.summary-row.total { margin: 17px 0 19px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 15px; }
.summary-row.total strong { font-size: 21px; }
.cart-summary .primary-button { box-shadow: none; }

.checkout-page { padding: 0 16px; }
.checkout-form { display: grid; gap: 12px; }
.checkout-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(62, 41, 27, .045);
}
.checkout-block-title { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.checkout-block-title > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
}
.checkout-block-title h2 { margin: 0; font-size: 16px; }
.checkout-block-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-field { min-width: 0; display: grid; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.checkout-field-wide { grid-column: 1 / -1; }
.checkout-field input,
.checkout-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fffdfb;
  font-size: 12px;
  font-weight: 450;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-field textarea { min-height: 82px; resize: vertical; line-height: 1.45; }
.checkout-field input:focus,
.checkout-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 125, 0, .11); }
.checkout-address { margin-top: 10px; }
.checkout-options { display: grid; gap: 8px; }
.checkout-option {
  min-height: 62px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdfb;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.checkout-option.selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 6px 18px rgba(239, 125, 0, .08); }
.checkout-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-option-dot { width: 18px; height: 18px; border: 1.5px solid #c9bcb1; border-radius: 50%; background: #fff; }
.checkout-option.selected .checkout-option-dot { border: 5px solid var(--orange); }
.checkout-option-copy { min-width: 0; display: grid; gap: 4px; }
.checkout-option-copy strong { font-size: 11px; line-height: 1.3; }
.checkout-option-copy small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.checkout-consent { margin-top: 14px; display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.checkout-consent input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--orange); }
.checkout-total {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
}
.checkout-total span { color: rgba(255,255,255,.68); font-size: 11px; }
.checkout-total strong { font-size: 21px; }
.checkout-submit { min-height: 52px; }
.checkout-error { padding: 13px 15px; border: 1px solid rgba(189,63,49,.22); border-radius: 14px; color: var(--red); background: rgba(189,63,49,.07); font-size: 10px; line-height: 1.4; }
.checkout-validated,
.checkout-success { margin-top: 12px; padding: 20px; border: 1px solid rgba(53,106,72,.2); border-radius: 22px; background: #f3f8f4; }
.checkout-validated > strong { color: var(--green); font-size: 14px; }
.checkout-validated p { margin: 8px 0 15px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.checkout-validated small { display: block; color: var(--muted); font-size: 9px; line-height: 1.45; }
.checkout-success { margin-top: 0; padding: 32px 24px; text-align: center; }
.checkout-success-mark { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 28px; }
.checkout-success h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; }
.checkout-success p { margin: 10px auto 18px; max-width: 310px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-success > strong { display: block; margin-bottom: 20px; font-size: 22px; }
.checkout-success .text-button { margin-top: 8px; }
.checkout-form-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.checkout-form-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: checkout-pulse .8s ease-in-out infinite alternate; }
.checkout-form-loading span:nth-child(2) { animation-delay: .16s; }
.checkout-form-loading span:nth-child(3) { animation-delay: .32s; }
@keyframes checkout-pulse { from { opacity: .25; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }

.info-page { padding: 0 16px; }
.info-card { margin-bottom: 11px; padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: #fff; }
.info-card.orange { border-color: var(--orange); color: #fff; background: var(--orange); }
.info-card h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; }
.info-card p, .info-card li { color: var(--muted); font-size: 12px; line-height: 1.55; }
.info-card.orange p, .info-card.orange a { color: rgba(255,255,255,.85); }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { display: block; margin-top: 8px; color: var(--orange-deep); font-weight: 700; text-decoration: none; }
.info-card ul { margin: 0; padding-left: 18px; }

.account-page { padding: 0 16px; }
.login-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(58, 40, 27, .08);
}
.login-brand { margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 16px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.login-brand span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.auth-tabs { margin-bottom: 18px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 14px; background: var(--paper); }
.auth-tabs button { min-height: 39px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.auth-tabs button.active { color: var(--ink); background: #fff; box-shadow: 0 5px 16px rgba(58, 40, 27, .08); }
.login-form { display: grid; gap: 15px; }
.registration-form { gap: 13px; }
.account-field { display: grid; gap: 7px; }
.account-field > span:first-child { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.account-field > input, .password-field {
  min-height: 51px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.account-field > input {
  width: 100%;
  padding: 0 15px;
  outline: 0;
  color: var(--ink);
}
.account-field > input:focus, .password-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.password-field { display: flex; align-items: center; overflow: hidden; }
.password-field input { flex: 1; min-width: 0; height: 49px; padding: 0 5px 0 15px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.password-field button { align-self: stretch; padding: 0 13px; border: 0; color: var(--orange-deep); background: transparent; font-size: 10px; font-weight: 700; }
.login-error { padding: 11px 13px; border: 1px solid #f0c9c4; border-radius: 13px; color: #8a3027; background: #fff3f1; font-size: 10px; line-height: 1.45; }
.login-error button { margin-left: 7px; padding: 0; border: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 800; text-decoration: underline; }
.registration-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.registration-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--orange); }
.registration-consent span { padding-top: 2px; }
.account-site-login { width: 100%; margin-top: 10px; }
.login-note { margin: 6px 0 0; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.4; }

.profile-card {
  padding: 21px;
  overflow: hidden;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(145deg, #211b17, #3b2c23);
  box-shadow: 0 20px 48px rgba(38, 26, 18, .18);
}
.profile-main { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 55px; height: 55px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; color: #fff; background: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: 27px; }
.profile-main small { color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.profile-main h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; line-height: 1.1; }
.profile-details { margin-top: 19px; border-top: 1px solid rgba(255,255,255,.13); }
.profile-details > div { min-height: 42px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.profile-details span { color: rgba(255,255,255,.52); font-size: 10px; }
.profile-details strong { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; }
.profile-actions { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-actions .secondary-button { min-height: 39px; padding: 0 15px; color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); font-size: 10px; }
.profile-actions .danger { min-height: 39px; padding: 0 8px; color: #ffb2a8; font-size: 10px; }
.profile-loading { margin-top: 13px; color: rgba(255,255,255,.58); font-size: 10px; }
.account-error { margin-top: 12px; }

.orders-section { padding: 27px 0 4px; }
.orders-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; }
.orders-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; }
.orders-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.orders-list { display: grid; gap: 10px; }
.order-card { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.order-card-top, .order-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-card-top small, .order-card-top strong { display: block; }
.order-card-top small { color: var(--muted); font-size: 9px; }
.order-card-top strong { margin-top: 3px; font-size: 15px; }
.order-status { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.order-status.active { color: #7a4a16; background: #fff1df; }
.order-status.paid { color: #17633c; background: #eaf7ef; }
.order-status.canceled { color: #8a3027; background: #fff0ee; }
.order-card-bottom { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-card-bottom span { color: var(--muted); font-size: 10px; }
.order-card-bottom strong { font-size: 15px; }
.orders-empty { padding: 32px 20px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; background: var(--ivory); }
.orders-empty > div { width: 46px; height: 46px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 50%; color: var(--orange-deep); background: var(--orange-soft); font-size: 20px; }
.orders-empty strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 400; }
.orders-empty p { margin: 6px auto 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.account-more { width: 100%; margin-top: 12px; border: 1px solid var(--line); background: #fff; }
.account-privacy-link { margin-top: 2px; }
.account-compliance-links { margin: 14px 0 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.account-compliance-links button { width: 100%; min-height: 48px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font: inherit; font-size: 11px; font-weight: 700; text-align: left; }
.account-compliance-links button:last-child { border-bottom: 0; }
.account-compliance-links button b { color: var(--muted); font-size: 15px; font-weight: 400; }
.account-compliance-links button.danger { color: #b44132; }
.account-loading { display: grid; gap: 10px; }
.account-loading span { height: 86px; border-radius: 19px; background: linear-gradient(90deg, #f1ebe4 25%, #faf7f3 50%, #f1ebe4 75%); background-size: 200% 100%; animation: skeleton-shift 1.15s linear infinite; }

.scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(30, 22, 17, .48);
  backdrop-filter: blur(3px);
  transition: opacity .28s, visibility .28s;
}
.scrim.visible { visibility: visible; opacity: 1; }
.drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 355px);
  padding: calc(10px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-102%);
  background: var(--paper);
  box-shadow: 24px 0 60px rgba(29,20,14,.18);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer-head { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { width: 205px; }
.drawer-location { margin: 15px 0 10px; padding: 14px; display: flex; align-items: center; gap: 11px; border-radius: 16px; background: var(--ivory); }
.drawer-location > span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft); }
.drawer-location strong, .drawer-location small { display: block; }
.drawer-location strong { font-size: 12px; }
.drawer-location small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.theme-toggle {
  width: 100%;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 43px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.theme-toggle-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--orange-deep); background: var(--orange-soft); }
.theme-toggle-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
.theme-toggle-copy strong, .theme-toggle-copy small { display: block; }
.theme-toggle-copy strong { font-size: 12px; }
.theme-toggle-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.theme-toggle-track { position: relative; width: 43px; height: 25px; border: 1px solid var(--line); border-radius: 999px; background: var(--ivory); transition: background .22s, border-color .22s; }
.theme-toggle-track i { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .22s, background .22s; }
.theme-toggle[aria-checked="true"] .theme-toggle-track { border-color: var(--orange); background: var(--orange); }
.theme-toggle[aria-checked="true"] .theme-toggle-track i { transform: translateX(18px); background: #fff; }
.theme-toggle[aria-checked="true"] .theme-sun { display: none; }
.theme-toggle[aria-checked="true"] .theme-moon { display: block; }
.drawer-nav { display: grid; }
.drawer-nav button { min-height: 53px; padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font-size: 14px; }
.drawer-nav b { color: var(--orange-deep); font-weight: 400; }
.drawer-contact { margin-top: auto; padding-top: 24px; }
.drawer-contact a { display: block; margin-top: 9px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }

.sheet {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 89vh;
  padding: 14px 17px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateY(105%);
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 70px rgba(38,26,18,.2);
  transition: transform .34s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: translateY(0); }
.sheet-topbar {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 13px;
  pointer-events: none;
}
.sheet-handle { width: 42px; height: 4px; margin: 0 auto; border-radius: 4px; background: #d9cfc6; }
.sheet-close { position: absolute; z-index: 2; top: 5px; right: 1px; width: 38px; height: 38px; padding: 0; pointer-events: auto; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 5px 16px rgba(38,26,18,.1); font-size: 25px; line-height: 1; }
.sheet-product-image {
  width: 100%;
  height: 242px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  contain: paint;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #faf8f5;
}
.sheet-product-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sheet-product-image .product-no-image { border-radius: 16px; }
.sheet-product-image .product-no-image svg { width: 54px; height: 54px; }
.sheet-product-copy { padding: 20px 4px 0; }
.sheet-product-copy h2 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: clamp(24px, 6.8vw, 28px); line-height: 1.08; }
.sheet-product-copy h2.sheet-title--long { font-size: clamp(21px, 5.8vw, 24px); line-height: 1.1; }
.sheet-product-copy h2.sheet-title--compact { font-size: clamp(19px, 5.2vw, 22px); line-height: 1.12; }
.sheet-article { margin-top: 9px; color: var(--muted); font-size: 10px; }
.sheet-price-row { margin: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.sheet-price-row .price { font-size: 23px; }
.sheet-stock { color: var(--green); font-size: 11px; font-weight: 700; }
.spec-list { margin-bottom: 18px; border-top: 1px solid var(--line); }
.spec-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); font-size: 11px; }
.spec-row span { color: var(--muted); }
.spec-link {
  min-width: 0;
  max-width: 72%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--ink);
  text-align: right;
  text-decoration: none;
}
.spec-link b { overflow-wrap: anywhere; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(203, 93, 0, .34); text-underline-offset: 3px; }
.spec-link i { flex: 0 0 auto; color: var(--orange-deep); font-style: normal; font-size: 13px; }
.spec-link:active b { color: var(--orange-deep); }
.sheet-actions { display: grid; grid-template-columns: 1fr 50px; gap: 10px; }
.sheet-heart { width: 50px; height: 50px; padding: 13px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; }
.sheet-heart svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sheet-heart.selected { color: #fff; border-color: var(--orange); background: var(--orange); }
.sheet-heart.selected svg { fill: currentColor; }
.site-link { margin-top: 9px; width: 100%; min-height: 43px; border: 0; color: var(--orange-deep); background: transparent; font-size: 11px; font-weight: 700; }

.catalog-filter-sheet { max-height: 93vh; padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
.filter-sheet-head { padding: 8px 48px 14px 3px; }
.filter-sheet-head .eyebrow { color: var(--orange-deep); }
.filter-sheet-head h2 { margin: 7px 0 0; font-size: 30px; }
.filter-sheet-head p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.catalog-filter-form { max-height: calc(93vh - 104px); padding: 0 3px calc(76px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.filter-context-status { min-height: 42px; margin: 0 0 12px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #f2d8b7; border-radius: 14px; color: var(--ink-soft); background: #fff7ed; }
.filter-context-status p { margin: 0; font-size: 10px; line-height: 1.45; }
.filter-context-status strong { color: var(--orange-deep); font-size: 12px; }
.filter-context-status.loading span { width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid #f2c28d; border-top-color: var(--orange-deep); border-radius: 50%; animation: spin .8s linear infinite; }
.filter-context-status.error { justify-content: space-between; border-color: #f1c3bd; color: #8e3328; background: #fff4f2; }
.filter-context-status.error button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 10px; color: #fff; background: #9f3a2f; font-size: 9px; font-weight: 750; }
.price-filter { margin: 0 0 10px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; }
.price-filter legend { padding: 0 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.filter-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.filter-price-grid label { min-width: 0; }
.filter-price-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.filter-price-grid input,
.filter-search input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.filter-price-grid input { padding: 0 12px; }
.filter-price-grid input:focus,
.filter-search input:focus { border-color: #efb16d; box-shadow: 0 0 0 3px var(--orange-soft); }
.filter-group { margin-top: 9px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.filter-group summary { min-height: 52px; padding: 0 15px; display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 750; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "⌄"; margin-left: 1px; color: var(--muted); font-size: 16px; transition: transform .2s; }
.filter-group[open] summary::after { transform: rotate(180deg); }
.filter-group summary b { min-width: 20px; height: 20px; margin-left: auto; display: grid; place-items: center; border-radius: 10px; color: var(--orange-deep); background: var(--orange-soft); font-size: 9px; }
.filter-search { height: 42px; margin: 0 12px 8px; display: flex; align-items: center; }
.filter-search svg { position: absolute; width: 17px; height: 17px; margin-left: 12px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.filter-search input { height: 42px; padding: 0 12px 0 38px; }
.filter-option-list { max-height: 226px; margin: 0 12px 12px; overflow-y: auto; border-top: 1px solid var(--line); }
.filter-option { min-height: 43px; padding: 7px 2px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #f2ebe4; color: var(--ink-soft); font-size: 11px; }
.filter-option[hidden] { display: none; }
.filter-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.filter-option small { color: var(--muted); font-size: 9px; }
.filter-empty { margin: 14px 2px; color: var(--muted); font-size: 10px; }
.filter-sheet-actions { position: fixed; z-index: 3; left: 17px; right: 17px; bottom: 0; padding: 10px 3px calc(13px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; background: linear-gradient(180deg, rgba(255,253,249,0), var(--paper) 18%, var(--paper)); }
.filter-sheet-actions button { min-width: 0; }

.compact-sheet { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.checkout-content { padding: 12px 5px 0; }
.checkout-content .eyebrow { color: var(--orange-deep); }
.checkout-content h2 { margin-top: 9px; font-size: 30px; }
.checkout-content p { margin: 12px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-content small { display: block; margin-top: 11px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.4; }
.consent { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--orange); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
  max-width: calc(100% - 34px);
  padding: 11px 17px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 12px);
  border-radius: 999px;
  color: #fff;
  background: rgba(32,25,21,.94);
  box-shadow: 0 12px 36px rgba(35,24,17,.2);
  text-align: center;
  font-size: 11px;
  transition: .25s ease;
}
.toast.visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .app-content { background: var(--paper); }
html[data-theme="dark"] .app-header { background: rgba(21, 18, 16, .94); border-bottom-color: rgba(59, 50, 44, .88); }
html[data-theme="dark"] .bottom-nav { background: rgba(21, 18, 16, .96); box-shadow: 0 -12px 34px rgba(0, 0, 0, .22); }
html[data-theme="dark"] .nav-item { color: #9f9289; }
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .round-action,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .catalog-filter-button,
html[data-theme="dark"] .catalog-sort,
html[data-theme="dark"] .load-more-wrap .secondary-button,
html[data-theme="dark"] .brand-card-app,
html[data-theme="dark"] .cart-line,
html[data-theme="dark"] .checkout-block,
html[data-theme="dark"] .checkout-option,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .auth-tabs button.active,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .account-more,
html[data-theme="dark"] .account-compliance-links,
html[data-theme="dark"] .sheet-heart,
html[data-theme="dark"] .filter-group,
html[data-theme="dark"] .filter-price-grid input,
html[data-theme="dark"] .filter-search input { background: #211c19; }
html[data-theme="dark"] .brand-feature { background: #241d18; }
html[data-theme="dark"] .brand-feature.orange,
html[data-theme="dark"] .info-card.orange,
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .sheet-heart.selected { color: #fff; border-color: var(--orange); background: var(--orange); }
html[data-theme="dark"] .secondary-button { color: var(--ink); background: #2b2420; }
html[data-theme="dark"] .favorite-button { color: var(--ink-soft); background: rgba(33, 28, 25, .94); box-shadow: 0 6px 18px rgba(0,0,0,.24); }
html[data-theme="dark"] .favorite-button.selected { color: #fff; background: var(--orange); }
html[data-theme="dark"] .add-button { color: #fff; background: #342c27; }
html[data-theme="dark"] .add-button.added { background: var(--orange); }
html[data-theme="dark"] .service-bar,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .checkout-total { color: #fff; background: #0e0c0b; }
html[data-theme="dark"] .catalog-list-image,
html[data-theme="dark"] .category-card .category-image,
html[data-theme="dark"] .product-media,
html[data-theme="dark"] .cart-image,
html[data-theme="dark"] .sheet-product-image,
html[data-theme="dark"] .brand-logo-wrap { background: #f4f0eb; }
html[data-theme="dark"] .product-no-image { color: #8d8178; background: linear-gradient(145deg, #2b2521, #211c19); }
html[data-theme="dark"] .product-no-image svg { stroke: #756a62; }
html[data-theme="dark"] .checkout-field input,
html[data-theme="dark"] .checkout-field textarea,
html[data-theme="dark"] .account-field > input,
html[data-theme="dark"] .password-field { color: var(--ink); background: #1b1715; }
html[data-theme="dark"] .checkout-option.selected,
html[data-theme="dark"] .catalog-filter-button.active { border-color: #9b531c; background: var(--orange-soft); }
html[data-theme="dark"] .checkout-option-dot { border-color: #71655d; background: #211c19; }
html[data-theme="dark"] .catalog-source.live { color: #91d7a7; background: #1b3524; }
html[data-theme="dark"] .catalog-source.offline { color: #e8b676; background: #372719; }
html[data-theme="dark"] .catalog-warning,
html[data-theme="dark"] .filter-context-status { color: #e3b780; border-color: #65401f; background: #2c2016; }
html[data-theme="dark"] .filter-context-status.error,
html[data-theme="dark"] .login-error { color: #ffaaa0; border-color: #6b3832; background: #2c1b19; }
html[data-theme="dark"] .checkout-validated,
html[data-theme="dark"] .checkout-success { background: #19281e; }
html[data-theme="dark"] .order-status.active { color: #f1bd77; background: #3b2a18; }
html[data-theme="dark"] .order-status.paid { color: #91d7a7; background: #1b3524; }
html[data-theme="dark"] .order-status.canceled { color: #ffaaa0; background: #3a201d; }
html[data-theme="dark"] .product-skeleton span,
html[data-theme="dark"] .product-skeleton i,
html[data-theme="dark"] .product-skeleton b,
html[data-theme="dark"] .account-loading span { background: linear-gradient(90deg, #211c19 25%, #302823 50%, #211c19 75%); background-size: 200% 100%; }
html[data-theme="dark"] .sheet-close { color: var(--ink); background: rgba(33, 28, 25, .97); box-shadow: 0 5px 16px rgba(0,0,0,.3); }
html[data-theme="dark"] .sheet-handle { background: #5c5048; }
html[data-theme="dark"] .filter-option { border-bottom-color: #332b26; }
html[data-theme="dark"] .account-compliance-links button { color: var(--ink); border-bottom-color: var(--line); }
html[data-theme="dark"] .account-compliance-links button.danger { color: #ffaaa0; }
html[data-theme="dark"] .filter-sheet-actions { background: linear-gradient(180deg, rgba(21,18,16,0), var(--paper) 18%, var(--paper)); }
html[data-theme="dark"] .scrim { background: rgba(0, 0, 0, .6); }
html[data-theme="dark"] .splash { background: var(--paper); }
html[data-theme="dark"] .splash-line { background: var(--line); }
html[data-theme="dark"] select option { color: var(--ink); background: #211c19; }

.splash {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fffaf4;
  transition: opacity .45s, visibility .45s;
}
.splash.done { opacity: 0; visibility: hidden; }
.splash-mark { width: 88px; height: 88px; margin-bottom: 20px; overflow: hidden; border-radius: 25px; box-shadow: 0 16px 36px rgba(206,97,9,.15); }
.splash-mark img { width: 100%; height: 100%; object-fit: cover; }
.splash-logo { width: 230px; }
.splash-line { width: 82px; height: 3px; margin-top: 28px; overflow: hidden; border-radius: 4px; background: #eadfd3; }
.splash-line::after { content: ""; display: block; width: 38px; height: 100%; border-radius: inherit; background: var(--orange); animation: loading 1s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-4px); } to { transform: translateX(48px); } }

@media (min-width: 620px) {
  body { display: flex; justify-content: center; }
  .app-shell { max-width: 520px; box-shadow: 0 0 70px rgba(45,32,23,.16); }
  .app-header, .bottom-nav, .sheet { left: 50%; right: auto; width: 520px; transform: translateX(-50%); }
  .sheet { transform: translate(-50%, 105%); }
  .sheet.open { transform: translate(-50%, 0); }
  .filter-sheet-actions { left: calc(50% - 243px); right: calc(50% - 243px); }
  .drawer { left: calc(50% - 260px); }
}

@media (max-width: 350px) {
  .brand-button { width: 162px; }
  .hero-copy h1 { font-size: 32px; }
  .product-media { height: 143px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
