/* ══════════════════════════════════════════════════════════════
   Pewhat — Design System & Global Styles
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Colors — Minimalismo Comercial */
  --primary: #25D366;
  /* WhatsApp green — CTA principal */
  --primary-dark: #128C7E;
  /* WhatsApp dark green */
  --primary-light: #34E879;
  /* Light green for hover/accents */
  --primary-glow: rgba(37, 211, 102, 0.2);
  --accent: #25D366;
  /* Accent = primary (WhatsApp green) */
  --accent-dark: #1EBE5A;
  --success: #2ECC71;
  --warning: #F39C12;

  /* Light theme */
  --bg-primary: #F8F9FA;
  /* Very light gray background */
  --bg-secondary: #FFFFFF;
  /* Pure white */
  --bg-card: #FFFFFF;
  /* White cards */
  --bg-card-hover: #F0F2F5;
  /* Subtle hover */
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-modal: rgba(0, 0, 0, 0.5);

  /* Text — charcoal, not pure black */
  --text-primary: #2D3142;
  /* Dark charcoal */
  --text-secondary: #5C6378;
  /* Medium gray */
  --text-muted: #8E94A6;
  /* Light gray */

  /* Borders */
  --border: #E2E6ED;
  --border-hover: #CBD0DA;

  /* Shadows — soft and subtle */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 16px rgba(37, 211, 102, 0.15);

  /* Spacing */
  --gap: 1rem;
  --radius: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

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

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

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

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

/* ── Utility Classes ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 30px var(--primary-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}

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

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(37, 211, 102, 0.08);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ── Header / Navbar ──────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ── Search Bar ────────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.search-results.active {
  display: block;
  animation: slideDown 0.2s ease;
}

.search-result-item {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-item .icon {
  font-size: 1.2rem;
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gap);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero .search-wrapper {
  max-width: 550px;
  margin: 0 auto;
}

.hero .search-input {
  padding: 1rem 1.2rem 1rem 3.2rem;
  font-size: 1.1rem;
}

/* ── CTA Bot Section ──────────────────────────────────────── */
.cta-bot {
  padding: 3rem 0;
  position: relative;
}

.cta-bot-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-bot-content::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.cta-bot-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-bot-text h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.cta-bot-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 450px;
}

.cta-bot-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.cta-bot-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--primary-glow);
}

.cta-bot-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.qr-frame {
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.qr-frame:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.qr-frame img {
  border-radius: 8px;
}

.qr-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .cta-bot-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cta-bot-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-bot-btn {
    width: 100%;
    justify-content: center;
  }

  .qr-frame img {
    width: 160px;
    height: 160px;
  }
}

/* ── Features Section ──────────────────────────────────────── */
.features {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem var(--gap);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   Catalog Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Catalog Header ────────────────────────────────────────── */
.catalog-header {
  padding: 1.5rem 0;
}

.catalog-header .business-name {
  font-size: 1.8rem;
  font-weight: 800;
}

.catalog-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.catalog-controls .search-wrapper {
  flex: 1;
  min-width: 200px;
}

.category-filter {
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  min-width: 180px;
  transition: border-color var(--transition);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.category-filter:focus {
  outline: none;
  border-color: var(--primary);
}

.category-filter option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ── Product Grid ──────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

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

.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-secondary);
  transition: transform var(--transition);
}

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

.product-image-wrapper {
  overflow: hidden;
  position: relative;
}

.product-card-id {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2D3142;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card-body {
  padding: 1rem;
}

.product-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-category {
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.product-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── Product Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gap);
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent);
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.modal-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-image-nav:hover {
  background: var(--primary);
}

.modal-image-prev {
  left: 0.5rem;
}

.modal-image-next {
  right: 0.5rem;
}

.modal-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background var(--transition);
}

.modal-dot.active {
  background: white;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body h2 {
  margin-bottom: 0.3rem;
}

.modal-category-badge {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  color: var(--primary-light);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-video-links {
  margin-bottom: 1.5rem;
}

.modal-video-links h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.modal-video-links a {
  display: block;
  color: var(--primary-light);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  word-break: break-all;
}

.modal-video-links a:hover {
  color: var(--primary);
}

.modal-product-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Cart Floating Button ──────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 30px var(--primary-glow);
  cursor: pointer;
  border: none;
  z-index: 400;
  transition: all var(--transition);
}

.cart-fab:hover {
  transform: scale(1.1);
}

.cart-fab .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-fab.hidden {
  display: none;
}

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: 600;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border);
  z-index: 700;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.3rem;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition);
}

.cart-drawer-close:hover {
  color: var(--accent);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.cart-empty .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-secondary);
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 0.2rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.cart-qty-btn:hover {
  border-color: var(--primary);
  background: rgba(37, 211, 102, 0.1);
}

.cart-qty {
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--accent);
}

/* ── Cart Form ─────────────────────────────────────────────── */
.cart-form {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-form h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

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

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

.whatsapp-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Loading / Empty States ────────────────────────────────── */
.loading-container {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-card-image {
    height: 160px;
  }

  .modal-image-container {
    height: 250px;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem var(--gap);
  }

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

  .catalog-controls {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-card-image {
    height: 140px;
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-card-name {
    font-size: 0.9rem;
  }

  .product-card-desc {
    display: none;
  }

  .cart-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}