/* ===== PALETA DE COLORES CAPIBARA - Marroncito (Estilo Quantix) ===== */

/* Colores principales */
:root {
    /* CTA Principal - 10% (Botones de acción: agregar carrito, comprar, ver carrito) */
    --wine-primary: #e76f51;        /* Terracotta capibara */
    --wine-primary-rgb: 231, 111, 81;
    --wine-secondary: #f4a261;     /* Naranja/salmón */
    --wine-dark: #99582a;          /* Marrón oscuro */
    --wine-light: #e29578;         /* Rosa polvoriento */
    --wine-lighter: #fed0bb;       /* Durazno claro */
    
    /* Acentos - Menor porcentaje (detalles, highlights) */
    --accent-primary: #e76f51;     /* Terracotta */
    --accent-secondary: #e29578;    /* Rosa polvoriento */
    --accent-dark: #99582a;        /* Marrón oscuro */
    
    /* Verde éxito (mantener para confirmaciones) */
    --spotify-green: #1DB954;      /* Verde Spotify */
    --spotify-green-light: #1ED760; /* Verde Spotify claro */
    
    /* Color Secundario - 30% (Menús, iconos, navegación) */
    --secondary-color: #4A5568;     /* Gris azulado profesional */
    --secondary-light: #718096;     /* Gris azulado claro */
    --secondary-dark: #2D3748;      /* Gris azulado oscuro */
    
    /* Fondos - 60% */
    --cream: #EDEDE9;              /* Fondo principal beige/gris claro */
    --surface: #FFFFFF;            /* Blanco puro para cards */
    --neutral: #64748B;            /* Gris azulado neutro */
    
    /* Alertas / estados (sustituto modular de purple/pink en ecommerce) */
    --wine-50: #fef5f2;            /* Fondo muy claro para mensajes */
    --wine-100: rgba(231, 111, 81, 0.12);
}

/* ===== BODY ECOMMERCE - Clase única para todo el proyecto ===== */
/* Usar en el body del layout marketplace. Una sola definición del degradado. */
.marketplace-body {
    background: linear-gradient(to bottom, #f7e9e1 0%, #fdf8f6 25%, #faf5f2 55%, #f8f2ef 85%, #f6f0ec 100%);
    background-attachment: scroll;
    min-height: 100vh;
}

/* Ocultar [x-cloak] por defecto para Alpine */
[x-cloak] { display: none !important; }

/* ===== SKELETON ECOMMERCE (tienda /ecommerce responsive) ===== */
.ecommerce-skeleton-block {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: ecommerceShimmer 1.2s ease-in-out infinite;
}
@keyframes ecommerceShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Home: skeleton solo en la sección Productos Destacados (misma posición que las cards) */
#ecommerce-home-products-wrap:not(.ecommerce-loaded) .ecommerce-home-products-skeleton { display: grid; }
#ecommerce-home-products-wrap:not(.ecommerce-loaded) .ecommerce-home-products-content { display: none !important; }
#ecommerce-home-products-wrap.ecommerce-loaded .ecommerce-home-products-skeleton { display: none; }
#ecommerce-home-products-wrap.ecommerce-loaded .ecommerce-home-products-content { display: block; }
#ecommerce-products-wrap:not(.ecommerce-loaded) .ecommerce-products-skeleton { display: block; }
#ecommerce-products-wrap:not(.ecommerce-loaded) .ecommerce-products-content { display: none !important; }
#ecommerce-products-wrap.ecommerce-loaded .ecommerce-products-skeleton { display: none; }
#ecommerce-products-wrap.ecommerce-loaded .ecommerce-products-content { display: block; opacity: 1; }
#ecommerce-combos-wrap:not(.ecommerce-loaded) .ecommerce-combos-skeleton { display: block; }
#ecommerce-combos-wrap:not(.ecommerce-loaded) .ecommerce-combos-content { display: none !important; }
#ecommerce-combos-wrap.ecommerce-loaded .ecommerce-combos-skeleton { display: none; }
#ecommerce-combos-wrap.ecommerce-loaded .ecommerce-combos-content { display: block; }

/* ===== SCROLLBARS GLOBALES (todos los scroll) ===== */
/* Solo mostrar scrollbar personalizado en desktop */
@media (min-width: 768px) {
    /* WebKit (Chrome, Edge, Safari) */
    *::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    *::-webkit-scrollbar-track {
        background: rgba(248, 250, 252, 0.5);
        border-radius: 10px;
    }
    *::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    *::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-primary) 100%);
    }

    /* Firefox */
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-primary) rgba(248, 250, 252, 0.5);
    }
}

/* Ocultar scrollbar en móvil */
@media (max-width: 767px) {
    *::-webkit-scrollbar {
        display: none;
    }
    * {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* ===== SCROLL HORIZONTAL DE CATEGORÍAS ===== */
.categories-scroll-header {
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.categories-scroll-header a {
    scroll-snap-align: start;
    white-space: nowrap;
}

/* Mejorar el scroll en dispositivos táctiles */
@media (max-width: 1023px) {
    .categories-scroll-header {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ===== ESTILOS PARA TOASTS ===== */
.cart-toast-success {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 50%, #e29578 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(231, 111, 81, 0.3);
}

.cart-toast-error {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 50%, #EF4444 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
}

.cart-toast-shine {
    position: relative;
    overflow: hidden;
}

.cart-toast-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cart-toast-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(231, 111, 81, 0.4);
}

/* ===== PARTÍCULAS Y EFECTOS ===== */
.cart-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cart-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 3s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

.cart-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cart-confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #e76f51;
    border-radius: 50%;
    animation: confetti-fall 2s infinite ease-in-out;
}

@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

/* ===== TEXTOS Y ELEMENTOS ===== */
.cart-icon-simple {
    color: #10B981;
}

.cart-text-primary {
    color: #FDF0D5;
}

.cart-text-secondary {
    color: #FDF0D5;
    opacity: 0.8;
}

.cart-close-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
}

/* ===== ANIMACIONES ===== */
.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.cart-count-pulse {
    animation: pulse-green 0.6s ease-in-out;
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); background-color: #10B981; }
}

/* Animación de glow para la pelotita del carrito */
@keyframes ball-glow {
    0% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(16, 185, 129, 0.55));
    }
    100% {
        filter: brightness(1.25) drop-shadow(0 0 16px rgba(30, 215, 96, 0.75));
    }
}

/* Animación de partículas cuando la pelotita llega al carrito */
@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Animación del ícono del carrito cuando recibe un producto */
.cart-icon-bounce {
    animation: cart-bounce 0.6s ease-in-out;
}

@keyframes cart-bounce {
    0%, 100% { 
        transform: scale(1); 
    }
    25% { 
        transform: scale(1.2) rotate(-5deg); 
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
    }
    75% { 
        transform: scale(1.15) rotate(-3deg); 
    }
}

.add-to-cart-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    color: white !important;
}

/* ===== CLASES UTILITARIAS PARA LA PALETA ===== */
/* CTA Colors (10%) */
.text-wine-primary { color: var(--wine-primary); }
.text-wine-secondary { color: var(--wine-secondary); }
.text-wine-700 { color: var(--wine-dark); }
.bg-wine-50 { background-color: var(--wine-50); }
.bg-wine-100 { background-color: var(--wine-100); }
.border-wine-400 { border-color: var(--wine-primary); }
.text-wine-dark { color: #99582a; }
.text-wine-light { color: #e29578; }
.text-wine-lighter { color: #fed0bb; }

/* Accent Colors (detalles) */
.text-accent-primary { color: #e76f51; }
.text-accent-secondary { color: #e29578; }
.text-accent-dark { color: #99582a; }

/* Secondary Colors (30%) */
.text-secondary { color: #4A5568; }
.text-secondary-light { color: #718096; }
.text-secondary-dark { color: #2D3748; }

/* Success & Background */
.text-spotify-green { color: #10B981; }
.text-spotify-green-light { color: #34D399; }
.text-cream { color: #EDEDE9; }

/* Backgrounds */
.bg-wine-primary { background-color: var(--wine-primary); }
.bg-wine-secondary { background-color: var(--wine-secondary); }
.bg-wine-dark { background-color: var(--wine-dark); }
.bg-wine-light { background-color: var(--wine-light); }
.bg-wine-lighter { background-color: var(--wine-lighter); }
.bg-accent-primary { background-color: var(--accent-primary); }
.bg-accent-secondary { background-color: var(--accent-secondary); }
.bg-accent-dark { background-color: var(--accent-dark); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-secondary-light { background-color: var(--secondary-light); }
.bg-secondary-dark { background-color: var(--secondary-dark); }
.bg-spotify-green { background-color: var(--spotify-green); }
.bg-spotify-green-light { background-color: var(--spotify-green-light); }
.bg-cream { background-color: var(--cream); }

/* Borders */
.border-wine-primary { border-color: #e76f51; }
.border-wine-secondary { border-color: #f4a261; }
.border-wine-dark { border-color: #99582a; }
.border-wine-light { border-color: #e29578; }
.border-wine-lighter { border-color: #fed0bb; }
.border-accent-primary { border-color: #e76f51; }
.border-accent-secondary { border-color: #e29578; }
.border-accent-dark { border-color: #99582a; }
.border-secondary { border-color: #4A5568; }
.border-spotify-green { border-color: #10B981; }
.border-spotify-green-light { border-color: #34D399; }
.border-cream { border-color: #EDEDE9; }

/* ===== GRADIENTES ===== */
/* CTA Gradients */
.bg-gradient-wine {
    background: linear-gradient(135deg, var(--wine-primary) 0%, var(--wine-secondary) 50%, var(--wine-light) 100%);
}

.bg-gradient-wine-light {
    background: linear-gradient(135deg, #e29578 0%, #fed0bb 50%, #f4a261 100%);
}

.bg-gradient-wine-dark {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 50%, #99582a 100%);
}

/* Accent Gradients */
.bg-gradient-accent {
    background: linear-gradient(135deg, #e76f51 0%, #e29578 50%, #e76f51 100%);
}

/* Success Gradient */
.bg-gradient-spotify {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

/* ===== UI TOASTS (checkout, generales) ===== */
.ui-toast { position: fixed; top: 16px; right: 16px; z-index: 60; border-radius: 14px; box-shadow: 0 18px 36px rgba(0,0,0,.18); overflow: hidden; }
.ui-toast-inner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ui-toast .ui-toast-title { font-weight: 700; font-size: 14px; display:block; }
.ui-toast .ui-toast-message { font-size: 13px; opacity: .95; }
.ui-toast .ui-toast-close { margin-left: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); width: 22px; height: 22px; border-radius: 9999px; display:flex; align-items:center; justify-content:center; color:#fff; }
.ui-toast-success { background: linear-gradient(135deg, var(--wine-primary) 0%, var(--wine-secondary) 100%); color: #fff; }
.ui-toast-accent { background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); color: #fff; }
.ui-toast-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #111; }
.ui-toast-error { background: linear-gradient(135deg, #EF4444 0%, #F87171 100%); color: #fff; }

/* ===== HOVER STATES ===== */
.hover\:text-wine-primary:hover { color: #e76f51; }
.hover\:text-wine-secondary:hover { color: #f4a261; }
.hover\:text-wine-light:hover { color: #e29578; }
.hover\:text-accent-primary:hover { color: #e76f51; }
.hover\:text-accent-secondary:hover { color: #e29578; }
.hover\:text-spotify-green:hover { color: #10B981; }

.hover\:bg-wine-primary:hover { background-color: var(--wine-primary); }
.hover\:bg-wine-secondary:hover { background-color: var(--wine-secondary); }
.hover\:bg-wine-light:hover { background-color: var(--wine-light); }
.hover\:bg-accent-primary:hover { background-color: var(--accent-primary); }
.hover\:bg-accent-secondary:hover { background-color: var(--accent-secondary); }
.hover\:bg-spotify-green:hover { background-color: var(--spotify-green); }

/* ===== FOCUS STATES ===== */
.focus\:ring-wine-primary:focus { --tw-ring-color: #e76f51; }
.focus\:ring-wine-secondary:focus { --tw-ring-color: #f4a261; }
.focus\:ring-wine-light:focus { --tw-ring-color: #e29578; }
.focus\:ring-accent-primary:focus { --tw-ring-color: #e76f51; }
.focus\:ring-spotify-green:focus { --tw-ring-color: #10B981; }

.focus\:border-wine-primary:focus { border-color: #e76f51; }
.focus\:border-wine-secondary:focus { border-color: #f4a261; }
.focus\:border-wine-light:focus { border-color: #e29578; }
.focus\:border-accent-primary:focus { border-color: #e76f51; }
.focus\:border-spotify-green:focus { border-color: #10B981; }

/* ===== CATEGORY CARDS ===== */
.category-card {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(74, 85, 104, 0.1);
    background: var(--surface);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(231, 111, 81, 0.15),
        0 10px 20px -5px rgba(74, 85, 104, 0.1);
    border-color: var(--wine-primary);
}

.category-card .bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 50%, #e29578 100%);
    position: relative;
    overflow: hidden;
}

.category-card .bg-gradient-wine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.category-card:hover .bg-gradient-wine {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 50%, #f4a261 100%);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(74, 85, 104, 0.1);
    background: var(--surface);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

/* Título fijo a 2 líneas siempre */
.product-title-fixed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em; /* Altura fija para 2 líneas */
    max-height: 2.5em; /* Altura máxima para 2 líneas */
    line-height: 1.25em; /* Altura de línea */
    margin-bottom: 0.5rem !important;
}

/* Asegurar que el título siempre tenga la misma altura */
.product-card h3.product-title-fixed,
.product-card .product-title-fixed {
    height: 2.5em !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
}

.product-card:hover {
    box-shadow:
        0 28px 56px -12px rgba(231, 111, 81, 0.18),
        0 12px 24px -5px rgba(74, 85, 104, 0.1),
        0 6px 14px rgba(0, 0, 0, 0.1);
    border-color: var(--wine-primary);
}

.product-card .bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 50%, #e29578 100%);
    position: relative;
    overflow: hidden;
}

/* Sin efecto hover de elevación en product-card */

/* ===== TAMAÑO DE CARDS EN WEB (máximo 4 por fila) ===== */
/* En pantallas grandes (lg y xl), los cards son más grandes */
@media (min-width: 1024px) {
    /* Aumentar padding interno de los cards - más espacio vertical */
    .product-card > div:not(.relative) {
        padding: 1rem !important;
    }
    
    .product-card .p-2,
    .product-card .p-3,
    .product-card .p-4 {
        padding: 1.5rem !important;
    }
    
    
    .product-card .h-48,
    .product-card [class*="h-48"],
    .product-card [class*="h-40"],
    .product-card [class*="h-44"] {
        height: 12rem !important; /* 288px - más alto */
        min-height: 12rem !important;
    }
    
    /* Aumentar tamaño de texto en cards */
    .product-card h3,
    .product-card .text-sm,
    .product-card .text-xs {
        font-size: 1rem !important;
        line-height: 1.25 !important; /* Altura de línea para 2 líneas */
        margin-bottom: 0.75rem !important;
    }
    
    /* Título fijo a 2 líneas en web */
    .product-card .product-title-fixed {
        height: 2.5em !important; /* Altura fija para 2 líneas (1.25em * 2) */
        min-height: 2.5em !important;
        max-height: 2.5em !important;
        line-height: 1.25em !important;
    }
    
    .product-card .text-lg {
        font-size: 1.25rem !important;
    }
    
    /* Aumentar tamaño de botones en cards (excluir botón favorito/corazón) */
    .product-card button:not(.favorite-btn),
    .product-card a[class*="px-"],
    .product-card .px-3 {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important;
        margin-top: 0.75rem !important;
    }
    
    /* Cards en grid con máximo 4 columnas */
    .grid.grid-cols-4 .product-card,
    .grid[class*="lg:grid-cols-4"] .product-card,
    .grid[class*="xl:grid-cols-4"] .product-card {
        min-height: 480px !important; /* Más alto - más espacio vertical */
    }
    
    /* Forzar máximo 4 columnas en pantallas grandes - sobrescribir xl:grid-cols-6 */
    .grid[class*="xl:grid-cols-6"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    
    .grid[class*="lg:grid-cols-5"] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    
    /* Sombra base más suave en desktop */
    .product-card {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    }
    
    .product-card:hover {
        box-shadow:
            0 32px 64px -12px rgba(231, 111, 81, 0.2),
            0 14px 28px -5px rgba(74, 85, 104, 0.12),
            0 8px 18px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Mantener tamaño original en mobile */
@media (max-width: 1023px) {
    .product-card {
        /* Mantener estilos originales para mobile */
    }
}

/* ===== BOTÓN DE CARRITO CIRCULAR ===== */
.quick-add-to-cart {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

.quick-add-to-cart i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* ===== ESTILOS DE PRODUCTOS ===== */
[x-cloak] {
    display: none !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover {
    /* Sin elevación */
}

/* Estilos para las opciones de la lista desplegable */
#category-filter option {
    background: #ffffff;
    color: #374151;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    transition: all 0.2s ease;
}

#category-filter option:hover {
    background: linear-gradient(135deg, #fed0bb 0%, #e29578 100%);
    color: #e76f51;
    font-weight: 600;
}

#category-filter option:checked,
#category-filter option:focus {
    background: linear-gradient(135deg, #e76f51 0%, #99582a 100%);
    color: #ffffff;
    font-weight: 600;
}

/* Estilo especial para "Todas las categorías" */
#category-filter option[value=""] {
    background: linear-gradient(135deg, #EDEDE9 0%, #E2E2E2 100%);
    color: #4A5568;
    font-weight: 600;
    border-bottom: 1px solid #D1D5DB;
}

#category-filter option[value=""]:hover {
    background: linear-gradient(135deg, #fed0bb 0%, #e29578 100%);
    color: #e76f51;
}

/* Efecto de hover suave para las opciones */
#category-filter option:not([value=""]):hover {
    background: linear-gradient(135deg, #fed0bb 0%, #e29578 100%);
    color: #e76f51;
    transform: translateX(2px);
}

/* ===== PAGINACIÓN PERSONALIZADA ===== */
.pagination {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

.pagination li {
    display: flex !important;
}

.pagination a,
.pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    color: #6b7280 !important;
    background-color: #ffffff !important;
}

.pagination a:hover {
    color: var(--wine-primary) !important;
    background-color: #fed0bb !important;
    border-color: var(--wine-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.15) !important;
}

.pagination .active span {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--wine-primary) 0%, var(--wine-secondary) 100%) !important;
    border-color: var(--wine-primary) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.25) !important;
    font-weight: 600 !important;
}

.pagination .disabled span {
    color: #9ca3af !important;
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed !important;
}

.pagination .disabled a {
    color: #9ca3af !important;
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed !important;
}

.pagination .disabled a:hover {
    color: #9ca3af !important;
    background-color: #f9fafb !important;
    border-color: #e5e7eb !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ocultar texto "Showing X to Y of Z results" */
.pagination .text-sm,
.pagination .text-gray-700,
.pagination .text-gray-500,
.pagination .text-gray-600,
.pagination .text-sm.text-gray-700,
.pagination .text-sm.text-gray-500,
.pagination .text-sm.text-gray-600 {
    display: none !important;
}

/* Ocultar cualquier texto que contenga "Showing" o "results" */
.pagination *:contains("Showing"),
.pagination *:contains("results"),
.pagination *:contains("to"),
.pagination *:contains("of") {
    display: none !important;
}

/* Estilos adicionales para forzar colores wine */
.pagination a:not(.disabled):not(.active) {
    color: #6b7280 !important;
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
}

.pagination a:not(.disabled):not(.active):hover {
    color: #e76f51 !important;
    background-color: #fed0bb !important;
    border-color: #e29578 !important;
}

.pagination .active {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    color: #ffffff !important;
    border-color: #e76f51 !important;
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination a,
    .pagination span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
}

/* ===== BOTONES CTA (10% - Llamado a la acción) ===== */
/* Botones: Agregar al carrito, Comprar, Ver carrito, Pagar */
.btn-cta-primary,
button[type="submit"].btn-primary,
.btn-primary,
.add-to-cart-btn,
.buy-now-btn,
.view-cart-btn,
.checkout-btn {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
}

.btn-cta-primary:hover,
button[type="submit"].btn-primary:hover,
.btn-primary:hover,
.add-to-cart-btn:hover,
.buy-now-btn:hover,
.view-cart-btn:hover,
.checkout-btn:hover {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4) !important;
}

.btn-cta-primary:active,
button[type="submit"].btn-primary:active,
.btn-primary:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3) !important;
}

/* ===== DETALLES DE ACENTO CAPIBARA (terracotta/marrón) ===== */
/* Botón de búsqueda, icono de usuario, badge del carrito */

/* Botón de búsqueda en el header - Sobrescribir bg-gradient-wine */
form[action*="search"] button[type="submit"] .bg-gradient-wine,
form[action*="search"] button[type="submit"] div.bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3) !important;
}

form[action*="search"] button[type="submit"]:hover .bg-gradient-wine,
form[action*="search"] button[type="submit"]:hover div.bg-gradient-wine {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.4) !important;
}

/* Icono de usuario en el header - Sobrescribir bg-gradient-wine */
.profile-dropdown-button .bg-gradient-wine,
.profile-dropdown-button div.bg-gradient-wine,
a[href*="login"] .bg-gradient-wine,
a[href*="login"] div.bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.25) !important;
}

.profile-dropdown-button:hover .bg-gradient-wine,
.profile-dropdown-button:hover div.bg-gradient-wine,
a[href*="login"]:hover .bg-gradient-wine,
a[href*="login"]:hover div.bg-gradient-wine {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.35) !important;
}

/* Badge del carrito - Sobrescribir bg-gradient-wine */
#cart-count.bg-gradient-wine,
span#cart-count.bg-gradient-wine,
span[id="cart-count"].bg-gradient-wine {
    background: linear-gradient(145deg, #1ed760 0%, #1db954 62%, #169c46 100%) !important;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.35) !important;
    border: none !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-shadow: none;
    color: #ffffff !important;
}

#cart-count.bg-gradient-wine:hover,
span#cart-count.bg-gradient-wine:hover,
span[id="cart-count"].bg-gradient-wine:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 14px rgba(29, 185, 84, 0.42) !important;
}

/* Selector adicional para el badge del carrito usando el selector de atributo */
span.bg-gradient-wine[id*="cart"] {
    background: linear-gradient(145deg, #1ed760 0%, #1db954 62%, #169c46 100%) !important;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.35) !important;
    border: none !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-shadow: none;
    color: #ffffff !important;
}

/* ===== ACENTOS CAPIBARA (Detalles menores) ===== */
.accent-badge,
.accent-highlight,
.accent-icon {
    color: #e76f51;
}

.accent-badge-bg {
    background: linear-gradient(135deg, #e76f51 0%, #e29578 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.25);
}

.accent-border {
    border: 2px solid #e76f51;
    border-radius: 8px;
}

/* Efecto sutil de acento en hover */
.hover-accent:hover {
    border-color: #e76f51 !important;
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.1) !important;
}

/* Contenedores heredan el fondo del body .marketplace-body (sin sobrescribir) */
.main-container.marketplace-body,
.page-wrapper { background: transparent !important; }

/* Cards y superficies (30% - Color secundario) */
.card,
.product-card,
.category-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(74, 85, 104, 0.1) !important;
}

/* Navegación y menús (30% - Color secundario) */
.navbar,
.header,
.menu {
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(74, 85, 104, 0.1) !important;
}

.nav-link,
.menu-item {
    color: #4A5568 !important;
}

.nav-link:hover,
.menu-item:hover {
    color: #e76f51 !important;
}

/* ===== SOBRESCRITURA ESPECÍFICA PARA ACENTOS CAPIBARA ===== */

/* Botón de búsqueda - Header desktop y responsive */
header form[action*="search"] button[type="submit"] div.bg-gradient-wine,
header form button[type="submit"] div.bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3) !important;
}

header form[action*="search"] button[type="submit"]:hover div.bg-gradient-wine,
header form button[type="submit"]:hover div.bg-gradient-wine {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.4) !important;
}

/* Icono de usuario - Header desktop */
header .profile-dropdown-button .bg-gradient-wine,
header .profile-dropdown-button div.bg-gradient-wine,
header a[href*="login"] .bg-gradient-wine,
header a[href*="login"] div.bg-gradient-wine {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%) !important;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.25) !important;
}

header .profile-dropdown-button:hover .bg-gradient-wine,
header .profile-dropdown-button:hover div.bg-gradient-wine,
header a[href*="login"]:hover .bg-gradient-wine,
header a[href*="login"]:hover div.bg-gradient-wine {
    background: linear-gradient(135deg, #99582a 0%, #e76f51 100%) !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.35) !important;
}

/* Badge del carrito - Mini cart */
#cart-count.bg-gradient-wine,
span#cart-count.bg-gradient-wine,
span[id="cart-count"].bg-gradient-wine,
div[wire\\:id] span.bg-gradient-wine[id*="cart"],
div[wire\\:id] #cart-count.bg-gradient-wine {
    background: linear-gradient(145deg, #1ed760 0%, #1db954 62%, #169c46 100%) !important;
    box-shadow: 0 4px 10px rgba(29, 185, 84, 0.35) !important;
    border: none !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-shadow: none;
    color: #ffffff !important;
}

#cart-count.bg-gradient-wine:hover,
span#cart-count.bg-gradient-wine:hover,
span[id="cart-count"].bg-gradient-wine:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 14px rgba(29, 185, 84, 0.42) !important;
}

/* ===== SOBRESCRITURA DE HOVERS PÚRPURA A CAPIBARA ===== */

/* Hovers de texto purple → terracotta */
.hover\:text-purple-600:hover,
.hover\:text-purple-700:hover,
.hover\:text-purple-800:hover,
a:hover .text-purple-600,
a:hover .text-purple-700,
a:hover .text-purple-800,
button:hover .text-purple-600,
button:hover .text-purple-700 {
    color: #e76f51 !important;
}

/* Hovers de fondo purple → capibara claro */
.hover\:bg-purple-50:hover,
.hover\:bg-purple-100:hover,
a:hover .bg-purple-50,
button:hover .bg-purple-50 {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* Hovers de borde purple → terracotta */
.hover\:border-purple-300:hover,
.hover\:border-purple-400:hover,
.hover\:border-purple-500:hover,
a:hover .border-purple-300,
a:hover .border-purple-400,
a:hover .border-purple-500 {
    border-color: #e76f51 !important;
}

/* Hovers específicos del header */
header a:hover.text-purple-600,
header a:hover.text-purple-700,
header button:hover.text-purple-600,
header button:hover.text-purple-700,
header .hover\:text-purple-600:hover,
header .hover\:text-purple-700:hover {
    color: #e76f51 !important;
}

header a:hover.bg-purple-50,
header button:hover.bg-purple-50,
header .hover\:bg-purple-50:hover {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

header a:hover.border-purple-500,
header .hover\:border-purple-500:hover {
    border-color: #e76f51 !important;
}

/* Hovers en navegación */
nav a:hover.text-purple-600,
nav a:hover.text-purple-700,
nav .hover\:text-purple-600:hover,
nav .hover\:text-purple-700:hover {
    color: #e76f51 !important;
}

nav a:hover.bg-purple-50,
nav .hover\:bg-purple-50:hover {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* Hovers en dropdowns y menús */
.profile-dropdown a:hover.bg-purple-50,
.profile-dropdown .hover\:bg-purple-50:hover,
.dropdown a:hover.bg-purple-50 {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* Hovers en cards y productos */
.product-card:hover .text-purple-600,
.product-card:hover .text-purple-700,
.category-card:hover .text-purple-600 {
    color: #e76f51 !important;
}

.product-card:hover .border-purple-300,
.category-card:hover .border-purple-300 {
    border-color: rgba(231, 111, 81, 0.3) !important;
}

/* Hovers en botones y enlaces con purple */
a.text-purple-700:hover,
button.text-purple-700:hover,
a.bg-purple-50:hover,
button.bg-purple-50:hover {
    color: #e76f51 !important;
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* Hovers en grupo (group-hover) */
.group:hover .group-hover\:text-purple-600,
.group:hover .group-hover\:text-purple-700 {
    color: #e76f51 !important;
}

/* Hovers en mobile menu */
#mobile-menu a:hover.text-purple-700,
#mobile-menu button:hover.text-purple-700,
#mobile-menu .hover\:text-purple-700:hover {
    color: #e76f51 !important;
}

#mobile-menu a:hover.bg-purple-50,
#mobile-menu .hover\:bg-purple-50:hover {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* ===== ESTILOS ESPECÍFICOS PARA MINI-CARRITO ===== */
/* Badge de cantidad de productos */
.mini-cart-badge {
    background-color: rgba(231, 111, 81, 0.1) !important;
    color: #e76f51 !important;
}

/* Precio y cantidad de productos en mini-carrito */
.mini-cart-price {
    color: #e76f51 !important;
}

.mini-cart-price * {
    color: #e76f51 !important;
}

/* Botón eliminar (X) en mini-carrito */
.mini-cart-remove {
    color: #e76f51 !important;
}

.mini-cart-remove:hover {
    color: #99582a !important;
}

.mini-cart-remove i {
    color: inherit !important;
}

/* ===== SOBRESCRITURA GLOBAL DE COLORES PÚRPURA EN TODOS LOS BLADES ===== */
/* Aplicar nueva paleta de colores a todos los archivos blade modificados */

/* Textos purple → Negro (para precios y textos generales) */
.text-purple-400,
.text-purple-500,
.text-purple-600,
.text-purple-700,
.text-purple-800,
a.text-purple-600,
a.text-purple-700,
button.text-purple-600,
button.text-purple-700,
span.text-purple-600,
span.text-purple-700,
i.text-purple-600,
i.text-purple-700 {
    color: #000000 !important;
}

/* Iconos purple en navegación y menús → terracotta para acentos */
header i.text-purple-600,
header i.text-purple-700,
nav i.text-purple-600,
.dropdown i.text-purple-600,
.menu i.text-purple-600 {
    color: #e76f51 !important;
}

/* Fondos purple → capibara claro para acentos */
.bg-purple-50,
.bg-purple-100 {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

/* Bordes purple → terracotta */
.border-purple-200,
.border-purple-300,
.border-purple-400,
.border-purple-500,
.border-purple-700 {
    border-color: #e76f51 !important;
}

/* Hovers purple → terracotta */
.hover\:text-purple-300:hover,
.hover\:text-purple-400:hover,
.hover\:text-purple-600:hover,
.hover\:text-purple-700:hover,
.hover\:text-purple-800:hover,
a:hover .text-purple-600,
a:hover .text-purple-700,
button:hover .text-purple-600,
button:hover .text-purple-700 {
    color: #e76f51 !important;
}

.hover\:bg-purple-50:hover,
.hover\:bg-purple-100:hover,
a:hover .bg-purple-50,
button:hover .bg-purple-50 {
    background-color: rgba(231, 111, 81, 0.1) !important;
}

.hover\:border-purple-300:hover,
.hover\:border-purple-400:hover,
.hover\:border-purple-500:hover,
a:hover .border-purple-300,
a:hover .border-purple-400,
a:hover .border-purple-500 {
    border-color: #e76f51 !important;
}

/* Group hovers purple → terracotta */
.group:hover .group-hover\:text-purple-400,
.group:hover .group-hover\:text-purple-600,
.group:hover .group-hover\:text-purple-700 {
    color: #e76f51 !important;
}

/* Rings purple → terracotta */
.ring-purple-100,
.ring-purple-300 {
    --tw-ring-color: rgba(231, 111, 81, 0.1) !important;
}

.focus\:ring-purple-100:focus {
    --tw-ring-color: rgba(231, 111, 81, 0.1) !important;
}

.focus\:border-purple-400:focus {
    border-color: #e76f51 !important;
}

/* Gradientes purple en home hero - mantener pero ajustar */
.from-purple-700,
.via-purple-600,
.to-purple-800 {
    /* Estos se mantienen para el hero, pero se pueden ajustar si es necesario */
}

/* ===== ESTILOS ESPECÍFICOS PARA CARRITO ===== */
/* Botón Vaciar - Paleta wine (terracotta) */
#clear-cart,
.cart-btn-clear {
    color: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
}

#clear-cart:hover,
.cart-btn-clear:hover {
    color: var(--accent-primary) !important;
    background-color: rgba(231, 111, 81, 0.1) !important;
    border-color: var(--accent-primary) !important;
}

#clear-cart i,
.cart-btn-clear i {
    color: var(--accent-primary) !important;
}

/* Botón Seguir comprando - Usando spotify-green (verde esmeralda) */
.cart-btn-continue {
    color: var(--spotify-green) !important;
    border-color: var(--spotify-green) !important;
}

.cart-btn-continue:hover {
    color: var(--spotify-green) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: var(--spotify-green) !important;
}

.cart-btn-continue i {
    color: var(--spotify-green) !important;
}

/* Precios en carrito - Cambiar de púrpura a negro */
.item-subtotal,
.item-subtotal *,
#total,
#total *,
#subtotal,
#subtotal * {
    color: #000000 !important;
}

/* ===== ESTILOS PARA MODAL DE PAGO CON TARJETA ===== */
/* Asegurar que los colores de la paleta funcionen en SweetAlert2 */
.swal2-popup {
    max-width: 420px !important;
    padding: 1.5rem !important;
    padding-top: 1rem !important;
}

.swal2-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
}

.swal2-title {
    font-size: 1.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    flex: 1 !important;
    text-align: left !important;
}

.swal2-close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    margin-top: 0 !important;
    height: 2rem !important;
    width: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

/* ===== CHECK Y RADIO PERSONALIZADOS QUANTIX (marroncito naranja, atractivo e invitador) ===== */
/* Espacio fijo entre el control y el texto; diseño premium. */
.marketplace-body input[type="radio"],
.marketplace-body input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    flex-shrink: 0;
    margin: 0 1rem 0 0;
    border: 2px solid #e5e7eb;
    background-color: #fff;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    vertical-align: middle;
}
.marketplace-body input[type="radio"] {
    border-radius: 50%;
}
.marketplace-body input[type="radio"]:hover {
    border-color: rgba(231, 111, 81, 0.4);
    background-color: rgba(231, 111, 81, 0.04);
}
.marketplace-body input[type="radio"]:checked {
    background-color: var(--wine-primary);
    border-color: var(--wine-primary);
    border-width: 2px;
    box-shadow: inset 0 0 0 3px #fff, 0 2px 8px rgba(231, 111, 81, 0.35);
}
.marketplace-body input[type="radio"]:checked:hover {
    box-shadow: inset 0 0 0 3px #fff, 0 4px 12px rgba(231, 111, 81, 0.45);
}
.marketplace-body input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.2);
}
.marketplace-body input[type="radio"]:checked:focus {
    box-shadow: inset 0 0 0 3px #fff, 0 2px 8px rgba(231, 111, 81, 0.35), 0 0 0 3px rgba(231, 111, 81, 0.2);
}
.marketplace-body input[type="checkbox"] {
    border-radius: 0.5rem;
}
.marketplace-body input[type="checkbox"]:hover {
    border-color: rgba(231, 111, 81, 0.4);
    background-color: rgba(231, 111, 81, 0.04);
}
.marketplace-body input[type="checkbox"]:checked {
    background-color: var(--wine-primary);
    border-color: var(--wine-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 100% 100%;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.35);
}
.marketplace-body input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.2);
}
/* Radios/checkboxes dentro de modales SweetAlert2 */
.swal2-container input[type="radio"],
.swal2-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    flex-shrink: 0;
    margin: 0 1rem 0 0;
    border: 2px solid #e5e7eb;
    background-color: #fff;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.swal2-container input[type="radio"] {
    border-radius: 50%;
}
.swal2-container input[type="radio"]:checked {
    background-color: var(--wine-primary);
    border-color: var(--wine-primary);
    box-shadow: inset 0 0 0 3px #fff, 0 2px 8px rgba(231, 111, 81, 0.35);
}
.swal2-container input[type="checkbox"] {
    border-radius: 0.5rem;
}
.swal2-container input[type="checkbox"]:checked {
    background-color: var(--wine-primary);
    border-color: var(--wine-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 100% 100%;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.35);
}

/* Radio/checkbox con color wine (compatibilidad con clases existentes) */
input[type="radio"].card-radio:checked {
    accent-color: var(--wine-primary) !important;
}
input[type="radio"].card-radio:focus {
    --tw-ring-color: var(--wine-primary) !important;
}
input[type="checkbox"]:checked {
    accent-color: var(--wine-primary) !important;
}
input[type="checkbox"]:focus {
    --tw-ring-color: var(--wine-primary) !important;
}

/* Inputs con focus wine-primary */
input:focus,
select:focus,
textarea:focus {
    --tw-ring-color: var(--wine-primary) !important;
    border-color: var(--wine-primary) !important;
}

/* Botón cancelar con secondary-color */
.swal2-cancel {
    background-color: var(--secondary-color) !important;
    color: white !important;
    border: none !important;
}

.swal2-cancel:hover {
    background-color: var(--secondary-dark) !important;
}

/* Botón agregar nueva tarjeta - hover con texto blanco */
.add-new-card-btn {
    background-color: transparent !important;
}

.add-new-card-btn:hover {
    background-color: var(--accent-primary) !important;
    color: white !important;
    border-color: var(--accent-primary) !important;
}

.add-new-card-btn:hover i {
    color: white !important;
}

/* Selector más específico para precios en el carrito */
.cart .text-purple-600,
.item-subtotal.text-purple-600,
#total.text-purple-600,
span.text-purple-600.item-subtotal,
span.text-purple-600#total {
    color: #000000 !important;
}

/* ===== SIDEBAR DEL CARRITO - SIEMPRE POR ENCIMA ===== */
/* El sidebar del carrito usa fixed positioning, así que siempre está por encima */
/* No necesita z-index especial porque fixed crea su propio stacking context */

/* Asegurar que elementos sticky tengan z-index bajo para no interferir */
.lg\:sticky,
div[class*="sticky"],
div.lg\:sticky {
    z-index: 10 !important;
}

/* Header sticky también debe estar por debajo del sidebar del carrito */
#sticky-header,
header[class*="sticky"],
header[class*="fixed"],
div[id="sticky-header"] {
    z-index: 40 !important;
}

/* Forzar z-index bajo en el resumen del pedido sticky */
div[class*="lg:sticky"][class*="lg:top"] {
    z-index: 10 !important;
}

/* Prevenir scroll del body cuando el sidebar está abierto */
body.sidebar-open {
    overflow: hidden;
}

/* ===== HOME CATEGORIES STRIP (terracota espejo + relieve) ===== */
@media (min-width: 1024px) {
    .home-categories-strip .home-category-scroll {
        display: grid;
        justify-items: center;
    }

    .home-categories-strip .home-category-list {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        justify-items: center;
        gap: 0.5rem;
        width: max-content;
        max-width: 100%;
    }
}

.home-category-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 52%, #fef8f5 100%);
    border: 1px solid rgba(var(--wine-primary-rgb), 0.38);
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-category-card:hover {
    background: linear-gradient(180deg, #ffffff 0%, #fff9f5 100%);
    border-color: rgba(var(--wine-primary-rgb), 0.55);
    box-shadow: none;
}

/* Círculo: terracota con brillo espejo y volumen */
.home-category-icon-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(118deg,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.18) 26%,
            rgba(255, 255, 255, 0) 50%),
        radial-gradient(ellipse 100% 85% at 32% 22%, rgba(255, 214, 200, 0.95) 0%, rgba(255, 180, 155, 0.35) 42%, rgba(255, 140, 110, 0) 72%),
        linear-gradient(158deg, #f4a261 0%, #e76f51 36%, #cf5a3f 68%, #9e3f2c 100%);
    border: none;
    /* Solo relieve claro (sin sombras oscuras ni halo que “corte” la card) */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-category-icon-wrap::before {
    content: "";
    position: absolute;
    top: -35%;
    left: 8%;
    right: 18%;
    height: 58%;
    border-radius: 50%;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
    pointer-events: none;
    transform: rotate(-10deg);
    z-index: 0;
}

.home-category-card:hover .home-category-icon-wrap {
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.65);
    transform: scale(1.06);
}

.home-category-icon {
    color: #fffaf7;
    text-shadow:
        0 1px 0 rgba(100, 40, 28, 0.35),
        0 -1px 0 rgba(255, 255, 255, 0.22);
    filter: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-category-card:hover .home-category-icon {
    color: #ffffff;
    filter: none;
}

.home-category-name {
    color: #1f2937;
}

.home-category-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-color: transparent transparent;
}

.home-category-scroll::-webkit-scrollbar {
    height: 6px;
}

.home-category-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 9999px;
}

.home-category-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 9999px;
}

.home-category-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #ffffff;
    color: var(--wine-primary);
    border: 1px solid rgba(var(--wine-primary-rgb), 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: opacity .2s ease, transform .2s ease;
}

.home-category-nav:hover {
    border-color: rgba(var(--wine-primary-rgb), 0.45);
}

.home-category-nav-prev {
    left: 2px;
}

.home-category-nav-next {
    right: 2px;
}

.home-category-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}
