   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            background-color: #f5f5f5;
        }

        /* Header */
        .header {
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        /* Logo */
        .logo {
            display: flex;
            align-items: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .logo img {
            height: 100px;
            width: auto;
            transition: transform 0.3s;
        }

        .logo img:hover {
            transform: scale(1.05);
        }

        /* Menú hamburguesa */
        .menu-toggle {
            display: none;
            font-size: 22px;
            cursor: pointer;
            background: none;
            border: none;
            color: #dc3545;
            padding: 8px;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-menu a {
            text-decoration: none;
            color: #555;
            font-weight: 500;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }

        .nav-menu a:hover {
            color: #dc3545;
        }

        /* Barra de búsqueda */
        .search-bar {
            flex: 1;
            max-width: 500px;
            display: flex;
            gap: 8px;
        }

        .search-bar input {
            flex: 1;
            padding: 10px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
            background: #f8f8f8;
        }

        .search-bar input:focus {
            border-color: #dc3545;
            background: #fff;
        }

        .search-bar button {
            padding: 10px 20px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 14px;
        }

        .search-bar button:hover {
            background: #c82333;
        }

        /* Carrito */
        .cart-icon {
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #fff5f0;
            border-radius: 30px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .cart-icon:hover {
            background: #ffe6e6;
        }

        .cart-icon i {
            font-size: 20px;
            color: #dc3545;
        }

        .cart-count {
            background: #dc3545;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 11px;
            font-weight: bold;
            position: absolute;
            top: -5px;
            right: -5px;
            min-width: 18px;
            text-align: center;
        }

        .cart-icon span:last-child {
            font-size: 14px;
            font-weight: 500;
        }

        /* Filtros */
        .filters {
            background: white;
            padding: 12px 16px;
            margin-bottom: 20px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 65px;
            z-index: 99;
        }

        .filters-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f8f9fa;
            padding: 4px 12px;
            border-radius: 25px;
        }

        .filter-group label {
            font-weight: 500;
            color: #666;
            font-size: 13px;
        }

        .filter-group select {
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
            cursor: pointer;
            background: white;
            font-size: 13px;
        }

        /* Productos en oferta destacados */
        .offers-section {
            max-width: 1400px;
            margin: 0 auto 30px;
            padding: 0 16px;
        }

        .offers-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .offers-header h2 {
            font-size: 22px;
            color: #dc3545;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .offers-header h2 i {
            font-size: 24px;
            animation: pulse 1.5s infinite;
        }

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

        /* Scroll horizontal para ofertas */
        .offers-grid {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 16px;
            padding-bottom: 10px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }

        .offers-grid::-webkit-scrollbar {
            height: 4px;
        }

        .offers-grid::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .offers-grid::-webkit-scrollbar-thumb {
            background: #dc3545;
            border-radius: 10px;
        }

        /* Productos normales */
        .products-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 16px 40px;
        }

        .products-header {
            margin-bottom: 20px;
        }

        .products-header h1 {
            font-size: 24px;
            color: #333;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        /* Tarjeta de producto */
        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        }

        /* Badge de oferta */
        .offer-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: #dc3545;
            color: white;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: bold;
            z-index: 2;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* Carrusel de imágenes */
        .carousel-container {
            position: relative;
            width: 100%;
            height: 220px;
            overflow: hidden;
            background: #f8f9fa;
        }

        .carousel-slides {
            display: flex;
            transition: transform 0.3s ease-out;
            height: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            padding: 6px 10px;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.3s;
            z-index: 2;
            font-size: 14px;
        }

        .carousel-btn:hover {
            background: rgba(0,0,0,0.8);
        }

        .carousel-btn.prev {
            left: 8px;
        }

        .carousel-btn.next {
            right: 8px;
        }

        .carousel-dots {
            position: absolute;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 2;
        }

        .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.6);
            cursor: pointer;
            transition: all 0.2s;
        }

        .dot.active {
            background: #dc3545;
            width: 16px;
            border-radius: 10px;
        }

        .product-info {
            padding: 12px;
        }

        .product-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 40px;
            line-height: 1.4;
        }

        .product-price {
            font-size: 18px;
            font-weight: bold;
            color: #dc3545;
            margin-bottom: 6px;
        }

        .product-stock {
            font-size: 12px;
            color: #28a745;
            margin-bottom: 8px;
        }

        .product-stock.low {
            color: #ffc107;
        }

        .product-stock.out {
            color: #dc3545;
        }

        .product-category {
            font-size: 11px;
            color: #999;
            margin-bottom: 10px;
        }

        .product-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }

        .btn-cart, .btn-buy {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 13px;
        }

        .btn-cart {
            background: white;
            border: 1.5px solid #dc3545;
            color: #dc3545;
        }

        .btn-cart:hover {
            background: #dc3545;
            color: white;
        }

        .btn-buy {
            background: #dc3545;
            color: white;
        }

        .btn-buy:hover {
            background: #c82333;
        }

        /* Carrito lateral */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            height: 100%;
            background: white;
            box-shadow: -2px 0 20px rgba(0,0,0,0.15);
            z-index: 1000;
            transition: right 0.3s;
            display: flex;
            flex-direction: column;
        }

        .cart-sidebar.open {
            right: 0;
        }

        .cart-header {
            padding: 16px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cart-header h3 {
            font-size: 18px;
            color: #333;
        }

        .cart-header button {
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            color: #999;
        }

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        .cart-item {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #eee;
        }

        .cart-item-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-name {
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .cart-item-price {
            color: #dc3545;
            font-weight: bold;
            font-size: 14px;
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
        }

        .cart-item-quantity button {
            width: 26px;
            height: 26px;
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.2s;
            font-size: 12px;
        }

        .cart-item-quantity button:hover {
            background: #f0f0f0;
        }

        .cart-footer {
            padding: 16px 20px;
            border-top: 1px solid #eee;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 12px;
        }

        .checkout-btn {
            width: 100%;
            padding: 12px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
        }

        .checkout-btn:hover {
            background: #c82333;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }

        .overlay.active {
            display: block;
        }

        .results-info {
            margin-bottom: 16px;
            color: #666;
            font-size: 13px;
        }

        .no-products {
            text-align: center;
            padding: 60px;
            color: #999;
        }

        /* Footer con imagen */
        .footer {
            background: #1a1a1a;
            text-align: center;
            padding: 0;
            margin-top: 40px;
            width: 100%;
        }

        .footer-image {
            width: 100%;
            display: block;
        }

        .footer-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        /* Menu móvil */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -280px;
            width: 280px;
            height: 100%;
            background: white;
            z-index: 1001;
            transition: left 0.3s;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            padding: 20px;
        }

        .mobile-menu.open {
            left: 0;
        }

        .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .mobile-menu-header img {
            height: 50px;
        }

        .mobile-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            text-decoration: none;
            color: #555;
            font-size: 15px;
            transition: color 0.3s;
        }

        .mobile-menu a:hover {
            color: #dc3545;
        }

        /* ========== MEJORAS RESPONSIVE - ESTILO ECOMMERCE MODERNO ========== */
        @media (max-width: 768px) {
            /* Header compacto */
            .header-content {
                padding: 8px 12px;
                gap: 10px;
            }
            
            .logo img {
                height: 50px;
            }
            
            .menu-toggle {
                display: block;
                font-size: 20px;
            }
            
            .nav-menu {
                display: none;
            }
            
            .cart-icon span:last-child {
                display: none;
            }
            
            .cart-icon {
                padding: 8px;
                gap: 0;
            }
            
            /* Barra de búsqueda móvil */
            .search-bar {
                order: 3;
                max-width: 100%;
                width: 100%;
                margin-top: 8px;
            }
            
            .search-bar input {
                padding: 8px 14px;
                font-size: 13px;
            }
            
            .search-bar button {
                padding: 8px 16px;
                font-size: 13px;
            }
            
            /* Filtros móvil */
            .filters {
                top: 60px;
                padding: 10px 12px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .filters-container {
                flex-wrap: nowrap;
                justify-content: flex-start;
                gap: 10px;
            }
            
            .filter-group {
                flex-shrink: 0;
                padding: 4px 10px;
            }
            
            .filter-group label {
                font-size: 12px;
            }
            
            .filter-group select {
                font-size: 12px;
                padding: 4px 8px;
            }
            
            /* Scroll horizontal para ofertas */
            .offers-section {
                padding: 0 12px;
                margin-bottom: 25px;
            }
            
            .offers-header h2 {
                font-size: 18px;
            }
            
            .offers-header h2 i {
                font-size: 18px;
            }
            
            .offers-grid {
                gap: 12px;
                scroll-snap-type: x mandatory;
            }
            
            .offers-grid .product-card {
                flex: 0 0 160px;
                scroll-snap-align: start;
                margin-right: 0;
            }
            
            /* Grid productos 2 columnas */
            .products-section {
                padding: 0 12px 30px;
            }
            
            .products-header h1 {
                font-size: 20px;
                margin-bottom: 12px;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            /* Tarjetas compactas */
            .product-card {
                border-radius: 10px;
            }
            
            .carousel-container {
                height: 150px;
            }
            
            .carousel-btn {
                padding: 4px 8px;
                font-size: 12px;
            }
            
            .product-info {
                padding: 10px;
            }
            
            .product-name {
                font-size: 12px;
                min-height: 34px;
                margin-bottom: 4px;
            }
            
            .product-price {
                font-size: 15px;
                margin-bottom: 4px;
            }
            
            .product-stock {
                font-size: 10px;
                margin-bottom: 6px;
            }
            
            .product-category {
                font-size: 10px;
                margin-bottom: 8px;
            }
            
            .product-actions {
                gap: 6px;
                margin-top: 6px;
            }
            
            .btn-cart, .btn-buy {
                padding: 6px;
                font-size: 11px;
                gap: 4px;
            }
            
            .btn-cart i, .btn-buy i {
                font-size: 10px;
            }
            
            .offer-badge {
                top: 8px;
                left: 8px;
                padding: 3px 8px;
                font-size: 10px;
            }
            
            /* Resultados info */
            .results-info {
                font-size: 12px;
                margin-bottom: 12px;
            }
            
            /* Carrito móvil */
            .cart-sidebar {
                width: 100%;
                right: -100%;
            }
            
            .cart-header {
                padding: 14px 16px;
            }
            
            .cart-items {
                padding: 12px;
            }
            
            .cart-item-image {
                width: 55px;
                height: 55px;
            }
            
            .cart-item-name {
                font-size: 12px;
            }
            
            .cart-item-price {
                font-size: 13px;
            }
        }
        
        /* Ajustes para móviles muy pequeños */
        @media (max-width: 480px) {
            .products-grid {
                gap: 10px;
            }
            
            .carousel-container {
                height: 130px;
            }
            
            .offers-grid .product-card {
                flex: 0 0 150px;
            }
            
            .product-info {
                padding: 8px;
            }
            
            .product-name {
                font-size: 11px;
                min-height: 30px;
            }
            
            .product-price {
                font-size: 14px;
            }
            
            .btn-cart, .btn-buy {
                padding: 5px;
                font-size: 10px;
            }
            
            .logo img {
                height: 45px;
            }
        }
        
        /* Mantener hover solo en desktop */
        @media (min-width: 769px) {
            .product-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 8px 20px rgba(0,0,0,0.12);
            }
        }
        
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }