/* ==========================================================================
   Janne Biscuit - Estilo Visual Premium & Afetivo
   ========================================================================== */

:root {
  /* Paleta de Cores Afetiva & Artesanal */
  --primary: #d46a86;
  --primary-hover: #c05270;
  --primary-light: #fff0f4;
  --primary-soft: #fce4ec;
  
  --secondary: #6ea4bf;
  --secondary-hover: #588da8;
  --secondary-light: #eef6f9;

  --accent-gold: #d4a373;
  --accent-gold-soft: #faedcd;

  --success: #25d366; /* Tom WhatsApp */
  --success-dark: #1ea952;
  --success-light: #e8fbf0;

  --danger: #e63946;
  --danger-light: #ffebee;

  /* Neutros e Superfícies */
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #fcf9f6;

  --text-main: #343a40;
  --text-muted: #6c757d;
  --text-light: #9aa0a6;

  --border-light: #fae1e7;
  --border-subtle: #eee7df;

  /* Sombras Delicadas */
  --shadow-sm: 0 2px 8px rgba(212, 106, 134, 0.08);
  --shadow-md: 0 8px 24px rgba(212, 106, 134, 0.12);
  --shadow-lg: 0 16px 36px rgba(212, 106, 134, 0.16);
  --shadow-float: 0 20px 45px rgba(52, 58, 64, 0.18);

  /* Bordas Arredondadas */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Fontes */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Comfortaa', cursive, sans-serif;
  --font-serif: 'Playfair Display', serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Barra de Avisos (Top Bar)
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #d46a86 0%, #e28fa2 50%, #6ea4bf 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Cabeçalho Principal (Sticky)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(212, 106, 134, 0.06);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #d46a86, #fce4ec, #6ea4bf);
  box-shadow: 0 4px 12px rgba(212, 106, 134, 0.25);
  transition: transform var(--transition-bounce);
}

.brand-link:hover .brand-avatar-wrapper {
  transform: scale(1.06) rotate(3deg);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
}

.sparkle-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: #2b2d42;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(45deg, #c05270, #343a40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: #ffffff;
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), #e28fa2);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(212, 106, 134, 0.3);
  transition: all var(--transition-bounce);
}

.btn-cart:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(212, 106, 134, 0.45);
}

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

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #2b2d42;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

.cart-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.cart-label {
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

.cart-total-text {
  font-size: 0.92rem;
  font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 40px 0 30px;
  background: radial-gradient(circle at top left, #fff1f5 0%, #faf8f5 60%, #f0f7fa 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  line-height: 1.25;
  color: #2b2d42;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 22px;
}

.hero-highlights {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  box-shadow: var(--shadow-sm);
}

.hero-card-preview {
  display: flex;
  justify-content: center;
}

.artisan-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  transform: rotate(-1deg);
  transition: transform var(--transition-normal);
}

.artisan-badge-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.artisan-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-soft);
}

.artisan-info h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #2b2d42;
}

.artisan-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2a9d8f;
  background: #e6f7f5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-online .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Toolbar do Catálogo (Filtros, Busca & Ordenação)
   ========================================================================== */
.catalog-section {
  padding: 35px 20px 60px;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.search-box input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 106, 134, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
}

.btn-clear-search:hover {
  color: var(--danger);
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.category-chip {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

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

.category-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 106, 134, 0.28);
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-wrapper select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

/* ==========================================================================
   Grid de Cards dos Produtos
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  background: #fffafa;
  overflow: hidden;
  cursor: pointer;
}

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

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}

.badge-encomenda {
  color: #e09f3e;
}

.badge-novidade {
  color: #6ea4bf;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: #2b2d42;
  line-height: 1.3;
  margin-bottom: 8px;
  cursor: pointer;
}

.card-title:hover {
  color: var(--primary);
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.price-prefix {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b2d42;
  letter-spacing: -0.3px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 106, 134, 0.28);
}

.btn-add-cart.added {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

/* ==========================================================================
   Estado Vazio (Empty State)
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  max-width: 500px;
  margin: 30px auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #2b2d42;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   Gaveta Lateral da Sacola (Cart Drawer)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 45, 66, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #ffffff;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-float);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffafa;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-title-group h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #2b2d42;
  line-height: 1.1;
}

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

.btn-close-drawer {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-close-drawer:hover {
  background: #f1f3f5;
  color: var(--danger);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.cart-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.cart-item-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b2d42;
  margin-bottom: 2px;
}

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

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

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.qty-counter button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #faf8f5;
}

.qty-counter button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.qty-counter span {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-subtotal {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2b2d42;
}

.btn-remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px;
}

.btn-remove-item:hover {
  color: var(--danger);
}

/* Sacola Vazia */
.cart-empty-view {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.empty-cart-illustration {
  font-size: 3.5rem;
  margin-bottom: 14px;
}

.cart-empty-view h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: #2b2d42;
  margin-bottom: 6px;
}

.cart-empty-view p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 20px;
}

/* Rodapé / Formulário da Sacola */
.drawer-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 20px 24px 24px;
  max-height: 52vh;
  overflow-y: auto;
}

.cart-summary-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-line.total-line {
  font-size: 1.15rem;
  color: #2b2d42;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.summary-line.total-line strong {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Formulário do Checkout */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2b2d42;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.radio-toggle-group {
  display: flex;
  gap: 8px;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.radio-pill input {
  display: none;
}

.radio-pill:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Botão Enviar WhatsApp */
.btn-whatsapp-order {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  font-size: 1rem;
  transition: all var(--transition-bounce);
  width: 100%;
}

.btn-whatsapp-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.wa-btn-icon {
  display: flex;
  align-items: center;
}

.wa-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.wa-btn-text strong {
  font-size: 1.05rem;
}

.wa-btn-text small {
  font-size: 0.74rem;
  opacity: 0.9;
}

/* ==========================================================================
   Modais Genéricos (Detalhes e Admin)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-light);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #f1f3f5;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* Modal Detalhes do Produto */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.modal-image-wrapper {
  background: #faf8f5;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-details {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #2b2d42;
  margin-top: 8px;
  margin-bottom: 4px;
}

.modal-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-price-row {
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.modal-price {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.qty-picker .qty-btn {
  width: 40px;
  height: 44px;
  font-size: 1.1rem;
  background: #f8f9fa;
  color: #333;
}

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

.qty-picker input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
}

.btn-add-modal {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Modal do Painel da Janne (Admin)
   ========================================================================== */
.modal-admin-card {
  max-width: 820px;
}

.admin-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffdfd;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-icon {
  font-size: 1.8rem;
  background: var(--primary-light);
  padding: 8px;
  border-radius: 50%;
}

.admin-title-wrap h2 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #2b2d42;
}

.admin-title-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: #faf8f5;
  padding: 0 20px;
  gap: 8px;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--primary);
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #ffffff;
}

.admin-body {
  padding: 24px 28px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Upload de Imagem no Admin */
.image-upload-container {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-card-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-file-upload:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-file-upload input {
  display: none;
}

.or-separator {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.upload-options input[type="url"] {
  flex: 1;
  min-width: 200px;
}

.sample-images-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-images-bar small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sample-thumbs {
  display: flex;
  gap: 10px;
}

.sample-thumbs img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.sample-thumbs img:hover {
  border-color: var(--primary);
  transform: scale(1.08);
}

.image-preview-wrapper {
  position: relative;
  display: none;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.image-preview-wrapper.visible {
  display: block;
}

.image-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-img {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* Tabela de Produtos no Admin */
.admin-products-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  gap: 14px;
}

.row-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.row-info {
  flex: 1;
}

.row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2b2d42;
}

.row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.row-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-right: 10px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.btn-row-edit {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-row-edit:hover {
  background: var(--secondary);
  color: #ffffff;
}

.btn-row-delete {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-light);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-row-delete:hover {
  background: var(--danger);
  color: #ffffff;
}

/* Configurações Tab */
.settings-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.settings-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: #2b2d42;
  margin-bottom: 6px;
}

.settings-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--text-light);
}

.btn-danger-outline {
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-danger-outline:hover {
  background: var(--danger);
  color: #ffffff;
}

/* ==========================================================================
   Botões Globais & Toast
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 106, 134, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 106, 134, 0.4);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #2b2d42;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  background: #1b4332;
  border-left: 4px solid var(--success);
}

.toast.info {
  background: #2b2d42;
  border-left: 4px solid var(--primary);
}

@keyframes slideToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-soft);
}

.footer-brand-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: #2b2d42;
}

.footer-logo p {
  font-size: 0.8rem;
  color: var(--primary);
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #2b2d42;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-footer-wa:hover {
  background: #1ea952;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #faf8f5;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image-wrapper {
    min-height: 240px;
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .announcement-bar {
    text-align: center;
    font-size: 0.78rem;
  }
  
  .delivery-badge {
    margin: 0 auto;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .action-text {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-cart {
    padding: 8px 12px;
  }

  .cart-label {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
