/* ============================================================
   cart-styles.css — Shopping Cart & Checkout
   Load order: brand.css → tokens.css → styles.css → cart-styles.css

   This file extends the public site design system.
   ALL colors via semantic tokens from tokens.css.
   Cart lives on top of the dark site background.
   ============================================================ */

/* ── FLOATING CART BUTTON ── */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.cart-button {
  background: var(--gradient-primary);
  color: var(--color-text-invert);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-base);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary-hover);
}

.cart-button:active {
  transform: scale(0.95);
  box-shadow: var(--inner-2);
}

.cart-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-accent);
  color: var(--color-text-invert);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--color-bg);
}

/* ── CART OVERLAY ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--shadow-h) var(--shadow-s) var(--shadow-l) / 0.70);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── CART SIDEBAR ── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--card-bg);
  z-index: 1001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elevation-3);
}

.cart-sidebar.open {
  right: 0;
}

/* ── CART HEADER ── */
.cart-header {
  padding: 20px;
  background: var(--gradient-primary);
  color: var(--color-text-invert);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.close-cart {
  background: transparent;
  border: none;
  color: var(--color-text-invert);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: var(--transition-transform);
}

.close-cart:hover {
  transform: rotate(90deg);
}

/* ── CART ITEMS ── */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 20px;
  font-size: 16px;
}

.cart-item {
  background: hsl(var(--neutral-h) var(--neutral-s) 80% / 0.05);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  box-shadow: var(--elevation-1);
}

.cart-item-info h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--color-text);
}

.cart-item-extras {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-item-extras .extra-default {
  color: var(--color-success);
}

.cart-item-extras .extra-upgrade {
  color: var(--color-primary);
  font-weight: 500;
}

.cart-item-price {
  margin: 0;
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-btn {
  background: hsl(var(--neutral-h) var(--neutral-s) 80% / 0.10);
  border: 1px solid var(--border);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: hsl(var(--neutral-h) var(--neutral-s) 80% / 0.20);
  transform: scale(1.1);
}

.qty-btn:active {
  box-shadow: var(--inner-1);
}

.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--color-text);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
  transition: var(--transition-base);
}

.remove-btn:hover {
  transform: scale(1.2);
}

.cart-item-subtotal {
  text-align: right;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 10px;
  font-size: 16px;
}

/* ── CART FOOTER ── */
.cart-footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: hsl(var(--shadow-h) var(--shadow-s) var(--shadow-l) / 0.30);
  border-top: 1px solid var(--border);
}

.cart-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total span {
  color: var(--color-accent);
}

.checkout-btn {
  width: 100%;
  background: var(--gradient-secondary);
  color: var(--color-text-invert);
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-accent);
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

.checkout-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--inner-2);
}

.checkout-btn:disabled {
  opacity: var(--disabled-opacity);
  cursor: not-allowed;
}

/* ── ADD TO CART BUTTON ── */
.add-to-cart-btn {
  background: var(--gradient-primary);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--elevation-1);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: var(--inner-1);
}

.add-to-cart-btn i {
  font-size: 14px;
}

/* ── CART NOTIFICATION ── */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-success);
  color: var(--color-text-invert);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: var(--transition-base);
}

.cart-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.cart-notification i {
  font-size: 20px;
}

/* ── CHECKOUT PAGE ── */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
}

.checkout-container h1 {
  color: var(--color-text);
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

/* Order Summary */
.order-summary {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--elevation-2);
}

.order-summary h2 {
  color: var(--color-accent);
  font-size: 20px;
  margin-bottom: 20px;
}

.order-items {
  margin-bottom: 20px;
}

.order-header {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--color-accent);
  font-weight: 600;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 1rem;
}

.order-header span:nth-child(1) {
  flex: 1 1 40%;
}

.order-header span:nth-child(2) {
  flex: 1 1 30%;
}

.order-header span:nth-child(3) {
  flex: 0 0 auto;
  min-width: 3rem;
  text-align: right;
}

.order-header span:nth-child(4) {
  flex: 0 0 auto;
  min-width: 4rem;
  text-align: right;
}

.order-item-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  gap: 1rem;
}

.order-col-product {
  flex: 1 1 10%;
  font-weight: 500;
  line-height: 1.3;
}

.order-col-extras {
  flex: 1 1 30%;
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.order-col-right {
  flex: 0 0 auto;
  display: flex;
  gap: 1rem;
  margin-left: auto;
  min-width: 7rem;
}

.order-col-qty {
  flex: 0 0 auto;
  min-width: 2rem;
  text-align: right;
  color: var(--color-text-muted);
}

.order-col-price {
  flex: 0 0 auto;
  min-width: 4rem;
  text-align: right;
  font-weight: 600;
  color: var(--color-accent);
}

/* Mobile */
@media (max-width: 480px) {
  .order-header {
    display: none;
  }

  .order-col-product {
    flex: 1 1 100%;
    margin-bottom: 0.25rem;
  }

  .order-col-extras {
    flex: 1 1 100%;
    margin-bottom: 0.25rem;
  }

  .order-col-right {
    min-width: auto;
    margin-left: auto;
    margin-right: 0;
  }
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--color-text);
}

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

.order-item-name {
  flex: 1;
}

.order-item-qty {
  color: var(--color-text-muted);
  margin: 0 15px;
}

.order-item-price {
  font-weight: 600;
  color: var(--color-accent);
}

.order-total {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
  padding-top: 15px;
  border-top: 2px solid var(--color-accent);
}

.order-total span {
  color: var(--color-accent);
}

/* Checkout Form */
.checkout-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 25px;
  border: 1px solid var(--border);
  box-shadow: var(--elevation-2);
}

.checkout-form .form-group {
  margin-bottom: 20px;
}

.checkout-form label {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 8px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--input-text);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition-color);
  box-shadow: var(--inner-1);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--inner-1), var(--focus-ring);
}

.checkout-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* GPS Button */
.gps-btn {
  background: hsl(var(--neutral-h) var(--neutral-s) 80% / 0.10);
  border: 1px solid var(--border);
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-base);
  margin-top: 8px;
}

.gps-btn:hover {
  background: hsl(var(--neutral-h) var(--neutral-s) 80% / 0.20);
}

.gps-btn i {
  font-size: 16px;
}

.gps-btn.loading {
  opacity: 0.6;
  cursor: wait;
}

.gps-btn.success {
  display: none;
}

.location-display.has-location {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.location-display {
  margin-top: 10px;
  padding: 12px;
  background: var(--success-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-success);
  font-size: 14px;
  display: none;
}

.location-display .location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.location-display .distance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.location-display .distance-row i {
  color: var(--brand-color-accent);
}

.location-display .status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}

.location-display .status-badge.status-open {
  background: var(--success-subtle);
  color: var(--color-success);
}

.location-display .status-badge.status-closed {
  background: var(--danger-subtle);
  color: var(--color-danger);
}

/* Table Info Display - Table Mode */
.table-info-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--success-subtle);
  border: 1px solid hsl(var(--success-h) var(--success-s) var(--success-l) / 0.4);
  border-radius: var(--radius-sm);
  color: var(--color-success);
  font-size: 16px;
}

.table-info-display i {
  font-size: 20px;
}

/* Form label styles */
.checkout-form .form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.checkout-form .form-label-required::after {
  content: " *";
  color: var(--color-danger);
}

.checkout-form .form-label-subtext {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

/* Section title */
.checkout-form .section-title {
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* Order header cells */
.order-header {
  display: grid;
  grid-template-columns: 1fr 1fr 60px 80px;
  gap: 8px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Utility classes */
.text-right {
  text-align: right;
}

/* WhatsApp Order Button — intentionally brand-hardcoded (WhatsApp green) */
.whatsapp-order-btn {
  width: 100%;
  background: hsl(142 70% 45%);
  color: hsl(0 0% 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 16px hsl(142 70% 45% / 0.35);
}

.whatsapp-order-btn:hover {
  background: hsl(142 70% 38%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(142 70% 45% / 0.45);
}

.whatsapp-order-btn i {
  font-size: 24px;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .cart-sidebar {
    max-width: 100%;
  }

  .floating-cart {
    bottom: 15px;
    right: 15px;
  }

  .cart-button {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .checkout-container h1 {
    font-size: 24px;
  }
}

/* ── EXTRAS StEPPER MODAL ── */
.extras-stepper-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--shadow-h) var(--shadow-s) var(--shadow-l) / 0.80);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.extras-stepper {
  background: var(--card-bg);
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stepper-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.stepper-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.stepper-product {
  text-align: center;
  padding: 12px;
  background: var(--surface-3);
  border-radius: 12px;
  margin-bottom: 16px;
}

.stepper-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.stepper-extras {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.extra-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.extra-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.extra-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-3);
  color: var(--color-text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.extra-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.extra-select option:disabled {
  color: var(--color-text-muted);
  font-style: italic;
}

.extra_option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.extra-option:hover {
  background: var(--surface-3);
}

.extra-option input[type="radio"] {
  accent-color: var(--color-primary);
}

.extra-option-name {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  margin-left: 8px;
}

.extra-option-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.stepper-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stepper-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.stepper-total span:last-child {
  font-size: 20px;
  color: var(--color-primary);
}

.stepper-add-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: var(--color-text-invert);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stepper-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── DRINK SELECTION POPUP ── */
.drink-select-btn {
  width: 100%;
  padding: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drink-select-btn:hover {
  border-color: var(--color-primary);
}

.drink-popup-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--shadow-h) var(--shadow-s) var(--shadow-l) / 0.80);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1001;
  animation: fadeIn 0.2s ease;
}

.drink-popup {
  background: var(--card-bg);
  width: 100%;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.drink-popup-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.drink-popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.drink-popup-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.drink-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.drink-tab {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drink-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.drink-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drink-pane.active {
  display: block;
}

.drink-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drink-row:hover {
  background: var(--surface-3);
}

.drink-row.selected {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.3);
}

.drink-row-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
}

.drink-row-info {
  flex: 1;
}

.drink-row-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.drink-row-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.drink-row-check {
  font-size: 20px;
  color: var(--color-primary);
  display: none;
}

.drink-row.selected .drink-row-check {
  display: block;
}

.drink-empty {
  text-align: center;
  padding: 30px;
  color: var(--color-text-muted);
}

.drink-popup-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PROMO BAR
   Lives above the checkout button in the cart sidebar.
   States: progress (default), qualified.
   ============================================================ */
.promo-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  margin: 0 0 var(--space-3);
  background: var(--neutral-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-1);
  transition: var(--transition-base);
  animation: promoBarIn 0.35s ease;
}

@keyframes promoBarIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.promo-bar__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-invert);
  flex: 1;
}

.promo-bar__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.promo-bar__badge {
  flex-shrink: 0;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-secondary);
  color: var(--color-text-invert);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-accent);
  animation: promoBadgePulse 2.4s ease-in-out infinite;
}

@keyframes promoBadgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.promo-bar__track {
  position: relative;
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.promo-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-primary);
}

.promo-bar__amount {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.promo-bar--qualified {
  background: var(--neutral-0);
  border-color: var(--color-success);
}

.promo-bar--qualified .promo-bar__text strong {
  color: var(--color-success);
}

.promo-bar--qualified .promo-bar__fill {
  background: var(--color-success);
  box-shadow: 0 2px 8px hsl(var(--success-h) var(--success-s) var(--success-l) / 0.4);
  width: 100% !important;
}

.promo-bar__celebration {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-success);
}

.promo-bar__celebration-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.promo-bar__celebration-title i {
  font-size: 1.1em;
  color: #fbbf24;
}

.promo-bar__celebration-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.order-discount-row {
  color: var(--color-success, #4ade80);
  font-weight: 600;
}

.order-discount-row .order-col-price {
  color: var(--color-success, #4ade80);
}

/* ═══════════════════════════════════════
   CATALOG MODE — hide ordering UI
   Applied when <html> has class="catalog-mode"
   ═══════════════════════════════════════ */
.catalog-mode .add-to-cart-btn,
.catalog-mode .floating-cart,
.catalog-mode .cart-sidebar,
.catalog-mode .cart-overlay,
.catalog-mode .cart-button,
.catalog-mode .checkout-btn { display: none !important; }

/* Catalog notice on checkout page */
.catalog-notice {
  text-align: center;
  padding: 3rem 1.5rem;
}
.catalog-notice-icon {
  font-size: 3rem;
  color: var(--color-primary, #f97316);
  margin-bottom: 1rem;
}
.catalog-notice-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.catalog-notice-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

