/* ============================================================
   style.css — Identidade Visual | Silvas Batalha
   Mobile-First | Vanilla CSS | Cross-browser compatible
   ============================================================ */

/* ── IMPORTS ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,500&display=swap');

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  /* ── PALETA PRIMÁRIA — Violeta/Púrpura (cor do texto da logo) ── */
  --purple:        #832FA0;
  --purple-dark:   #641878;
  --purple-deeper: #4A0F5C;
  --purple-light:  #B06BC8;
  --purple-pale:   #F3E4FA;
  --purple-bg:     #FBF3FE;

  /* ── PALETA SECUNDÁRIA — Rosa Suave (fundo da logo) ── */
  --pink:          #F5BFCE;
  --pink-dark:     #E8789A;
  --pink-darker:   #C94E72;
  --pink-light:    #FAD9E6;
  --pink-pale:     #FEF3F7;

  /* ── CARVÃO — Punho da logo ── */
  --charcoal:      #2D2D2D;
  --charcoal-mid:  #4A4A4A;

  /* ── DOTS DE DESTAQUE — Pontinhos coloridos da logo ── */
  --dot-green:     #4CAF50;
  --dot-red:       #E53935;
  --dot-blue:      #1E88E5;
  --dot-yellow:    #FFC107;
  --dot-purple:    #8E24AA;

  /* ── NEUTROS ── */
  --white:         #FFFFFF;
  --gray-50:       #FAFAFA;
  --gray-100:      #F5F5F5;
  --gray-200:      #EEEEEE;
  --gray-300:      #E0E0E0;
  --gray-400:      #BDBDBD;
  --gray-500:      #9E9E9E;
  --gray-600:      #757575;
  --gray-700:      #616161;
  --gray-800:      #424242;
  --gray-900:      #212121;

  /* ── TIPOGRAFIA ── */
  --font-body:     'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;

  /* ── ESPAÇAMENTO ── */
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  /* ── SOMBRAS ── */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-purple: 0 4px 20px rgba(131,47,160,0.30);
  --shadow-pink:   0 4px 20px rgba(245,191,206,0.50);

  /* ── TRANSIÇÕES ── */
  --transition:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:  0.15s ease;

  /* ── LAYOUT ── */
  --header-h:      70px;
  --container:     1280px;
}

/* ── RESET MODERNO ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--purple-bg);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

/* ── SCROLLBAR CUSTOM ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: var(--radius-full);
}

/* ── UTILITÁRIOS ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(131,47,160,0.15);
  border-bottom: 2px solid var(--purple-pale);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-purple);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-dark);
  letter-spacing: -0.02em;
}

.logo-text span:last-child {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Search */
.search-wrapper {
  flex: 1;
  max-width: 480px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 6px 0 16px;
  transition: border-color var(--transition), background var(--transition);
  height: 44px;
}

.search-box:focus-within {
  background: var(--white);
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(131,47,160,0.12);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-800);
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition-fast);
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--purple-dark);
  transform: scale(1.05);
}

/* Cart Button */
.cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  min-width: 44px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-purple);
  flex-shrink: 0;
}

.cart-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(131,47,160,0.45);
}

.cart-trigger:active {
  transform: translateY(0);
}

.cart-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.cart-label {
  display: none;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink-dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  transition: transform var(--transition);
}

.cart-badge.bump {
  animation: badge-bump 0.3s ease;
}

@keyframes badge-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Cart Total in header */
.cart-total-display {
  display: none;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ── HERO BANNER ─────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(140deg, var(--purple-deeper) 0%, var(--purple-dark) 30%, var(--purple) 60%, var(--pink-dark) 100%);
  padding: 36px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section::after {
  content: '✦ ✦ ✦';
  position: absolute;
  bottom: 12px;
  right: 24px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 6px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-title em {
  font-style: italic;
  color: var(--pink-light);
}

.hero-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ── FILTROS DE CATEGORIAS ───────────────────────────────── */
.filters-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  padding: 0;
}

.filters-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  min-height: 36px;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  background: var(--purple-pale);
  color: var(--purple-dark);
  border-color: var(--purple-light);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-purple);
  font-weight: 600;
}

.filter-btn .filter-emoji {
  font-size: 1rem;
  line-height: 1;
}

/* ── RESULTS INFO ────────────────────────────────────────── */
.results-info-bar {
  padding: 14px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.results-count strong {
  color: var(--purple-dark);
  font-weight: 600;
}

.category-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gray-800);
  font-weight: 600;
}

/* ── VITRINE DE PRODUTOS ─────────────────────────────────── */
.catalog-section {
  padding: 8px 16px 80px;
}

.category-group {
  margin-bottom: 32px;
}

.category-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple-pale);
}

.category-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gray-800);
  font-weight: 600;
}

.category-group-title .cat-emoji {
  font-size: 1.4rem;
}

.category-group-count {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-weight: 400;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
}

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

.product-card:active {
  transform: translateY(-2px);
}

/* Product Image */
.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}

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

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

/* Personalizável badge */
.badge-custom {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-purple);
  pointer-events: none;
}

/* Product Body */
.product-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-category {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-custom-note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--purple-dark);
  font-weight: 500;
}

/* Product Footer */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--gray-100);
  gap: 8px;
}

.product-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  line-height: 1;
}

.product-price .currency {
  font-size: 0.7rem;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  min-height: 36px;
  min-width: 44px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(131,47,160,0.3);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-deeper));
  transform: scale(1.04);
  box-shadow: var(--shadow-purple);
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--gray-400);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
}

/* ── FLOATING CART BUTTON (Mobile) ───────────────────────── */
.fab-cart {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 95;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 28px rgba(131,47,160,0.5);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.fab-cart.visible {
  display: flex;
}

.fab-cart:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 36px rgba(131,47,160,0.6);
}

.fab-cart .fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--pink-dark);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* ── MODAL BASE ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 15, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition);
  overflow: hidden;
}

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

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gray-900);
}

.modal-title .modal-icon {
  font-size: 1.4rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--purple-pale);
  color: var(--purple-dark);
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Modal Footer */
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
  background: var(--white);
}

/* ── CART ITEMS ───────────────────────────────────────────── */
.cart-empty-msg {
  text-align: center;
  padding: 40px 16px;
  color: var(--gray-400);
}

.cart-empty-msg .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.cart-empty-msg p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px solid var(--gray-100);
  animation: slideIn 0.2s ease;
}

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

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

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

.cart-item-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--rose-dark);
  font-weight: 600;
  margin-top: 2px;
}

.cart-item-subtotal {
  font-size: 0.7rem;
  color: var(--gray-400);
}

/* Quantity Controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.qty-btn.decrease {
  background: var(--gray-200);
  color: var(--gray-600);
}

.qty-btn.decrease:hover {
  background: var(--purple-pale);
  color: var(--purple-dark);
}

.qty-btn.increase {
  background: var(--purple-pale);
  color: var(--purple-dark);
}

.qty-btn.increase:hover {
  background: var(--purple);
  color: var(--white);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  min-width: 20px;
  text-align: center;
}

/* Cart Summary */
.cart-summary {
  background: var(--purple-pale);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.cart-summary-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(131,47,160,0.2);
}

.cart-total-label {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1rem;
}

.cart-total-value {
  font-weight: 800;
  color: var(--purple-dark);
  font-size: 1.2rem;
}

/* ── FORMULÁRIO DE PEDIDO ────────────────────────────────── */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: -6px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

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

.form-control {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(131,47,160,0.12);
}

.form-control.error {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.form-error-msg {
  font-size: 0.75rem;
  color: #E53935;
  display: none;
}

.form-error-msg.show {
  display: block;
}

/* Radio Group (Entrega) */
.radio-group {
  display: flex;
  gap: 10px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  min-height: 70px;
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.radio-label .radio-emoji {
  font-size: 1.4rem;
}

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--purple);
  background: var(--purple-pale);
  color: var(--purple-dark);
  font-weight: 600;
}

/* Address field (conditional) */
.address-group {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.address-group.visible {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

/* ── WHATSAPP BUTTON ─────────────────────────────────────── */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  min-height: 54px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  letter-spacing: 0.02em;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20c15c, #0d7a6e);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

.whatsapp-btn .wa-icon {
  font-size: 1.4rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  text-align: center;
  padding: 32px 16px;
  margin-top: 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.8rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-divider {
  height: 1px;
  background: var(--gray-800);
  margin: 20px 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ── TOAST NOTIFICATION ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 96px;
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: 300px;
  pointer-events: all;
  animation: toastIn 0.3s ease forwards;
  border-left: 3px solid var(--purple);
}

.toast.success { border-left-color: #25D366; }
.toast.error { border-left-color: #E53935; }

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

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

.toast.leaving {
  animation: toastOut 0.3s ease forwards;
}

/* ── LOADING SKELETON ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 96px;
  left: 20px;
  z-index: 95;
  background: var(--white);
  color: var(--purple-dark);
  border: 2px solid var(--purple-pale);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
}

.back-to-top.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.back-to-top:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ── RESPONSIVE — TABLET (≥600px) ───────────────────────── */
@media (min-width: 600px) {
  .logo-text span:first-child {
    font-size: 1.25rem;
  }

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

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cart-label {
    display: inline;
  }

  .cart-total-display {
    display: block;
  }

  .fab-cart {
    display: none !important;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-sheet {
    border-radius: var(--radius-xl);
    max-height: 90vh;
    margin: 16px;
    max-width: 560px;
  }
}

/* ── RESPONSIVE — DESKTOP (≥1024px) ─────────────────────── */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

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

  .hero-section {
    padding: 52px 32px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .catalog-section {
    padding: 16px 32px 80px;
  }

  .results-info-bar {
    padding: 16px 32px 8px;
  }

  .filters-section {
    padding: 0 16px;
  }

  .product-body {
    padding: 14px;
  }

  .product-footer {
    padding: 12px 14px;
  }
}

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