/* ==========================================================================
   TALO MARKET - Premium Design System & Stylesheet
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
    /* Paleta de Colores Curada */
    --primary-dark: #2d5a27;      /* Verde bosque profundo orgánico */
    --primary-medium: #41753a;    /* Verde para botones y acentos */
    --primary-light: #528c4b;     /* Verde de interacción ligera */
    --primary-accent: #f2f7f1;    /* Fondo oliva súper suave */
    
    --accent-orange: #c87a24;     /* Ocre/Naranja de acento */
    --accent-orange-light: #fdf5ea;/* Fondo ocre para badges */
    
    --bg-cream: #fbfbf9;          /* Fondo principal cálido y artesanal */
    --bg-white: #ffffff;
    
    --text-dark: #222a21;         /* Texto principal (casi negro con matiz verde) */
    --text-muted: #5c685b;        /* Texto secundario */
    --text-light: #ffffff;
    
    --border-color: #e5ebe4;      /* Bordes orgánicos suaves */
    --focus-ring: rgba(65, 117, 58, 0.25);
    
    /* Tipografías */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Sombras Elevadas (Aesthetics) */
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.02);
    --shadow-medium: 0 8px 30px rgba(45, 90, 39, 0.06);
    --shadow-large: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.1);
    
    /* Radios de Bordes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   Reseteos y Estilos Globales
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

section {
    padding: 60px 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Ocultar scrollbars feos manteniendo el scroll */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: #cbd3ca;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #afbcae;
}

/* Clases de Utilidad */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ==========================================================================
   Encabezado / Header (Glassmorphic)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background-color: rgba(251, 251, 249, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.logo-icon {
    font-size: 20px;
    animation: leaf-sway 3s ease-in-out infinite;
}

.logo-sub {
    font-size: 11px;
    color: var(--accent-orange);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menú de Navegación */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-medium);
    transition: var(--transition-smooth);
}

.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

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

/* Badge de WhatsApp */
.whatsapp-badge-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-accent);
    border: 1px solid rgba(45, 90, 39, 0.12);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: var(--transition-smooth);
}

.whatsapp-badge-btn:hover {
    background-color: #244b20;
    color: var(--text-light);
    border-color: #244b20;
}

.wa-icon {
    color: #25d366;
    display: flex;
    align-items: center;
}

.whatsapp-badge-btn:hover .wa-icon {
    color: var(--text-light);
}

.wa-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.wa-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.wa-sub {
    font-size: 10px;
    opacity: 0.8;
}

/* Botón Carrito */
.cart-toggle-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
}

.cart-toggle-btn:hover {
    border-color: var(--primary-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-icon-container {
    position: relative;
    color: var(--primary-dark);
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: var(--primary-medium);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
    transition: var(--transition-smooth);
}

/* Hamburguesa Móvil */
.menu-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 950;
}

.menu-mobile-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

/* Animaciones de Hamburguesa cuando está abierto */
.menu-mobile-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-mobile-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-mobile-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Sección Hero (Banner Principal)
   ========================================================================== */
.hero-section {
    padding: 30px 0 50px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #f2f7f1 0%, #e8f0e6 100%);
    border-radius: var(--radius-lg);
    padding: 48px 60px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: var(--accent-orange-light);
    color: var(--accent-orange);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(200, 122, 36, 0.15);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-medium);
    color: var(--text-light);
    border: 1px solid var(--primary-medium);
    box-shadow: 0 4px 14px rgba(65, 117, 58, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
}

.btn-outline:hover {
    background-color: rgba(45, 90, 39, 0.05);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 380px;
    transition: var(--transition-smooth);
}

.hero-container:hover .hero-image {
    transform: scale(1.03);
}

/* ==========================================================================
   Sección de Productos
   ========================================================================== */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.section-filters {
    display: flex;
    gap: 12px;
}

.filter-chip {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-chip:hover {
    border-color: var(--primary-medium);
    color: var(--primary-medium);
}

.filter-chip.active {
    background-color: var(--accent-orange-light);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    font-weight: 600;
}

/* Grilla de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.promotions-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: -18px 0 28px;
}

.promotion-pill {
    background: var(--accent-orange-light);
    border: 1px solid rgba(200, 122, 36, 0.18);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.promotion-pill strong {
    display: block;
    color: var(--accent-orange);
    font-size: 14px;
}

.promotion-pill span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

/* Tarjeta de Producto — Premium Card Design */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
    animation: slide-up-fade 0.5s ease both;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: rgba(65, 117, 58, 0.15);
}

.product-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f7faf6;
    position: relative;
}

/* Gradient overlay at bottom of image for text readability */
.product-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container::after {
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.12) 0%, transparent 100%);
}

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

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

.product-category-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(251, 251, 249, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-offer-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-orange);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.35;
    height: 46px; /* Altura fija para alineación */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Premium hover underline animation on product title links */
.product-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--primary-medium), var(--primary-medium));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
    padding-bottom: 2px;
}

.product-title a:hover {
    background-size: 100% 2px;
    color: var(--primary-dark);
}

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

/* ==========================================================================
   Selector de Variaciones / Peso — Premium Pill Chips
   ========================================================================== */
.product-variants {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Variant helper text — stylish with decorative bullet */
.variant-helper {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.variant-helper::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    flex-shrink: 0;
}

/* Variant chips — rounded pill shape with premium feel */
.variant-chip {
    flex: 1;
    text-align: center;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-cream);
    padding: 10px 14px;
    min-height: 44px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
}

/* Error state — soft pink background + elegant red border + shake animation */
.variant-required .variant-chip {
    border-color: #e06c6c;
    border-width: 1.5px;
    background-color: #fff5f5;
    color: #c94444;
    box-shadow: 0 0 0 3px rgba(224, 108, 108, 0.15), 0 2px 8px rgba(224, 108, 108, 0.08);
    animation: shake-error 0.5s ease-in-out;
}

/* Red error label that appears below variant group */
.variant-required-label {
    color: #c94444;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: slide-up-fade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff5f5;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(224, 108, 108, 0.2);
    width: 100%;
}

.variant-required-label::before {
    content: '⚠️';
    font-size: 12px;
}

/* Chip hover — scale up with shadow */
.variant-chip:hover {
    border-color: var(--primary-medium);
    color: var(--primary-medium);
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(65, 117, 58, 0.1);
}

/* Chip active — green gradient with white text and glow */
.variant-chip.active {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    border-color: var(--primary-medium);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(65, 117, 58, 0.25), 0 0 0 3px rgba(65, 117, 58, 0.08);
    transform: scale(1.02);
}

/* Precios y Controles */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-old-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Price pending — orange badge pill with attention pulse */
.product-price-pending {
    color: var(--accent-orange);
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    background-color: var(--accent-orange-light);
    border: 1px solid rgba(200, 122, 36, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse-attention 2s ease-in-out infinite;
}

.product-unit {
    font-size: 13px;
    color: var(--text-muted);
}

/* Product controls — with subtle top border separator */
.product-controls {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Ajustador de Cantidad */
.qty-adjuster {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-accent);
    border: 1px solid rgba(65, 117, 58, 0.1);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.qty-btn:hover {
    background-color: rgba(65, 117, 58, 0.15);
}

.qty-val {
    font-size: 14px;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

/* Agregar al carrito */
.add-to-cart-btn {
    background-color: var(--primary-medium);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(65, 117, 58, 0.1);
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

.add-to-cart-btn svg {
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover svg {
    transform: scale(1.15);
}

/* Estado Sin Resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    max-width: 480px;
    margin: 40px auto;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results h3 {
    margin-bottom: 8px;
    color: var(--primary-dark);
}

/* ==========================================================================
   Página de Detalle de Producto — Premium Layout
   ========================================================================== */
.product-detail-page {
    min-height: 80vh; /* Ajuste para un espaciado más armónico */
    padding-top: 40px;
}

/* Custom product details page typography */
.detail-title {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
    margin: 8px 0 16px 0;
}

.detail-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Breadcrumb-style back button */
.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
    border: none;
    background: none;
    cursor: pointer;
}

.detail-back-link::before {
    content: '←';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--primary-accent);
    font-size: 14px;
    color: var(--primary-medium);
    transition: var(--transition-smooth);
}

.detail-back-link:hover {
    color: var(--primary-dark);
}

.detail-back-link:hover::before {
    background-color: var(--primary-medium);
    color: var(--text-light);
    transform: translateX(-3px);
}

/* Breadcrumb separator styling */
.detail-back-link span {
    opacity: 0.5;
    margin: 0 2px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

/* Product image — zoom on hover effect */
.product-detail-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    position: relative;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
}

.product-detail-image:hover {
    transform: scale(1.05);
}

.detail-tag {
    position: static;
    display: inline-block;
    margin-bottom: 18px;
}

/* Variant option group — card-like container with subtle background */
.product-detail-option-group {
    margin: 24px 0 8px;
    max-width: 420px;
    background-color: var(--primary-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.detail-variants {
    max-width: 420px;
}

/* Actions — more prominent with larger sizing */
.product-detail-actions {
    display: grid;
    grid-template-columns: 130px minmax(200px, 280px);
    gap: 14px;
    align-items: stretch;
    margin-top: 20px;
}

.detail-qty {
    min-height: 50px;
    border-radius: var(--radius-md) !important;
}

.detail-add-btn {
    min-height: 50px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 16px rgba(65, 117, 58, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.detail-add-btn:hover {
    box-shadow: 0 6px 24px rgba(65, 117, 58, 0.3);
    transform: translateY(-2px);
}

/* Feedback text — styled container */
.detail-feedback {
    min-height: 24px;
    margin-top: 14px;
    color: var(--primary-medium);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background-color: rgba(82, 140, 75, 0.06);
    border-left: 3px solid var(--primary-medium);
    transition: var(--transition-smooth);
}

.detail-feedback:empty {
    display: none;
}

.detail-feedback.error {
    color: #b84242;
    background-color: rgba(184, 66, 66, 0.06);
    border-left-color: #b84242;
}

/* 'Ver carrito' link — premium button styling with icon */
.detail-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-accent), rgba(82, 140, 75, 0.1));
    border: 1px solid rgba(65, 117, 58, 0.15);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.detail-cart-link svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.detail-cart-link:hover {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: var(--text-light);
    box-shadow: 0 4px 16px rgba(65, 117, 58, 0.2);
    transform: translateY(-2px);
}

.detail-cart-link:hover svg {
    transform: scale(1.12);
}

/* Skeletons */
.product-skeleton {
    height: 420px;
    background: linear-gradient(90deg, #f0f3ef 25%, #e6eae4 50%, #f0f3ef 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Sección Información, Zonas y Proceso
   ========================================================================== */
.info-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 48px;
    margin: 40px 0;
    box-shadow: var(--shadow-subtle);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.info-card {
    display: flex;
    flex-direction: column;
}

.info-card-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-card-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Zonas de despacho */
.delivery-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.delivery-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 32px;
    line-height: 1;
}

.communes-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 24px;
}

.communes-list li {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.communes-list small {
    width: 100%;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.communes-list li span {
    color: var(--primary-medium);
    font-weight: 700;
}

.delivery-disclaimer {
    background-color: var(--primary-accent);
    border-left: 3px solid var(--primary-medium);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Scooter Animado */
.delivery-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.delivery-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: float-slow 4s ease-in-out infinite;
}

.delivery-image:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Flujo de Pasos */
.steps-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    background-color: var(--primary-medium);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(65, 117, 58, 0.2);
}

.step-body h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   CARRITO LATERAL (DRAWER)
   ========================================================================== */
/* Overlay Oscuro */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(32, 43, 31, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

/* Panel Deslizante */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    height: 100vh;
    background-color: var(--bg-cream);
    box-shadow: var(--shadow-drawer);
    z-index: 1000;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-white);
}

.cart-drawer-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-drawer-badge {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.close-drawer-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-drawer-btn:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
}

/* Cuerpo del Carrito */
.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Carrito Vacío */
.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: leaf-sway 4s ease-in-out infinite;
}

.cart-empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}

/* Lista de Productos */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background-color: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    align-items: center;
    position: relative;
}

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

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.cart-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

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

/* Botón Eliminar del Carrito */
.remove-item-btn {
    background: none;
    border: none;
    color: #e06c6c;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-item-btn:hover {
    background-color: #fdf2f2;
    color: #c94c4c;
}

/* Formulario de Checkout en Carrito */
.cart-checkout-form {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 10px;
}

.cart-checkout-form h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--bg-white);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Footer del Carrito */
.cart-drawer-footer {
    padding: 24px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-clear-area {
    display: flex;
    justify-content: flex-end;
}

.clear-cart-btn {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.clear-cart-btn:hover {
    color: #c94c4c;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.free-shipping {
    color: var(--primary-medium);
    font-weight: 600;
}

.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.total-row span:last-child {
    font-size: 24px;
    color: var(--primary-dark);
}

/* Botón Enviar WhatsApp */
.btn-whatsapp-send {
    background-color: #25d366;
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: var(--transition-smooth);
}

.btn-whatsapp-send:hover {
    background-color: #1ebd59;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.cart-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   BOTÓN DEL CARRITO FLOTANTE
   ========================================================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 850;
    box-shadow: var(--shadow-large);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.floating-cart-btn.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.floating-cart-btn:hover {
    background-color: var(--primary-medium);
    transform: translateY(-3px) scale(1.05);
}

/* ==========================================================================
   BOTÓN DE WHATSAPP FLOTANTE
   ========================================================================== */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* WhatsApp Brand Color */
    color: var(--text-light);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 840; /* Sit just below cart button z-index */
    box-shadow: var(--shadow-large);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.floating-whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-3px) scale(1.05);
    color: var(--text-light);
}

.floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* Dynamic Shift: When cart button is active/visible, slide WhatsApp button up! */
.floating-cart-btn.visible ~ .floating-whatsapp-btn {
    bottom: 105px;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-orange);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-light);
}

/* ==========================================================================
   FOTER
   ========================================================================== */
.footer {
    background-color: #202b1f;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 0;
}

/* Barra de Beneficios superior */
.footer-benefits {
    background-color: var(--primary-dark);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
}

.benefit-icon {
    font-size: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text h4 {
    font-size: 15px;
    font-weight: 600;
}

/* Footer Principal */
.footer-main {
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-about p {
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-logo {
    font-family: var(--font-serif);
    color: var(--text-light);
    font-size: 26px;
    font-weight: 700;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-medium);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--text-light);
    padding-left: 6px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.toast {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-medium);
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toast-slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: var(--transition-smooth);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS (Premium & SEO)
   ========================================================================== */
.about-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-badge {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(45, 90, 39, 0.1);
}

.about-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text strong {
    color: var(--primary-dark);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.about-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.about-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-medium);
}

.feature-icon {
    font-size: 24px;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Columna de Imagen */
.about-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    aspect-ratio: 4/3;
    width: 100%;
}

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

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-overlay-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-medium);
    animation: scooter-bounce 4s ease-in-out infinite;
    z-index: 10;
}

.overlay-icon {
    font-size: 24px;
}

.overlay-card-text {
    display: flex;
    flex-direction: column;
}

.overlay-card-text strong {
    font-size: 15px;
    color: var(--primary-dark);
}

.overlay-card-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes leaf-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(12deg); }
}

@keyframes scooter-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

@keyframes toast-slide-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* shake-error: subtle horizontal shake for variant-required state */
@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    90% { transform: translateX(1px); }
}

/* pulse-attention: gentle scale pulse for price-pending state */
@keyframes pulse-attention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(200, 122, 36, 0.15);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 6px rgba(200, 122, 36, 0);
    }
}

/* slide-up-fade: for card entrance when filtered */
@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVO COMPLETO)
   ========================================================================== */

/* Tablets / Desktop pequeño */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .hero-image-wrapper {
        min-height: 260px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .delivery-card {
        grid-template-columns: 1.3fr 0.7fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablets / Móviles grandes */
@media (max-width: 768px) {
    .header-container {
        height: 80px;
    }
    
    .search-bar {
        display: none; /* Se podría desplegar con botón si se desea, por ahora se oculta en móvil */
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-cream);
        z-index: 940;
        padding: 40px 24px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-drawer);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .menu-mobile-btn {
        display: flex;
    }
    
    .whatsapp-badge-btn {
        display: none; /* En móviles ocultamos el badge largo del header para ahorrar espacio */
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .cart-drawer {
        width: 100vw; /* El carrito ocupa toda la pantalla en móvil */
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
    
    .delivery-card {
        grid-template-columns: 1fr;
    }
    
    .delivery-illustration {
        display: none; /* Ocultar ilustración en móvil para priorizar texto */
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-chip {
        flex-shrink: 0;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-actions {
        grid-template-columns: 110px 1fr;
        max-width: 100%;
    }
}

/* Celulares pequeños */
@media (max-width: 480px) {
    .about-title {
        font-size: 26px;
    }
    
    .image-overlay-card {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
    }

    .hero-title {
        font-size: 32px;
    }
    
    .hero-container {
        padding: 24px;
    }
    
    .hero-actions-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions-container .btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas muy chicas */
    }
    
    .product-controls {
        grid-template-columns: 90px 1fr;
    }

    .product-detail-actions {
        grid-template-columns: 1fr;
    }

    .detail-qty {
        max-width: 140px;
    }
    
    .communes-list {
        grid-template-columns: 1fr;
    }
    
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cart-btn.visible ~ .floating-whatsapp-btn {
        bottom: 95px;
    }
    
    .toast-container {
        top: 20px;
        bottom: auto;
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
