/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

:root {
    /* Colores principales */
    --primary-color: #0099cc;
    --primary-dark: #007799;
    --primary-light: #00b8e6;
    --secondary-color: #0088bb;
    --secondary-dark: #006699;
    
    /* Colores de acento */
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-orange: #f59e0b;
    --accent-orange-dark: #d97706;
    --accent-pink: #ec4899;
    --accent-purple: #0099cc;
    --accent-blue: #3b82f6;
    
    /* Colores de estado */
    --success-color: #10b981;
    --success-light: #34d399;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Colores de fondo */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0099cc 0%, #007799 100%);
    --bg-gradient-primary: linear-gradient(135deg, #0099cc 0%, #0066cc 100%);
    
    /* Colores de texto */
    --text-color: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Bordes y sombras */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header .container {
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-nav {
        padding: 10px 0;
    }
    
    .main-nav ul {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-nav {
        padding: 10px 0;
    }
    
    .main-nav ul {
        padding: 0 10px;
    }
    
    .nav-dropdown-toggle {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .nav-dropdown-menu {
        min-width: 160px;
        max-width: 220px;
        max-height: 250px;
        left: 0;
        right: auto;
    }
    
    .nav-dropdown-menu a {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    box-sizing: border-box;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    font-size: 32px;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    min-width: 200px;
}

.search-bar form {
    display: flex;
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-bar button {
    padding: 12px 20px;
    background: var(--bg-gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 153, 204, 0.3);
}

.search-bar button:hover {
    background: linear-gradient(135deg, #007799 0%, #0066cc 100%);
    box-shadow: 0 4px 8px rgba(0, 153, 204, 0.4);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: var(--white);
    font-size: 28px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.4);
    transition: all 0.3s ease;
}

/* Botón flotante del carrito */
.cart-icon-floating {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9998;
    cursor: pointer;
}

.cart-icon:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 153, 204, 0.5);
}

.cart-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.3);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-orange) 100%);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(236, 72, 153, 0.5);
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.admin-link {
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    background: var(--white);
    width: 100%;
    position: relative;
    overflow: visible !important;
    z-index: 10000;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Zoom de imágenes de producto */
.zoomable-image {
    cursor: zoom-in;
}

.lightbox-open {
    overflow: hidden;
}

.product-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 10010;
    padding: 20px;
}

.product-image-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.product-image-lightbox-img {
    position: relative;
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    background: #fff;
    z-index: 1;
}

.product-image-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.product-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 30px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 1;
}

.product-image-lightbox-nav.prev {
    left: 18px;
}

.product-image-lightbox-nav.next {
    right: 18px;
}

.product-image-lightbox-nav:hover {
    background: #ffffff;
    color: #111827;
}

.product-image-lightbox-nav:active,
.product-image-lightbox-nav:focus,
.product-image-lightbox-nav:focus-visible {
    background: #ffffff;
    color: #111827;
    opacity: 1;
    outline: none;
}

.product-image-lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 3;
}

.main-nav ul li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Nav Dropdown (reemplazo profesional de selects) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: inherit;
    font-family: inherit;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
    background: rgba(0, 153, 204, 0.08);
}

.nav-dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--primary-color);
    background: rgba(0, 153, 204, 0.12);
}

.nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    max-width: 300px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    list-style: none;
    pointer-events: none;
}

.nav-dropdown.active .nav-dropdown-menu {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 153, 204, 0.1);
    color: var(--primary-color);
    padding-left: 24px;
}

.nav-dropdown-empty {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

/* Scrollbar personalizado para el menú */
.nav-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown-menu::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.nav-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Mantener estilos de dropdown antiguos por si acaso */
.dropdown {
    position: relative;
    z-index: 10000;
    overflow: visible !important;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: fixed !important;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    max-width: 200px;
    list-style: none;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999 !important;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 15px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient-primary);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Sección Reparación y Servicios Informáticos */
.services-section {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.services-section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-primary);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.service-list li i {
    color: var(--success-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-services {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: var(--white) !important;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-services:hover {
    background: #20bd5a;
    color: var(--white) !important;
    transform: scale(1.02);
}

.services-cta-text {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* Sections */
.section-title {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--text-color);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-card a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
    opacity: 0.8;
}

.category-card h3 {
    padding: 15px;
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card p {
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-card a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
    background: var(--bg-color);
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

.product-card:hover .product-image {
    overflow: hidden;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    max-width: 100%;
    max-height: 100%;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-light);
}

.product-placeholder.large {
    height: 400px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Aviso sync CDR: Arribando / Aún no disponible — sobre la foto */
.product-arribando-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: var(--bg-gradient-primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 8px 10px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0, 119, 153, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.product-arribando-badge--detail {
    font-size: 0.92rem;
    padding: 10px 12px;
    border-radius: 0 0 12px 12px;
}

.product-arribando-badge--card {
    font-size: 0.68rem;
    padding: 6px 8px;
    line-height: 1.2;
}

.product-arribando-badge--small {
    font-size: 0.6rem;
    padding: 4px 5px;
    line-height: 1.15;
}

.product-arribando-badge--cart {
    font-size: 0.55rem;
    padding: 3px 4px;
    line-height: 1.1;
}

/* 12 cuotas (precio / 12) bajo el precio */
.product-installments {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.35;
}

/* Pastilla celeste: frase completa "12 cuotas de USD …" */
.product-installments-label {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
    display: inline-block;
    max-width: 100%;
    padding: 6px 12px 7px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 184, 230, 0.22) 0%, rgba(0, 153, 204, 0.18) 100%);
    border: 1px solid rgba(0, 153, 204, 0.35);
    box-shadow: 0 1px 2px rgba(0, 119, 153, 0.12);
    line-height: 1.35;
    box-sizing: border-box;
    word-break: break-word;
}

.product-installments--detail {
    font-size: 1.05rem;
}

.product-installments--detail .product-installments-label {
    padding: 7px 14px 8px;
    border-radius: 10px;
}

.product-installments--card {
    font-size: 0.78rem;
    margin-top: 2px;
    line-height: 1.25;
}

.product-installments--card .product-installments-label {
    padding: 4px 8px 5px;
    border-radius: 6px;
}

.product-installments--small {
    font-size: 0.7rem;
    margin-top: 2px;
    line-height: 1.2;
}

.product-installments--small .product-installments-label {
    padding: 3px 6px 4px;
    border-radius: 5px;
}

.product-installments--cart {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
}

.product-installments--cart .product-installments-label {
    padding: 4px 8px 5px;
    border-radius: 6px;
}

.product-installments--checkout,
.product-installments--checkout-total {
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    color: var(--text-light);
}

.product-installments--checkout-total {
    margin-top: 10px;
    font-size: 0.95rem;
}

.product-installments--checkout .product-installments-label,
.product-installments--checkout-total .product-installments-label {
    padding: 5px 10px 6px;
    border-radius: 7px;
}

.product-info {
    padding: 10px;
    padding-bottom: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    flex-shrink: 0;
}

.product-brand {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.product-category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.product-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-info-footer {
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
    width: 100%;
}

.product-info-footer .product-price {
    margin-bottom: 8px;
}

.product-info-footer .btn {
    width: 100%;
}

.product-estado {
    font-size: 13px;
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-estado.en-stock {
    color: #0d8050;
}

.product-estado.agotado {
    color: #a94442;
}

.product-estado.consultar {
    color: #0066aa;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-large {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 0;
    line-height: 1.1;
}

/* Fila solo del precio + etiqueta; las cuotas van en el hermano siguiente (evita desborde en una línea) */
.product-price-large-line {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-details .product-price-large .product-installments--detail {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    clear: left;
}

.product-price-large-main {
    font-size: 36px;
    font-weight: bold;
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.product-price-large .price-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    margin-top: 5px;
}

.iva-text {
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}

.product-price-large .iva-text {
    font-size: 0.6em;
    margin-left: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--bg-gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #007799 0%, #0066cc 100%);
    box-shadow: 0 6px 12px rgba(0, 153, 204, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--text-secondary) 0%, #64748b 100%);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(71, 85, 105, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 6px 12px rgba(71, 85, 105, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Product Detail */
.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    align-items: start;
}

.product-images {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.main-image-container {
    position: relative;
    max-height: 460px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    background: var(--bg-color);
    padding: 10px;
}

.main-product-image {
    width: auto;
    max-width: calc(100% - 96px);
    max-height: 440px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    transition: transform 0.3s, opacity 0.3s ease-in-out;
    opacity: 1;
    margin: auto;
}

.main-product-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.product-details {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.product-details h1,
.product-details p,
.product-details .product-price-large {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.image-gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    width: 82px;
    min-width: 82px;
    max-height: 440px;
    order: -1;
}

.thumbnail {
    min-width: 76px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 153, 204, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .main-image-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px;
        max-height: none;
        overflow: visible;
    }

    .main-product-image {
        max-width: 100%;
        max-height: 300px;
    }

    .image-gallery-thumbnails {
        flex-direction: row;
        width: auto;
        min-width: 0;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 0;
        order: 2;
        justify-content: flex-start;
    }

    .thumbnail {
        min-width: 64px;
        width: 64px;
        height: 64px;
    }

    .product-image-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 26px;
        background: #ffffff;
        color: #111827;
        z-index: 30;
        opacity: 1;
    }

    .product-image-lightbox-nav.prev {
        left: 8px;
    }

    .product-image-lightbox-nav.next {
        right: 8px;
    }
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    pointer-events: all;
    transition: all 0.3s;
}

.gallery-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

.existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.image-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 8px;
}

/* Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: zoom-in;
    user-select: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
}

.modal-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.zoom-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-description {
    margin: 30px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.product-description p {
    max-width: 100%;
    overflow-wrap: break-word;
}

.product-description h3 {
    margin-bottom: 10px;
}

.product-stock {
    margin: 20px 0;
}

.stock-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stock-available {
    color: var(--accent-green);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #0E7A6D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 18px;
}

.stock-unavailable {
    color: var(--danger-color);
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 500;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

.qty-btn:hover {
    background: var(--bg-color);
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product-actions {
    margin-top: 30px;
}

/* Cart */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-table {
    width: 100%;
    max-width: 100%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    table-layout: auto;
    box-sizing: border-box;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-table th {
    background: var(--bg-color);
    font-weight: 600;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-product-image-wrap {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.cart-product img,
.cart-product-image-wrap img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    max-width: 100%;
    flex-shrink: 0;
    display: block;
}

.cart-product h3 {
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cart-product a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.cart-product a {
    color: var(--text-color);
    text-decoration: none;
}

.cart-product a:hover {
    color: var(--primary-color);
}

.cart-table input[type="number"] {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg-secondary) 100%);
}

.summary-card h2 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.empty-cart i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 10px;
}

/* Checkout */
.checkout-content {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.checkout-form h2 {
    margin: 30px 0 20px;
    font-size: 24px;
}

.checkout-form h2:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.order-summary {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 0;
}

.order-item-price {
    display: block;
    font-weight: 600;
}

.order-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 20px;
}

.order-total-extras {
    width: 100%;
    text-align: right;
}

/* Success/Error Messages */
.success-message,
.error-message,
.pending-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 40px auto;
}

.success-icon,
.error-icon,
.pending-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-icon {
    color: var(--accent-green);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.error-icon {
    color: var(--danger-color);
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

.pending-icon {
    color: var(--accent-orange);
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.success-actions,
.error-actions,
.pending-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-current {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: bold;
}

.page-link {
    padding: 10px 15px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    background: var(--bg-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.no-results i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-header {
    margin-bottom: 30px;
}

.results-count {
    color: var(--text-light);
    margin-top: 10px;
}

/* Filtros de Marcas */
.filters-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.filters-header h3 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-header h3 i {
    color: var(--primary-color);
}

.clear-filter {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.brand-filter-btn:hover {
    background: rgba(0, 153, 204, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 153, 204, 0.2);
}

.brand-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

.brand-filter-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
}

.brand-count {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

.brand-filter-btn.active .brand-count {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .filters-section {
        padding: 15px;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .brand-filters {
        gap: 8px;
    }
    
    .brand-filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.related-products {
    margin-top: 50px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

/* Estilos específicos para la lista de categorías en el footer */
.footer-categories ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px 15px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.footer-categories ul li {
    margin-bottom: 6px;
}

/* Scrollbar personalizado para la lista de categorías */
.footer-categories ul::-webkit-scrollbar {
    width: 6px;
}

.footer-categories ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.footer-categories ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.footer-categories ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive para categorías en el footer */
@media (max-width: 768px) {
    .footer-categories ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        max-height: 180px;
    }
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    margin-bottom: 8px;
    color: #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.footer-section p i {
    flex-shrink: 0;
}

.contact-link {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
}

.contact-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-link {
        padding: 4px 6px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid var(--danger-light);
    border-left: 4px solid var(--danger-color);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }
    
    .logo {
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .main-nav ul {
        justify-content: flex-start;
    }
    
    .main-nav ul li {
        display: flex;
        align-items: center;
    }
    
    .nav-dropdown-toggle {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .nav-dropdown-menu {
        min-width: 180px;
        max-width: 250px;
        max-height: 300px;
    }
    
    .nav-dropdown-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .search-bar {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 80px);
    }
    
    .header-actions {
        gap: 10px;
        flex-shrink: 0;
    }
    
    .cart-icon {
        font-size: 26px;
        padding: 14px 18px;
        min-width: 60px;
        min-height: 60px;
        border-radius: 14px;
    }
    
    .cart-icon-floating {
        top: 40px;
        right: 15px;
    }
    
    .cart-count {
        width: 26px;
        height: 26px;
        font-size: 14px;
        top: -4px;
        right: -4px;
    }
    
    .search-bar input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-bar button {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        padding-bottom: 170px; /* espacio para que el contenido no quede tapado por la barra fija */
    }
    
    .main-image-container {
        max-height: none;
        overflow: visible;
    }

    .main-product-image {
        max-height: 280px;
    }
    
    /* Página producto en móvil: título más pequeño; cantidad y agregar al carrito fijos abajo desde el inicio */
    .product-details h1 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .product-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: var(--white);
        margin: 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    }
    .product-actions .quantity-selector {
        margin-bottom: 12px;
    }
    .product-actions .add-to-cart,
    .product-actions .btn-large {
        width: 100%;
    }
    
    .stock-info-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-items {
        overflow-x: visible;
        width: 100%;
        max-width: 100%;
    }
    
    .cart-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table {
        overflow: visible;
        table-layout: auto;
        border: none;
        box-shadow: none;
        background: transparent;
        width: 100%;
        max-width: 100%;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: block;
    }
    
    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        padding: 15px;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table td {
        display: block;
        padding: 10px 0;
        text-align: left;
        border-bottom: none;
        position: relative;
        padding-left: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: var(--text-light);
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .cart-table td:first-child {
        padding-top: 0;
    }
    
    .cart-table td:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-product img,
    .cart-product-image-wrap img {
        width: 100%;
        max-width: 120px;
        height: auto;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .cart-product-image-wrap {
        width: 100%;
        max-width: 120px;
        height: auto;
    }
    
    .cart-product > div {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .hero-section {
        padding: 25px 0;
        margin-bottom: 20px;
    }
    
    .hero-section h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .hero-section p {
        font-size: 15px;
        margin-bottom: 0;
    }
    
    .main-nav {
        overflow: visible;
        padding: 8px 0;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 5px;
    }
    
    .main-nav ul li {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .main-nav a {
        font-size: 14px;
    }
}

/* About Section */
.about-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

.about-intro {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-commitment {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    text-align: center;
}

.about-commitment h2 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.commitment-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 25px 20px;
    }
    
    .about-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .about-intro {
        font-size: 18px;
    }
    
    .about-commitment {
        padding: 20px;
        margin-top: 30px;
    }
    
    .about-commitment h2 {
        font-size: 20px;
    }
    
    .commitment-text {
        font-size: 18px;
    }
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--bg-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-card p {
    margin: 0;
    font-size: 16px;
}

.contact-message {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-message h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-message p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.contact-message p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 25px 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-message {
        padding: 20px;
    }
    
    .contact-message h2 {
        font-size: 20px;
    }
    
    .contact-message p {
        font-size: 15px;
    }
}

/* Contact Card Interactions */
.contact-card {
    cursor: pointer;
    user-select: none;
}

.contact-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

.contact-link-text {
    color: var(--text-color);
    font-weight: 500;
}

/* Contact Form Container */
.contact-form-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.contact-form-container.show {
    opacity: 1;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-form-container.show .contact-form-wrapper {
    transform: scale(1);
}

.close-form-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-secondary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-form-btn:hover {
    background: var(--danger-color);
    color: var(--white);
    transform: rotate(90deg);
}

.contact-form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-color);
    padding-right: 40px;
}

.contact-form-wrapper .form-group {
    margin-bottom: 20px;
}

.contact-form-wrapper .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form-wrapper .form-group input,
.contact-form-wrapper .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form-wrapper .form-group input:focus,
.contact-form-wrapper .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form-wrapper .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-wrapper .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 25px 20px;
        max-height: 95vh;
    }
    
    .contact-form-wrapper h2 {
        font-size: 20px;
        padding-right: 35px;
    }
    
    .close-form-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .contact-hint {
        font-size: 11px;
    }
        padding: 5px 8px;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: fixed;
        background: var(--white);
        box-shadow: var(--shadow-hover);
        border-radius: 8px;
        padding: 10px 0;
        min-width: 150px;
        max-width: 200px;
        margin-top: 10px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 10000;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-zoom-controls {
        bottom: 20px;
    }
    
    .zoom-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .hero-section h1 {
        font-size: 22px;
        margin-bottom: 5px;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 14px;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .cart-icon {
        font-size: 24px;
        padding: 16px 20px;
        min-width: 64px;
        min-height: 64px;
        border-radius: 16px;
    }
    
    .cart-icon-floating {
        top: 40px;
        right: 10px;
        font-size: 22px;
        padding: 14px 18px;
        min-width: 56px;
        min-height: 56px;
    }
    
    .cart-count {
        width: 28px;
        height: 28px;
        font-size: 15px;
        top: -2px;
        right: -2px;
    }
    
    .dropdown-menu {
        max-width: 180px;
        min-width: 120px;
        position: fixed;
        background: var(--white);
        box-shadow: var(--shadow-hover);
        border-radius: 8px;
        padding: 10px 0;
        margin-top: 10px;
        z-index: 10000;
    }
    
    .main-nav {
        overflow: visible;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        overflow: visible;
    }
    
    h1 {
        font-size: 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .cart-table {
        font-size: 14px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .cart-table tr {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .cart-table td {
        font-size: 14px;
    }
    
    .cart-table td[data-label="Precio"]:before,
    .cart-table td[data-label="Subtotal"]:before {
        color: var(--primary-color);
    }
    
    .cart-table td[data-label="Acciones"]:before {
        display: none;
    }
    
    .cart-table td[data-label="Acciones"] {
        text-align: right;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }
    
    .cart-product h3 {
        font-size: 14px;
    }
    
    .cart-table input[type="number"] {
        width: 100%;
        max-width: 100px;
        padding: 8px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .cart-table form {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table .btn-sm {
        width: auto;
        padding: 8px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .summary-card {
        padding: 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .summary-card h2 {
        font-size: 18px;
        word-wrap: break-word;
    }
    
    .btn-block {
        width: 100%;
        margin-bottom: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-items form[style*="margin-top"] {
        margin-top: 15px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-items .btn-secondary {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-summary {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-bar {
        min-width: 0;
        max-width: 100%;
    }
    
    .header-top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    padding: 12px 20px;
    gap: 10px;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: var(--white);
    font-size: 24px;
}

.whatsapp-text {
    color: var(--white);
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
        gap: 8px;
    }
    
    .whatsapp-float i {
        font-size: 20px;
    }
    
    .whatsapp-text {
        font-size: 14px;
    }
    
    /* En página producto ocultar el flotante para que no tape la barra de agregar al carrito */
    body.pagina-producto .whatsapp-float {
        display: none !important;
    }
}

/* Carrusel de Productos */
.products-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: var(--bg-color);
    padding: 15px 0;
    margin-bottom: 10px;
    position: relative;
}

.products-carousel-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-carousel-container::-webkit-scrollbar {
    display: none;
}

.products-carousel {
    display: flex;
    gap: 15px;
    width: fit-content;
}

/* Botones atrás / adelante del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.carousel-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.carousel-btn-prev {
    left: 10px;
}
.carousel-btn-next {
    right: 10px;
}

/* Tarjetas pequeñas del carrusel */
.product-card-small {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
}

.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.product-card-small a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-small {
    position: relative;
    width: 100%;
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-small img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
}

.product-card-small:hover .product-image-small img {
    transform: scale(1.05);
}

.product-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-light);
}

.badge-small {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-small {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info-small h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
}

.product-brand-small {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price-small {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 8px;
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .product-card-small {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }
    
    .product-image-small {
        height: 120px;
        min-height: 120px;
        max-height: 120px;
    }
    
    .product-info-small h4 {
        font-size: 12px;
        min-height: 32px;
    }
    
    .product-price-small {
        font-size: 14px;
    }
    
    .products-carousel {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .product-card-small {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
    }
    
    .product-image-small {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
    }
    
    .products-carousel {
        gap: 10px;
    }
    
    .stock-info-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Modales personalizados */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-modal-header i {
    font-size: 24px;
    color: var(--primary-color);
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--text-color);
    flex: 1;
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.custom-modal-body {
    padding: 24px;
}

.custom-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.custom-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.custom-modal-btn-primary {
    background: var(--bg-gradient-primary);
    color: var(--white);
}

.custom-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.4);
}

.custom-modal-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.custom-modal-btn-secondary:hover {
    background: var(--border-color);
}

.custom-modal-btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.custom-modal-btn-danger:hover {
    background: var(--danger-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Modal de confirmación */
.custom-modal.confirm-modal .custom-modal-header i {
    color: var(--warning-color);
}

.custom-modal.alert-modal .custom-modal-header i {
    color: var(--info-color);
}

@media (max-width: 768px) {
    .custom-modal {
        max-width: 90%;
        margin: 20px;
    }
    
    .custom-modal-header {
        padding: 20px 20px 12px;
    }
    
    .custom-modal-header h3 {
        font-size: 20px;
    }
    
    .custom-modal-body {
        padding: 20px;
    }
    
    .custom-modal-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    
    .custom-modal-btn {
        width: 100%;
    }
}