/* Custom Variables & Design Tokens */
:root {
  /* Common variables */
  --font-main: 'Poppins', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Primary Accent: Premium Cherry Red */
  --primary-color: #be0c2a;
  --primary-hover: #9c0a22;
  --primary-light: rgba(190, 12, 42, 0.1);
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd58;
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f5f7fa;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-topbar: #1e293b;
  --border-color: #e2e8f0;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-primary: #ffffff;
  
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

/* Dark Theme Variables (Default) */
body.dark-theme {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-topbar: #020617;
  --border-color: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-on-primary: #ffffff;
  
  --glass-blur: blur(12px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.btn-icon:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
  background-color: var(--bg-topbar);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.delivery-badge {
  background-color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  padding: 12px 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

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

.btn-whatsapp-header {
  background-color: var(--whatsapp-color);
  color: white;
}

.btn-whatsapp-header:hover {
  background-color: var(--whatsapp-hover);
}

/* Theme Icons Visibility */
.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; }
.dark-theme .sun-icon { display: block; }
.dark-theme .moon-icon { display: none; }

.light-theme .logo-light-version {
  display: block !important;
  filter: invert(1); /* Invertir blanco a negro de manera limpia preservando transparencias y recortes internos */
}
.light-theme .logo-dark-version {
  display: none !important;
}
.dark-theme .logo-light-version {
  display: block !important;
}
.dark-theme .logo-dark-version {
  display: none !important;
}

/* Hero Section (Static & Conversion Optimized) */
.hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(20, 20, 20, 0.8)), url('https://racionesrocha.com/wp-content/uploads/2026/04/2026-04-02-MANANA-WEB-1525x642.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 24px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05);
  animation: pulse 2s infinite ease-in-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  max-width: 850px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-main);
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

.hero-actions .btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.hero-actions .btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
}

.hero-actions .btn-secondary {
  background-color: #25d366;
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.hero-actions .btn-secondary:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}


/* Catalog Section */
.catalog-section {
  padding: 60px 20px;
}

.main-title {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

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

/* Search and Filters */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

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

.search-icon-img {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter 0.3s ease;
  mix-blend-mode: multiply; /* Hace transparente el fondo blanco del isotipo en el modo claro */
}

.dark-theme .search-icon-img {
  filter: invert(1); /* Invierte el isotipo negro a blanco y el fondo blanco a negro */
  mix-blend-mode: screen; /* Hace transparente el fondo negro (antes blanco) en el modo oscuro */
}

.search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--border-radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

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

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(190, 12, 42, 0.3);
}

.results-info {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  min-height: 300px;
}

.loading-state, .empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

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

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

.empty-state i {
  font-size: 3rem;
  color: var(--text-light);
}

/* Product Card */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-sm);
}

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

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8fafc;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px; /* Fixed height for aligned grids */
}

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

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-display);
}

.btn-buy {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
  margin-top: 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.benefit-card {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer Styling */
.main-footer {
  background-color: var(--bg-topbar);
  color: #94a3b8;
  padding: 80px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-grid h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-grid h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-list a:hover {
  color: white;
}

.hours-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary-color);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  color: white;
  margin: 12px 0;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.8rem;
}

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

/* Media Queries */
@media (max-width: 992px) {
  .header-nav {
    display: none !important; /* Hide nav links on tablets/mobiles to preserve space */
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .filter-controls {
    gap: 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .footer-grid {
    gap: 30px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .institutional-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Header Navigation Styles */
.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-color);
}

.admin-nav-btn {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.admin-nav-btn:hover {
  background-color: var(--primary-color);
  color: white !important;
}

/* Institutional Sections Styles */
.institutional-section {
  padding: 60px 20px 20px 20px;
}

.institutional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.institutional-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
}

.institutional-card:hover {
  box-shadow: var(--box-shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.institutional-card h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.institutional-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.institutional-card p:last-child {
  margin-bottom: 0;
}

/* Skeleton Loader CSS */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  animation: pulse 1.5s infinite ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
}

.skeleton-text {
  height: 16px;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-text.title {
  width: 80%;
  height: 22px;
  margin-bottom: 16px;
}

.skeleton-text.short {
  width: 50%;
}

.skeleton-text.medium {
  width: 70%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.skeleton-price {
  width: 60px;
  height: 24px;
  background: var(--border-color);
  border-radius: 4px;
}

.skeleton-btn {
  width: 100px;
  height: 36px;
  background: var(--border-color);
  border-radius: 50px;
}

/* Sticky WhatsApp Cart Styles */
.sticky-cart-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 3px solid #25d366;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.sticky-cart-container.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cart-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.cart-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#cart-summary-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

#cart-total-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
}

.btn-whatsapp-action {
  background-color: #25d366;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp-action:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 140, 126, 0.4);
}

.btn-whatsapp-action i {
  font-size: 1.25rem;
}

/* Floating General Support Button */
.floating-support-btn {
  position: fixed;
  bottom: 95px; /* Floats above the sticky cart */
  right: 24px;
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.floating-support-btn:hover {
  transform: scale(1.05);
}

.support-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-text {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--box-shadow-sm);
  max-width: 250px;
  white-space: normal;
  line-height: 1.3;
  display: none; /* Hidden on tiny screens, shown on desktop hover/active */
}

.floating-support-btn:hover .support-text {
  display: block;
}

.support-icon-wrapper {
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
}

.support-icon-wrapper:hover {
  background-color: #128c7e;
}

/* Add custom animations for cart entrance */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .support-text {
    display: block; /* Always visible on larger screens */
  }
}
@media (max-width: 576px) {
  .sticky-cart-container {
    padding: 12px 16px;
  }
  #cart-total-text {
    font-size: 1.2rem;
  }
  .btn-whatsapp-action {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .floating-support-btn {
    bottom: 85px;
    right: 16px;
  }
}

/* Modal General Styles */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 30px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-modal.active .admin-modal-content {
  transform: translateY(0);
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background-color: var(--border-color);
  color: var(--primary-color) !important;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Quality Tier Badges on Product Cards */
.product-brand-tier {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-super-premium-natural {
  background-color: rgba(46, 125, 50, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.tier-super-premium {
  background-color: rgba(230, 81, 0, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.tier-high-premium {
  background-color: rgba(106, 27, 154, 0.15);
  color: #ba68c8;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.tier-premium-especial {
  background-color: rgba(21, 101, 192, 0.15);
  color: #64b5f6;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.tier-premium {
  background-color: rgba(0, 131, 143, 0.15);
  color: #4dd0e1;
  border: 1px solid rgba(0, 188, 212, 0.3);
}

.tier-mantenimiento {
  background-color: rgba(55, 71, 79, 0.15);
  color: #b0bec5;
  border: 1px solid rgba(120, 144, 156, 0.3);
}

/* Light Theme Badge Adaptations */
.light-theme .tier-super-premium-natural {
  background-color: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.light-theme .tier-super-premium {
  background-color: rgba(230, 81, 0, 0.1);
  color: #e65100;
}

.light-theme .tier-high-premium {
  background-color: rgba(106, 27, 154, 0.1);
  color: #6a1b9a;
}

.light-theme .tier-premium-especial {
  background-color: rgba(21, 101, 192, 0.1);
  color: #1565c0;
}

.light-theme .tier-premium {
  background-color: rgba(0, 131, 143, 0.1);
  color: #00838f;
}

.light-theme .tier-mantenimiento {
  background-color: rgba(55, 71, 79, 0.1);
  color: #37474f;
}

/* Product Detail Modal Content Styles */
.detail-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 15px;
}

@media (min-width: 576px) {
  .detail-modal-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.detail-img-wrapper {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
}

.detail-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-brand-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
  font-family: var(--font-display);
}

.detail-price-wrapper {
  margin: 8px 0;
}

.detail-price-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
}

.detail-description-section {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 8px;
}

.detail-description-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

.detail-actions-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* Instagram Grid Card Hover Effect */
.ig-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color) !important;
  box-shadow: var(--box-shadow-md);
}

/* Infinite Brand Logo Slider Scroll */
@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}



