/* ============================================================
   Ashoka Crackers — Custom Stylesheet
   Theme colors are driven by CSS custom properties set in
   config.js → applyTheme(). Do NOT hard-code colors here;
   always use the CSS variables below.
   ============================================================ */

/* ── CSS Custom Properties (defaults; overridden by JS) ─── */
:root {
  --primary-color:     #c62828;
  --primary-dark:      #8e0000;
  --primary-light:     #ff6659;
  --secondary-color:   #f57f17;
  --secondary-dark:    #bc5100;
  --secondary-light:   #ffb04c;
  --accent-color:      #ffd600;
  --page-background:   #fff8e1;
  --card-background:   #ffffff;
  --text-primary:      #212121;
  --text-secondary:    #5d4037;
  --text-on-primary:   #ffffff;
  --text-on-secondary: #212121;
  --success-color:     #2e7d32;
  --warning-color:     #f57c00;
  --error-color:       #c62828;

  --border-radius:     10px;
  --card-shadow:       0 2px 12px rgba(0,0,0,0.10);
  --card-shadow-hover: 0 6px 24px rgba(0,0,0,0.18);
  --transition:        0.2s ease;
  --nav-height:        64px;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--page-background);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Materialize Overrides ────────────────────────────────── */
.nav-wrapper { padding: 0 16px; }

nav {
  background-color: var(--primary-dark) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

nav .brand-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-color);
}

nav ul a,
nav .brand-logo {
  color: var(--text-on-primary) !important;
}

nav ul li a:hover { background: rgba(255,255,255,0.1) !important; }

.sidenav { background: var(--page-background); }
.sidenav li a { color: var(--text-primary); }

/* Cart badge */
.cart-count-badge {
  background: var(--accent-color);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 4px;
  line-height: 1;
  pointer-events: none;
}

.cart-nav-item { position: relative; }

/* ── Page Layout ──────────────────────────────────────────── */
.page-content {
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: 48px;
}

.section-heading {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── Hero Banner ──────────────────────────────────────────── */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  pointer-events: none;
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 640px;
}

.hero-banner__content h1 {
  color: var(--accent-color);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-banner__content p {
  color: #ffe0b2;
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.btn-hero {
  background: var(--accent-color) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 0 28px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
}
.btn-hero:hover { background: #ffe57d !important; }

/* Diwali decorative strip */
.diwali-strip {
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-dark));
  height: 5px;
}

/* ── Announcement Banners ─────────────────────────────────── */
.announcement-bar {
  background: var(--primary-color);
  color: var(--text-on-primary);
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-bar .material-icons { font-size: 1.1rem; }

.no-payment-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-on-primary);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin: 16px 0;
  border-left: 6px solid var(--accent-color);
}

.no-payment-banner h5 {
  color: var(--accent-color);
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.no-payment-banner p { margin: 4px 0 0; font-size: 0.93rem; }

.delivery-info-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin: 12px 0;
  border: 2px solid var(--secondary-light);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.delivery-info-card .delivery-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.delivery-info-card .material-icons {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ── Product Section Controls ─────────────────────────────── */
.catalogue-controls {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-wrap .material-icons {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

#product-search {
  width: 100%;
  padding: 10px 12px 10px 42px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  background: #fafafa;
}

#product-search:focus { border-color: var(--primary-color); background: #fff; }

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.category-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.category-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-chip.active {
  background: var(--primary-color);
  color: var(--text-on-primary);
  border-color: var(--primary-color);
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#product-count {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sort-wrap select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  cursor: pointer;
  color: var(--text-primary);
}

.sort-wrap select:focus { border-color: var(--primary-color); }

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.product-card-col {
  padding: 8px;
  width: 50%;
}

@media (min-width: 600px) {
  .product-card-col { width: 33.333%; }
}

@media (min-width: 992px) {
  .product-card-col { width: 25%; }
}

.product-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.product-card.out-of-stock-card { opacity: 0.65; }

/* Product image */
.product-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  pointer-events: none;
}

.stock-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  pointer-events: none;
}

.stock-badge.out-of-stock { background: #212121; color: #fff; }
.stock-badge.low-stock    { background: var(--warning-color); color: #fff; }

/* Product info */
.product-info {
  padding: 10px 12px 6px;
  flex: 1;
}

.product-category {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 4px;
  line-height: 1.3;
}

.product-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-unit {
  font-size: 0.78rem;
  color: #9e9e9e;
  margin: 0 0 6px;
  font-style: italic;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.effective-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.original-price {
  font-size: 0.82rem;
  text-decoration: line-through;
  color: #9e9e9e;
}

.discount-label {
  font-size: 10px;
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.product-savings {
  font-size: 0.78rem;
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Product actions */
.product-actions {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  border: none;
  cursor: pointer;
  border-radius: 6px !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.88rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-primary, .btn-add-to-cart {
  background: var(--primary-color) !important;
  color: var(--text-on-primary) !important;
  width: 100%;
  height: 38px;
  line-height: 38px !important;
}

.btn-primary:hover, .btn-add-to-cart:hover {
  background: var(--primary-dark) !important;
}

.btn-added {
  background: var(--success-color) !important;
  color: #fff !important;
  width: 100%;
  height: 38px;
  line-height: 38px !important;
}

.btn-out-of-stock {
  background: #bdbdbd !important;
  color: #757575 !important;
  width: 100%;
  height: 38px;
  line-height: 38px !important;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.btn-outline:hover {
  background: var(--primary-color) !important;
  color: var(--text-on-primary) !important;
}

.btn-secondary {
  background: var(--secondary-color) !important;
  color: var(--text-on-secondary) !important;
}

.btn-secondary:hover { background: var(--secondary-dark) !important; color: #fff !important; }

.btn-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  font-size: 1rem !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 28px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35) !important;
  font-weight: 700 !important;
}

.btn-whatsapp:hover { background: #128C7E !important; }

/* Qty controls */
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  height: 36px;
  margin-bottom: 4px;
}

.qty-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: background var(--transition);
  padding: 0;
}

.qty-btn:hover { background: var(--primary-light); color: #fff; }

.qty-value {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  min-width: 28px;
}

/* ── No Products Message ──────────────────────────────────── */
.no-products-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-products-message .material-icons { color: #bdbdbd; }

/* ── Cart Page ────────────────────────────────────────────── */
.cart-page-header {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  padding: 20px 0 14px;
}

.cart-page-header h3 { color: var(--accent-color); margin: 0; font-weight: 800; }

.cart-items-list { margin-bottom: 20px; }

.cart-item {
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cart-item__img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__meta { font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 6px; }

.cart-item__price { font-size: 0.88rem; }

.cart-item__price .effective-price { font-size: 1rem; }

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

.cart-item__remove {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.cart-item__remove:hover { background: #ffebee; }

.cart-summary-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  position: sticky;
  top: 72px;
}

.cart-summary-card h5 { color: var(--primary-dark); font-weight: 700; margin: 0 0 14px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.93rem;
  border-bottom: 1px solid #f5f5f5;
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row.total-row {
  font-size: 1.05rem;
  font-weight: 800;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 2px solid var(--primary-light);
}

.summary-row .discount-amount { color: var(--success-color); font-weight: 600; }

.cart-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.free-delivery-nudge {
  background: #fff3e0;
  border: 1px solid var(--secondary-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--secondary-dark);
}

.free-delivery-nudge.success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: var(--success-color);
}

.free-badge {
  background: var(--success-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

.pending-badge {
  background: #fff3e0;
  color: var(--warning-color);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

.empty-cart-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-cart-state .material-icons { font-size: 80px; color: #bdbdbd; }

/* ── Checkout Page ────────────────────────────────────────── */
.checkout-header {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  padding: 20px 0 14px;
  margin-bottom: 0;
}

.checkout-header h3 { color: var(--accent-color); margin: 0; font-weight: 800; }

.checkout-steps {
  display: flex;
  gap: 0;
  background: var(--card-background);
  border-bottom: 2px solid var(--primary-light);
  padding: 0 16px;
  overflow-x: auto;
}

.checkout-step {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-step.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.checkout-no-payment {
  background: linear-gradient(135deg, #1b5e20, var(--success-color));
  color: #fff;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin: 16px 0;
  border-left: 6px solid var(--accent-color);
}

.checkout-no-payment h5 {
  color: var(--accent-color);
  font-weight: 800;
  margin: 0 0 6px;
}

.checkout-no-payment p { margin: 0; font-size: 0.9rem; }

/* Form card */
.form-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.form-card h5 {
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-group label .required { color: var(--error-color); margin-left: 2px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fafafa;
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.10);
}

.form-group input.valid   { border-color: var(--success-color); }
.form-group input.invalid { border-color: var(--error-color); }

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

.field-error {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group { flex: 1; }

/* Order review table */
.order-review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.order-review-table th {
  background: var(--primary-dark);
  color: var(--text-on-primary);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.order-review-table th:not(:first-child) { text-align: right; }

.order-review-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.order-review-table tfoot tr { background: #fafafa; }

.order-review-table .subtotal-row td { font-weight: 600; border-top: 2px solid #e0e0e0; }

.order-review-table .grand-total-row td {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  border-top: 2px solid var(--primary-color);
}

.order-review-table .discount-row td { color: var(--success-color); font-weight: 600; }

.order-review-table .free-delivery-row td { color: var(--success-color); }

.order-table-wrap { overflow-x: auto; }

.checkout-product-name { font-weight: 600; }
.checkout-product-meta { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
.checkout-discount-tag {
  display: inline-block;
  background: #fff3e0;
  color: var(--secondary-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 3px;
}

.line-original { text-decoration: line-through; color: #9e9e9e; font-size: 0.8rem; }
.line-effective { font-weight: 700; color: var(--primary-dark); }
.line-saving { font-size: 0.78rem; color: var(--success-color); font-weight: 600; }

.estimate-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-heading {
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}

/* Post submit message */
.post-submit-message {
  background: #e8f5e9;
  border: 2px solid #a5d6a7;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.post-submit-message h5 { color: var(--success-color); font-weight: 700; }

/* ── Location Status Widget ───────────────────────────────── */
.location-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 12px 0;
}

.location-ok       { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--success-color); }
.location-warn     { background: #fff8e1; color: #e65100; border-left: 4px solid var(--warning-color); }
.location-denied   { background: #fce4ec; color: #880e4f; border-left: 4px solid #e91e63; }
.location-checking { background: #e3f2fd; color: #0d47a1; border-left: 4px solid #1565c0; }
.location-skipped  { background: #f5f5f5; color: var(--text-secondary); border-left: 4px solid #bdbdbd; }

.location-status .material-icons { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* ── WhatsApp Confirm Overlay ─────────────────────────────── */
.wa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wa-dialog {
  background: var(--card-background);
  border-radius: 14px;
  padding: 28px 24px 20px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  text-align: center;
}

.wa-dialog .wa-icon { font-size: 3rem; margin-bottom: 10px; }

.wa-dialog h5 { font-weight: 800; color: var(--primary-dark); margin: 0 0 10px; }

.wa-dialog p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 20px; }

.wa-dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: #ffe0b2;
  padding: 36px 0 20px;
  margin-top: 40px;
}

.footer-brand h5 {
  color: var(--accent-color);
  font-weight: 800;
  margin: 0 0 6px;
}

.footer-brand p { font-size: 0.88rem; margin: 0; }

.footer-col h6 {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col ul { font-size: 0.85rem; margin: 0; }

.footer-col ul { list-style: none; padding: 0; }

.footer-col ul li { margin-bottom: 6px; }

.footer-col a { color: #ffcc80; }
.footer-col a:hover { color: var(--accent-color); }

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
  text-decoration: none !important;
}

.footer-wa-btn:hover { background: #128C7E !important; }

.footer-divider { border-color: rgba(255,255,255,0.15); margin: 20px 0 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #bcaaa4;
}

.footer-safety {
  background: rgba(0,0,0,0.2);
  border-left: 4px solid var(--warning-color);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #ffcc80;
  margin-top: 12px;
}

/* ── Floating Cart Button (Mobile) ────────────────────────── */
.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 20px 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(198,40,40,0.45);
  cursor: pointer;
  z-index: 800;
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(198,40,40,0.50);
}

.floating-cart-btn .material-icons { font-size: 1.4rem; }

.floating-cart-btn .fc-badge {
  background: var(--accent-color);
  color: var(--primary-dark);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-left: 2px;
}

@media (min-width: 992px) {
  .floating-cart-btn { display: none; }
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state .material-icons { font-size: 80px; color: #bdbdbd; margin-bottom: 16px; }
.empty-state h4 { color: var(--text-primary); margin-bottom: 12px; }

/* ── Misc / Utilities ─────────────────────────────────────── */
.link { color: var(--primary-color); font-weight: 600; }

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  border: none;
  margin: 0;
}

.page-section { padding: 28px 0; }

.badge-chip {
  display: inline-block;
  background: var(--accent-color);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

/* Toast/snackbar override */
.toast { background: #323232 !important; border-radius: 6px !important; }

/* Materialize input override */
.input-field input:focus + label { color: var(--primary-color) !important; }
.input-field input:focus { border-bottom: 1px solid var(--primary-color) !important; box-shadow: 0 1px 0 0 var(--primary-color) !important; }

/* Progress bar color */
.progress { background-color: var(--primary-light) !important; }
.progress .indeterminate { background-color: var(--primary-color) !important; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-banner { min-height: 240px; }
  .hero-banner__content h1 { font-size: 1.4rem; }
  .form-row { flex-direction: column; }
  .cart-item { gap: 10px; }
  .cart-item__img { width: 60px; height: 60px; }
  .cart-summary-card { position: static; }
  footer { padding: 24px 0 16px; }
}

@media (max-width: 360px) {
  .product-card-col { width: 100%; }
}

/* Accessibility: focus ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}
