:root {
  color-scheme: light dark;
  --sf-ink: #122b3a;
  --sf-muted: #496170;
  --sf-paper: #f5f3ec;
  --sf-surface: #ffffff;
  --sf-surface-alt: #edf2f0;
  --sf-line: #d5dfdc;
  --sf-accent: #075f9c;
  --sf-accent-hover: #064a79;
  --sf-accent-soft: #e6f2fa;
  --sf-green: #176b3a;
  --sf-green-hover: #12542d;
  --sf-green-soft: #e6f4ec;
  --sf-promo-bg: #fff4db;
  --sf-promo-ink: #7a4b00;
  --sf-promo-border: #f0c975;
  --sf-shadow: 0 10px 28px rgba(18, 43, 58, 0.08);
  --sf-focus: #075f9c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sf-ink: #e7eff2;
    --sf-muted: #a9bec7;
    --sf-paper: #0e1c24;
    --sf-surface: #162933;
    --sf-surface-alt: #1d3542;
    --sf-line: #2d4654;
    --sf-accent: #1d8cd8;
    --sf-accent-hover: #1574b5;
    --sf-accent-soft: #17374d;
    --sf-green: #228b4e;
    --sf-green-hover: #1b703e;
    --sf-green-soft: #163826;
    --sf-promo-bg: #3b2d12;
    --sf-promo-ink: #f8dfa1;
    --sf-promo-border: #785b22;
    --sf-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
    --sf-focus: #7fd1ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 146px; }
body.gs-storefront-body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--sf-ink);
  background: var(--sf-paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
}

.gs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gs-skip-link {
  position: absolute;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--sf-ink);
  color: var(--sf-paper);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-200%);
}
.gs-skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--sf-focus);
  outline-offset: 3px;
}

/* Topbar */
.gs-store-topbar {
  background: var(--sf-surface);
  border-bottom: 1px solid var(--sf-line);
}
.gs-store-topbar__inner,
.gs-store-main {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}
.gs-store-topbar__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gs-store-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sf-ink);
}
.gs-store-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px 11px 11px 4px;
  background: #5ac8fa;
  color: #0b2230;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 15px;
}
.gs-store-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.gs-store-brand__text strong { font-size: 15px; }
.gs-store-brand__text span { font-size: 12.5px; color: var(--sf-muted); font-weight: 600; }

.gs-store-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gs-topbar-link {
  font-size: 14px;
  font-weight: 650;
  color: var(--sf-ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.gs-topbar-link:hover { background: var(--sf-surface-alt); }
.gs-topbar-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sf-green);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.gs-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
}

/* Store Hero */
.gs-store-hero {
  margin-top: 20px;
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: 20px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  box-shadow: var(--sf-shadow);
}
.gs-store-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gs-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--sf-surface-alt);
  color: var(--sf-muted);
}
.gs-badge--open {
  background: var(--sf-green-soft);
  color: var(--sf-green);
}
.gs-badge--loc {
  background: var(--sf-accent-soft);
  color: var(--sf-accent);
}
.gs-store-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.gs-store-hero__desc {
  margin: 0 0 16px;
  color: var(--sf-muted);
  font-size: 1rem;
  max-width: 72ch;
}
.gs-service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.gs-service-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sf-surface-alt);
  border: 1px solid var(--sf-line);
}
.gs-service-pill p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.gs-service-pill__icon { font-size: 1.2rem; line-height: 1; }
.dietary-disclaimer {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sf-muted);
  border-top: 1px solid var(--sf-line);
  padding-top: 12px;
}

/* Sticky Category & Search Bar */
.gs-store-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  margin-top: 16px;
  padding: 12px 0;
  background: var(--sf-paper);
  border-bottom: 1px solid var(--sf-line);
  backdrop-filter: blur(10px);
}
.gs-store-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gs-store-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.gs-store-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--sf-ink);
  font: inherit;
  font-size: 0.96rem;
}
.gs-store-search input:focus { outline: none; }
.gs-store-search__clear {
  border: 1px solid var(--sf-line);
  background: var(--sf-surface-alt);
  color: var(--sf-ink);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.gs-store-search__count {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--sf-muted);
  white-space: nowrap;
}

.gs-cat-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gs-cat-pill {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  color: var(--sf-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gs-cat-pill small {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sf-surface-alt);
  color: var(--sf-muted);
  font-size: 0.76rem;
}
.gs-cat-pill:hover {
  border-color: var(--sf-accent);
}
.gs-cat-pill.is-active {
  background: var(--sf-accent);
  border-color: var(--sf-accent);
  color: #fff;
}
.gs-cat-pill.is-active small {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Main 2-column Layout */
.gs-store-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 980px) {
  .gs-store-layout--with-cart {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}

.gs-menu-empty {
  padding: 28px;
  border-radius: 16px;
  background: var(--sf-surface);
  border: 1px dashed var(--sf-line);
  text-align: center;
  color: var(--sf-muted);
}

/* Category Section & Product Cards */
.group {
  margin: 0 0 28px;
  scroll-margin-top: 148px;
}
.group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sf-line);
}
.group-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.group-count {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--sf-muted);
}

.gs-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--sf-surface);
  border: 1px solid var(--sf-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.item:hover {
  border-color: var(--sf-accent);
}
.item__body {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.item__info {
  flex: 1 1 auto;
  min-width: 0;
}
.item h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  line-height: 1.3;
}
.item__descr {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--sf-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__media {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
}
.item__media img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--sf-line);
}

.price {
  margin: 6px 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--sf-ink);
}
.price--promo del {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--sf-muted);
  margin-right: 6px;
}
.price--promo strong {
  color: var(--sf-green);
}

.promo-badge {
  display: inline-block;
  margin: 4px 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--sf-promo-bg);
  color: var(--sf-promo-ink);
  border: 1px solid var(--sf-promo-border);
}
.promo-badge--active {
  background: var(--sf-green-soft);
  color: var(--sf-green);
  border-color: var(--sf-green);
}

.item__variants {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.variant {
  font-size: 0.88rem;
  color: var(--sf-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--sf-surface-alt);
}
.variant__name { font-weight: 600; color: var(--sf-ink); }

.dietary-label {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--sf-green);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sf-green);
  background: var(--sf-green-soft);
}
.dietary-note { font-size: 0.82rem; color: var(--sf-muted); margin: 4px 0 0; }

/* Add to Cart Controls inside Card */
.gs-checkout-add {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sf-line);
}
.gs-checkout-add__variant {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 650;
}
.gs-checkout-add select,
.gs-checkout input,
.gs-checkout select {
  min-height: 42px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: var(--sf-surface);
  color: var(--sf-ink);
  font: inherit;
  font-size: 0.92rem;
}
.gs-checkout-add__addons {
  display: grid;
  gap: 4px;
}
.gs-checkout-addon {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500 !important;
}
.gs-checkout-addon input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--sf-green);
}

.gs-checkout-add__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gs-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: var(--sf-surface-alt);
  overflow: hidden;
}
.gs-qty-btn {
  width: 36px;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--sf-ink) !important;
  font-size: 1.1rem;
  font-weight: 750;
  cursor: pointer;
}
.gs-qty-btn:hover { background: rgba(0, 0, 0, 0.06) !important; }
.gs-qty-control input[name="qty"] {
  width: 42px;
  min-height: 40px;
  padding: 0;
  border: 0;
  text-align: center;
  background: transparent;
  color: var(--sf-ink);
  font-weight: 750;
  -moz-appearance: textfield;
}
.gs-qty-control input[name="qty"]::-webkit-outer-spin-button,
.gs-qty-control input[name="qty"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.gs-add-submit {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--sf-green);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.gs-add-submit:hover { background: var(--sf-green-hover); }
.gs-add-submit.is-added { background: var(--sf-accent); }

/* Sidebar Checkout */
.gs-cart-sidebar {
  position: sticky;
  top: 118px;
}
.gs-checkout {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  background: var(--sf-surface);
  color: var(--sf-ink);
  box-shadow: var(--sf-shadow);
  max-height: calc(100vh - 136px);
  overflow-y: auto;
}
.gs-checkout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gs-checkout__header h2 { margin: 0; font-size: 1.25rem; }
.gs-checkout__header .gs-cart-badge {
  background: var(--sf-accent);
}
.gs-checkout h3, .gs-checkout p { margin: 0; }
.gs-checkout__hint, .gs-checkout__policy-note, .gs-checkout__payment-note {
  font-size: 0.86rem;
  color: var(--sf-muted);
}
.gs-checkout__lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gs-checkout__lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--sf-surface-alt);
  font-size: 0.9rem;
  font-weight: 600;
}
.gs-checkout__remove {
  min-height: 32px !important;
  padding: 4px 10px !important;
  background: var(--sf-surface) !important;
  color: var(--sf-ink) !important;
  border: 1px solid var(--sf-line) !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  cursor: pointer;
}
.gs-checkout button {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--sf-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gs-checkout button:disabled,
.gs-checkout-add button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.gs-checkout__address {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
}
.gs-checkout__address legend {
  padding: 0 6px;
  font-weight: 750;
  font-size: 0.92rem;
}
.gs-address-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gs-address-grid > div { grid-column: span 6; }
.gs-address-grid .gs-field-half { grid-column: span 3; }
.gs-address-grid .gs-field-third { grid-column: span 2; }
.gs-address-grid .gs-field-twothird { grid-column: span 4; }
.gs-address-grid .gs-field-sixth { grid-column: span 2; }
.gs-checkout__address label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--sf-muted);
}

.gs-checkout dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--sf-surface-alt);
  font-size: 0.9rem;
}
.gs-checkout dt { color: var(--sf-muted); }
.gs-checkout dd { margin: 0; text-align: right; font-weight: 700; }
.gs-checkout dt:last-of-type,
.gs-checkout dd:last-of-type {
  padding-top: 8px;
  border-top: 1px solid var(--sf-line);
  font-size: 1.05rem;
  color: var(--sf-ink);
}
.gs-checkout__status {
  min-height: 1.4em;
  font-size: 0.88rem;
  font-weight: 650;
}
.gs-checkout [hidden],
.gs-mobile-cart-bar[hidden],
.gs-menu-empty[hidden],
.gs-store-search__clear[hidden] {
  display: none !important;
}

/* Mobile Floating Cart Bar */
.gs-mobile-cart-bar {
  position: fixed;
  z-index: 950;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--sf-green);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
.gs-mobile-cart-bar__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.gs-mobile-cart-bar__info strong { font-size: 0.95rem; }
.gs-mobile-cart-bar__info span { font-size: 0.78rem; opacity: 0.9; }
.gs-mobile-cart-bar__btn {
  padding: 9px 15px;
  border-radius: 10px;
  background: #fff;
  color: #103b22;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 980px) {
  .gs-mobile-cart-bar { display: none !important; }
}

@media (max-width: 640px) {
  .gs-store-topbar__inner,
  .gs-store-main {
    width: calc(100% - 24px);
  }
  .gs-items-grid {
    grid-template-columns: 1fr;
  }
  .gs-checkout {
    max-height: none;
  }
  .gs-address-grid > div,
  .gs-address-grid .gs-field-half,
  .gs-address-grid .gs-field-third,
  .gs-address-grid .gs-field-twothird,
  .gs-address-grid .gs-field-sixth {
    grid-column: span 6;
  }
}

/* Consent modal compatibility */
.gs-marketplace-consent{position:fixed;z-index:1000;left:16px;right:16px;bottom:16px;max-width:680px;margin:auto;padding:18px;background:var(--sf-surface);border:1px solid var(--sf-line);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.22);color:var(--sf-ink)}
.gs-marketplace-consent h2{font-size:1.1rem;margin:0 0 8px}
.gs-marketplace-consent p{margin:0 0 14px}
.gs-marketplace-consent__actions{display:flex;flex-wrap:wrap;gap:10px}
.gs-marketplace-consent button,.gs-marketplace-consent-trigger{min-height:44px;border:1px solid var(--sf-line);border-radius:10px;padding:9px 14px;background:var(--sf-surface);color:var(--sf-ink);font:inherit;font-weight:650;cursor:pointer}
.gs-marketplace-consent button[data-choice=analytics]{background:var(--sf-green);color:#fff}
/* Floating scroll-to-top button */
.gs-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--sf-line);
  background: var(--sf-surface);
  color: var(--sf-accent);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  z-index: 95;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
.gs-scroll-top[hidden] {
  display: none !important;
}
.gs-scroll-top:hover {
  transform: translateY(-3px);
  background: var(--sf-accent);
  color: #fff;
  border-color: var(--sf-accent);
}
@media (max-width: 980px) {
  .gs-scroll-top {
    right: 16px;
    bottom: 84px; /* positioned safely above the mobile cart bar */
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
