:root {
  --st-bg: #F5F7F6;
  --st-surface: #FFFFFF;
  --st-surface-low: #EEF2F0;
  --st-surface-lowest: #E4EAE6;
  --st-on: #1F2A24;
  --st-muted: #5B6B62;
  --st-accent: #00AF50;
  --st-brand: #00AF50;
  --st-on-accent: #FFFFFF;
  --st-outline: #C5D0C9;
  --st-radius: 0.55rem;
  --st-font-display: "Sora", "Manrope", sans-serif;
  --st-font-body: "Manrope", "Sora", sans-serif;
  --st-shadow: 0 8px 24px rgba(31, 42, 36, 0.08);
  --st-text-xs: 0.75rem;
  --st-text-sm: 0.875rem;
  --st-text-md: 1rem;
  --st-text-lg: 1.125rem;
  --st-text-xl: clamp(1.35rem, 2.4vw, 1.85rem);
  --st-text-2xl: clamp(1.7rem, 3.2vw, 2.45rem);
  --st-leading-tight: 1.2;
  --st-leading: 1.55;
  --st-tracking-tight: -0.025em;
  --st-tracking-wide: 0.04em;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--st-bg);
  color: var(--st-on);
  font-family: var(--st-font-body);
  font-size: 16px;
  font-weight: 450;
  line-height: var(--st-leading);
  letter-spacing: -0.011em;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 1, "kern" 1;
}
body {
  background:
    radial-gradient(900px 420px at 92% -8%, color-mix(in srgb, var(--st-accent) 10%, transparent), transparent 58%),
    radial-gradient(720px 380px at -8% 108%, color-mix(in srgb, #8FB8A3 14%, transparent), transparent 55%),
    var(--st-bg);
}
h1, h2, h3, h4, .st-title {
  font-family: var(--st-font-display);
  font-weight: 650;
  letter-spacing: var(--st-tracking-tight);
  line-height: var(--st-leading-tight);
  color: var(--st-on);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.st-shell { min-height: 100vh; display: flex; flex-direction: column; }
.st-main { flex: 1; width: min(1120px, 100%); margin: 0 auto; padding: 5.5rem 1rem 6.5rem; }

.st-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--st-surface) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--st-outline) 70%, transparent);
}
.st-header-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: .85rem; justify-content: space-between;
}
.st-brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.st-brand img { height: 36px; width: auto; }
.st-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.st-brand-copy strong {
  font-family: var(--st-font-display);
  letter-spacing: var(--st-tracking-tight);
  text-transform: none;
  font-size: 1.05rem;
  font-weight: 700;
}
.st-brand-copy span {
  color: var(--st-accent);
  font-size: var(--st-text-xs);
  letter-spacing: var(--st-tracking-wide);
  text-transform: uppercase;
  font-weight: 600;
}
.st-actions { display: flex; align-items: center; gap: .5rem; }
.st-icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: .75rem;
  background: var(--st-surface-low); color: var(--st-muted);
  display: grid; place-items: center; cursor: pointer; position: relative;
}
.st-icon-btn:hover { color: var(--st-accent); }
.st-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--st-accent); color: var(--st-on-accent);
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  box-shadow: none;
}

.st-search {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1rem .85rem;
}
.st-search form, .st-search-box {
  display: flex; align-items: center; gap: .6rem;
  background: var(--st-surface-low);
  border-radius: .75rem;
  padding: .65rem .85rem;
  color: var(--st-muted);
}
.st-search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--st-on);
}

.st-nav-desktop { display: none; gap: 1rem; }
.st-nav-desktop a {
  color: var(--st-muted);
  font-size: var(--st-text-sm);
  font-weight: 550;
  letter-spacing: 0.01em;
  text-transform: none;
}
.st-nav-desktop a:hover, .st-nav-desktop a.active { color: var(--st-accent); }

.st-bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--st-surface) 94%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid color-mix(in srgb, var(--st-outline) 25%, transparent);
  padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
}
.st-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; min-height: 56px; color: var(--st-muted); font-size: .68rem;
  letter-spacing: 0.01em; text-transform: none; font-weight: 550;
}
.st-bottom-nav a.active, .st-bottom-nav a:hover { color: var(--st-accent); }
.st-bottom-nav .material-symbols-outlined { font-size: 22px; }

.st-promo {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  background: var(--st-surface-low); border-radius: .75rem; padding: .55rem .8rem;
  margin-bottom: 1rem; font-size: var(--st-text-sm); letter-spacing: 0;
  text-transform: none; color: var(--st-muted); font-weight: 500;
}
.st-promo strong { color: var(--st-accent); font-family: var(--st-font-display); font-weight: 700; }

.st-hero, .st-card, .st-panel {
  background: var(--st-surface);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow, 0 8px 24px rgba(31, 42, 36, 0.08));
  border: 1px solid color-mix(in srgb, var(--st-outline) 65%, transparent);
}
.st-hero { overflow: hidden; margin-bottom: 1.25rem; }
.st-hero-media { position: relative; height: 220px; background: var(--st-surface-lowest); }
.st-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.st-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--st-surface), transparent 55%);
}
.st-hero-body { padding: 1rem; display: grid; gap: .75rem; }
.st-kicker {
  color: var(--st-accent);
  font-family: var(--st-font-display);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.st-title {
  font-family: var(--st-font-display);
  font-size: var(--st-text-2xl);
  line-height: var(--st-leading-tight);
  margin: 0;
  letter-spacing: var(--st-tracking-tight);
  text-transform: none;
  font-weight: 700;
}
.st-lead {
  margin: 0;
  color: var(--st-muted);
  font-size: var(--st-text-md);
  line-height: 1.6;
  font-weight: 450;
  max-width: 42rem;
}
.st-price {
  color: var(--st-accent);
  font-family: var(--st-font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: var(--st-tracking-tight);
  font-variant-numeric: tabular-nums;
}

.st-btn {
  appearance: none; border: 0; cursor: pointer;
  border-radius: .45rem; padding: .78rem 1.05rem;
  font-family: var(--st-font-display);
  font-size: .82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.st-btn:active { transform: scale(.97); }
.st-btn-primary {
  background: var(--st-accent); color: var(--st-on-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--st-accent) 28%, transparent);
}
.st-btn-ghost { background: var(--st-surface-low); color: var(--st-accent); }
.st-btn-block { width: 100%; }
.st-grid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.st-section-head {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  margin: 1.4rem 0 .8rem;
}
.st-section-head h2 {
  margin: 0; font-family: var(--st-font-display); font-size: var(--st-text-xl);
  letter-spacing: var(--st-tracking-tight); text-transform: none; font-weight: 700;
  display: flex; align-items: center; gap: .45rem;
}
.st-section-head h2::before {
  content: ""; width: 6px; height: 16px; border-radius: 999px; background: var(--st-accent);
}

.st-cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: max-content;
  gap: .55rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: 1rem;
}
.st-chip {
  border: 0; border-radius: 999px; padding: .55rem .9rem; cursor: pointer;
  background: var(--st-surface-low); color: var(--st-muted);
  font-size: var(--st-text-sm); letter-spacing: 0; text-transform: none;
  white-space: nowrap; font-weight: 550;
}
.st-chip.active, .st-chip:hover { background: var(--st-accent); color: var(--st-on-accent); }

.st-product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem;
}
.st-product {
  background: var(--st-surface); border-radius: var(--st-radius); padding: .7rem;
  display: flex; flex-direction: column; gap: .55rem; min-height: 100%;
}
.st-product-media {
  aspect-ratio: 1.2; border-radius: .45rem; overflow: hidden; background: var(--st-surface-lowest);
  display: grid; place-items: center;
}
.st-product-media img { width: 100%; height: 100%; object-fit: cover; }
.st-product-media.placeholder img { width: 48%; height: auto; opacity: .75; object-fit: contain; }
.st-product .brand {
  color: var(--st-accent);
  font-family: var(--st-font-display);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
}
.st-product h3 {
  margin: 0; font-family: var(--st-font-display); font-size: .98rem; line-height: 1.35;
  font-weight: 600; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-product .meta { color: var(--st-muted); font-size: var(--st-text-xs); line-height: 1.4; }
.st-product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
.st-product-foot strong {
  color: var(--st-accent);
  font-family: var(--st-font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.st-features {
  display: grid; gap: .7rem; margin-top: 1.25rem;
  background: var(--st-surface-low); border-radius: var(--st-radius); padding: 1rem;
}
.st-feature {
  display: flex; gap: .7rem; background: var(--st-surface); border-radius: .5rem; padding: .8rem;
}
.st-feature .ico {
  width: 36px; height: 36px; border-radius: .4rem; background: var(--st-surface-lowest);
  color: var(--st-accent); display: grid; place-items: center; flex: 0 0 auto;
}

.st-panel { padding: 1rem; }
.st-form { display: grid; gap: .8rem; }
.st-field { display: grid; gap: .35rem; }
.st-field span {
  color: var(--st-muted);
  font-size: var(--st-text-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 650;
  font-family: var(--st-font-display);
}
.st-field input, .st-field textarea, .st-field select {
  border: 1px solid color-mix(in srgb, var(--st-outline) 35%, transparent);
  background: var(--st-surface-lowest); color: var(--st-on);
  border-radius: .45rem; padding: .75rem .85rem; outline: none;
}
.st-field input:focus, .st-field textarea:focus, .st-field select:focus {
  border-color: var(--st-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-accent) 20%, transparent);
}
.st-alert {
  border-radius: .5rem; padding: .75rem .9rem; font-size: .9rem;
  background: color-mix(in srgb, var(--st-accent) 12%, var(--st-surface));
  color: var(--st-on);
}
.st-alert.error { background: color-mix(in srgb, #ffb4ab 16%, var(--st-surface)); }

.st-cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: .75rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--st-outline) 22%, transparent);
}
.st-cart-line img {
  width: 72px; height: 72px; object-fit: cover; border-radius: .4rem; background: var(--st-surface-lowest);
}
.st-qty {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem;
}
.st-qty button {
  width: 28px; height: 28px; border: 0; border-radius: .35rem;
  background: var(--st-surface-low); color: var(--st-on); cursor: pointer;
}
.st-empty { color: var(--st-muted); text-align: center; padding: 2rem 1rem; }

.st-toast {
  position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%) translateY(20px);
  background: var(--st-accent); color: var(--st-on-accent); padding: .7rem 1rem;
  border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  opacity: 0; pointer-events: none; transition: .2s ease; z-index: 60; white-space: nowrap;
}
.st-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.st-footer {
  width: min(1120px, 100%); margin: 1.5rem auto 0; padding: 0 1rem 1rem;
  color: var(--st-muted); font-size: .8rem; display: grid; gap: .35rem;
}
.st-footer a { color: var(--st-accent); }

@media (min-width: 900px) {
  .st-bottom-nav { display: none; }
  .st-nav-desktop { display: flex; }
  .st-main { padding-bottom: 2.5rem; }
  .st-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-features { grid-template-columns: repeat(3, 1fr); }
  .st-hero { display: grid; grid-template-columns: 1.1fr .9fr; }
  .st-hero-media { height: 100%; min-height: 320px; }
  .st-search { display: none; }
  .st-header .st-search-inline { display: flex; flex: 1; max-width: 420px; }
}
@media (max-width: 899px) {
  .st-header .st-search-inline { display: none; }

  .st-header-inner {
    padding: .7rem .85rem;
    gap: .55rem;
  }
  .st-brand img { height: 32px; }
  .st-brand-copy strong { font-size: .95rem; }
  .st-brand-copy span { font-size: .65rem; }

  .st-search {
    padding: 0 .85rem .75rem;
  }
  .st-search-box {
    border-radius: .7rem;
    padding: .7rem .85rem;
  }
  .st-search input { font-size: .95rem; }

  .st-main {
    padding: 4.75rem .85rem 6.25rem;
    width: 100%;
  }

  .st-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -8px 24px rgba(31, 42, 36, 0.08);
  }
  .st-bottom-nav a {
    min-height: 58px;
    font-size: .62rem;
    gap: .15rem;
  }
  .st-bottom-nav .material-symbols-outlined { font-size: 24px; }

  .st-section-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .55rem;
    margin: 0 0 .85rem;
  }
  .st-section-head h2 { font-size: 1.1rem; }

  .st-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .55rem;
  }
  .st-product { padding: .55rem; gap: .45rem; }
  .st-product h3 { font-size: .88rem; }
  .st-product-foot strong { font-size: 1rem; }
  .st-btn { min-height: 44px; }

  .st-hero-media { height: 200px; }
  .st-title { font-size: clamp(1.3rem, 6vw, 1.75rem); }
  .st-lead { font-size: .92rem; }
  .st-price { font-size: 1.4rem; }
  .st-grid-actions { grid-template-columns: 1fr; }

  .st-cats {
    margin: 0 0 .85rem;
    padding-bottom: .2rem;
  }
  .st-chip {
    padding: .6rem .9rem;
    font-size: .82rem;
    min-height: 40px;
  }

  .st-cart-line {
    grid-template-columns: 64px 1fr;
    gap: .65rem;
  }
  .st-cart-line > :last-child { grid-column: 1 / -1; }

  .st-footer { padding: 0 .85rem 6rem; }

  /* Catalog page: prefer mobile chips, hide sidebar list */
  .st-main .nx-shell {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }
  .st-main .nx-cats { display: none !important; }
  .st-main .nx-mobile-cats,
  .st-main .st-cats.nx-mobile-cats {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  .st-brand-copy strong {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .st-bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st-bottom-nav a { font-size: .58rem; letter-spacing: 0; }
}


.st-input, .st-form input, .st-form textarea, .st-form select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--st-outline) 45%, transparent);
  background: var(--st-surface-low);
  color: var(--st-on);
  border-radius: .45rem;
  padding: .7rem .8rem;
  outline: none;
}
.st-input:focus, .st-form input:focus, .st-form textarea:focus {
  border-color: var(--st-accent);
}
.st-form .field { display: grid; gap: .35rem; }
.st-form .field > span { font-size: .8rem; color: var(--st-muted); }
