/* ==========================================================================
   SARAIVA AÇAÍ & PICOLÉS - DESIGN SYSTEM & STYLES
   Paleta inspirada no Banner Oficial:
   Roxo Açaí Profundo + Amarelo Dourado Solar + Toques de Morango & Creme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;700;800;900&display=swap');

:root {
  /* Cores Principais do Banner */
  --purple-950: #1b0726;
  --purple-900: #2d0a3d;
  --purple-850: #39114e;
  --purple-800: #491763;
  --purple-700: #5f1d80;
  --purple-600: #7b27a3;
  --purple-100: #f3e8f8;
  --purple-50: #faf4fc;

  /* Amarelo Ouro / Mostarda Vibrante do Banner */
  --gold-600: #d69000;
  --gold-500: #e8a401;
  --gold-400: #f5b700;
  --gold-300: #ffc933;
  --gold-100: #fff5db;
  --gold-50: #fffdf5;

  /* Cores de Destaque */
  --red-500: #e63946;
  --red-600: #d62839;
  --green-500: #25d366;
  --green-600: #1faa54;
  --green-50: #e8f9ee;

  /* Neutros e Superfícies */
  --text-main: #24142e;
  --text-muted: #6e6475;
  --text-light: #ffffff;
  --surface-white: #ffffff;
  --surface-card: #ffffff;
  --surface-ground: #f8f4fa;
  --border-light: rgba(95, 29, 128, 0.1);
  --border-focus: #f5b700;

  /* Sombras e Efeitos */
  --shadow-sm: 0 2px 8px rgba(45, 10, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 10, 61, 0.09);
  --shadow-lg: 0 16px 40px rgba(45, 10, 61, 0.15);
  --shadow-glow: 0 0 25px rgba(232, 164, 1, 0.45);
  --shadow-purple-glow: 0 0 25px rgba(95, 29, 128, 0.35);

  /* Dimensões e Raios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --header-height: 72px;

  /* Fontes */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-ground);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Scrollbar Bonita */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--purple-50);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */

.top-announcement {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
  color: var(--purple-950);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 40;
}

.top-announcement span.badge {
  background: var(--purple-900);
  color: var(--gold-400);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 10, 61, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 12px rgba(245, 183, 0, 0.4);
  transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: rotate(-5deg) scale(1.05);
}

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

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--surface-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--gold-400);
}

.brand-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1b8e0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-500);
  box-shadow: 0 0 8px var(--green-500);
  animation: pulseDot 2s infinite;
}

.status-dot.closed {
  background-color: var(--red-500);
  box-shadow: 0 0 8px var(--red-500);
  animation: none;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header-contact {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-header-contact:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--purple-950);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(232, 164, 1, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 164, 1, 0.6);
  filter: brightness(1.05);
}

.cart-toggle-btn:active {
  transform: scale(0.96);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--purple-900);
  color: var(--gold-400);
  border: 2px solid var(--gold-400);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
  transform: scale(1.35);
}

.cart-total-badge {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--purple-950);
  letter-spacing: -0.3px;
}

/* ==========================================================================
   HERO BANNER & PROMO CAROUSEL
   ========================================================================== */

.hero-section {
  background: linear-gradient(145deg, var(--purple-900) 0%, var(--purple-800) 50%, var(--purple-950) 100%);
  color: var(--surface-white);
  padding: 32px 16px 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 164, 1, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(123, 39, 163, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 183, 0, 0.15);
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title span.highlight-gold {
  color: var(--gold-400);
  text-shadow: 0 0 20px rgba(245, 183, 0, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: #dfd4e6;
  max-width: 540px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1e6f7;
}

.hero-feature-item svg {
  color: var(--gold-400);
}

/* Banner Especial do Anúncio (Novidades da Loja) */
.hero-promo-card {
  background: linear-gradient(135deg, rgba(57, 17, 78, 0.95), rgba(45, 10, 61, 0.95));
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 183, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.promo-badge-tag {
  position: absolute;
  top: 14px;
  right: -32px;
  background: var(--red-500);
  color: white;
  padding: 5px 36px;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.promo-header-tag {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.promo-mini-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 183, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.promo-mini-item:hover {
  background: rgba(245, 183, 0, 0.12);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.promo-mini-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.promo-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--surface-white);
  line-height: 1.2;
}

.promo-mini-price {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-400);
}

.promo-mini-price del {
  color: #b59ec2;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 4px;
}

.promo-banner-footer {
  background: rgba(245, 183, 0, 0.1);
  border: 1px dashed var(--gold-400);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BARRA DE PESQUISA & CATEGORIAS (FILTROS)
   ========================================================================== */

.filter-section {
  position: sticky;
  top: var(--header-height);
  z-index: 35;
  background: var(--surface-ground);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-700);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-main);
  outline: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.categories-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.categories-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  white-space: nowrap;
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  border-color: var(--purple-700);
  color: var(--purple-800);
  transform: translateY(-1px);
}

.category-pill.active {
  background: var(--purple-900);
  color: var(--gold-400);
  border-color: var(--gold-500);
  box-shadow: 0 4px 12px rgba(45, 10, 61, 0.25);
}

/* ==========================================================================
   CATÁLOGO DE PRODUTOS
   ========================================================================== */

.catalog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  flex: 1;
}

.section-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-left: 4px solid var(--gold-500);
  padding-left: 12px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple-900);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Card de Produto */
.product-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(95, 29, 128, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--purple-50);
}

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

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.badge-promo {
  background: var(--red-500);
  color: var(--surface-white);
}

.badge-novidade {
  background: var(--gold-500);
  color: var(--purple-950);
}

.badge-destaque {
  background: var(--purple-900);
  color: var(--gold-400);
  border: 1px solid var(--gold-400);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple-950);
  line-height: 1.25;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(95, 29, 128, 0.1);
}

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

.old-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.current-price {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--purple-900);
  letter-spacing: -0.5px;
}

.btn-add-product {
  background: var(--purple-900);
  color: var(--gold-400);
  border: 1.5px solid var(--gold-500);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-add-product:hover {
  background: var(--gold-500);
  color: var(--purple-950);
  border-color: var(--gold-600);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(232, 164, 1, 0.35);
}

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

/* ==========================================================================
   MODAL DE DETALHES & PERSONALIZAÇÃO (AÇAÍ & PICOLÉ)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 7, 38, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-400);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--purple-900);
}

.modal-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--red-500);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-product-title {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple-950);
}

.modal-product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.modal-product-price {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--purple-900);
}

.modal-product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grupos de Customização */
.custom-group {
  background: var(--purple-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-group-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--purple-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-group-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-400);
  color: var(--purple-950);
}

.custom-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.custom-option-label:hover {
  border-color: var(--purple-700);
}

.custom-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-option-price {
  font-weight: 700;
  color: var(--purple-800);
  font-size: 0.85rem;
}

.obs-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  resize: vertical;
  outline: none;
}

.obs-textarea:focus {
  border-color: var(--purple-700);
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--surface-ground);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--gold-300);
}

.qty-val {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple-950);
}

.btn-confirm-add {
  flex: 1;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--purple-950);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(232, 164, 1, 0.4);
  transition: all 0.2s;
}

.btn-confirm-add:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ==========================================================================
   DRAWER DA SACOLA (CARRINHO LATERAL / CHECKOUT)
   ========================================================================== */

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 7, 38, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: var(--surface-white);
  z-index: 130;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  background: var(--purple-900);
  color: var(--surface-white);
  border-bottom: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-400);
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-close-btn:hover {
  background: var(--red-500);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sacola Vazia */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 14px;
}

.cart-empty-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.cart-empty-title {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--purple-900);
}

.cart-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
}

/* Itens da Sacola */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  background: var(--purple-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 12px;
  position: relative;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--purple-950);
  line-height: 1.2;
}

.cart-item-customizations {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-price {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple-900);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--surface-white);
  height: 28px;
}

.cart-item-qty button {
  background: none;
  border: none;
  width: 26px;
  height: 100%;
  font-weight: 800;
  cursor: pointer;
  color: var(--purple-900);
}

.cart-item-qty span {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: var(--red-500);
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cart-item-remove-btn:hover {
  opacity: 1;
}

/* Dados do Pedido (Checkout Form) */
.checkout-section {
  background: var(--surface-ground);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-subtitle {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--purple-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface-white);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.order-type-btn {
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.order-type-btn.active {
  background: var(--purple-900);
  color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--surface-white);
  outline: none;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--purple-700);
}

.address-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pickup-notice {
  background: var(--gold-100);
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.82rem;
  color: var(--purple-950);
  line-height: 1.3;
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.payment-label:hover {
  border-color: var(--purple-700);
}

.payment-label.selected {
  border-color: var(--purple-700);
  background: var(--purple-50);
}

/* Footer do Carrinho / Totais */
.cart-drawer-footer {
  padding: 16px 20px;
  background: var(--surface-white);
  border-top: 2px solid var(--purple-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--purple-950);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

.btn-send-whatsapp {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--surface-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-send-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  filter: brightness(1.05);
}

.btn-send-whatsapp:active {
  transform: scale(0.97);
}

/* ==========================================================================
   BARRA FLUTUANTE INFERIOR (MOBILE CART PILL)
   ========================================================================== */

.floating-cart-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 45;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-800));
  border: 2px solid var(--gold-400);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(232, 164, 1, 0.35);
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-cart-badge {
  background: var(--gold-500);
  color: var(--purple-950);
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-label {
  color: var(--surface-white);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
}

.floating-cart-price {
  color: var(--gold-400);
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER & INFORMAÇÕES DA LOJA
   ========================================================================== */

.main-footer {
  background: var(--purple-950);
  color: #dfd4e6;
  border-top: 3px solid var(--gold-500);
  padding: 40px 16px 80px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--surface-white);
}

.footer-brand-title span {
  color: var(--gold-400);
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-info-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-info-item a {
  color: #f1e6f7;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info-item a:hover {
  color: var(--gold-400);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--gold-500);
  color: var(--purple-950);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: #9f8ea8;
}

/* ==========================================================================
   TOASTS DE NOTIFICAÇÃO
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--purple-900);
  color: var(--surface-white);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  color: var(--gold-400);
  font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
  }
  .btn-header-contact {
    display: inline-flex;
  }
  .filter-container {
    flex-direction: row;
    align-items: center;
  }
  .search-box-wrapper {
    max-width: 320px;
  }
  .categories-pills {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-name {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-status-tag {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cart-toggle-btn {
    padding: 8px 10px;
    gap: 4px;
    flex-shrink: 0;
  }
  .cart-text-btn,
  .cart-total-badge {
    display: none;
  }
  .promo-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .promo-grid::-webkit-scrollbar {
    display: none;
  }
  .promo-mini-item {
    min-width: 110px;
    flex: 1 0 110px;
    scroll-snap-align: start;
    padding: 8px 6px;
  }
  .promo-mini-img {
    width: 52px;
    height: 52px;
  }
  .promo-mini-title {
    font-size: 0.75rem;
  }
  .promo-mini-price {
    font-size: 0.82rem;
  }
  .promo-badge-tag {
    font-size: 0.65rem;
    padding: 3px 26px;
    top: 10px;
    right: -28px;
  }
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-section {
    padding: 20px 14px 28px;
  }
  .modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }
  .modal-header-img-wrap {
    height: 160px;
  }
  .cart-drawer {
    max-width: 100%;
  }
}
