/* QRS storefront: store page and shared bottom navigation. Loaded after the theme's style.css. */

:root {
  --sf-brand: #6c4197;
  --sf-brand-dark: #4b2a6f;
  --sf-brand-deep: #36124f;
  --sf-brand-soft: #f3edf9;
  --sf-brand-line: rgba(108, 65, 151, 0.16);
  --sf-ink: #1d1626;
  --sf-muted: #6b6478;
  --sf-line: #ece8f1;
  --sf-bg: #f7f5fa;
  --sf-white: #ffffff;
  --sf-green: #12854a;
  --sf-red: #c0392b;
  --sf-amber: #b26a00;
  --sf-radius: 16px;
  --sf-radius-sm: 10px;
  --sf-shadow: 0 1px 2px rgba(29, 22, 38, 0.06), 0 6px 18px rgba(29, 22, 38, 0.06);
  --sf-shadow-lg: 0 12px 32px rgba(29, 22, 38, 0.18);
  --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sf-nav-h: 74px;
}

/* The theme squeezes every page to 600px; the store page can use more room on bigger screens */
body:has(.sf) {
  max-width: none !important;
  background: var(--sf-bg);
}

.sf {
  color: var(--sf-ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sf a {
  color: inherit;
  text-decoration: none;
}

/* The theme colours every <span> #222, which turned light-on-dark labels black. :where() keeps this
   at the theme's specificity, so any class that sets a colour on purpose still wins. */
:where(.sf) span {
  color: inherit;
}

.sf-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.sf h1,
.sf h2,
.sf h3,
.sf p {
  margin: 0;
}

/* Header */
.sf-hero {
  position: relative;
  background: linear-gradient(160deg, var(--sf-brand) 0%, var(--sf-brand-dark) 60%, var(--sf-brand-deep) 100%);
  color: var(--sf-white);
  padding: 22px 0 18px;
  border-radius: 0 0 24px 24px;
}

.sf-hero-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-logo {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--sf-white);
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.sf-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.sf-hero-text {
  min-width: 0;
}

.sf-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--sf-white) !important;
  text-transform: none;
}

.sf-address {
  margin-top: 4px !important;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sf-status,
.sf-chip-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.sf-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sf-status-on {
  background: #e3f6ea;
  color: var(--sf-green);
}

.sf-status-off {
  background: #fde8e6;
  color: var(--sf-red);
}

.sf-chip-soft {
  background: rgba(255, 255, 255, 0.16);
  color: var(--sf-white);
}

.sf-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.sf-action {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sf-white) !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.sf-action:hover,
.sf-action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

/* Closed notice */
.sf-notice {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--sf-radius-sm);
  background: #fff6e5;
  border: 1px solid #f6dfb0;
  color: #6b4a00;
  font-size: 14px;
  line-height: 1.45;
}

.sf-notice i {
  margin-top: 2px;
  color: var(--sf-amber);
}

.sf-notice strong {
  display: block;
  color: #4d3500;
}

/* Search */
.sf-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  box-shadow: var(--sf-shadow);
  color: var(--sf-muted) !important;
  font-size: 15px;
}

.sf-search i {
  color: var(--sf-brand);
}

.sf-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Banners */
.sf-banners {
  margin-top: 16px;
}

.sf-banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
}

.sf-banner-track::-webkit-scrollbar {
  display: none;
}

.sf-banner {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 5 / 2;
  background: var(--sf-brand-soft);
}

.sf-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-banner-custom .sf-banner-copy {
  position: absolute;
  inset: 0 50% 0 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--sf-white);
}

.sf-banner-copy h2 {
  font-size: clamp(16px, 3.4vw, 30px);
  font-weight: 800;
  color: var(--sf-white);
}

.sf-banner-copy p {
  margin-top: 6px !important;
  font-size: clamp(12px, 2vw, 18px);
}

.sf-banner-art {
  position: absolute;
  right: 6%;
  top: 10%;
  height: 80%;
  width: auto;
  object-fit: contain;
}

.sf-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.sf-dots span {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #d7cfe2;
  transition: width 0.3s var(--sf-ease), background-color 0.3s;
}

.sf-dots span.is-active {
  width: 18px;
  background: var(--sf-brand);
}

/* Sections */
.sf-section {
  margin-top: 26px;
}

.sf-h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sf-ink);
}

.sf-section > .sf-h2 {
  margin-bottom: 12px;
}

/* Recommended rail */
.sf-section-head {
  margin-bottom: 12px;
}

.sf-section-head .sf-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-section-head .sf-h2 i {
  color: #f2a900;
  font-size: 16px;
}

.sf-section-sub {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-rail {
  display: grid;
  grid-auto-flow: column;
  /* about 2.3 cards across on a phone, so the next one peeks in and the row reads as scrollable */
  grid-auto-columns: calc((100% - 24px) / 2.3);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 12px;
  margin: 0 -16px;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.sf-rail-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--sf-radius);
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
  overflow: hidden;
  transition: transform 0.25s var(--sf-ease), box-shadow 0.25s var(--sf-ease);
}

.sf-rail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(29, 22, 38, 0.06), 0 12px 24px rgba(29, 22, 38, 0.1);
}

.sf-rail-media {
  position: relative;
}

.sf-rail-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--sf-brand-soft);
  overflow: hidden;
}

.sf-rail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--sf-ease);
}

.sf-rail-card:hover .sf-rail-img img {
  transform: scale(1.05);
}

/* Shops sell packaged goods: show the whole pack instead of cropping it */
.sf-shop .sf-rail-img,
.sf-shop .sf-card-img {
  background: var(--sf-white);
}

.sf-shop .sf-rail-img img,
.sf-shop .sf-card-img img {
  object-fit: contain;
  padding: 8px;
}

/* ADD sits on the photo's bottom-right corner */
.sf-rail-add {
  position: absolute;
  right: 8px;
  bottom: -14px;
  z-index: 1;
}

.sf-rail-add .sf-add-btn {
  min-width: 64px;
  box-shadow: 0 4px 12px rgba(29, 22, 38, 0.18);
}

.sf-rail-add .sf-stepper {
  min-width: 88px;
  box-shadow: 0 4px 12px rgba(108, 65, 151, 0.35);
}

.sf-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(54, 18, 79, 0.88);
  color: var(--sf-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sf-rail-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 12px 12px;
}

/* Two lines of name always take the same space, so prices line up across the row */
.sf-rail-body .sf-name {
  min-height: calc(2 * 1.35em);
  font-size: 14px;
}

.sf-rail-body .sf-prices {
  margin-top: auto;
  padding-top: 6px;
}

/* Category chips */
.sf-catalogue {
  margin-top: 18px;
  padding-top: 0 !important; /* the theme pads every <section> by 30px */
}

.sf-cats {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 250, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--sf-line);
}

.sf-cats-inner {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sf-cats-inner::-webkit-scrollbar {
  display: none;
}

.sf-cat {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.sf-cat:hover {
  border-color: var(--sf-brand-line);
  color: var(--sf-brand);
}

.sf-cat.is-active {
  background: var(--sf-brand);
  border-color: var(--sf-brand);
  color: var(--sf-white);
  box-shadow: 0 4px 12px rgba(108, 65, 151, 0.3);
}

/* Product groups */
.sf-group {
  margin-top: 22px;
}

.sf-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sf-count {
  flex: none;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-timed {
  margin: -4px 0 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff6e5;
  color: var(--sf-amber);
  font-size: 13px;
  font-weight: 600;
}

.sf-is-loading .sf-grid {
  opacity: 0.45;
  transition: opacity 0.2s;
}

/* Product card: shared parts */
.sf-card {
  position: relative;
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  animation: sf-in 0.35s var(--sf-ease) both;
}

.sf-card.is-unavailable .sf-card-img img {
  filter: grayscale(85%);
  opacity: 0.75;
}

.sf-card-img {
  position: relative;
  display: block;
  background: var(--sf-brand-soft);
  overflow: hidden;
}

.sf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--sf-ease);
}

.sf-card:hover .sf-card-img img {
  transform: scale(1.04);
}

.sf-off {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--sf-green);
  color: var(--sf-white);
  font-size: 11px;
  font-weight: 800;
}

.sf-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-ink) !important;
}

.sf-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sf-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--sf-ink);
}

.sf-prices del {
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-desc {
  margin-top: 6px !important;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sf-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Names with a veg marker: keep the marker beside the first line and wrapped lines indented under the text */
.sf-name.has-diet {
  position: relative;
  padding-left: 21px;
}

.sf-name.has-diet .sf-diet {
  position: absolute;
  left: 0;
  top: 0.2em;
  margin: 0;
}

/* Veg / non-veg marker (the standard square-and-dot symbol) */
.sf-diet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.sf-diet::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.sf-diet.is-veg {
  color: #1a9b4b;
}

.sf-diet.is-nonveg {
  color: #c0392b;
}

.sf-diet.is-nonveg::after {
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 6px solid currentColor;
}

/* Grid layout for shops (grocery, bakery, retail...) */
.sf-shop .sf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sf-shop .sf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sf-shop .sf-card-img {
  aspect-ratio: 1;
}

.sf-shop .sf-card-body {
  flex: 1;
  padding: 10px 12px 0;
}

.sf-shop .sf-card-cta {
  padding: 10px 12px 12px;
}

.sf-shop .sf-add {
  width: 100%;
}

.sf-shop .sf-add-btn,
.sf-shop .sf-stepper {
  width: 100%;
}

/* List layout for restaurants: text left, photo right */
.sf-menu .sf-grid {
  display: grid;
  gap: 12px;
}

.sf-menu .sf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 14px;
}

.sf-menu .sf-card-img {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 118px;
  height: 118px;
  border-radius: 14px;
}

.sf-menu .sf-card-body {
  grid-column: 1;
  grid-row: 1;
}

.sf-menu .sf-card-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: center;
  margin-top: -22px;
  z-index: 1;
}

.sf-menu .sf-add {
  align-items: center;
}

.sf-menu .sf-add-btn,
.sf-menu .sf-stepper {
  min-width: 96px;
  box-shadow: 0 4px 12px rgba(29, 22, 38, 0.16);
}

/* Add button and stepper */
.sf-add {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--sf-brand);
  border-radius: 10px;
  background: var(--sf-white);
  color: var(--sf-brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.sf-add-btn:hover:not(:disabled) {
  background: var(--sf-brand);
  color: var(--sf-white);
}

.sf-add-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.sf-add-btn:disabled {
  border-color: var(--sf-line);
  background: #f1eef5;
  color: #a39cae;
}

.sf-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  border-radius: 10px;
  background: var(--sf-brand);
  color: var(--sf-white);
  overflow: hidden;
  animation: sf-pop 0.25s var(--sf-ease);
}

.sf-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sf-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.sf-stepper button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.sf-stepper button:disabled {
  opacity: 0.6;
}

/* While the cart updates: block taps and show a spinner, driven by the wrapper's class */
.sf-add.is-busy button {
  pointer-events: none;
}

.sf-add.is-busy .sf-stepper span {
  opacity: 0.45;
}

.sf-add-btn {
  position: relative;
}

.sf-add.is-busy .sf-add-label {
  visibility: hidden;
}

.sf-add.is-busy .sf-add-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--sf-brand-soft);
  border-top-color: var(--sf-brand);
  border-radius: 50%;
  animation: sf-spin 0.7s linear infinite;
}

[x-cloak] {
  display: none !important;
}

.sf-stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

.sf-add.is-compact .sf-add-btn,
.sf-add.is-compact .sf-stepper {
  min-height: 32px;
}

.sf-add.is-compact .sf-add-btn {
  padding: 0 12px;
  font-size: 13px;
}

.sf-add.is-compact .sf-stepper button {
  width: 30px;
  height: 32px;
  font-size: 18px;
}

.sf-custom {
  font-size: 11px;
  color: var(--sf-muted);
  text-align: center;
}

.sf-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--sf-brand-soft);
  border-top-color: var(--sf-brand);
  border-radius: 50%;
  animation: sf-spin 0.7s linear infinite;
  vertical-align: -4px;
}

.sf-spinner-sm {
  width: 14px;
  height: 14px;
}

.sf-seeall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--sf-brand-line);
  border-radius: 12px;
  background: var(--sf-white);
  color: var(--sf-brand);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s;
}

.sf-seeall:hover {
  background: var(--sf-brand-soft);
  border-color: var(--sf-brand);
}

.sf-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--sf-muted);
  font-size: 14px;
}

.sf-empty {
  margin-top: 30px;
  padding: 40px 20px;
  text-align: center;
  color: var(--sf-muted);
  background: var(--sf-white);
  border-radius: var(--sf-radius);
}

.sf-empty i {
  font-size: 30px;
  color: var(--sf-brand-line);
  margin-bottom: 10px;
}

/* View cart bar */
.sf-cartbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--sf-nav-h) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(568px, calc(100% - 24px));
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--sf-green);
  color: var(--sf-white) !important;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(18, 133, 74, 0.35);
  transform: translateX(-50%);
  animation: sf-rise 0.35s var(--sf-ease) both;
}

.sf-cartbar.is-bump {
  animation: sf-bump 0.35s var(--sf-ease);
}

.sf-cartbar-count {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.sf-cartbar-total {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 800;
}

.sf-cartbar-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.sf-bottom-space {
  height: calc(var(--sf-nav-h) + 96px);
}

/* Modals and the add-on sheet */
.sf-modal .modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--sf-shadow-lg);
}

.sf-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--sf-line);
  padding: 18px 20px 14px;
}

.sf-modal .modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--sf-ink);
}

.sf-modal .modal-body {
  padding: 16px 20px;
}

.sf-modal .modal-footer {
  border-top: 1px solid var(--sf-line);
  padding: 12px 20px 16px;
  gap: 10px;
}

.sf-sheet-sub {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.sf-label:first-child {
  margin-top: 0;
}

.sf-modal .form-control,
.sf-modal .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: var(--sf-line);
}

.sf-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--sf-red);
}

.sf-done {
  font-size: 16px;
  color: var(--sf-green);
  font-weight: 600;
}

.sf-addon-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.sf-addon-group legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  float: none;
}

.sf-rule {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand);
  font-size: 12px;
  font-weight: 700;
}

.sf-rule-soft {
  background: #f1eef5;
  color: var(--sf-muted);
}

.sf-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--sf-line);
  cursor: pointer;
}

.sf-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--sf-brand);
}

.sf-option-name {
  flex: 1;
  font-size: 15px;
}

.sf-option-price {
  font-size: 14px;
  color: var(--sf-muted);
  white-space: nowrap;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.2s, transform 0.15s;
}

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

.sf-btn-primary {
  background: var(--sf-brand);
  color: var(--sf-white) !important;
}

.sf-btn-primary:hover {
  background: var(--sf-brand-dark);
}

.sf-btn-primary:disabled {
  opacity: 0.7;
}

.sf-btn-ghost {
  background: #f1eef5;
  color: var(--sf-ink);
}

.sf-btn-block {
  width: 100%;
}

/* Store unavailable */
.sf-blocker {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 22, 38, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sf-blocker-card {
  width: min(400px, 100%);
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--sf-white);
  text-align: center;
  box-shadow: var(--sf-shadow-lg);
  animation: sf-pop 0.3s var(--sf-ease);
}

.sf-blocker-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: var(--sf-shadow);
}

.sf-blocker-card h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.sf-blocker-card p {
  margin: 8px 0 20px !important;
  color: var(--sf-muted);
}

/* Bottom navigation, shared by all store pages */
.bottom-panel {
  max-width: 568px;
  margin: 0 auto;
  border-radius: 18px !important;
  padding: 6px 8px !important;
  box-shadow: 0 8px 28px rgba(29, 22, 38, 0.14) !important;
  z-index: 25 !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

.bottom-panel ul li a {
  border-radius: 12px;
  padding: 4px 0;
  transition: background-color 0.2s;
}

.bottom-panel ul li a:hover {
  background: var(--sf-brand-soft);
}

.bottom-panel .new-color,
.bottom-panel ul li a:hover i {
  color: var(--sf-brand) !important;
}

.bottom-panel .newbadge {
  background: var(--sf-brand) !important;
}

/* ---------- Shared page chrome for cart, product, search and my-orders ---------- */
.sf-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--sf-line);
}

.sf-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.sf-topbar h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--sf-ink);
}

.sf-topbar-store {
  margin-left: auto;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand) !important;
}

.sf-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--sf-radius);
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
}

.sf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sf-panel-head h2,
.sf-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--sf-ink);
}

.sf-panel-title {
  margin-bottom: 12px !important;
}

.sf-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--sf-brand) !important;
  font-size: 14px;
  font-weight: 700;
}

.sf .form-control,
.sf .form-select {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--sf-line);
  font-size: 15px;
}

.sf .form-control:focus,
.sf .form-select:focus {
  border-color: var(--sf-brand);
  box-shadow: 0 0 0 3px rgba(108, 65, 151, 0.15);
}

.sf-label small {
  font-weight: 400;
  color: var(--sf-muted);
}

.sf-ok {
  margin-top: 8px !important;
  color: var(--sf-green);
  font-size: 14px;
  font-weight: 600;
}

.sf-hint {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e5;
  color: #6b4a00;
  font-size: 13px;
}

.sf-btn-success {
  background: var(--sf-green);
  color: var(--sf-white) !important;
}

.sf-btn-success:hover {
  background: #0e6f3d;
}

.sf-btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.sf-btn:disabled,
.sf-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Cart ---------- */
.sf-cart-wrap {
  padding-bottom: 8px;
}

.sf-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--sf-line);
}

.sf-line:first-child {
  border-top: 0;
}

.sf-line-info {
  min-width: 0;
}

.sf-line-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-ink);
}

.sf-line-name.has-diet {
  position: relative;
  padding-left: 21px;
}

.sf-line-name.has-diet .sf-diet {
  position: absolute;
  left: 0;
  top: 0.2em;
  margin: 0;
}

.sf-line-meta {
  margin-top: 3px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-line-unit {
  margin-top: 4px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-line-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sf-line-side .sf-stepper {
  min-width: 96px;
}

.sf-line-total {
  font-size: 15px;
  font-weight: 800;
}

.sf-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.sf-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid var(--sf-line);
  border-radius: 14px;
  background: var(--sf-white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.sf-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sf-type i {
  font-size: 18px;
  color: var(--sf-brand);
}

.sf-type small {
  font-size: 11px;
  font-weight: 500;
  color: var(--sf-muted);
}

.sf-type:hover {
  border-color: var(--sf-brand-line);
}

.sf-type.is-active {
  border-color: var(--sf-brand);
  background: var(--sf-brand-soft);
  color: var(--sf-brand-deep);
}

.sf-type:focus-within {
  outline: 2px solid var(--sf-brand-light, #8a6aad);
  outline-offset: 2px;
}

.sf-type.is-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.sf-otp-row {
  display: flex;
  gap: 8px;
}

.sf-otp-row .sf-btn {
  flex: none;
}

.sf-map-search {
  margin-bottom: 8px;
}

.sf-map {
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sf-coupon {
  padding: 0;
  overflow: hidden;
}

.sf-coupon-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: var(--sf-white);
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.sf-coupon-open .fa-tag {
  color: var(--sf-brand);
}

.sf-coupon-open .fa-chevron-right {
  margin-left: auto;
  color: var(--sf-muted);
}

.sf-coupon-on {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #e9f7ef;
  color: var(--sf-green);
}

.sf-coupon-on strong {
  display: block;
  color: #0c5c33;
}

.sf-coupon-on span {
  font-size: 13px;
}

.sf-coupon-on .sf-link {
  margin-left: auto;
}

.sf-coupon .sf-error {
  padding: 0 16px 12px;
}

.sf-bill {
  margin: 0;
}

.sf-bill > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}

.sf-bill dt {
  font-weight: 400;
  color: var(--sf-muted);
}

.sf-bill dd {
  margin: 0;
  font-weight: 600;
  color: var(--sf-ink);
}

.sf-bill .is-saving dt,
.sf-bill .is-saving dd {
  color: var(--sf-green);
}

.sf-bill .sf-bill-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--sf-line);
  font-size: 16px;
}

.sf-bill .sf-bill-total dt,
.sf-bill .sf-bill-total dd {
  color: var(--sf-ink);
  font-weight: 800;
}

.sf-paybar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(568px, calc(100% - 24px));
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: var(--sf-white);
  box-shadow: 0 10px 30px rgba(29, 22, 38, 0.18);
  transform: translateX(-50%);
}

.sf-paybar-amount span {
  display: block;
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-paybar-amount strong {
  font-size: 18px;
  font-weight: 800;
}

.sf-paybar .sf-btn {
  min-height: 48px;
}

.sf-cart .sf-bottom-space {
  height: 100px;
}

/* Coupon sheet */
.sf-coupon-entry {
  display: flex;
  gap: 8px;
}

.sf-coupon-list-title {
  margin: 18px 0 10px !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.sf-offer {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid var(--sf-line);
  border-radius: 14px;
  overflow: hidden;
}

.sf-offer-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 8px;
  background: var(--sf-brand);
  color: var(--sf-white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.sf-offer-body {
  flex: 1;
  padding: 12px 14px;
}

.sf-offer-name {
  font-size: 15px;
  font-weight: 700;
}

.sf-offer-desc {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-offer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.sf-offer-code {
  padding: 4px 10px;
  border: 1.5px dashed var(--sf-brand-line);
  border-radius: 8px;
  color: var(--sf-brand-deep);
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Payment options */
.sf-pay-options {
  display: grid;
  gap: 10px;
}

.sf-pay {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--sf-line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.sf-pay input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sf-pay > i {
  width: 22px;
  font-size: 20px;
  color: var(--sf-brand);
  text-align: center;
}

.sf-pay strong {
  display: block;
  font-size: 15px;
}

.sf-pay small {
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-pay::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--sf-line);
  border-radius: 50%;
}

.sf-pay.is-active {
  border-color: var(--sf-brand);
  background: var(--sf-brand-soft);
}

.sf-pay.is-active::after {
  border: 6px solid var(--sf-brand);
}

.sf-pay:focus-within {
  outline: 2px solid #8a6aad;
  outline-offset: 2px;
}

.sf-pay-extra {
  padding: 4px 4px 8px;
}

/* Empty cart and order placed */
.sf-empty-cart,
.sf-success {
  margin: 40px auto 0;
  max-width: 420px;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
  text-align: center;
}

.sf-empty-icon,
.sf-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  font-size: 28px;
}

.sf-empty-icon {
  background: var(--sf-brand-soft);
  color: var(--sf-brand);
}

.sf-success-icon {
  background: #e3f6ea;
  color: var(--sf-green);
  animation: sf-pop 0.4s var(--sf-ease);
}

.sf-empty-cart h2,
.sf-success h2 {
  font-size: 20px;
  font-weight: 800;
}

.sf-empty-cart p,
.sf-success > p {
  margin: 6px 0 20px !important;
  color: var(--sf-muted);
}

.sf-success .sf-bill {
  margin-bottom: 20px;
  text-align: left;
}

.sf-success-actions {
  display: grid;
  gap: 10px;
}

.sf-success-wrap {
  padding: 0 16px 40px;
}

/* Wider screens: items and form on the left, coupon and bill on the right */
@media (min-width: 900px) {
  .sf-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 20px;
    align-items: start;
  }

  .sf-cart-side {
    position: sticky;
    top: 70px;
  }
}

/* ---------- Product page ---------- */
.sf-topbar-store-left {
  margin-left: 0;
  max-width: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--sf-ink);
}

.sf-product {
  max-width: 720px;
}

.sf-gallery {
  position: relative;
  margin-top: 14px;
  border-radius: var(--sf-radius);
  overflow: hidden;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow);
}

.sf-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sf-gallery-track::-webkit-scrollbar {
  display: none;
}

.sf-gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 1;
  max-height: 60vh;
  scroll-snap-align: start;
  background: var(--sf-brand-soft);
}

.sf-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-shop .sf-gallery-slide {
  background: var(--sf-white);
}

.sf-shop .sf-gallery-slide img {
  object-fit: contain;
  padding: 16px;
}

.sf-gallery-off {
  left: 12px;
  top: 12px;
  font-size: 13px;
}

.sf-gallery .sf-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  margin: 0;
}

.sf-product-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-brand);
}

.sf-product-name {
  margin-top: 6px !important;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sf-ink);
}

.sf-product-name.has-diet {
  position: relative;
  padding-left: 24px;
}

.sf-product-name.has-diet .sf-diet {
  position: absolute;
  left: 0;
  top: 0.3em;
  margin: 0;
}

.sf-product-prices {
  margin-top: 10px;
}

.sf-product-prices .sf-price {
  font-size: 22px;
}

.sf-save {
  padding: 2px 8px;
  border-radius: 6px;
  background: #e3f6ea;
  color: var(--sf-green);
  font-size: 13px;
  font-weight: 700;
}

.sf-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.sf-product-sub {
  margin-top: 18px !important;
  font-size: 15px;
  font-weight: 800;
}

.sf-product-desc {
  margin-top: 6px !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sf-muted);
  white-space: pre-line;
}

.sf-product-page .sf-bottom-space {
  height: 100px;
}

.sf-product-cartlink {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--sf-ink) !important;
}

.sf-product-cartlink span {
  font-size: 12px;
  color: var(--sf-muted);
}

.sf-product-cartlink strong {
  font-size: 15px;
  color: var(--sf-brand);
}

.sf-stepper-lg {
  min-height: 48px;
  min-width: 132px;
  border-radius: 12px;
}

.sf-stepper-lg button {
  width: 44px;
  height: 48px;
  font-size: 22px;
}

.sf-stepper-lg span {
  font-size: 17px;
}

/* ---------- Search ---------- */
.sf-searchbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--sf-line);
  border-radius: 12px;
  background: var(--sf-bg);
  transition: border-color 0.2s, background-color 0.2s;
}

.sf-searchbox:focus-within {
  border-color: var(--sf-brand);
  background: var(--sf-white);
}

.sf-searchbox i {
  color: var(--sf-brand);
}

.sf-searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--sf-ink);
}

.sf-search-cats {
  padding-top: 0 !important;
}

.sf-search-head {
  margin-top: 16px;
}

.sf-more-note {
  margin: 16px 0 0 !important;
  text-align: center;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-empty-sub {
  margin-top: 4px !important;
  font-size: 13px;
}

/* ---------- My orders ---------- */
.sf-lookup {
  max-width: 420px;
  margin: 32px auto 0;
  text-align: center;
}

.sf-lookup h2 {
  font-size: 20px;
  font-weight: 800;
}

.sf-lookup > p {
  margin: 4px 0 8px !important;
  color: var(--sf-muted);
}

.sf-lookup form {
  text-align: left;
}

.sf-lookup .sf-btn-block {
  margin-top: 14px;
}

.sf-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--sf-muted);
}

.sf-orders-head strong {
  color: var(--sf-ink);
}

.sf-order-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sf-order-id {
  font-size: 15px;
  font-weight: 800;
}

.sf-order-meta {
  margin-top: 2px !important;
  font-size: 13px;
  color: var(--sf-muted);
}

.sf-order-amount {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.sf-order-amount strong {
  font-size: 16px;
}

.sf-paid {
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff6e5;
  color: var(--sf-amber);
  font-size: 12px;
  font-weight: 700;
}

.sf-paid.is-paid {
  background: #e3f6ea;
  color: var(--sf-green);
}

.sf-order-status {
  margin-top: 14px !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--sf-brand-deep);
}

.sf-order.is-done .sf-order-status {
  color: var(--sf-green);
}

.sf-order.is-rejected .sf-order-status {
  color: var(--sf-red);
}

.sf-steps {
  display: flex;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sf-steps li {
  position: relative;
  flex: 1;
  padding-top: 16px;
  font-size: 11px;
  color: var(--sf-muted);
  text-align: center;
}

.sf-steps li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sf-line);
}

.sf-steps li:first-child::before {
  left: 50%;
}

.sf-steps li:last-child::before {
  right: 50%;
}

.sf-steps li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--sf-line);
}

.sf-steps li.is-reached {
  color: var(--sf-brand-deep);
  font-weight: 700;
}

.sf-steps li.is-reached::before,
.sf-steps li.is-reached::after {
  background: var(--sf-brand);
}

.sf-order.is-done .sf-steps li.is-reached::before,
.sf-order.is-done .sf-steps li.is-reached::after {
  background: var(--sf-green);
}

.sf-order-items {
  margin: 14px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--sf-line);
  font-size: 14px;
}

.sf-order-items li {
  padding: 2px 0;
}

.sf-order-items li span {
  color: var(--sf-muted);
}

.sf-order-more {
  color: var(--sf-muted);
}

.sf-otp {
  margin-top: 12px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sf-brand-soft);
  font-size: 14px;
}

.sf-otp strong {
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--sf-brand-deep);
}

.sf-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sf-order-actions:empty {
  display: none;
}

.sf-rated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #b27b00;
}

.sf-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.sf-star {
  padding: 4px;
  border: 0;
  background: none;
  font-size: 34px;
  color: #ddd6e6;
  transition: transform 0.15s, color 0.15s;
}

.sf-star.is-on {
  color: #f2a900;
}

.sf-star:hover {
  transform: scale(1.1);
}

.sf-stars-label {
  margin: 6px 0 14px !important;
  text-align: center;
  font-weight: 700;
  color: var(--sf-muted);
}

/* Product and store-photo pages: fill the frame whatever size the uploaded photo is */
.home-slider .home-img {
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
  overflow: hidden;
  border-radius: var(--sf-radius);
  background: var(--sf-brand-soft);
}

.home-slider .home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bigger screens */
@media (min-width: 640px) {
  .sf-hero {
    padding: 30px 0 22px;
  }

  .sf-logo {
    width: 92px;
    height: 92px;
  }

  .sf-title {
    font-size: 28px;
  }

  .sf-action {
    flex: 0 0 auto;
  }

  .sf-rail {
    grid-auto-columns: calc((100% - 36px) / 3.3);
  }

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

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

  .sf-banner {
    aspect-ratio: 3 / 1;
    max-height: 300px;
  }
}

@media (min-width: 960px) {
  .sf-shop .sf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .sf-menu .sf-grid {
    gap: 16px;
  }

  /* Up to five picks: on wide screens they fill the row instead of scrolling */
  .sf-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 2px 0 12px;
  }
}

@media (min-width: 576px) {
  .sf-sheet .modal-dialog {
    max-width: 480px;
  }
}

/* Add-on sheet slides up from the bottom on phones */
@media (max-width: 575.98px) {
  .sf-sheet .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    height: auto !important;
    max-height: 88vh;
    transform: translateY(100%);
    transition: transform 0.3s var(--sf-ease) !important;
  }

  .sf-sheet.show .modal-dialog {
    transform: none;
  }

  .sf-sheet .modal-content {
    border-radius: 22px 22px 0 0;
    max-height: 88vh;
  }

  .sf-sheet .modal-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

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

@keyframes sf-pop {
  from {
    transform: scale(0.9);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes sf-rise {
  from {
    transform: translate(-50%, 24px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes sf-bump {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  40% {
    transform: translate(-50%, 0) scale(1.03);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .sf *,
  .sf *::before,
  .sf *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Add-on group whose limits aren't met yet */
.sf-addon-group.has-error .sf-rule { background: #fdecef; color: #b42339; }
.sf-addon-group .sf-error { display: block; margin-top: 6px; }

/* Search results are re-arranged on every keystroke; replaying the card entrance animation each time makes
   results flicker while typing, so search cards appear straight away. */
.sf-search-page .sf-grid .sf-card {
    animation: none;
}

/* Floating Menu / Categories button and its sheet */
.sf-fab {
  position: fixed;
  right: max(14px, calc(50% - 284px + 6px));
  bottom: calc(var(--sf-nav-h) + 22px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-ink);
  color: var(--sf-white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(29, 22, 38, 0.32);
  cursor: pointer;
  transition: transform 0.18s var(--sf-ease), bottom 0.25s var(--sf-ease);
  -webkit-tap-highlight-color: transparent;
}
.sf-fab i { font-size: 16px; }
.sf-fab:active { transform: scale(0.96); }
.sf-fab:focus-visible { outline: 3px solid var(--sf-brand); outline-offset: 3px; }
/* Sit above the green "View cart" bar, and above the product page's add bar */
body:has(.sf-cartbar) .sf-fab { bottom: calc(var(--sf-nav-h) + 90px + env(safe-area-inset-bottom, 0px)); }
body:has(.sf-product-bar) .sf-fab { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
html.sf-catmenu-open, html.sf-catmenu-open body { overflow: hidden; }

.sf-catmenu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(29, 22, 38, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sf-catmenu-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1041;
  display: flex;
  flex-direction: column;
  width: min(600px, 100%);
  max-height: min(78vh, 640px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 20px 20px 0 0;
  background: var(--sf-white);
  box-shadow: var(--sf-shadow-lg);
  transform: translate(-50%, 100%);
  transition: transform 0.24s var(--sf-ease);
}
.sf-catmenu.is-open .sf-catmenu-backdrop { opacity: 1; }
.sf-catmenu.is-open .sf-catmenu-sheet { transform: translate(-50%, 0); }
.sf-catmenu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px 20px;
  border-bottom: 1px solid var(--sf-line);
}
.sf-catmenu-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--sf-ink); }
.sf-catmenu-x {
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--sf-bg); color: var(--sf-ink);
}
.sf-catmenu-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sf-catmenu-list li { display: block; width: 100%; float: none; margin: 0; }
.sf-catmenu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--sf-ink) !important;
  text-decoration: none !important;
}
.sf-catmenu-item:active, .sf-catmenu-item:hover { background: var(--sf-bg); }
.sf-catmenu-item:focus-visible { outline: 2px solid var(--sf-brand); outline-offset: -2px; }
.sf-catmenu-item.is-current { background: var(--sf-brand-soft); }
.sf-catmenu-item.is-current .sf-catmenu-name { color: var(--sf-brand-dark); }
.sf-catmenu-thumb {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sf-brand-soft);
  color: var(--sf-brand-dark);
  font-weight: 800;
}
.sf-catmenu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-catmenu-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.sf-catmenu-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--sf-amber); }
.sf-catmenu-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sf-bg);
  color: var(--sf-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .sf-fab, .sf-catmenu-sheet, .sf-catmenu-backdrop { transition: none; }
}
