:root {
  --color-iris-bolt: #4255ff;
  --color-ink-charcoal: #282e3e;
  --color-slate-veil: #586380;
  --color-fog-mist: #939bb4;
  --color-chalk-canvas: #ffffff;
  --color-paper-white: #ffffff;
  --color-lilac-wash: #edefff;
  --color-mist-border: #d9dde8;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-cards: 8px;
  --radius-buttons: 200px;
  --radius-search: 200px;
  --shadow-sm: rgba(40, 46, 62, 0.1) 0px 2px 4px 0px;
  --shadow-md: rgba(40, 46, 62, 0.1) 0px 4px 16px 0px;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.32s;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bg-canvas: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f5f5f5;
  --text-primary: #282e3e;
  --text-muted: #586380;
  --border: #d9dde8;
  --btn-primary-bg: #4255ff;
  --btn-primary-fg: #ffffff;
  --tabbar-h: 56px;
  --detail-actions-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  max-width: 100%;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body,
#app,
.app-shell {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  padding-top: var(--safe-top);
  padding-bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 8px);
}

button {
  font: inherit;
  cursor: pointer;
}

.card-image-wrap {
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 100%;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.brand {
  font-size: 16px;
  font-weight: 500;
  flex: 0 0 auto;
}

.delivery-pill {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: var(--radius-buttons);
  padding: 8px 12px;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.delivery-pill.has-value {
  color: var(--text-primary);
  border-color: var(--color-mist-border);
  background: var(--color-paper-white);
}

.search--catalog {
  flex: 1.1;
  min-width: 0;
}

.location-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.location-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(40, 46, 62, 0.45);
  padding: 0;
}

.location-panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(86vh, 560px);
  background: var(--color-paper-white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: modal-in var(--motion-duration) var(--motion-ease);
}

.location-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-top: 4px;
}

.location-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.location-gps {
  width: 100%;
  margin: 10px 0 12px;
}

.location-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.location-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-error {
  color: #c0392b;
}

.location-result {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 12px 4px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary);
}

.location-result:active {
  background: var(--color-lilac-wash);
}

@keyframes modal-in {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

body.location-sheet-open {
  overflow: hidden;
}

.app-version {
  margin: 12px 0 0;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

.app-version--bar {
  margin: 0;
  padding: 2px 0 6px;
  pointer-events: none;
}

.icon-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-buttons);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-primary);
}

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

.search {
  flex: 2;
  min-width: 0;
  max-width: 100%;
  border: none;
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: var(--radius-search);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  transition: box-shadow 0.2s var(--motion-ease);
}

.search::placeholder {
  color: var(--color-fog-mist);
}

.search:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 85, 255, 0.25);
}

#order-comment {
  resize: none;
  display: block;
  box-sizing: border-box;
}

.cart-pill {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-buttons);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.cart-pill.has-items {
  background: var(--color-iris-bolt);
  color: #ffffff;
  border-color: var(--color-iris-bolt);
}

.filters-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 12px 16px;
  scrollbar-width: none;
  max-width: 100%;
  cursor: default;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  .filters-scroll {
    overflow-x: hidden;
    touch-action: pan-y;
    cursor: default;
  }

  .filters-scroll.is-dragging {
    cursor: grabbing;
  }
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filters-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  min-width: min(100%, max-content);
}

.chip {
  flex-shrink: 0;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 13px;
  touch-action: manipulation;
  cursor: pointer;
}

.chip.active {
  background: var(--color-iris-bolt);
  color: #ffffff;
  border-color: var(--color-iris-bolt);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.section-head span {
  font-size: 13px;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-groups {
  padding: 8px 12px 20px;
}

.catalog-groups-title {
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 18px;
  font-weight: 500;
}

.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

body.theme-store {
  background: #ffffff;
  color: var(--text-primary);
}

body.theme-store .main-view {
  background: #ffffff;
}

.app-shell--home {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--safe-top) - var(--tabbar-h) - var(--safe-bottom) - 8px);
}

.app-shell--home .main-view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 4px;
  overflow-x: hidden;
}

.app-shell--home .store-header {
  padding: 6px 10px 6px;
}

.app-shell--home .store-brand {
  font-size: 19px;
}

.app-shell--home .store-tagline {
  font-size: 9px;
}

.app-shell--home .store-cart {
  width: 38px;
  height: 38px;
}

.app-shell--home .store-city {
  padding: 6px 10px;
  font-size: 10px;
  max-width: 140px;
}

.app-shell--home .store-search-wrap {
  margin-top: 8px;
}

.app-shell--home .store-search {
  padding: 9px 12px 9px 38px;
  font-size: 13px;
}

.home-page--max-top10 .top10-head--home {
  flex-shrink: 0;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  padding: 10px 14px 12px;
  border-bottom: none;
}

.store-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.store-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #022c22;
  line-height: 1.1;
}

.store-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

.store-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.store-city {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-city-label {
  color: var(--text-muted);
}

.store-cart {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--color-paper-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-cart-icon {
  width: 20px;
  height: 20px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23007a55'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2 9m12-9l2 9m-8-9v9'/%3E%3C/svg%3E");
}

.store-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-search-wrap {
  position: relative;
  margin-top: 12px;
}

.store-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.45;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23586380'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
}

.store-search {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
}

.store-search::placeholder {
  color: var(--text-muted);
}

.home-page {
  padding: 0 8px 12px;
}

.home-page--max-top10 {
  --top10-gap: 3px;
  --home-pad-x: 0px;
  --store-search-chrome: 108px;
  --top10-head-block: 46px;
  --top10-section-pad: 8px;
  --top10-brand-row: 26px;
  --perks-h: 20px;
  --hero-meta: 16px;
  --home-viewport: calc(
    100dvh - var(--safe-top) - var(--tabbar-h) - var(--safe-bottom) - var(--store-search-chrome)
  );
  --hero-block-h: clamp(104px, 25dvh, 136px);
  --hero-art-w: min(44vw, 124px);
  --hero-stack: calc(var(--hero-block-h) + var(--hero-meta) + var(--perks-h));
  --top10-grid-h: calc(
    var(--home-viewport) - var(--hero-stack) - var(--top10-head-block) - var(--top10-section-pad) - 6px
  );
  --top10-visual-h: max(
    72px,
    calc((var(--top10-grid-h) - var(--top10-gap)) / 2 - var(--top10-brand-row))
  );
  --top10-row-h: calc(var(--top10-visual-h) + var(--top10-brand-row));
  width: 100%;
  max-width: none;
  padding: 0 var(--home-pad-x) 0;
  margin: 0;
  box-sizing: border-box;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.home-page .top10-section--mock {
  margin-bottom: 8px;
}

.home-page--max-top10 .top10-section--mock {
  margin-bottom: 8px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: auto;
}

.promo-hero-perks-line {
  margin: 0;
  padding: 6px 10px 7px;
  text-align: center;
  font-size: clamp(7px, 2.2vw, 9px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #78716c;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  border-bottom: 1px solid #f3e8d8;
}

.promo-hero-wrap {
  margin-top: 4px;
  margin-bottom: 4px;
}

.home-page--max-top10 .promo-hero-wrap {
  margin-top: 0;
  margin-bottom: 0;
}

.promo-hero-wrap--compact {
  margin-top: 8px;
}

.promo-hero-wrap--compact .promo-hero-text {
  min-height: 88px;
  padding: 12px 12px 14px;
}

.promo-hero-wrap--compact .promo-hero-text h2 {
  font-size: 18px;
}

.promo-hero-wrap--compact .promo-hero-slide {
  padding-bottom: 22px;
}

.promo-hero-wrap--edge {
  margin-left: -8px;
  margin-right: -8px;
  width: calc(100% + 16px);
  max-width: none;
}

.home-page--max-top10 .promo-hero-wrap--edge {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  flex-shrink: 0;
}

.promo-hero-frame {
  position: relative;
}

.promo-hero-arrow {
  border: none;
  cursor: pointer;
}

.promo-hero-arrow--in {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 24px;
  height: 32px;
  margin-top: -16px;
  border-radius: 0;
  background: transparent;
  color: rgba(120, 53, 15, 0.45);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  box-shadow: none;
  border: none;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.promo-hero-arrow--in#home-hero-prev {
  left: 2px;
}

.promo-hero-arrow--in#home-hero-next {
  right: 2px;
}

.promo-hero-arrow--in:active {
  color: rgba(120, 53, 15, 0.75);
}

.promo-hero-stage {
  position: relative;
  min-height: 148px;
  overflow: hidden;
}

.home-page--max-top10 .promo-hero-stage {
  min-height: 0;
}

.promo-hero-slide {
  display: none;
  padding: 0 0 24px;
  box-sizing: border-box;
}

.home-page--max-top10 .promo-hero-slide {
  padding-bottom: 8px;
}

.promo-hero-slide.is-active {
  display: block;
  animation: promoHeroSwap 0.28s ease;
}

@keyframes promoHeroSwap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-hero-text {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 6px;
  align-items: center;
  padding: 14px 28px 14px 22px;
  border-radius: 0;
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 45%, #fff5f5 100%);
  border: none;
  border-top: 1px solid #f3e8d8;
  border-bottom: 1px solid #f3e8d8;
  min-height: 132px;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.home-page--max-top10 .promo-hero-text {
  min-height: var(--hero-block-h);
  max-height: var(--hero-block-h);
  padding: 8px 22px 8px 14px;
  grid-template-columns: minmax(0, 1fr) var(--hero-art-w);
  align-items: center;
}

.home-page--max-top10 .promo-hero-text--promo-packs h2,
.home-page--max-top10 .promo-hero-text--promo-blocks h2 {
  font-size: clamp(15px, 4.4vw, 19px);
  line-height: 1.12;
}

.home-page--max-top10 .promo-hero-text h2 {
  font-size: clamp(14px, 3.9vw, 17px);
  line-height: 1.15;
}

.home-page--max-top10 .promo-hero-kicker {
  margin-bottom: 4px;
  font-size: clamp(10px, 3vw, 13px);
}

.home-page--max-top10 .promo-hero-badge {
  margin-bottom: 5px;
  padding: 3px 8px;
  font-size: 10px;
}

.home-page--max-top10 .promo-hero-from {
  margin-top: 6px;
  font-size: clamp(12px, 3.6vw, 15px);
}

.home-page--max-top10 .promo-hero-art {
  width: var(--hero-art-w);
  max-width: var(--hero-art-w);
  max-height: calc(var(--hero-block-h) - 4px);
  height: auto;
  justify-self: end;
  object-fit: contain;
  object-position: right center;
}

.home-page--max-top10 .promo-hero-dots {
  margin-top: -8px;
}

.home-page--max-top10 .promo-hero-tag {
  font-size: 9px;
  padding: 4px 6px;
  top: 10px;
  right: 10px;
}

.promo-hero-copy {
  min-width: 0;
}

.promo-hero-art {
  display: block;
  width: 208px;
  max-width: 208px;
  height: auto;
  max-height: 192px;
  object-fit: contain;
  object-position: right center;
  justify-self: end;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  image-rendering: auto;
}

.promo-hero-text--promo-packs h2,
.promo-hero-text--promo-blocks h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #9a3412;
}

.promo-hero-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.promo-hero-from {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.promo-hero-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007a55;
}

.promo-hero-text h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #022c22;
}

.promo-hero-price {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.promo-hero-per {
  font-size: 12px;
  color: var(--text-muted);
}

.promo-hero-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 4px 6px;
  max-width: 42%;
  text-align: right;
  line-height: 1.2;
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: #007a55;
  font-weight: 700;
}

.price-chip-value {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.price-chip-cur {
  font-size: 11px;
  font-weight: 600;
}

.promo-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

.promo-hero-dot {
  border: none;
  padding: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
}

.promo-hero-dot.is-active {
  background: #007a55;
  width: 18px;
}

.promo-hero-hit {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.promo-hero-text--link {
  cursor: pointer;
}

.home-perks-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 8px;
}

.home-perk {
  border: 1px solid #f0e6d8;
  background: #fffcf7;
  border-radius: 9px;
  padding: 6px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
}

.home-perk--static {
  pointer-events: none;
  user-select: none;
}

.home-perk-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.1);
}

.home-perk-icon-wrap--price {
  border-radius: 8px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.home-perk-icon-wrap--hit {
  color: #d97706;
}

.home-perk-svg {
  width: 14px;
  height: 14px;
  display: block;
}

.home-perk-svg--tag {
  width: 15px;
  height: 15px;
}

.home-perk-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
  color: #57534e;
}

.home-tag-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 12px;
}

.home-tag-line {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
}

.home-tag-line:active {
  background: #e5e7eb;
}

.home-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.home-feature-card {
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 12px 14px 10px;
}

.home-feature-open {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0 0 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  position: relative;
}

.home-feature-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007a55;
  margin-bottom: 4px;
}

.home-feature-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 4px 6px;
  max-width: 46%;
  text-align: right;
  line-height: 1.2;
}

.home-feature-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #022c22;
  padding-right: 42%;
}

.dual-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.dual-price--compact {
  gap: 6px;
}

.dual-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.dual-price-label {
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
}

.dual-price-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.dual-price-add {
  flex-shrink: 0;
  border: 1px solid #007a55;
  background: #fff;
  color: #007a55;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.dual-price-add:active {
  background: #ecfdf5;
}

.top10-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  gap: 4px;
}

.top10-card-tag {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 5px;
  padding: 3px 5px;
  max-width: 55%;
  line-height: 1.15;
}

.top10-card .dual-price {
  width: 100%;
  padding: 0 2px;
}

.top10-name {
  white-space: normal;
  line-height: 1.25;
  max-width: 100%;
}

.detail-actions--product {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.detail-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.detail-actions-buy {
  display: flex;
  gap: 8px;
  width: 100%;
}

.detail-actions-buy .btn-primary {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 10px 8px;
  font-size: 13px;
}

.top10-more-plain {
  border: none;
  background: none;
  padding: 6px 0 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.perk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.perk-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f5f5f5;
  border-radius: 6px;
  padding: 5px 8px;
  letter-spacing: 0.02em;
}

.top10-section {
  margin-top: 8px;
}

.home-page--max-top10 .top10-section--featured {
  margin-top: 0;
  padding: 4px 3px 8px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.top10-section--featured {
  margin-top: 2px;
  padding: 10px 8px 12px;
  border-radius: 14px;
  border: 1px solid #f0dca8;
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

.top10-section--mock {
  padding-top: 6px;
  border-color: #e8a317;
  box-shadow:
    0 0 0 1px rgba(232, 163, 23, 0.35),
    0 6px 20px rgba(217, 119, 6, 0.14);
}

.top10-head--home h2 {
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.top10-head--home .top10-head-text p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.25;
}

.top10-head--home {
  margin-bottom: 8px;
}

.home-page--max-top10 .top10-head--home {
  margin-bottom: 4px;
}

.home-page--max-top10 .top10-head--home h2 {
  font-size: clamp(16px, 4.6vw, 19px);
}

.home-page--max-top10 .top10-head--home .top10-head-text p {
  font-size: clamp(8px, 2.4vw, 10px);
  margin-top: 2px;
}

.home-page--max-top10 .top10-head--home .top10-all-btn {
  font-size: clamp(11px, 3vw, 13px);
}

.top10-head--home .top10-all-btn {
  font-size: 13px;
}

.top10-card--mock {
  width: 100%;
  padding: 0 0 2px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.top10-section--featured .top10-card.top10-card--mock {
  border: none;
  box-shadow: none;
  background: transparent;
}

.top10-section--featured .top10-visual.top10-visual--stage {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 6px 2px 15px;
  border-radius: 9px;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, #fff9f0 0%, #fff 72%);
  border: 1px solid #efe4d4;
  box-sizing: border-box;
}

.top10-section--featured .top10-pack-img {
  display: block;
  margin: 0 auto;
  max-height: 74px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
  image-rendering: auto;
}

.home-page--max-top10 .top10-grid.top10-grid--home {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: var(--top10-row-h) var(--top10-row-h);
  grid-auto-flow: row;
  gap: var(--top10-gap);
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  align-items: stretch;
  align-content: start;
}

.home-page--max-top10 .top10-card.top10-card--mock {
  width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.home-page--max-top10 .top10-card--mock {
  height: auto;
  min-height: 0;
}

.home-page--max-top10 .top10-card--mock .top10-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
  gap: 2px;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  font: inherit;
}

.home-page--max-top10 .top10-section--featured .top10-visual.top10-visual--stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: var(--top10-visual-h);
  min-height: var(--top10-visual-h);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  border-radius: 8px;
  background: radial-gradient(ellipse 85% 75% at 50% 42%, #fff9f0 0%, #fff 70%);
  border: 1px solid #efe4d4;
}

.home-page--max-top10 .top10-section--featured .top10-visual.top10-visual--stage .top10-pack-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center 52%;
  transform: scale(1.88);
  transform-origin: center center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.home-page--max-top10 .top10-section--featured .top10-visual.top10-visual--stage .top10-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.home-page--max-top10 .top10-section--featured .top10-visual .top10-rank {
  top: 3px;
  left: 3px;
  width: clamp(16px, 4.5vw, 22px);
  height: clamp(16px, 4.5vw, 22px);
  font-size: clamp(8px, 2.4vw, 11px);
  z-index: 4;
}

.home-page--max-top10 .top10-section--featured .top10-visual .top10-ribbon {
  font-size: clamp(6px, 1.8vw, 8px);
  padding: 2px 4px;
  z-index: 3;
}

.home-page--max-top10 .top10-section--featured .top10-brand {
  display: block;
  flex: 0 0 auto;
  min-height: var(--top10-brand-row);
  max-width: 100%;
  font-size: clamp(6px, 1.75vw, 8px);
  margin: 0;
  padding: 0 1px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #1c1917;
  text-align: center;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  hyphens: manual;
}

@media (max-height: 700px) {
  .home-page--max-top10 {
    --store-search-chrome: 102px;
    --top10-head-block: 40px;
    --hero-meta: 18px;
  }
}

@media (min-width: 520px) {
  .home-page--max-top10 {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.top10-ribbon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 96%;
  padding: 2px 3px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top10-section--featured .top10-brand {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1c1917;
  text-align: center;
}

.top10-rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.top10-rank--plain {
  background: #fff;
  color: #44403c;
  border: 1px solid #d6d3d1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top10-rank--1 {
  background: linear-gradient(145deg, #fbbf24, #d97706);
}

.top10-rank--2 {
  background: linear-gradient(145deg, #e5e7eb, #9ca3af);
}

.top10-rank--3 {
  background: linear-gradient(145deg, #fdba74, #c2410c);
}

.top10-from {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.top10-from-unit {
  font-size: 9px;
}

.top10-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.top10-card--mock .top10-name,
.top10-card--mock .top10-from,
.top10-card--mock .top10-more-plain {
  display: none;
}

.top10-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.top10-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #022c22;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top10-trophy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #eab308;
  vertical-align: middle;
}

.top10-trophy-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.top10-head-text p {
  margin: 4px 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.top10-all-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #007a55;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
}

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

.top10-grid.top10-grid--home {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 4px;
  width: 100%;
}

.top10-grid.top10-grid--home .top10-card--mock {
  padding: 0;
}

.top10-grid.top10-grid--home .top10-rank {
  width: 17px;
  height: 17px;
  font-size: 9px;
}

.top10-card {
  position: relative;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 8px 4px 12px;
  color: var(--text-primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s var(--motion-ease);
}

.top10-card:active {
  transform: scale(0.98);
}

.top10-visual {
  position: relative;
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 4px;
}

.top10-visual img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.top10-fallback {
  font-size: 28px;
  font-weight: 800;
  color: #444;
}

.top10-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  order: 1;
}

.top10-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  order: 2;
}

.top10-price-note {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.home-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--color-paper-white);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.home-action-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.home-action-chevron {
  color: #666;
  font-size: 18px;
}

.home-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-input);
  flex-shrink: 0;
}

.home-action-icon--heart {
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.4);
}

.home-action-icon--box {
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.4);
}

.home-action-icon--sale {
  box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.4);
}

.home-page .promo-strip {
  margin-top: 16px;
}

.loader--on-dark {
  color: var(--text-muted);
}

.group-card {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-cards);
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--motion-ease);
}

.group-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.group-card:active {
  transform: scale(0.98);
}

.group-card-name {
  font-size: 15px;
  font-weight: 500;
}

.group-card-count {
  font-size: 12px;
  color: var(--text-muted);
}

.chip-back {
  flex-shrink: 0;
  border-style: dashed;
}

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

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 8px 24px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .card-image-wrap {
    aspect-ratio: 1 / 1;
    max-height: 132px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1100px;
  }

  .card-image-wrap {
    max-height: 120px;
  }
}

.card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-cards);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s var(--motion-ease),
    box-shadow 0.22s var(--motion-ease);
}

.card.card-anim {
  animation: card-in 0.45s var(--motion-ease) backwards;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-paper-white);
  overflow: hidden;
  border-radius: var(--radius-cards) var(--radius-cards) 0 0;
  transition: transform 0.35s var(--motion-ease);
}

.card:active .card-image-wrap {
  transform: scale(0.98);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-price {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.detail-content .card-price {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.cart-line .card-price {
  font-size: 16px;
}

.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-iris-bolt);
  background: var(--color-lilac-wash);
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-buttons);
  padding: 2px 10px;
  width: fit-content;
}

.promo-badge--lg {
  font-size: 12px;
  padding: 4px 12px;
}

.promo-badge--card {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.promo-strip {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: var(--color-lilac-wash);
  border: 1px solid var(--color-mist-border);
  border-radius: var(--radius-cards);
}

.promo-strip-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.promo-strip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.promo-strip-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.promo-detail-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-promo {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.cart-promo--ok {
  color: var(--color-iris-bolt);
  font-weight: 500;
}

.cart-promo-sub {
  font-weight: 400;
  color: var(--text-muted);
}

.cart-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  z-index: 200;
  padding: 12px 14px;
  background: var(--color-ink-charcoal);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.25s var(--motion-ease),
    transform 0.25s var(--motion-ease);
}

.cart-toast.is-visible {
  opacity: 1;
  transform: none;
}

.card-add-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.btn-primary {
  border: none;
  border-radius: var(--radius-buttons);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--motion-ease),
    box-shadow 0.2s var(--motion-ease),
    opacity 0.2s var(--motion-ease);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.4;
}

.btn-ghost {
  border: 1px solid var(--border);
  border-radius: var(--radius-buttons);
  background: var(--color-paper-white);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s var(--motion-ease);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.load-more {
  display: block;
  width: calc(100% - 32px);
  margin: 0 auto 24px;
  padding: 12px 20px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--border);
  background: var(--color-paper-white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--motion-ease);
}

.load-more:active {
  transform: scale(0.98);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qty-row button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-buttons);
  border: 1px solid var(--border);
  background: var(--color-paper-white);
  font-size: 18px;
}

.qty-row--compact button {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 500;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
}

.drawer-panel {
  width: 100%;
  max-height: 92vh;
  background: var(--color-paper-white);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  overflow: auto;
}

.drawer-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.cart-line {
  display: flex;
  gap: 10px;
}

.cart-line img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-cards);
  background: var(--color-chalk-canvas);
}

.cart-line-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}

.summary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}

.summary-warn {
  font-size: 13px;
  margin-bottom: 12px;
}

.summary-warn.ok {
  color: var(--text-muted);
}

.blocked {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.blocked-inner {
  max-width: 360px;
  background: var(--color-paper-white);
  padding: 24px;
  border-radius: var(--radius-cards);
  border: 1px solid var(--border);
}

.main-view {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
}

.main-view.is-visible {
  opacity: 1;
  transform: none;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  opacity: 0;
  transition: opacity var(--motion-duration) var(--motion-ease);
}

.detail-overlay.is-open {
  opacity: 1;
}

.detail-overlay.is-closing {
  opacity: 0;
}

.detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.detail-hero {
  aspect-ratio: 1;
  max-height: min(45vh, 380px);
  background: var(--color-chalk-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-content {
  padding: 16px 16px 20px;
}

.detail-content h1 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 38%) 1fr;
  gap: 6px 12px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.45;
}

.meta-grid dt {
  color: var(--text-muted);
}

.meta-grid dd {
  margin: 0;
  font-weight: 500;
}

.strength-meter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.strength-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e4ec;
  box-shadow: inset 0 0 0 1px #d0d4df;
}

.strength-dot.is-full {
  background: linear-gradient(145deg, #c4a574, #8b6914);
  box-shadow: none;
}

.strength-dot.is-half {
  background: linear-gradient(90deg, #c4a574 50%, #e2e4ec 50%);
  box-shadow: inset 0 0 0 1px #d0d4df;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--color-paper-white);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.loader {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
}

.tabbar--store {
  background: var(--bg-card);
  border-top-color: var(--border);
}

.tabbar button,
.tabbar .tabbar-item {
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  padding-top: 6px;
  transition:
    color 0.2s var(--motion-ease),
    transform 0.15s var(--motion-ease);
}

.tabbar--store button,
.tabbar--store .tabbar-item {
  color: var(--text-muted);
}

.tabbar button:active,
.tabbar .tabbar-item:active {
  transform: scale(0.96);
}

.tabbar button.active,
.tabbar .tabbar-item.active {
  color: var(--text-primary);
}

.tabbar--store button.active,
.tabbar--store .tabbar-item.active {
  color: #007a55;
}

.tabbar-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  background: center / 20px no-repeat;
}

.tabbar-icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E");
}

.tabbar-item.active .tabbar-icon--home {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23007a55'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E");
}

.tabbar-icon--grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h7v7H4V6zm9 0h7v7h-7V6zM4 15h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E");
}

.tabbar-item.active .tabbar-icon--grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23007a55'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h7v7H4V6zm9 0h7v7h-7V6zM4 15h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E");
}

.tabbar-icon--sale {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 7h.01M3 11l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E");
}

.tabbar-icon--cart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13l-2 9m12-9l2 9'/%3E%3C/svg%3E");
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  font-size: 10px;
  font-weight: 700;
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer {
  padding: 16px 16px 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.site-footer button {
  border: none;
  background: none;
  color: var(--color-iris-bolt);
  text-decoration: underline;
  font-size: 12px;
  padding: 0 4px;
}

.legal-page {
  padding: 16px 16px 80px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.legal-page p {
  margin: 0 0 12px;
}

.cart-page {
  padding: 0 16px 16px;
}

.detail-overlay .detail-actions.sticky-bar {
  position: relative;
  flex-shrink: 0;
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 2;
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(40, 46, 62, 0.06);
}

.cart-line {
  border-radius: var(--radius-cards);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg-card);
  transition: transform 0.2s var(--motion-ease);
}

.cart-page .cart-line {
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  .main-view,
  .detail-overlay,
  .card,
  .card-image-wrap,
  .tabbar button {
    transition: none !important;
    animation: none !important;
  }
}
