.storefront-main {
  padding: clamp(14px, 1.8vw, 24px);
  max-width: 1640px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.store-home-page .agents-bar {
  display: none;
}

.store-home-page {
  background: #f5f8f7;
}

.sf-home-shell {
  display: grid;
  gap: 18px;
}

.sf-store-topline {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 620px);
  align-items: center;
  gap: 18px;
}

.sf-store-eyebrow {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.sf-store-topline h1 {
  margin: 0;
  max-width: 620px;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.sf-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sf-store-search {
  position: relative;
  flex: 1 1 420px;
  min-width: 220px;
}

.sf-store-search input {
  width: 100%;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  padding: 13px 16px 13px 42px;
  outline: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sf-store-search input:focus {
  border-color: #16a36a;
  box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.12);
}

.sf-search-icon,
.sf-orders-glyph,
.sf-banner-gift {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

.sf-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #64748b;
  border-radius: 999px;
  transform: translateY(-58%);
}

.sf-search-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #64748b;
  transform: rotate(45deg);
}

.sf-store-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sf-store-icon-btn .sf-cart-svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  color: #0f172a;
}

.sf-store-icon-btn .sf-cart-badge[hidden] {
  display: none !important;
}

.sf-orders-glyph {
  width: 18px;
  height: 22px;
  border: 2px solid #0f172a;
  border-radius: 4px;
}

.sf-orders-glyph::before,
.sf-orders-glyph::after {
  content: '';
  position: absolute;
  left: 4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.sf-orders-glyph::before {
  top: 6px;
}

.sf-orders-glyph::after {
  top: 12px;
}

.sf-cart-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.store-home-page .sf-cta-primary {
  background: #08764b;
  color: #ffffff;
}

.store-home-page .sf-cta-secondary {
  background: #effdf5;
  color: #08764b;
}

.store-home-page .sf-cta-secondary:hover {
  background: #dcfce7;
}

.sf-program-banner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 0.95fr) 180px;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid #e0eee7;
  border-radius: 18px;
  background: linear-gradient(90deg, #f5fff7 0%, #ffffff 55%, #f4fff9 100%);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.sf-program-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sf-banner-gift {
  width: 42px;
  height: 42px;
  border: 2px solid #16a36a;
  border-radius: 12px;
  background: #e8fff2;
}

.sf-banner-gift::before,
.sf-banner-gift::after {
  content: '';
  position: absolute;
  background: #16a36a;
  border-radius: 999px;
}

.sf-banner-gift::before {
  left: 18px;
  top: 5px;
  width: 4px;
  height: 31px;
}

.sf-banner-gift::after {
  left: 6px;
  top: 17px;
  width: 30px;
  height: 4px;
}

.sf-program-copy h2,
.sf-section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.sf-program-copy p,
.sf-section-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.35;
}

.sf-program-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.sf-program-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sf-program-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #16a36a;
  color: #ffffff;
  font-size: 0.78rem;
}

.sf-cashback-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: #effdf5;
  color: #0f172a;
  text-align: center;
}

.sf-cashback-card span,
.sf-cashback-card small,
.sf-week-card span,
.sf-week-card small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.sf-cashback-card strong,
.sf-week-card strong {
  display: block;
  margin: 2px 0;
  color: #08915a;
  font-size: 1.55rem;
  line-height: 1;
}

.sf-category-section,
.sf-orders-panel,
.sf-week-card,
.sf-how-card {
  border: 1px solid #e0e8e5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.sf-category-section {
  padding: 18px;
}

.sf-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sf-section-heading.compact {
  margin-bottom: 12px;
}

.sf-store-sort {
  width: min(230px, 100%);
}

.sf-store-sort span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.sf-store-sort select {
  border-color: #dfe8e4;
  border-radius: 12px;
  background: #f8faf9;
}

.sf-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.sf-category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 440px;
  padding: 16px;
  border: 1px solid #e4ece8;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.sf-card-green { background: linear-gradient(180deg, #f1fff7 0%, #ffffff 48%); }
.sf-card-blue { background: linear-gradient(180deg, #f1f8ff 0%, #ffffff 48%); }
.sf-card-purple { background: linear-gradient(180deg, #fbf5ff 0%, #ffffff 48%); }
.sf-card-orange { background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%); }
.sf-card-teal { background: linear-gradient(180deg, #effdfb 0%, #ffffff 48%); }
.sf-card-mint { background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 48%); }

.sf-card-rank {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #08915a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sf-category-card h3 {
  min-height: 48px;
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.18;
}

.sf-category-card p {
  min-height: 40px;
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.35;
}

.sf-category-card img {
  width: 100%;
  height: 124px;
  object-fit: contain;
  margin: 2px auto;
  filter: drop-shadow(0 18px 18px rgba(15, 23, 42, 0.12));
}

.sf-pack-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  min-height: 124px;
  align-items: end;
}

.sf-pack-visual span {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 8px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.sf-category-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.25;
}

.sf-category-card li {
  position: relative;
  padding-left: 16px;
}

.sf-category-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 4px;
  border-left: 2px solid #16a36a;
  border-bottom: 2px solid #16a36a;
  transform: rotate(-45deg);
}

.sf-category-card a.sf-cta,
.sf-category-card a.sf-cta:visited {
  color: #08764b;
}

.sf-category-card a.sf-cta {
  text-decoration: none;
  text-align: center;
}

.sf-category-card .sf-cta {
  margin-top: auto;
  width: 100%;
  border: 1px solid #c8e3d7;
  background: #ffffff;
  color: #08764b;
  font-size: 0.82rem;
}

.sf-category-card .sf-cta:hover,
.sf-category-card .sf-chip-active {
  background: #e8fff2;
  border-color: #16a36a;
}

.sf-category-card button.sf-cta {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: not-allowed;
  box-sizing: border-box;
}

.sf-category-card button.sf-cta.sf-cta-coming-soon:disabled {
  opacity: 0.72;
  color: #64748b;
  border-color: #d1dbe6;
  background: #f8fafc;
}

.sf-category-card button.sf-cta.sf-cta-coming-soon:disabled:hover {
  background: #f8fafc;
  border-color: #d1dbe6;
}

.sf-service-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e0e8e5;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.sf-service-strip article {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid #edf3f0;
}

.sf-service-strip article:last-child {
  border-right: none;
}

.sf-service-strip strong,
.sf-service-strip span {
  display: block;
}

.sf-service-strip strong {
  color: #0f172a;
  font-size: 0.86rem;
  line-height: 1.2;
}

.sf-service-strip span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.74rem;
}

.sf-home-widgets {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 210px 280px;
  gap: 14px;
}

.sf-orders-panel,
.sf-week-card,
.sf-how-card {
  padding: 18px;
}

.sf-order-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sf-home-checkout {
  margin-top: 12px;
  min-width: 180px;
}

.sf-widget-action {
  min-height: 78px;
  border: 1px solid #e0e8e5;
  border-radius: 16px;
  background: #fbfdfc;
  color: inherit;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.sf-widget-action span,
.sf-widget-action small {
  display: block;
}

.sf-widget-action span {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.2;
}

.sf-widget-action small {
  margin-top: 5px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.3;
}

.sf-week-card {
  display: grid;
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}

.sf-week-card .sf-cta {
  width: 100%;
  margin-top: 4px;
  font-size: 0.8rem;
}

.sf-how-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1rem;
}

.sf-how-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.3;
}

.sf-admin-orders-link {
  justify-self: end;
}

.sf-hero,
.sf-value-stack,
.sf-trust,
.sf-faq,
.sf-footer-cta {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.sf-kicker {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.sf-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
}

.sf-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 760px;
}

.sf-controls-row { display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin-top: 12px; }
.sf-search-wrap, .sf-sort-wrap { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: #475569; }
.sf-search-wrap input, .sf-sort-wrap select { border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }

.sf-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.sf-cart-summary {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
}

.sf-cart-panel {
  display: grid;
  gap: 8px;
}

.sf-cart-summary h3 {
  margin: 0 0 8px;
}

.sf-cart-summary p {
  margin: 0 0 8px;
  color: #475569;
}

.sf-cta {
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 16px;
  cursor: pointer;
}

.sf-cta-primary {
  background: var(--blue);
  color: #ffffff;
}

.sf-cta-primary:hover {
  filter: brightness(0.95);
}

.sf-cta-secondary {
  background: #eff6ff;
  color: var(--blue);
}

.sf-cta-secondary:hover {
  background: #dbeafe;
}

.sf-note {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.sf-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.sf-jump-nav .sf-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
}

.sf-jump-nav .sf-chip:hover {
  background: #f8fafc;
}

.sf-chip-active { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.sf-list-price { color: #64748b; text-decoration: line-through; font-size: 0.88rem; margin-left: 6px; }
.sf-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.sf-best-offer { margin: 4px 0 8px; color: #065f46; font-weight: 700; font-size: 0.88rem; }

.sf-pricing-placeholder {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sf-pricing-placeholder p {
  margin: 0 0 8px;
}

.sf-pricing-placeholder p:last-child {
  margin-bottom: 0;
}

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

.sf-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sf-product-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 12px;
}

.sf-product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sf-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.sf-card-description {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
  flex: 1;
}

.sf-card-description-empty {
  color: #94a3b8;
  font-style: italic;
}

.sf-brand {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #334155;
}

.sf-price {
  margin: 6px 0 10px;
  color: var(--blue);
  font-weight: 700;
}

.sf-card ul {
  margin: 0 0 10px 20px;
  padding: 0;
}

.sf-card p {
  margin: 0 0 8px;
  color: #334155;
}

.sf-meta {
  color: #64748b;
  font-size: 0.82rem;
}

.sf-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sf-tags span {
  display: inline-block;
  font-size: 0.78rem;
  background: #eef2ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 4px 8px;
}

.sf-card-btn {
  flex: 1;
  background: #e2e8f0;
  color: #334155;
}

.sf-card-btn:hover {
  background: #cbd5e1;
}

.sf-value-stack h2,
.sf-trust h2,
.sf-faq h2,
.sf-footer-cta h2 {
  margin-top: 0;
  color: var(--navy);
}

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

.sf-value-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
}

.sf-value-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1e293b;
}

.sf-value-grid p {
  margin: 0;
  color: #475569;
}

.sf-trust p {
  margin: 0 0 10px;
  color: #334155;
}

.sf-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.sf-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
}

.sf-faq p {
  margin: 8px 0 0;
  color: #475569;
}

.sf-footer-cta p {
  color: #475569;
}

.sf-live-message {
  position: fixed;
  bottom: 12px;
  right: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.sf-live-message.show {
  opacity: 1;
  transform: translateY(0);
}

.sf-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.sf-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 96vw);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.14);
  transform: translateX(102%);
  transition: transform 0.2s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.sf-cart-drawer.open {
  transform: translateX(0);
}

.sf-cart-drawer-header,
.sf-cart-drawer-footer {
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.sf-cart-drawer-footer {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
}

.sf-cart-drawer-body {
  padding: 12px 14px;
  flex: 1;
  overflow: auto;
}

.sf-cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
}

.sf-cart-item-main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.sf-cart-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sf-icon-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.sf-empty-cart {
  color: #64748b;
}

.sf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1101;
  display: grid;
  place-items: center;
  padding: 14px;
}

.sf-modal-backdrop[hidden] {
  display: none !important;
}

.sf-product-modal {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  width: min(920px, 96vw);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
}

.sf-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sf-modal-text-col {
  min-width: 0;
}

.sf-modal-nutrients {
  margin-top: 12px;
}

.sf-modal-nutrients-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--navy);
}

.sf-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.sf-orders-modal {
  max-width: 960px;
}

.sf-orders-modal h3 {
  margin: 0 0 14px;
  color: var(--navy);
}

.sf-admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.sf-admin-order-actions select,
.sf-admin-order-actions input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
}

.sf-admin-cancellation-panel {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  background: #fff;
}

.sf-admin-cancellation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.sf-admin-cancellation-row .sf-admin-cancel-refund-amount {
  min-width: 220px;
  flex: 1 1 200px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
}

.sf-admin-cancellation-row .sf-admin-cancel-reject-reason {
  min-width: 200px;
  flex: 1 1 180px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
}

.sf-orders-list {
  display: grid;
  gap: 10px;
}

.sf-order-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
}

.sf-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.sf-order-progress {
  margin-top: 10px;
  margin-bottom: 6px;
}

.sf-order-progress-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.sf-order-progress-step {
  position: relative;
  text-align: center;
  padding-top: 2px;
}

.sf-order-progress-step::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #cbd5e1;
  z-index: 0;
}

.sf-order-progress-step:first-child::before {
  display: none;
}

.sf-order-progress-step.is-active::before {
  background: #2563eb;
}

.sf-order-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  position: relative;
  z-index: 1;
}

.sf-order-progress-step.is-active .sf-order-progress-dot {
  background: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.sf-order-progress-label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #475569;
}

.sf-order-progress-cancel {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.sf-order-progress-cancel.requested {
  color: #b45309;
}

.sf-order-progress-cancel.cancelled {
  color: #b91c1c;
}

.sf-order-progress-cancel.declined {
  color: #1d4ed8;
  font-weight: 600;
}

.sf-order-progress-delay {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b45309;
}

.sf-order-progress-replacement {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #1e40af;
}

.sf-admin-replacement-note {
  min-width: 180px;
  flex: 1 1 200px;
}

.sf-order-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.sf-order-status-paid {
  background: #dcfce7;
  color: #166534;
}

.sf-order-status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.sf-order-status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.sf-order-details {
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.sf-order-line-items {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.sf-order-line-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.sf-order-line-item-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.sf-order-line-item-body p {
  margin: 0 0 4px;
}

@media (max-width: 980px) {
  .sf-store-topline,
  .sf-program-banner,
  .sf-home-widgets {
    grid-template-columns: 1fr;
  }

  .sf-store-actions {
    justify-content: stretch;
  }

  .sf-program-steps {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .sf-service-strip article:nth-child(2n) {
    border-right: none;
  }

  .sf-order-actions {
    grid-template-columns: 1fr;
  }

  .sf-hero {
    grid-template-columns: 1fr;
  }

  .sf-grid {
    grid-template-columns: 1fr;
  }

  .sf-controls-row { grid-template-columns: 1fr; }

  .sf-value-grid {
    grid-template-columns: 1fr;
  }
}

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

.sf-card-teaser {
  font-size: 0.9rem;
  color: var(--muted, #5f6b85);
  margin: 0 0 8px;
  line-height: 1.35;
}

.sf-modal-nutrition {
  margin: 12px 0;
}

.sf-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 6px;
}

.sf-nutrition-table th,
.sf-nutrition-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
}

.sf-nutrition-table th {
  width: 42%;
  color: #475569;
  font-weight: 600;
}

.sf-modal-pre {
  font-size: 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  max-height: min(50vh, 420px);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .storefront-main {
    padding: 12px;
  }

  .sf-store-topline {
    gap: 12px;
  }

  .sf-store-actions {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    gap: 8px;
  }

  .sf-store-eyebrow {
    font-size: 1.35rem;
  }

  .sf-program-banner,
  .sf-category-section,
  .sf-orders-panel,
  .sf-week-card,
  .sf-how-card {
    border-radius: 14px;
    padding: 14px;
  }

  .sf-program-copy {
    align-items: flex-start;
  }

  .sf-program-steps {
    display: grid;
    justify-content: stretch;
  }

  .sf-category-grid,
  .sf-service-strip {
    grid-template-columns: 1fr;
  }

  .sf-category-card {
    min-height: auto;
  }

  .sf-category-card h3,
  .sf-category-card p {
    min-height: 0;
  }

  .sf-service-strip article {
    border-right: none;
    border-bottom: 1px solid #edf3f0;
  }

  .sf-service-strip article:last-child {
    border-bottom: none;
  }

  .sf-section-heading {
    display: grid;
    align-items: start;
  }

  .sf-store-sort {
    width: 100%;
  }

  .sf-hero,
  .sf-value-stack,
  .sf-trust,
  .sf-faq,
  .sf-footer-cta {
    padding: 16px;
  }

  .sf-cta {
    width: 100%;
  }

  .sf-card-actions {
    flex-direction: column;
  }

  .sf-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Reward coupon (store cart drawer) */
.sf-coupon-field {
  margin: 0 0 14px;
}

.sf-coupon-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.sf-coupon-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe8e4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.sf-coupon-field input:focus {
  outline: none;
  border-color: #16a36a;
  box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.12);
}

.sf-coupon-field small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}
