/* Storefront Page Styles & Theme Variables */
:root {
  --store-bg: #fdfbf7;
  --store-text: #242925;
  --store-title: #2c5e3b;
  --store-accent: #d96b43;
  --store-card-bg: #ffffff;
  --store-border: #e2dac9;
  --store-muted: #707a72;
  --store-pattern: none;
  --storefront-header-height: 69px;
  --brand-green: var(--store-title, #2c5e3b);
  --brand-green-light: var(--store-accent, #3d7e50);
  --brand-green-pale: color-mix(in srgb, var(--store-title, #2c5e3b) 14%, var(--store-bg, #ffffff));
}

@media (max-width: 640px) {
  :root {
    --storefront-header-height: 65px;
  }
}

body.sys-page.storefront-page,
body.storefront-page,
.storefront-page {
  --brand-green: var(--store-title, #2c5e3b);
  --brand-green-light: var(--store-accent, #3d7e50);
  --brand-green-pale: color-mix(in srgb, var(--store-title, #2c5e3b) 14%, var(--store-bg, #ffffff));
  --paper: var(--store-card-bg, #ffffff);
  --paper-dark: var(--store-border, #e2dac9);
  --border-color: var(--store-border, #e2dac9);
  --charcoal: var(--store-text, #242925);
  --off-white: var(--store-bg, #fdfbf7);
  background-color: var(--store-bg, #fdfbf7);
  background-image: var(--store-pattern, none);
  color: var(--store-text, #242925);
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
}

/* Storefront Item & Action Buttons: cascade theme palette */
.storefront-page ui-button[variant="primary"],
.storefront-menu-card ui-button[variant="primary"],
.btn-product-order {
  --ui-button-background: var(--store-title, #2c5e3b);
  --ui-button-background-hover: var(--store-accent, #3d7e50);
  --ui-button-color: #ffffff;
  --ui-button-color-hover: #ffffff;
}

.storefront-page ui-button[variant="secondary"],
.storefront-menu-card ui-button[variant="secondary"],
.btn-lib-switch-schedule,
.btn-lib-switch-shop,
.btn-lib-view-details {
  --ui-button-border-color: var(--store-border, #e2dac9);
  --ui-button-color: var(--store-title, #2c5e3b);
  --ui-button-background-hover: color-mix(in srgb, var(--store-title, #2c5e3b) 14%, var(--store-bg, #ffffff));
  max-width: 100%;
}

.btn-lib-switch-schedule .btn-schedule-text {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 480px) {
  .btn-lib-switch-schedule .btn-schedule-text {
    max-width: 125px;
  }
}

.storefront-modal-add-btn {
  background: var(--store-title, var(--brand-green, #2c5e3b));
  transition: background-color 0.15s ease;
}

.storefront-modal-add-btn:hover:not(:disabled) {
  background: var(--store-accent, var(--brand-green-light, #3d7e50));
}

.storefront-checkout-submit {
  background: var(--store-title, var(--brand-green, #2c5e3b));
  transition: background-color 0.15s ease;
}

.storefront-checkout-submit:hover:not(:disabled) {
  background: var(--store-accent, var(--brand-green-light, #3d7e50));
}

#storefrontContent {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Storefront Modern Fixed Header (matches business manager header) */
.storefront-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--store-card-bg, rgba(253, 251, 247, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  padding: 0 24px;
  height: 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  align-items: center;
}

.storefront-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.storefront-header-brand {
  font-family: var(--font-fancy, 'Fraunces', serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: #2c5e3b;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  transition: opacity 0.2s;
}

@media (max-width: 768px) {
  .storefront-header {
    padding: 0 14px;
    height: 56px;
  }
  .storefront-header-inner {
    gap: 10px;
  }
  .storefront-header-brand {
    font-size: 1.3rem;
    gap: 8px;
  }
}

/* Custom Domain: Reveal header brand smoothly only when scrolled past hero */
.storefront-header-brand.brand-scroll-reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.storefront-header-brand.brand-scroll-reveal.is-scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Custom Domain: Prevent roadside logo flash by hiding default branding immediately */
html.is-custom-domain .brand-default-text,
body.is-custom-domain .brand-default-text {
  display: none !important;
}

html.is-custom-domain .storefront-header-brand:not(.is-scrolled),
body.is-custom-domain .storefront-header-brand:not(.is-scrolled) {
  opacity: 0 !important;
  pointer-events: none;
}

.storefront-header-brand:hover {
  opacity: 0.85;
}

.storefront-header-brand .brand-default-text {
  color: #2c5e3b !important;
}

.storefront-header-brand .brand-default-text span {
  color: #d96b43 !important;
}

.storefront-header-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--store-border, #e2dac9);
  flex-shrink: 0;
}

.storefront-header-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--store-title, #2c5e3b);
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 640px) {
  .storefront-header-brand-title {
    font-size: 1.05rem;
  }
}

.storefront-header-actions {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.storefront-header-actions user-menu-button,
.storefront-header-actions #btnSettings {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  align-self: center;
  display: inline-flex;
  vertical-align: middle;
  margin: 0;
}

.storefront-header-actions .sys-back-btn .back-btn-text {
  display: none;
}

.storefront-header-actions .sys-back-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--store-title, #2c5e3b);
  background: var(--off-white, #ffffff);
  border: 2px solid var(--border-color, #e5e7eb);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  box-sizing: border-box;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.storefront-header-actions .sys-back-btn:hover {
  background: var(--brand-green-pale, #eef5f0);
  border-color: var(--brand-green, #2c5e3b);
}

.storefront-header-actions .sys-back-btn .back-btn-icon {
  display: grid;
  place-items: center;
}

.storefront-header-actions .sys-back-btn .back-btn-icon svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .storefront-header-actions .sys-back-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    gap: 0;
  }
}

.storefront-hero {
  background: var(--store-card-bg, #ffffff);
  border-bottom: 1px solid var(--store-border, #e5e7eb);
  padding: 32px 20px 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .storefront-hero {
    padding: 20px 8px 18px;
  }
}

.storefront-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 860px) {
  .storefront-hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 32px;
  }
}

.storefront-hero-branding {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .storefront-hero-branding {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    justify-items: center;
    text-align: center;
  }
}

.storefront-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid var(--store-border, #e2dac9);
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .storefront-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto;
    justify-self: center;
  }
}

.storefront-hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.storefront-hero-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.storefront-hero-info h1 {
  font-family: var(--font-fancy, 'Fraunces', serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--store-title, #2c5e3b);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .storefront-hero-info h1 {
    font-size: 1.6rem;
  }
}

.storefront-hero-stand-tag {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-title, #2c5e3b);
  background: rgba(44, 94, 59, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
}

.storefront-hero-stand-tag span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.35;
}

/* Subtabs Scroll Animation Keyframes */
@keyframes subtabs-scroll-left-shadow {
  0% {
    opacity: 0;
  }
  2%, 100% {
    opacity: 1;
  }
}

@keyframes subtabs-scroll-right-shadow {
  0%, 98% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Subtabs Navigation Bar */
.storefront-subtabs-wrap {
  background: var(--store-card-bg, #ffffff);
  border-bottom: 1px solid var(--store-border, #e2dac9);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: sticky;
  top: 69px;
  top: var(--storefront-header-height, 69px);
  z-index: 90;
  timeline-scope: --storefront-subtabs-timeline;
}

.storefront-subtabs-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  animation: subtabs-scroll-left-shadow linear;
  animation-timeline: --storefront-subtabs-timeline;
  transition: opacity 0.2s ease;
}

.storefront-subtabs-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 24px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  animation: subtabs-scroll-right-shadow linear;
  animation-timeline: --storefront-subtabs-timeline;
  transition: opacity 0.2s ease;
}

.storefront-subtabs-wrap[data-scroll-left="true"]::before {
  opacity: 1;
}

.storefront-subtabs-wrap[data-scroll-right="true"]::after {
  opacity: 1;
}

@media (max-width: 640px) {
  .storefront-subtabs-wrap {
    top: 65px;
    top: var(--storefront-header-height, 65px);
  }
}

.storefront-subtabs {
  max-width: 1080px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-timeline: --storefront-subtabs-timeline inline;
}
.storefront-subtabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .storefront-subtabs {
    padding: 0 8px;
    gap: 8px;
  }
}

.storefront-subtab-btn {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--store-muted, #707a72);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.storefront-subtab-btn:hover {
  color: var(--store-title, #2c5e3b);
}

.storefront-subtab-btn.is-active {
  color: var(--store-title, #2c5e3b);
  border-bottom-color: var(--store-accent, #d96b43);
}

.storefront-subtab-btn .subtab-icon {
  font-size: 1.15rem;
}

/* Streamlined Drop Picker */
.storefront-drop-picker-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--store-bg, #fdfbf7);
  border: 1px solid var(--store-border, #e2dac9);
  border-radius: 12px;
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.storefront-drop-picker-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .storefront-drop-picker-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }
}

.storefront-drop-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--store-muted, #707a72);
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.storefront-drop-select {
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--store-border, #e2dac9);
  background: var(--store-card-bg, #ffffff);
  color: var(--store-text, #242925);
  color-scheme: inherit;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.storefront-drop-select option,
.storefront-status-select option,
.storefront-option-select option {
  background-color: var(--store-card-bg, #ffffff);
  color: var(--store-text, #242925);
}

.storefront-drop-select optgroup,
.storefront-status-select optgroup {
  font-weight: 700;
  background-color: var(--store-bg, #f3f4f6);
  color: var(--store-title, #374151);
}

.storefront-drop-select:focus {
  border-color: var(--store-accent, #d96b43);
  outline: none;
}

.storefront-paused-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.storefront-drop-meta-info {
  font-size: 0.8rem;
  color: var(--store-muted, #707a72);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0;
  border: none;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.storefront-drop-cutoff-tag {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.storefront-drop-meta-addr {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  width: 100%;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.storefront-section-header {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .storefront-section-header {
    margin-bottom: 16px;
  }
}

/* Utility to ensure currentColor cascades into svg/icons */
.color-current {
  color: currentColor;
}

/* Search & Filter Pill Console (Styled like Map Command Console) */
.storefront-search-wrap-console {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 640px) {
  .storefront-search-wrap-console {
    max-width: 100%;
  }
}

.storefront-search-pill {
  background: var(--store-card-bg, #ffffff);
  border: 2px solid var(--store-border, #e2dac9);
  border-radius: 9999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 4px 6px 4px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.storefront-search-pill:focus-within {
  border-color: var(--store-accent, #d96b43);
  box-shadow: 0 0 0 2px rgba(217, 107, 67, 0.12);
}

.search-input-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-input-field input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--store-text, #242925);
}

.search-input-field input::placeholder {
  color: var(--store-muted, #707a72);
  opacity: 1;
}

.search-input-field ui-icon {
  color: var(--store-muted, #707a72);
}

/* Circular Filter Toggle Button nested right side of search pill */
.btn-filter-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(44, 94, 59, 0.08);
  color: var(--store-title, #2c5e3b);
  border: 1px solid var(--store-border, #e2dac9);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-toggle ui-icon {
  color: currentColor;
  display: inline-grid;
  place-items: center;
}

button.btn-filter-toggle:hover,
.storefront-search-pill .btn-filter-toggle:hover {
  background: var(--store-title, #2c5e3b);
  color: #ffffff;
  border-color: var(--store-title, #2c5e3b);
}

button.btn-filter-toggle:hover ui-icon,
.storefront-search-pill .btn-filter-toggle:hover ui-icon {
  color: #ffffff;
}

button.btn-filter-toggle.active,
.storefront-search-pill .btn-filter-toggle.active {
  background: var(--store-title, #2c5e3b);
  color: #ffffff;
  border-color: var(--store-title, #2c5e3b);
  box-shadow: 0 0 0 2px rgba(44, 94, 59, 0.25);
}

button.btn-filter-toggle.active ui-icon,
.storefront-search-pill .btn-filter-toggle.active ui-icon {
  color: #ffffff;
}

button.btn-filter-toggle.active svg,
.storefront-search-pill .btn-filter-toggle.active svg {
  stroke: #ffffff;
}

/* ui-search-filter web component container */
ui-search-filter {
  display: block;
  width: 100%;
}

.ui-search-filter-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Expandable Filter Panel floating directly below or above search pill on top of content */
.filter-panel-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--store-card-bg, #ffffff);
  border: 2px solid var(--store-border, #e2dac9);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease, padding 0.2s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.filter-panel-dropdown.dir-up {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(8px);
}

.filter-panel-dropdown.open {
  opacity: 1;
  max-height: 420px;
  padding: 12px 14px;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  overflow: hidden;
}

.filter-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.filter-panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--store-text, #242925);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-clear-link {
  font-size: 0.8rem;
  color: var(--store-accent, #d96b43);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
}

.filter-chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--store-border, #e2dac9);
  background: var(--store-bg, #fdfbf7);
  color: var(--store-text, #242925);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.filter-chip:hover {
  background: var(--store-card-bg, #ffffff);
  border-color: var(--store-accent, #d96b43);
}

.filter-chip.active {
  background: var(--store-title, #2c5e3b);
  border-color: var(--store-title, #2c5e3b);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(44, 94, 59, 0.25);
}

.filter-chip .filter-chip-count {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0 5px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #6b7280;
}

.filter-chip.active .filter-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.storefront-search-wrap {
  flex-shrink: 0;
}

.storefront-search-input {
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1px solid var(--store-border, #e2dac9);
  background: var(--store-card-bg, #ffffff);
  color: var(--store-text, #242925);
  min-width: 200px;
  max-width: 260px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.storefront-search-input:focus {
  border-color: var(--store-accent, #d96b43);
  outline: none;
  box-shadow: 0 0 0 2px rgba(217, 107, 67, 0.15);
}

.storefront-section-caption {
  font-size: 0.88rem;
  color: var(--store-muted, #707a72);
  margin-top: 4px;
  margin-bottom: 0;
}

/* Availability Tags */
.storefront-avail-tag {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  height: 20px;
  line-height: 20px;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0 8px;
  border-radius: 9999px;
  box-sizing: border-box;
  background: rgba(44, 94, 59, 0.08);
  color: var(--store-title, #2c5e3b);
  white-space: nowrap;
}

.storefront-avail-tag.tag-drop {
  background: rgba(217, 107, 67, 0.1);
  color: var(--store-accent, #d96b43);
}

.storefront-avail-tag.tag-stocked {
  background: rgba(34, 139, 34, 0.1);
  color: #2e7d32;
}

.storefront-avail-tag.tag-leadtime {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.storefront-avail-tag.tag-waitlist {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.storefront-avail-tag.tag-digital {
  background: rgba(3, 105, 161, 0.12);
  color: #0369a1;
}

.storefront-digital-drop-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 105, 161, 0.12);
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(3, 105, 161, 0.2);
}

.storefront-menu-card.highlight-pulse {
  outline: 3px solid var(--store-title, #2c5e3b);
  box-shadow: 0 0 16px rgba(44, 94, 59, 0.35);
  transition: all 0.3s ease;
}

.storefront-view-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.storefront-hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 768px) {
  .storefront-hero-meta {
    grid-template-columns: minmax(0, auto) auto;
    justify-content: start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .storefront-hero-meta {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .storefront-hero-desc-wrap {
    justify-items: center;
    text-align: center;
  }

  .storefront-hero-desc {
    text-align: center;
  }

  .storefront-desc-toggle {
    justify-self: center;
  }
}

.storefront-hero-desc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.storefront-hero-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
  max-width: 720px;
  margin: 4px 0 0 0;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.storefront-hero-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storefront-desc-toggle {
  display: inline-grid;
  justify-self: start;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--store-title, #2c5e3b);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Main Layout */
.storefront-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .storefront-container {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  .storefront-container {
    padding: 16px 8px calc(120px + env(safe-area-inset-bottom, 0px));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.storefront-main-col {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Schedule Picker Section */
.storefront-section {
  margin-bottom: 32px;
}

.storefront-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 8px;
}

.storefront-window-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.storefront-window-card {
  background: #ffffff;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.storefront-window-card:hover {
  border-color: #badbcc;
  background: #fdfdfd;
}

.storefront-window-card.selected {
  border-color: var(--brand-green, #2c5e3b);
  background: #f4f8f5;
  box-shadow: 0 2px 8px rgba(44, 94, 59, 0.08);
}

.storefront-window-card-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.storefront-window-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.storefront-window-card-time {
  font-size: 0.84rem;
  color: #4b5563;
}

.storefront-window-card-cutoff {
  font-size: 0.76rem;
  color: #b45309;
  font-weight: 600;
}

.storefront-window-card-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: grid;
  place-items: center;
}

.storefront-window-card.selected .storefront-window-card-radio {
  border-color: var(--brand-green, #2c5e3b);
  background: var(--brand-green, #2c5e3b);
}

.storefront-window-card.selected .storefront-window-card-radio:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Products Grid */
.storefront-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .storefront-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.storefront-menu-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Item Chips Container */
.storefront-item-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  max-width: 100%;
}

.storefront-featured-tag,
.storefront-shipping-tag,
.storefront-digital-tag,
.storefront-bundle-tag,
.storefront-category-tag,
.storefront-stock-soldout,
.storefront-stock-left,
.storefront-waitlist-tag,
.storefront-pwyw-tag {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  align-content: center;
  gap: 4px;
  height: 20px;
  line-height: 1;
  padding: 0 8px;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: 9999px;
  box-sizing: border-box;
  margin: 0;
  white-space: nowrap;
}

.storefront-featured-tag span,
.storefront-shipping-tag span,
.storefront-digital-tag span,
.storefront-bundle-tag span,
.storefront-category-tag span,
.storefront-stock-soldout span,
.storefront-stock-left span,
.storefront-waitlist-tag span,
.storefront-pwyw-tag span {
  display: inline-grid;
  place-items: center;
  align-content: center;
  line-height: 1;
}

.storefront-category-tag {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.storefront-featured-tag ui-icon,
.storefront-shipping-tag ui-icon,
.storefront-digital-tag ui-icon,
.storefront-bundle-tag ui-icon,
.storefront-avail-tag ui-icon,
.storefront-waitlist-tag ui-icon,
.storefront-pwyw-tag ui-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.storefront-waitlist-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.storefront-pwyw-tag {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.storefront-featured-tag {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.storefront-shipping-tag {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 0 7px;
  text-align: center;
}

.storefront-digital-tag {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.storefront-bundle-tag {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.storefront-bundle-includes {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 4px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.storefront-stock-soldout {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.storefront-stock-left {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.storefront-menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.storefront-menu-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  color: #9ca3af;
  box-sizing: border-box;
}

.storefront-menu-img.contain-fit,
.storefront-menu-img[src$=".svg"],
.storefront-menu-img[src*=".svg"],
.storefront-menu-img[src*="pin"],
.storefront-menu-card.is-pin-item .storefront-menu-img {
  object-fit: contain;
  padding: 16px;
}

.storefront-menu-body {
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.storefront-menu-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.storefront-menu-header > div:first-child {
  min-width: 0;
}

.storefront-menu-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.storefront-menu-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-green, #2c5e3b);
}

.storefront-menu-desc {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* Limit height of item cards by capping description with ellipsis */
.storefront-menu-card .storefront-menu-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
}

/* Allow full description in detail / customize modal */
#modalCustomizeProd .storefront-menu-desc,
.storefront-modal-product-info .storefront-menu-desc {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.storefront-menu-footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.storefront-option-select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--store-border, #d1d5db);
  font-size: 0.82rem;
  color: var(--store-text, #374151);
  background: var(--store-card-bg, #ffffff);
  color-scheme: inherit;
  max-width: 130px;
}

.storefront-option-select option {
  color: var(--store-text, #111827);
  background-color: var(--store-card-bg, #ffffff);
}

/* Modal Open Scroll Lock */
body.modal-open,
body.sys-page.modal-open,
body.storefront-page.modal-open {
  overflow: hidden;
  touch-action: none;
}

/* Sidebar Cart / Bag */
.storefront-cart-panel {
  background: #ffffff;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  scroll-margin-top: 130px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.storefront-cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.storefront-cart-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.storefront-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-size: 0.86rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed #f3f4f6;
}

.storefront-cart-item-name {
  font-weight: 600;
  color: #111827;
}

.storefront-cart-item-option {
  font-size: 0.76rem;
  color: #6b7280;
}

.storefront-cart-qty-btn {
  background: #f3f4f6;
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.storefront-cart-totals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
  font-size: 0.86rem;
}

.storefront-cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: #6b7280;
}

.storefront-cart-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-top: 4px;
}

.storefront-cart-waitlist-offset {
  color: #b45309;
  font-weight: 600;
}

.storefront-cart-fee-badge {
  font-size: 0.72rem;
  color: var(--brand-green, #2c5e3b);
  font-weight: 600;
}

/* Mobile Sticky Checkout Bar */
.storefront-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--store-card-bg, #ffffff);
  border-top: 1px solid var(--store-border, #e5e7eb);
  padding: 12px 16px;
  padding-bottom: max(14px, calc(12px + env(safe-area-inset-bottom, 0px)));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 80;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  box-sizing: border-box;
}

body.drawer-open .storefront-mobile-bar {
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 900px) {
  .storefront-mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Confirmation Screen */
.storefront-confirmation {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border-color, #badbcc);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(44, 94, 59, 0.08);
}

.storefront-confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #def7ec;
  color: #03543f;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
}

.storefront-confirmation-title {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  color: #111827;
  margin: 0 0 8px;
}

.storefront-confirmation-sub {
  font-size: 0.92rem;
  color: #6b7280;
  margin: 0 0 24px;
}

.storefront-details-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Payment Option Selection */
.storefront-payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.storefront-payment-radio-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.88rem;
  color: #111827;
}

.storefront-payment-radio-label:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.storefront-payment-radio-label input[type="radio"] {
  accent-color: var(--brand-green, #2c5e3b);
  cursor: pointer;
}

.storefront-payment-radio-label.selected {
  border-color: var(--brand-green, #2c5e3b);
  background: #f4fbf6;
}

.storefront-inline-payment-wrap {
  margin-bottom: 12px;
}

.storefront-inline-payment-box {
  padding: 12px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  background: #ffffff;
  min-height: 44px;
}

.storefront-payment-error {
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 6px;
}

/* Header & Loading / Error States */
.sys-header-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 12px;
  align-items: center;
}

.storefront-loading-state {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
}

.storefront-loading-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.storefront-not-found-card {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  padding: 32px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.storefront-not-found-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.storefront-not-found-title {
  font-size: 1.4rem;
  color: #111827;
  margin: 0 0 8px 0;
}

.storefront-not-found-desc {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.storefront-not-found-back {
  display: inline-grid;
  place-items: center;
}

.storefront-hero-biz-name {
  font-weight: 600;
  color: #111827;
}

.storefront-hero-status-tag {
  color: var(--brand-green, #2c5e3b);
  font-weight: 600;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.storefront-menu-card.is-sold-out {
  opacity: 0.65;
}

/* Cart & Checkout Panel */
.storefront-cart-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green, #2c5e3b);
}

.storefront-cart-empty {
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

.storefront-cart-total-highlight {
  color: var(--brand-green, #2c5e3b);
}

.storefront-checkout-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.storefront-paymethod-wrap {
  margin-top: 4px;
}

.storefront-fulfillment-wrap {
  margin-top: 4px;
}

.storefront-fulfillment-wrap ui-segmented-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
}

.storefront-fulfillment-wrap ui-segmented-control button {
  text-align: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.storefront-split-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.storefront-split-notice-title {
  color: #166534;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.storefront-split-notice-text {
  color: #14532d;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.storefront-cart-item-fulfillment-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.storefront-cart-item-fulfillment-tag.tag-pickup {
  background: #e0f2fe;
  color: #0369a1;
}

.storefront-cart-item-fulfillment-tag.tag-shipping {
  background: #fef3c7;
  color: #b45309;
}

.storefront-cart-item-fulfillment-tag.tag-digital {
  background: #f3e8ff;
  color: #6b21a8;
}

.storefront-cart-item-fulfillment-tag.tag-waitlist {
  background: #fef3c7;
  color: #92400e;
}

.storefront-shipping-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.storefront-customer-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.storefront-checkout-form ui-input.form-group,
.storefront-checkout-form ui-input .form-group {
  margin-bottom: 0;
}

.storefront-checkout-form ui-input input.form-control,
.storefront-checkout-form ui-input textarea.form-control {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--store-border, #d1d5db);
  background: var(--store-card-bg, #ffffff);
  color: var(--store-text, #111827);
  color-scheme: inherit;
}

.storefront-checkout-form ui-input input.form-control::placeholder,
.storefront-checkout-form ui-input textarea.form-control::placeholder,
.storefront-checkout-input::placeholder {
  color: var(--store-muted, #6b7280);
  opacity: 1;
}

.storefront-address-row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 8px;
}

.storefront-input-flex-3 {
  width: 100%;
}

.storefront-input-flex-1 {
  width: 100%;
}

.storefront-paymethod-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.storefront-checkout-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
}

.storefront-checkout-submit {
  margin-top: 6px;
  padding: 12px;
  background: var(--brand-green, #2c5e3b);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.storefront-checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.storefront-checkout-footnote {
  font-size: 0.74rem;
  text-align: center;
  color: #6b7280;
  line-height: 1.35;
  margin-top: 4px;
}

.storefront-mobile-total-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.storefront-mobile-total-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-green, #2c5e3b);
}

.storefront-mobile-view-bag-btn {
  padding: 10px 18px;
  background: var(--brand-green, #2c5e3b);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.storefront-confirm-back-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--brand-green, #2c5e3b);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.storefront-confirm-back-btn:hover {
  opacity: 0.9;
}

/* Item Customization Modal */
.storefront-customize-body {
  padding: 16px 20px 24px;
}

.storefront-modal-product-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.storefront-modal-bundle {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  background: var(--color-bg-secondary, #f9fafb);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
}

.storefront-modal-bundle-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
  margin-bottom: 8px;
}

.storefront-modal-bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.storefront-modal-bundle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--color-text-secondary, #4b5563);
}

.storefront-modal-bundle-item-name {
  font-weight: 500;
  color: #1f2937;
}

.storefront-modal-bundle-item-price {
  font-weight: 600;
  color: #4b5563;
}

.storefront-modal-product-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 24px;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}

.storefront-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.storefront-modal-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 6px;
  margin-top: 8px;
}

.storefront-modal-chips {
  margin-top: 4px;
  margin-bottom: 6px;
}

.storefront-modal-product-info {
  flex: 1;
}

.storefront-modal-product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.storefront-modal-product-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-green, #2c5e3b);
}

.storefront-modal-optset {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.storefront-modal-optset-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 10px;
}

.storefront-modal-optset-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.storefront-modal-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.storefront-modal-choice-label {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.88rem;
  color: #1f2937;
}

.storefront-modal-choice-label:hover {
  background: #fdfdfd;
  border-color: #cbd5e1;
}

.storefront-modal-choice-label.selected {
  border-color: var(--brand-green, #2c5e3b);
  background: #f0fdf4;
}

.storefront-modal-choice-left {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 10px;
}

.storefront-modal-choice-price {
  font-weight: 600;
  color: var(--brand-green, #2c5e3b);
  font-size: 0.82rem;
}

.storefront-modal-qty-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 0 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
}

.storefront-modal-qty-controls {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 10px;
}

.storefront-modal-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.storefront-modal-qty-val {
  font-weight: 700;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.storefront-modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 18px;
}

.storefront-modal-add-btn {
  width: 100%;
  padding: 12px 18px;
  background: var(--brand-green, #2c5e3b);
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.storefront-modal-cancel-btn {
  padding: 12px 18px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Schedule Conflict Modal */
.storefront-schedule-change-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 4px 0;
}

.storefront-schedule-change-desc {
  font-size: 0.95rem;
  color: var(--store-text, #242925);
  margin: 0;
  line-height: 1.5;
}

.storefront-schedule-conflict-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--store-bg, #fdfbf7);
  border: 1px solid var(--store-border, #e2dac9);
  border-radius: 10px;
  padding: 10px 14px;
}

.storefront-conflict-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.storefront-conflict-item:last-child {
  border-bottom: none;
}

.storefront-conflict-item-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.storefront-conflict-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.storefront-schedule-change-hint {
  font-size: 0.88rem;
  margin: 0;
}

.storefront-modal-add-btn.storefront-btn-danger,
.storefront-btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.storefront-modal-add-btn.storefront-btn-danger:hover,
.storefront-btn-danger:hover {
  background: #b91c1c;
}

.storefront-warning-banner {
  padding: 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #92400e;
}

.storefront-menu-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

.storefront-confirm-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 4px 0;
}

.storefront-confirm-meta {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.storefront-confirm-divider {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.storefront-confirm-instructions {
  margin-top: 4px;
  color: #047857;
  font-weight: 500;
}

.storefront-confirm-total-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
}

.storefront-cart-qty-val {
  font-weight: 600;
  font-size: 0.88rem;
  min-width: 16px;
  text-align: center;
}

.storefront-cart-item-right {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 6px;
}

.storefront-cart-item-unitprice {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Upcoming Pickup Date Slots */
.storefront-slots-container {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.storefront-slots-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.storefront-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.storefront-slot-pill {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.storefront-slot-pill:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.storefront-slot-pill.selected {
  border-color: var(--brand-green, #2c5e3b);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px var(--brand-green, #2c5e3b);
}

.storefront-slot-pill strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.storefront-slot-pill span {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

/* Drop Filter Navigation & Tabs */
.storefront-menu-section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.storefront-drop-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}

.storefront-drop-tab-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.storefront-drop-tab-btn:hover {
  color: #0f172a;
}

.storefront-drop-tab-btn.active {
  background: #ffffff;
  color: var(--brand-green, #2c5e3b);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.storefront-item-avail {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.storefront-item-avail.in-drop {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.storefront-item-avail.other-drop {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.storefront-item-avail.none {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.storefront-drop-banner {
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #166534;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* Badges for Pickup Window Schedules */
.win-badge {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.win-badge-recurring {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.win-badge-single {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.win-badge-lead {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.win-badge-waitlist {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.win-badge-policy {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.win-badge-items {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.win-badge-stand {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Modal Option Badges */
.storefront-badge-orange {
  display: inline-block;
  padding: 2px 7px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.storefront-badge-neutral {
  display: inline-block;
  padding: 2px 7px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}

.storefront-modal-optsets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.storefront-status-select,
.storefront-checkout-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--store-border, #d1d5db);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--store-card-bg, #ffffff);
  color: var(--store-text, #242925);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.storefront-status-select:focus,
.storefront-checkout-input:focus {
  outline: none;
  border-color: var(--brand-green, #2c5e3b);
  box-shadow: 0 0 0 3px rgba(44, 94, 59, 0.12);
}

.storefront-modal-pwyw {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-surface, #f9fafb);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

.storefront-modal-pwyw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storefront-pwyw-chip {
  padding: 6px 14px;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 20px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal, #111827);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.storefront-pwyw-chip:hover {
  border-color: var(--brand-green, #2c5e3b);
}

.storefront-pwyw-chip.active {
  background: var(--brand-green, #2c5e3b);
  color: #ffffff;
  border-color: var(--brand-green, #2c5e3b);
}

.storefront-modal-pwyw-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  padding: 0 10px;
  max-width: 180px;
}

.pwyw-currency-symbol {
  font-weight: 700;
  color: var(--text-muted, #6b7280);
}

.storefront-modal-pwyw-input {
  border: none;
  outline: none;
  padding: 8px 6px;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
  color: var(--charcoal, #111827);
  background: transparent;
}

.is-hidden {
  display: none;
}

