:root {
  --bg-primary: #050505;
  --bg-secondary: #0d0d0f;
  --bg-card: #141416;
  --border-color: #222225;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-color: #f97316;
  --accent-hover: #ea580c;
  --table-hover: #17171c;
  --header-bg: rgba(13, 13, 15, 0.95);
  --footer-card-bg: #0b0b0d;
}

body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-color: #f97316;
  --accent-hover: #ea580c;
  --table-hover: #f1f5f9;
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-img {
  max-height: 46px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.hero-center {
  text-align: center;
  margin: 2.5rem 0 1.5rem 0;
}

.logo-center {
  max-height: 110px;
  max-width: 280px;
  object-fit: contain;
  margin: 0 auto 1.25rem auto;
  display: block;
}

.min-purchase-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(234, 88, 12, 0.22));
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #f97316;
  text-align: center;
  padding: 0.85rem;
  border-radius: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.kpi-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.search-container {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-color);
}

.table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
}

.catalog-table th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.catalog-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-primary);
}

.catalog-table tr:hover {
  background: var(--table-hover);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-name {
  color: var(--text-primary);
  font-weight: 700;
}

.product-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.btn-add {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-add:hover {
  background: var(--accent-hover);
}

.btn-cart {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-cart-qty {
  background: #fff;
  color: var(--accent-color);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Flat Circular Social Icons Bar & Integrated Theme Toggle */
.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

/* Custom Footer Box matching image layout */
.footer-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.footer-card {
  background: var(--footer-card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

@media (max-width: 640px) {
  .footer-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: #f97316;
  fill: none;
  stroke-width: 2;
}

.footer-item-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.footer-item-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.footer-item-link {
  color: #f97316;
  text-decoration: underline;
}

.powered-by {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

.powered-by a, .powered-by span {
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.powered-by a:hover {
  color: #f97316;
}

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  color: var(--text-primary);
}

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

.category-card {
  position: relative;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.category-card-content {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #fff;
}

.category-card-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.category-card-subtitle {
  font-size: 0.85rem;
  color: #d1d5db;
}

/* Floating Pulsing WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulseWhatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.65);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

@keyframes pulseWhatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

