/* ============================================================
   LAYOUT: GoJoe Storefront (Modal-Driven Location & Events, Real Location Thumbnails)
   Market Day Pro (MDP) - 2026 Modern Commerce Standard
   ============================================================ */

.storefront-layout-gojoe {
  min-height: 100vh;
  background-color: var(--bg-page, #fffcf5);
  color: var(--color-text-main, #3b2924);
  font-family: var(--font-family-body, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  line-height: 1.5;
  padding-bottom: 7rem;
}

.extra-small {
  font-size: 0.75rem;
}

.ls-1 {
  letter-spacing: 0.5px;
}

/* --- Hero Banner --- */
.classic-hero-banner {
  background: var(--bg-surface, #fff9eb);
  border-bottom: 1px solid var(--color-border, #f0d4c2);
  padding: 2.25rem 1rem 1.75rem;
}

.classic-brand-badge {
  background-color: var(--bg-surface-strong, #ffe8cc);
  border: 1px solid var(--color-border, #f0d4c2);
  color: var(--color-primary, #d8562f);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 6px);
}

.classic-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--color-text-main, #3b2924);
  letter-spacing: -0.02em;
}

.classic-hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted, #5a3e36);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   SLEEK TOP LOCATION TRIGGER CARD (MAIN PAGE)
   ============================================================ */
.gojoe-trigger-card {
  background: var(--bg-surface, #ffffff);
  border: 2px solid var(--color-border, #e8dfd8);
  border-radius: var(--radius-md, 16px);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast, 0.22s ease);
  box-shadow: var(--shadow-soft, 0 2px 10px rgba(0, 0, 0, 0.04));
}

.gojoe-trigger-card:hover {
  border-color: var(--color-primary, #d8562f);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft, 0 6px 18px rgba(0, 0, 0, 0.08));
}

.gojoe-trigger-card.is-empty {
  border-style: dashed;
  border-color: var(--color-primary, #d8562f);
  background: linear-gradient(135deg, var(--bg-surface, #ffffff) 0%, var(--bg-surface-strong, #fff9eb) 100%);
}

.gojoe-trigger-card.has-selection {
  border-style: solid;
  border-color: var(--color-primary, #198754);
  background: var(--bg-surface, #ffffff);
}

.gojoe-trigger-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm, 12px);
  background: var(--bg-surface-strong, #ffe8cc);
  color: var(--color-primary, #d8562f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gojoe-trigger-card.has-selection .gojoe-trigger-icon-box {
  background: var(--bg-surface-strong, #e8f5e9);
  color: var(--color-primary, #198754);
}

.gojoe-trigger-title {
  font-size: 1.15rem;
  color: var(--color-text-main, #3b2924);
  line-height: 1.25;
}

.gojoe-trigger-sub {
  line-height: 1.35;
  color: var(--color-text-muted, #5a3e36);
}

/* Shake animation if user tries to submit without choosing location */
.gojoe-trigger-card.date-required-error {
  animation: gojoeTriggerShake 0.5s ease-in-out;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

@keyframes gojoeTriggerShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Location Prompt Notice Hero (When Menu is Gated) */
.gojoe-prompt-hero {
  border-radius: var(--radius-md, 16px);
  background: var(--bg-surface, #ffffff);
  border: 2px dashed var(--color-border, #f0d4c2) !important;
}

.gojoe-prompt-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface-strong, #ffe8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ============================================================
   LOCATION & EVENTS MODAL POP-UP
   ============================================================ */
.gojoe-modal-content {
  border-radius: var(--radius-md, 20px);
  overflow: hidden;
  background-color: var(--bg-surface, #ffffff) !important;
}

.gojoe-location-modal .modal-content {
  background-color: var(--bg-surface, #ffffff) !important;
}

.gojoe-modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm, 12px);
  background: var(--bg-surface-strong, #ffe8cc);
  color: var(--color-primary, #d8562f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.gojoe-confirm-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-strong, #d1e7dd);
  color: var(--color-primary, #198754);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
}

/* Location Thumbnail in Modal */
.gojoe-venue-thumb-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--bg-surface-strong, #f1f5f9);
  border: 1px solid var(--color-border, #e2dcd5);
}

.gojoe-venue-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gojoe-venue-thumb-box-sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  background: var(--bg-surface-strong, #f1f5f9);
  border: 1px solid var(--color-border, #e2dcd5);
}

.gojoe-venue-thumb-img-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Location Row in Modal */
.gojoe-modal-venue-row {
  border: 1.5px solid var(--color-border, #e8dfd8);
  cursor: pointer;
  transition: all var(--transition-fast, 0.18s ease);
  background-color: var(--bg-surface, #ffffff);
}

.gojoe-modal-venue-row:hover {
  border-color: var(--color-primary, #d8562f) !important;
  background-color: var(--bg-surface-strong, #fff9eb) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft, 0 6px 16px rgba(0, 0, 0, 0.06)) !important;
}

.gojoe-map-link-btn:hover {
  text-decoration: underline !important;
}

/* Event / Date Card in Modal */
.gojoe-event-card {
  border: 1.5px solid var(--color-border, #e2dcd5);
  background-color: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all var(--transition-fast, 0.18s ease);
}

.gojoe-event-card:hover {
  border-color: var(--color-primary, #d8562f) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft, 0 6px 16px rgba(0, 0, 0, 0.06)) !important;
}

.gojoe-event-card.is-selected {
  border: 2px solid var(--color-primary, #d8562f) !important;
  background-color: var(--bg-surface-strong, #fff9eb) !important;
}

/* Calendar Date Badge inside Event Card */
.gojoe-date-badge {
  width: 52px;
  height: 58px;
  min-width: 52px;
  border-radius: var(--radius-sm, 12px);
  background: var(--bg-surface-strong, #ffe8cc);
  border: 1px solid var(--color-border, #f0d4c2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 3px;
}

.gojoe-date-dow {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-primary, #d8562f);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gojoe-date-day {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-text-main, #3b2924);
  margin: 2px 0;
}

.gojoe-date-mon {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted, #5a3e36);
  text-transform: uppercase;
}

/* Mobile Bottom Sheet Modal Adaptation */
@media (max-width: 576px) {
  .gojoe-location-modal .modal-dialog {
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }
  .gojoe-location-modal .modal-content {
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
  }
}

/* ============================================================
   CATEGORY ACCORDION & PRODUCT CARDS
   ============================================================ */
.classic-accordion-item {
  border: 1px solid var(--color-border, #f0d4c2) !important;
  border-radius: var(--radius-md, 14px) !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
  box-shadow: var(--shadow-soft, 0 2px 8px rgba(0, 0, 0, 0.04));
  background: var(--bg-surface, #ffffff);
}

.accordion-btn-custom {
  background: var(--bg-surface, #ffffff);
  border: none;
  font-weight: 700;
  color: var(--color-text-main, #3b2924);
  padding: 1.15rem 1.35rem;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast, 0.2s ease);
}

.accordion-btn-custom:not(.collapsed) {
  background: var(--bg-surface-strong, #fff9eb);
  color: var(--color-text-main, #3b2924);
  box-shadow: none;
  border-bottom: 1px solid var(--color-border, #f0d4c2);
}

/* Product Card */
.product-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--color-border, #e8dfd8);
  border-radius: var(--radius-md, 16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary, #d8562f);
  box-shadow: var(--shadow-soft, 0 8px 22px rgba(0, 0, 0, 0.07));
}

.product-title {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-text-main, #3b2924);
}

.product-img-wrapper {
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  border-radius: var(--radius-sm, 12px);
  overflow: hidden;
  background: var(--bg-surface-strong, #f8f9fa);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
  flex-shrink: 0;
}

.product-img-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.05);
}

.product-desc-preview {
  font-size: 0.86rem;
  color: var(--color-text-muted, #5a3e36);
  line-height: 1.45;
}

.toggle-desc-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary, #d8562f);
  cursor: pointer;
  user-select: none;
}

.toggle-desc-btn:hover {
  color: var(--color-primary-dark, #b8431f);
  text-decoration: underline !important;
}

.product-desc {
  background: var(--bg-surface, #fdfaf7);
  border: 1px solid var(--color-border, #f0e6dc);
  border-radius: var(--radius-sm, 10px);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-main, #3b2924);
}

.product-price-display {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main, #3b2924);
}

.gojoe-stock-qty {
  font-size: 0.85rem;
  font-weight: 800;
  display: inline-block;
}

/* Touch-First Tactile Steppers (48px targets) */
.qty-wrapper .input-group {
  min-height: 48px;
}

.qty-minus, .qty-plus {
  min-width: 48px;
  min-height: 48px;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  max-width: 60px;
  min-height: 48px;
  font-size: 1.1rem;
}

.allergen-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 4px;
  margin-top: 2px;
}

.ac-0 { background: var(--cat-color-1, #ffebee); color: var(--color-text-main, #c62828); }
.ac-1 { background: var(--cat-color-2, #fff3e0); color: var(--color-text-main, #e65100); }
.ac-2 { background: var(--cat-color-3, #e8f5e9); color: var(--color-text-main, #2e7d32); }
.ac-3 { background: var(--cat-color-4, #e3f2fd); color: var(--color-text-main, #1565c0); }
.ac-4 { background: var(--cat-color-5, #f3e5f5); color: var(--color-text-main, #6a1b9a); }

#gojoeMenuSection {
  padding-bottom: 95px;
}

/* ============================================================
   STICKY BOTTOM ORDER ACTION DOCK (ALWAYS DOCKED & COMPACT)
   ============================================================ */
.gojoe-sticky-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border, rgba(220, 205, 195, 0.6));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.09);
  transition: all var(--transition-fast, 0.25s ease);
}

.gojoe-sticky-inner {
  width: 100%;
  max-width: 580px;
}

.gojoe-sticky-order-btn {
  width: 100%;
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  display: block;
  transition: all var(--transition-fast, 0.2s ease-in-out);
  border: none;
  background: var(--color-primary, #d8562f);
  color: #ffffff;
}

.gojoe-sticky-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 40, 22, 0.32) !important;
  background: var(--color-primary-dark, #b8431f);
  color: #ffffff;
}

.gojoe-sticky-order-btn:active:not(:disabled) {
  transform: translateY(0);
}

.gojoe-sticky-btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.gojoe-sticky-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.gojoe-dot-sep {
  margin: 0 0.35rem;
  opacity: 0.75;
}

.gojoe-sticky-action-label {
  font-size: 1.02rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .product-img-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    max-width: 80px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .product-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .gojoe-sticky-bottom-dock {
    padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .gojoe-sticky-order-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
  }
  .gojoe-sticky-badge {
    font-size: 0.82rem;
    padding: 0.22rem 0.5rem;
    letter-spacing: -0.01em;
  }
  .gojoe-sticky-action-label {
    font-size: 0.86rem;
    letter-spacing: -0.01em;
  }
  .gojoe-sticky-btn-content {
    gap: 0.4rem;
  }
}

/* ============================================================
   COMPACT ROTATING FEATURED SHOWCASE
   ============================================================ */
.gojoe-featured-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--color-border, #e8dfd8);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  transition: all var(--transition-fast, 0.2s ease);
}

.gojoe-featured-header-title {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--color-text-main, #3b2924);
}

.gojoe-carousel-arrow-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted, #6c757d);
  background: var(--bg-surface-strong, #f8f9fa);
  border: 1px solid var(--color-border, #dee2e6);
  transition: all var(--transition-fast, 0.15s ease);
}

.gojoe-carousel-arrow-btn:hover {
  background: var(--color-primary, #d8562f);
  color: #ffffff;
  border-color: var(--color-primary, #d8562f);
}

.gojoe-featured-track-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
}

.gojoe-featured-track-wrapper::-webkit-scrollbar {
  display: none;
}

.gojoe-featured-track {
  display: flex;
  user-select: none;
}

.gojoe-featured-item {
  width: 135px;
  min-width: 135px;
  max-width: 135px;
  cursor: pointer;
  border-radius: var(--radius-sm, 12px);
  padding: 6px;
  background: var(--bg-surface, #fffcf5);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.05));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gojoe-featured-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary, #d8562f);
  box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.06));
}

.gojoe-featured-thumb-wrap {
  position: relative;
  width: 100%;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface-strong, #eaeaea);
}

.gojoe-featured-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gojoe-featured-item:hover .gojoe-featured-thumb {
  transform: scale(1.06);
}

.gojoe-featured-price-pill {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(30, 20, 15, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  backdrop-filter: blur(3px);
}

.gojoe-featured-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-main, #3b2924);
  margin-top: 6px;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 576px) {
  .gojoe-featured-item {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    padding: 5px;
  }
  .gojoe-featured-thumb-wrap {
    height: 72px;
  }
  .gojoe-featured-name {
    font-size: 0.74rem;
  }
}

@keyframes gojoePulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(216, 86, 47, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(216, 86, 47, 0); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(216, 86, 47, 0); transform: scale(1); }
}

.product-card.featured-selected-pulse {
  animation: gojoePulseGlow 1.2s ease-in-out;
  border-color: var(--color-primary, #d8562f) !important;
}
