
/* ============================================================
   style.css — Pousada Real | Catálogo Digital
   Paleta fiel ao site original: pousadareal.neosite.shop
   Mobile-First · CSS3 Puro · Sem frameworks
   ============================================================ */

/* ── Google Fonts — Poppins (mesma do site original) ─────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overscroll-behavior: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* ── Design Tokens — Paleta do Site Original ──────────────── */
:root {
  /* Cores primárias extraídas de pousadareal.neosite.shop */
  --orange-500: #ff5400;   /* cor principal (.colored, ícones, destaque) */
  --orange-600: #e04a00;   /* hover */
  --orange-400: #ff7233;   /* variação clara */
  --orange-100: #fff2ec;   /* background leve */

  --green-900:  #013728;   /* header minitop */
  --green-800:  #025238;   /* variação */

  --dark-900:   #262222;   /* texto escuro principal */
  --dark-700:   #333333;   /* texto secundário */
  --dark-500:   #666666;
  --dark-300:   #999999;

  --gray-100:   #f7f7f7;   /* backgrounds */
  --gray-200:   #f0f0f0;
  --gray-300:   #e5e5e5;   /* bordas (border: 1px solid #e5e5e5 no site) */
  --gray-400:   #cccccc;

  --white:      #ffffff;

  /* Semânticas */
  --bg-base:        var(--gray-100);
  --bg-card:        var(--white);
  --bg-header-top:  var(--green-900);
  --bg-header-main: var(--white);
  --bg-tab-bar:     var(--white);

  --text-primary:   var(--dark-900);
  --text-secondary: var(--dark-700);
  --text-muted:     var(--dark-500);
  --text-accent:    var(--orange-500);
  --text-inverse:   var(--white);

  --border:         var(--gray-300);
  --border-card:    rgba(0,0,0,0.08);

  --success:   #2e7d46;
  --danger:    #c0392b;
  --warning:   #e67e22;

  /* Espaçamentos */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Bordas */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 20px rgba(0,0,0,0.13);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.18);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 380ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Alturas fixas */
  --header-top-h:  40px;
  --header-main-h: 68px;
  --tabbar-h:      50px;
  --cart-btn-size: 56px;
}

/* ── Scrollbar (desktop) ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--orange-500); border-radius: var(--radius-full); }

/* ────────────────────────────────────────────────────────────
   HEADER — Top bar (verde escuro, igual minitop original)
────────────────────────────────────────────────────────────── */
#header-topbar {
  background: var(--green-900);
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
}

.topbar-text {
  font-size: 0.70rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.topbar-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: middle;
  animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Header Principal (branco, igual ao .top original) ────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header-main);
  height: var(--header-main-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-300);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-900);
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--orange-500);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--dark-500);
  letter-spacing: 0.04em;
}

/* ── Sacola FAB ───────────────────────────────────────────── */
#cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 200;
  width: var(--cart-btn-size);
  height: var(--cart-btn-size);
  border-radius: var(--radius-full);
  background: var(--orange-500);
  box-shadow: 0 4px 18px rgba(255,84,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

#cart-fab:hover {
  background: var(--orange-600);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,84,0,0.55);
}

#cart-fab:active {
  transform: scale(0.94);
}

#cart-fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--dark-900);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  transform: scale(0);
  transition: transform var(--transition-base);
}

#cart-count.visible {
  transform: scale(1);
}

/* ────────────────────────────────────────────────────────────
   TAB BAR — idêntica ao .tv-infinite-menu do original
────────────────────────────────────────────────────────────── */
#tab-nav {
  position: sticky;
  top: var(--header-main-h);
  z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: var(--shadow-sm);
}

#tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: none;
  padding: 0 var(--space-lg);
  height: var(--tabbar-h);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--dark-500);
  border-bottom: 3px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn .tab-icon { font-size: 0.95rem; }

.tab-btn:hover {
  color: var(--dark-900);
  background: rgba(0,0,0,0.03);
}

.tab-btn.active {
  color: var(--orange-500);
  border-bottom-color: var(--orange-500);
}

/* ────────────────────────────────────────────────────────────
   MAIN CONTENT
────────────────────────────────────────────────────────────── */
#main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: calc(var(--cart-btn-size) + 3.5rem);
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--orange-500);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-icon { font-size: 1.3rem; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-900);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

/* ── Info Banner (avarias) ────────────────────────────────── */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: #fff8f5;
  border: 1px solid rgba(255,84,0,0.25);
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.80rem;
  color: var(--dark-700);
  line-height: 1.55;
}

.info-banner .banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ────────────────────────────────────────────────────────────
   PRODUCT CARDS — GRID
────────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ── Card ─────────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

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

.product-card.card-avaria {
  border-left: 3px solid var(--orange-500);
  background: #fafafa;
}

.product-card.card-avaria.sem-preco {
  border-left-color: var(--warning);
}

/* ── Card Image ───────────────────────────────────────────── */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 155px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

/* ── Card Body ────────────────────────────────────────────── */
.card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--orange-100);
  color: var(--orange-500);
  width: fit-content;
  border: 1px solid rgba(255,84,0,0.20);
}

.product-card.card-avaria .card-category-badge {
  background: var(--gray-200);
  color: var(--dark-500);
  border-color: var(--border);
}

.product-card.card-diversos .card-category-badge {
  background: #e8f5ee;
  color: var(--green-900);
  border-color: rgba(1,55,40,0.20);
}

/* ── Badge de período (1h / 2h / 3h / pernoite) ──────────── */
.period-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--orange-500);
  color: #fff;
  margin-top: 2px;
  width: fit-content;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.3;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  font-weight: 300;
}

/* ── Card Footer ──────────────────────────────────────────── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-top: 1px solid var(--gray-200);
  gap: var(--space-sm);
}

.card-price { display: flex; flex-direction: column; }

.price-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-900);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-value .currency {
  font-size: 0.80rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 1px;
}

.price-unit {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-style: italic;
}

.price-avaliacao {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--warning);
}

/* ── Card Controls ────────────────────────────────────────── */
.card-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Botão Adicionar */
.btn-add {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--orange-500);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--orange-600);
  box-shadow: 0 3px 12px rgba(255,84,0,0.35);
  transform: translateY(-1px);
}

.btn-add:active { transform: scale(0.95); }

.btn-add svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Qty Controls */
.qty-controls {
  display: none;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}

.qty-controls.show { display: flex; }
.qty-controls.show ~ .btn-add { display: none; }

.btn-qty {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-900);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn-qty:hover { background: var(--gray-300); }
.btn-qty:active { background: var(--gray-400); }
.btn-qty.btn-minus { color: var(--danger); }

.qty-display {
  min-width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-900);
  user-select: none;
}

/* Avaria — tag informativo */
.avaria-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gray-200);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ────────────────────────────────────────────────────────────
   MODAL — RESUMO DO PEDIDO (sem WhatsApp)
────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(38,34,34,0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 38px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-900);
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-900);
  font-size: 1rem;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.btn-close-modal:hover { background: var(--gray-300); }

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

/* Cart Items */
#cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-200);
  animation: slideInItem 200ms ease;
}

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

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-200);
  border: 1px solid var(--border);
}

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

.cart-item-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.btn-cart-qty {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-900);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.btn-cart-qty:hover { background: var(--gray-300); border-radius: var(--radius-full); }
.btn-cart-qty.btn-minus { color: var(--danger); }

.cart-item-qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-900);
}

.cart-item-subtotal {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--orange-500);
  white-space: nowrap;
  min-width: 58px;
  text-align: right;
}

/* Empty State */
#cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  gap: var(--space-sm);
  text-align: center;
}

#cart-empty .empty-icon { font-size: 3rem; opacity: 0.35; }
#cart-empty p { font-size: 0.85rem; color: var(--text-muted); max-width: 200px; }

/* ── Modal Footer — Total simples (sem botão WhatsApp) ────── */
.modal-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  flex-shrink: 0;
  background: var(--gray-100);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.cart-total-label {
  font-size: 0.80rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.cart-total-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-500);
  letter-spacing: -0.02em;
}

/* Divisor */
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-sm) 0;
}

/* Info de total de itens */
.cart-items-summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: var(--space-xs);
}

/* Botão limpar carrinho */
.btn-clear-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 10px var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: var(--space-md);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.btn-clear-cart:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(192,57,43,0.05);
}

/* ────────────────────────────────────────────────────────────
   TOAST
────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: calc(var(--cart-btn-size) + 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-xs);
  pointer-events: none;
}

.toast {
  background: var(--dark-900);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--orange-500);
  animation: toastIn 280ms ease forwards;
}

.toast.removing {
  animation: toastOut 280ms ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(0.92); }
}

/* ────────────────────────────────────────────────────────────
   CATEGORY SECTIONS
────────────────────────────────────────────────────────────── */
.category-section { display: none; }

.category-section.active {
  display: block;
  animation: fadeSlideIn 260ms ease;
}

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

/* ── FAB pulse ────────────────────────────────────────────── */
@keyframes cartPulse {
  0%   { box-shadow: 0 4px 18px rgba(255,84,0,0.45); }
  50%  { box-shadow: 0 4px 28px rgba(255,84,0,0.75), 0 0 0 8px rgba(255,84,0,0.12); }
  100% { box-shadow: 0 4px 18px rgba(255,84,0,0.45); }
}

#cart-fab.pulse { animation: cartPulse 550ms ease; }

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .card-image-wrap { height: 170px; }
}

@media (min-width: 768px) {
  :root {
    --header-top-h:  42px;
    --header-main-h: 76px;
  }

  #main-content {
    padding: var(--space-xl);
    padding-bottom: calc(var(--cart-btn-size) + 3.5rem);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .card-image-wrap { height: 190px; }

  .modal-overlay { align-items: center; }
  .modal-sheet {
    border-radius: var(--radius-xl);
    max-height: 84vh;
  }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
