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

        body {
            font-family: 'Amazon Ember', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background: #eaeded;
            color: #0F1111;
        }

        /* ============================================
           PAGE LOADER - PANTALLA DE CARGA
           ============================================ */
        
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }
        
        .page-loader.hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        
        .loader-content {
            text-align: center;
        }
        
        .loader-logo-img {
            max-width: 200px;
            height: auto;
            margin-bottom: 1.5rem;
            animation: logoFade 1.5s ease-in-out infinite;
        }
        
        @keyframes logoFade {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(20, 108, 67, 0.2);
            border-top-color: #146C43;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem auto;
        }
        
        .loader-text {
            color: #146C43;
            font-size: 1rem;
            font-weight: 500;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ============================================
           HEADER ULTRA PREMIUM - ESTILO AMAZON VERDE
           ============================================ */
        
        .amazon-header {
            background: linear-gradient(to bottom, #146C43 0%, #146C43 100%);
            color: white;
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .header-top {
            display: flex;
            align-items: center;
            padding: 7px 12px;
            gap: 6px;
            background: linear-gradient(90deg, #0F5132 0%, #146C43 50%, #198754 100%);
        }

        /* MENÚ HAMBURGUESA */
        .menu-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 8px;
            cursor: pointer;
            border: 1.5px solid transparent;
            border-radius: 2px;
            transition: border-color 0.15s ease;
            flex-shrink: 0;
        }

        .menu-icon:hover {
            border-color: white;
        }

        /* LOGO - Compacto */
        .logo-section {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            cursor: pointer;
            border: 1.5px solid transparent;
            border-radius: 2px;
            transition: border-color 0.15s ease;
            flex-shrink: 0;
        }

        .logo-section:hover {
            border-color: white;
        }

        .logo-image {
            height: 41px;
            width: auto;
        }

        .logo-text {
            font-size: 1.34rem;
            font-weight: 700;
            letter-spacing: -0.3px;
            white-space: nowrap;
        }

        /* BÚSQUEDA - Premium */
        .search-bar {
            flex: 1;
            display: flex;
            height: 36px;
            background: white;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(15,17,17,.15);
        }

        .search-bar:focus-within {
            box-shadow: 0 0 0 3px rgba(255,143,0,0.5);
        }

        .search-category {
            background: #f3f3f3;
            border: none;
            padding: 0 7px;
            cursor: pointer;
            color: #333;
            font-size: 0.75rem;
            min-width: 50px;
            border-right: 1px solid #cdcdcd;
        }

        .search-input {
            flex: 1;
            border: none;
            padding: 0 8px;
            font-size: 0.875rem;
            color: #0F1111;
        }

        .search-input::placeholder {
            color: #767676;
        }

        .search-button {
            background: #C7416B;
            border: none;
            padding: 0 10px;
            cursor: pointer;
            font-size: 1rem;
        }

        .search-button:hover {
            background: #A8365A;
        }

        /* CARRITO */
        .header-right {
            margin-left: auto;
        }

        .cart-section {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            padding: 5px 9px;
            cursor: pointer;
            border: 1.5px solid transparent;
            border-radius: 2px;
        }

        .cart-section:hover {
            border-color: white;
        }

        .cart-icon {
            font-size: 1.9rem;
            position: relative;
            line-height: 1;
        }

        .cart-count-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: white;
            color: #0F1111;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 20px;
            text-align: center;
        }

        .cart-count-badge.animate {
            animation: cartBounce 0.6s;
        }

        @keyframes cartBounce {
            0%, 100% { transform: scale(1); }
            25% { transform: scale(1.4); }
            50% { transform: scale(0.9); }
            75% { transform: scale(1.2); }
        }

        .header-link-bottom {
            font-size: 0.813rem;
            font-weight: 700;
        }

        .header-link-top {
            display: none;
        }

            padding: 0.4rem 0.8rem;
            cursor: pointer;
            position: relative;
            border: 1px solid transparent;
            border-radius: 2px;
            transition: border-color 0.2s;
        }

        .cart-section:hover {
            border-color: white;
        }

        .cart-icon {
            font-size: 2.2rem;
            position: relative;
            display: flex;
            align-items: center;
        }

        .cart-count-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: white;
            color: #0F1111;
            font-size: 0.8rem;
            font-weight: 700;
            padding: 0.15rem 0.45rem;
            border-radius: 10px;
            min-width: 20px;
            text-align: center;
            transition: transform 0.3s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .cart-count-badge.animate {
            animation: cartBounce 0.6s ease-in-out;
        }

        @keyframes cartBounce {
            0% { transform: scale(1); }
            25% { transform: scale(1.4); }
            50% { transform: scale(0.9); }
            75% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* ANIMACIÓN +1 VOLADOR */
        .floating-add-indicator {
            position: fixed;
            font-size: 1.5rem;
            font-weight: bold;
            color: #FF8F00;
            pointer-events: none;
            z-index: 9999;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: flyToCart 1s ease-out forwards;
        }

        @keyframes flyToCart {
            0% {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            50% {
                opacity: 1;
                transform: translate(var(--tx-half), var(--ty-half)) scale(1.3);
            }
            100% {
                opacity: 0;
                transform: translate(var(--tx), var(--ty)) scale(0.5);
            }
        }

        /* Animación del botón al hacer clic */
        .add-to-cart-btn.clicked {
            animation: buttonPulse 0.3s ease;
        }

        @keyframes buttonPulse {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }

        /* NAVEGACIÓN SECUNDARIA PREMIUM */
        .nav-secondary {
            background: #0F5132;
            padding: 0.5rem 1rem;
            display: flex;
            gap: 1.2rem;
            font-size: 0.875rem;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: thin;
            scrollbar-color: #198754 #0F5132;
        }

        .nav-secondary::-webkit-scrollbar {
            height: 6px;
        }

        .nav-secondary::-webkit-scrollbar-track {
            background: #0F5132;
        }

        .nav-secondary::-webkit-scrollbar-thumb {
            background: #198754;
            border-radius: 3px;
        }

        .nav-item {
            color: white;
            cursor: pointer;
            white-space: nowrap;
            padding: 0.4rem 0.6rem;
            border: 1px solid transparent;
            border-radius: 2px;
            transition: all 0.2s;
            font-weight: 500;
        }

        .nav-item:hover {
            border-color: white;
            background: rgba(255,255,255,0.1);
        }

        .nav-item:active {
            transform: scale(0.98);
        }

        /* BANNER HERO */
        .hero-banner {
            background: #eaeded;
            padding: 0.8rem 0 0 0;
            text-align: center;
            margin-top: 140px;
        }

        /* Ajuste para contenido debajo del header fijo */
        body {
            padding-top: 0;
        }

        .main-content-wrapper {
            margin-top: 0;
        }

        /* CARRUSEL DE BANNERS */
        .carousel-container {
            position: relative;
            width: 100%;
            max-width: 1500px;
            margin: 0.2rem auto 0.2rem;
            padding: 0 1rem;
            overflow: hidden;
        }

        .carousel-wrapper {
            position: relative;
            height: 400px;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .carousel-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-slide.active {
            opacity: 1;
            z-index: 1;
        }

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

        /* Loader del carrusel */
        .carousel-loader {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
        }

        .carousel-loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(20, 108, 67, 0.2);
            border-top-color: #146C43;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        .carousel-loader-text {
            color: #146C43;
            font-size: 1rem;
            font-weight: 500;
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(19, 25, 33, 0.7);
            color: white;
            border: none;
            padding: 1rem 0.8rem;
            cursor: pointer;
            z-index: 10;
            font-size: 1.5rem;
            transition: all 0.3s;
            border-radius: 4px;
            margin: 0 0.5rem;
            display: none; /* Ocultar flechas */
        }

        .carousel-button:hover {
            background: rgba(19, 25, 33, 0.95);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-button.prev {
            left: 0;
        }

        .carousel-button.next {
            right: 0;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: none; /* Ocultar indicadores */
            gap: 10px;
            z-index: 10;
        }

        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            border: 2px solid white;
            cursor: pointer;
            transition: background 0.3s;
        }

        .carousel-indicator.active {
            background: white;
        }

        /* RESPONSIVE MOBILE - HEADER */
        @media (max-width: 768px) {
            .header-top {
                padding: 6px 10px;
                gap: 5px;
                flex-wrap: wrap;
            }

            .logo-section {
                padding: 5px 9px;
            }

            .logo-image {
                height: 35px;
            }

            .logo-text {
                font-size: 1.13rem;
            }

            .search-bar {
                flex: 1 1 100%;
                order: 3;
                height: 34px;
            }

            .search-category {
                padding: 0 6px;
                font-size: 0.7rem;
                min-width: 45px;
            }

            .search-input {
                padding: 0 7px;
                font-size: 0.813rem;
            }

            .search-button {
                padding: 0 9px;
                font-size: 0.95rem;
            }

            .cart-section {
                padding: 4px 7px;
            }

            .cart-icon {
                font-size: 1.9rem;
            }

            .cart-count-badge {
                font-size: 0.65rem;
                top: -3px;
                right: -3px;
            }

            .header-link-bottom {
                font-size: 0.75rem;
            }
        }
        @media (max-width: 768px) {
            .carousel-wrapper {
                height: 180px; /* Más pequeño para que se vea completo */
            }
            
            .carousel-slide img {
                object-fit: contain; /* Contain para mostrar imagen completa */
                object-position: center;
                width: 100%;
                height: 100%;
            }

            .carousel-button {
                padding: 1rem 0.5rem;
                font-size: 1.5rem;
            }
        }

        .hero-content {
            background-size: cover;
            background-position: center;
            padding: 4rem 2rem;
            border-radius: 8px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero-title {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 1rem;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        /* CONTENEDOR PRINCIPAL */
        .container {
            max-width: 1500px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* SECCIÓN DE CATEGORÍAS */
        .categories-section {
            background: white;
            margin: 1rem 0;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .categories-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: #0F1111;
        }

        .filters {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 1px solid #d5d9d9;
            background: white;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.875rem;
            color: #0F1111;
        }

        .filter-btn:hover {
            background: #f7f8f8;
            border-color: #888;
        }

        .filter-btn.active {
            background: #232f3e;
            color: white;
            border-color: #232f3e;
        }

        /* GRID DE PRODUCTOS ESTILO AMAZON */
        .products-section {
            margin: 1rem 0 3rem 0;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: #0F1111;
        }

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

        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: all 0.3s;
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }

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

        /* PÁGINA DE DETALLE DEL PRODUCTO */
        .product-detail-page {
            display: none;
            background: white;
            position: fixed;
            top: 140px; /* Debajo del header */
            left: 0;
            width: 100%;
            height: calc(100% - 140px);
            z-index: 100; /* Por debajo del header (1000) */
            overflow-y: auto;
            pointer-events: none; /* No interfiere cuando está oculto */
        }

        .product-detail-page.active {
            display: block;
            pointer-events: auto; /* Permite interacción cuando está activo */
        }

        .detail-header {
            background: #f5f5f5;
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            border-bottom: 1px solid #ddd;
        }

        .detail-breadcrumb {
            color: #666;
            font-size: 0.85rem;
        }
        
        .detail-breadcrumb span {
            cursor: pointer;
        }

        .detail-breadcrumb span:hover {
            color: #0066c0;
            text-decoration: underline;
        }

        .product-detail-container {
            max-width: 1500px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        .product-detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 400px;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .detail-images-section {
            display: flex;
            gap: 1rem;
            align-self: flex-start;
        }

        .detail-thumbnails {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-self: flex-start;
        }

        .detail-thumbnail {
            width: 50px;
            height: 50px;
            object-fit: contain;
            border: 2px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            padding: 0.2rem;
            transition: border-color 0.2s;
        }

        .detail-thumbnail:hover,
        .detail-thumbnail.active {
            border-color: #007185;
        }

        .detail-main-image {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 2rem;
            background: white;
            max-width: 500px;
            min-height: 400px;
            max-height: 600px;
        }

        .detail-main-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .detail-info-section h1 {
            font-size: 1.5rem;
            font-weight: 400;
            line-height: 1.4;
            margin-bottom: 0.5rem;
            color: #0F1111;
        }

        .detail-brand {
            color: #007185;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            cursor: pointer;
        }

        .detail-rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #ddd;
        }

        .detail-stars {
            color: #FFA41C;
            font-size: 1rem;
        }

        .detail-rating-count {
            color: #007185;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .detail-bestseller {
            background: #CC0C39;
            color: white;
            padding: 0.3rem 0.6rem;
            font-size: 0.75rem;
            border-radius: 2px;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .detail-price-section {
            background: #f0f2f2;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .detail-price-label {
            font-size: 0.9rem;
            color: #565959;
            margin-bottom: 0.3rem;
        }

        .detail-price {
            font-size: 1.75rem;
            color: #0F1111;
            font-weight: 400;
            margin-bottom: 0.5rem;
        }

        .detail-savings {
            color: #CC0C39;
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }

        .detail-prime-badge {
            color: #007185;
            font-size: 0.85rem;
            font-weight: bold;
        }

        .detail-description {
            margin-top: 1.5rem;
        }

        .detail-description h2 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-weight: bold;
        }

        .detail-description p {
            line-height: 1.6;
            color: #0F1111;
            margin-bottom: 1rem;
        }

        .detail-features {
            margin-top: 1.5rem;
        }

        .detail-features h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            font-weight: bold;
        }

        .detail-features ul {
            list-style: disc;
            padding-left: 1.5rem;
        }

        .detail-features li {
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }

        .detail-specifications {
            margin-top: 2rem;
            background: #f7f8f8;
            padding: 1.5rem;
            border-radius: 8px;
        }

        .detail-specifications h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            font-weight: bold;
            color: #0F1111;
        }

        .spec-table {
            width: 100%;
            border-collapse: collapse;
        }

        .spec-table tr {
            border-bottom: 1px solid #ddd;
        }

        .spec-table td {
            padding: 0.75rem 0.5rem;
            vertical-align: top;
        }

        .spec-table td:first-child {
            font-weight: bold;
            color: #565959;
            width: 35%;
        }

        .spec-table td:last-child {
            color: #0F1111;
        }

        .detail-image-gallery {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .gallery-image {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border: 2px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            padding: 0.3rem;
            transition: border-color 0.2s;
            background: white;
        }

        .gallery-image:hover,
        .gallery-image.active {
            border-color: #007185;
        }

        .detail-buy-box {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 1.5rem;
            align-self: flex-start;
            max-width: 400px;
        }

        .buy-box-price {
            font-size: 1.75rem;
            color: #0F1111;
            margin-bottom: 0.5rem;
        }

        /* SKU y Compartir */
        .buy-box-sku-share {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e7e7e7;
        }

        .buy-box-sku {
            font-size: 0.85rem;
            color: #565959;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .sku-label {
            font-weight: 600;
            color: #0F1111;
        }

        .sku-code {
            font-family: 'Courier New', monospace;
            background: #f0f2f2;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            color: #0F5132;
            font-weight: 600;
        }

        .buy-box-share-btn {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: linear-gradient(135deg, #0F5132 0%, #146C43 100%);
            color: white;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(15, 81, 50, 0.2);
        }

        .buy-box-share-btn:hover {
            background: linear-gradient(135deg, #146C43 0%, #198754 100%);
            transform: translateY(-1px);
            box-shadow: 0 3px 6px rgba(15, 81, 50, 0.3);
        }

        .buy-box-share-btn svg {
            width: 14px;
            height: 14px;
        }

        .buy-box-delivery {
            color: #007600;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .buy-box-stock {
            color: #007600;
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 1rem;
        }

        .buy-box-quantity {
            margin-bottom: 1rem;
        }

        .buy-box-quantity label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .buy-box-quantity select {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #888;
            border-radius: 8px;
            font-size: 0.9rem;
            background: #f0f2f2;
        }

        /* Selector de colores */
        .buy-box-colors {
            margin-bottom: 1rem;
        }

        .buy-box-colors label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: #0F1111;
        }

        .color-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .color-option {
            margin: 0;
            padding: 0.5rem 1rem;
            border: 2px solid #ddd;
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            font-weight: 400;
            color: #333;
        }

        .color-option:hover {
            border-color: #146C43;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .color-option.selected {
            border-color: #0F5132 !important;
            background: #0F5132 !important;
            color: white !important;
            font-weight: 600 !important;
        }

        /* Color en el carrito */
        .cart-item-color {
            font-size: 0.75rem;
            color: #666;
            margin-top: 0.25rem;
        }

        .cart-item-color strong {
            color: #0F5132;
        }

        .buy-box-add-cart {
            width: 100%;
            background: #FFD814;
            color: #0F1111;
            border: 1px solid #FCD200;
            padding: 0.7rem;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 0.5rem;
            transition: background 0.2s;
        }

        .buy-box-add-cart:hover {
            background: #F7CA00;
        }

        .buy-box-buy-now {
            width: 100%;
            background: #FFA41C;
            color: #0F1111;
            border: 1px solid #FF8F00;
            padding: 0.7rem;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 1rem;
            transition: background 0.2s;
        }

        .buy-box-buy-now:hover {
            background: #FA8900;
        }

        .buy-box-secure {
            text-align: center;
            color: #007185;
            font-size: 0.8rem;
            padding-top: 1rem;
            border-top: 1px solid #ddd;
        }

        @media (max-width: 1024px) {
            .product-detail-grid {
                grid-template-columns: 1fr;
            }

            .detail-buy-box {
                position: static;
            }
        }

        @media (max-width: 768px) {
            .product-detail-page {
                top: 140px; /* Ajuste para móvil - debajo del header */
                height: calc(100% - 140px);
            }
            
            .product-detail-container {
                padding: 1rem;
                margin-top: 0;
            }
        }

        .product-image-container {
            position: relative;
            padding: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            height: 200px;
        }

        .product-image {
            position: relative;
            width: 100%;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            overflow: hidden;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        .product-badge {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            background: #CC0C39;
            color: white;
            padding: 0.3rem 0.5rem;
            font-size: 0.75rem;
            font-weight: bold;
            border-radius: 2px;
        }

        .product-info {
            padding: 0.5rem 1rem 1rem 1rem;
            display: flex;
            flex-direction: column;
        }

        .product-category {
            color: #007185;
            font-size: 0.75rem;
            margin-bottom: 0.3rem;
            text-transform: uppercase;
        }

        .product-name {
            font-size: 0.875rem;
            font-weight: 400;
            margin-bottom: 0.5rem;
            color: #0F1111;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 2.6rem;
            max-height: 2.6rem;
        }

        .product-rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
        }

        .stars {
            color: #FFA41C;
        }

        .rating-count {
            color: #007185;
            cursor: pointer;
        }

        .product-price-section {
            margin-bottom: 0.5rem;
        }

        .product-price {
            font-size: 1.5rem;
            color: #0F1111;
            font-weight: 400;
        }

        .price-currency {
            font-size: 0.8rem;
            vertical-align: super;
        }

        .price-decimal {
            font-size: 0.8rem;
            vertical-align: super;
        }

        .product-old-price {
            color: #565959;
            font-size: 0.8rem;
            text-decoration: line-through;
            margin-left: 0.5rem;
        }

        .product-prime {
            color: #007185;
            font-size: 0.75rem;
            margin-bottom: 0.5rem;
        }

        .add-to-cart-btn {
            background: #FFD814;
            color: #0F1111;
            border: 1px solid #FCD200;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            transition: background 0.2s;
            width: 100%;
            margin-top: 0.5rem;
        }

        .add-to-cart-btn:hover {
            background: #F7CA00;
        }

        /* MODAL DEL CARRITO */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1500; /* Por encima del header pero debajo del sidebar */
            align-items: flex-start;
            justify-content: flex-end;
            padding-top: 0; /* Sin padding para que ocupe todo */
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            width: 280px;
            max-width: 90%;
            max-height: 90vh; /* Altura máxima del 90% de la ventana */
            overflow-y: auto;
            box-shadow: -2px 0 8px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            background: linear-gradient(90deg, #0F5132 0%, #146C43 50%, #198754 100%);
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .modal-title {
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
        }

        #cartItems {
            flex: 1;
            overflow-y: auto;
            min-height: 0; /* Permite que se encoja cuando está vacío */
        }

        .cart-item {
            display: flex;
            gap: 1rem;
            padding: 1rem;
            border-bottom: 1px solid #ddd;
        }

        .cart-item-image {
            width: 82px;
            height: 82px;
            object-fit: contain;
        }

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

        .cart-item-name {
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            color: #007185;
        }

        .cart-item-price {
            font-size: 1.1rem;
            font-weight: bold;
            color: #B12704;
            margin-bottom: 0.5rem;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .qty-btn {
            background: #f0f2f2;
            border: 1px solid #d5d9d9;
            width: 28px;
            height: 28px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .qty-btn:hover {
            background: #e3e6e6;
        }

        .qty-display {
            min-width: 30px;
            text-align: center;
            font-weight: bold;
            padding: 0.2rem 0.5rem;
            background: #f0f2f2;
            border-radius: 4px;
        }

        .remove-btn {
            background: none;
            border: none;
            color: #007185;
            cursor: pointer;
            font-size: 0.8rem;
            text-decoration: underline;
            margin-left: 0.5rem;
        }

        .cart-summary {
            padding: 1rem;
            background: #f0f2f2;
            position: sticky;
            bottom: 0;
        }

        .cart-subtotal {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .cart-total-amount {
            font-size: 1.3rem;
            font-weight: bold;
            color: #0F1111;
        }

        .cart-shipping-info {
            padding: 0.75rem;
            margin-bottom: 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .cart-shipping-info.free-shipping {
            background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .cart-shipping-info.pending-shipping {
            background: linear-gradient(135deg, #fff3cd 0%, #ffe5a0 100%);
            color: #856404;
            border: 1px solid #ffeaa7;
        }

        .cart-shipping-info .shipping-icon {
            font-size: 1.1rem;
            margin-right: 0.3rem;
        }

        .cart-shipping-info .remaining-amount {
            font-weight: 600;
            color: inherit;
        }

        .checkout-btn {
            width: 100%;
            background: linear-gradient(135deg, #0F5132 0%, #146C43 50%, #198754 100%);
            color: white;
            border: none;
            padding: 0.95rem;
            border-radius: 8px;
            font-size: 1.05rem;
            font-weight: 500;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(15, 81, 50, 0.3);
        }

        .checkout-btn:hover {
            background: linear-gradient(135deg, #198754 0%, #146C43 50%, #0F5132 100%);
            box-shadow: 0 4px 12px rgba(15, 81, 50, 0.4);
            transform: translateY(-1px);
        }

        .empty-cart {
            text-align: center;
            padding: 3rem 1rem;
            color: #666;
        }

        .empty-cart-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .loading {
            text-align: center;
            padding: 3rem;
            font-size: 1.2rem;
        }

        .error {
            background: #FEF5E7;
            border: 1px solid #F39C12;
            color: #7D6608;
            padding: 1rem;
            border-radius: 4px;
            margin: 1rem 0;
        }

        .no-products {
            text-align: center;
            padding: 3rem;
            background: white;
            border-radius: 8px;
            color: #666;
        }

        /* FOOTER ESTILO AMAZON */
        .footer {
            background: #0F5132;
            color: white;
            padding: 3rem 1rem 2rem 1rem;
            margin-top: 3rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-social-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .footer-hashtag {
            color: white;
            font-size: 1rem;
            margin-bottom: 1.5rem;
            font-weight: 500;
        }

        .footer-social-icons {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-social-link {
            color: white;
            font-size: 2rem;
            transition: color 0.3s, transform 0.3s;
            text-decoration: none;
        }

        .footer-social-link:hover {
            color: #F08804;
            transform: translateY(-3px);
        }

        .footer-disclaimer {
            font-size: 0.85rem;
            color: #ddd;
            line-height: 1.6;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255,255,255,0.2);
        }

        .footer-text {
            font-size: 0.875rem;
            color: #ddd;
        }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .hero-subtitle {
                font-size: 1rem;
            }

            .modal-content {
                width: 100%;
                max-width: 100%;
            }
        }

        /* VISOR DE IMÁGENES EXPANDIBLE */
        .image-viewer-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: -1; /* Oculto por defecto */
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
        }

        .image-viewer-modal.active {
            display: flex;
            z-index: 10000;
            opacity: 1;
            pointer-events: auto;
        }

        .image-viewer-content {
            position: relative;
            width: 90%;
            height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-viewer-main {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            user-select: none;
        }

        .image-viewer-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: transparent;
            border: none;
            color: white;
            font-size: 2.5rem;
            cursor: pointer;
            padding: 0.5rem;
            line-height: 1;
            transition: transform 0.2s;
        }

        .image-viewer-close:hover {
            transform: scale(1.2);
        }

        .image-viewer-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            color: #111;
            font-size: 2rem;
            cursor: pointer;
            padding: 1rem 1.2rem;
            border-radius: 4px;
            transition: all 0.2s;
            font-weight: bold;
        }

        .image-viewer-nav:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
        }

        .image-viewer-nav.prev {
            left: 20px;
        }

        .image-viewer-nav.next {
            right: 20px;
        }

        .image-viewer-counter {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .image-viewer-thumbnails {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            background: rgba(0, 0, 0, 0.7);
            padding: 0.5rem;
            border-radius: 8px;
            max-width: 90%;
            overflow-x: auto;
        }

        .image-viewer-thumb {
            width: 60px;
            height: 60px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 4px;
            opacity: 0.6;
            transition: all 0.2s;
        }

        .image-viewer-thumb:hover {
            opacity: 0.9;
            border-color: white;
        }

        .image-viewer-thumb.active {
            opacity: 1;
            border-color: #FF9900;
        }

        /* Hacer las imágenes del detalle clickeables */
        .detail-main-image img,
        .detail-thumbnail {
            cursor: zoom-in;
        }

        @media (max-width: 768px) {
            .image-viewer-nav {
                padding: 0.8rem 1rem;
                font-size: 1.5rem;
            }

            .image-viewer-nav.prev {
                left: 10px;
            }

            .image-viewer-nav.next {
                right: 10px;
            }

            .image-viewer-close {
                font-size: 2rem;
                top: -35px;
            }

            .image-viewer-thumbnails {
                bottom: 10px;
                max-width: 95%;
            }

            .image-viewer-thumb {
                width: 50px;
                height: 50px;
            }
        }

        /* ============================================
           SIDEBAR MENU - MENÚ LATERAL
           ============================================ */
        
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100%;
            background: linear-gradient(180deg, #0F5132 0%, #146C43 50%, #198754 100%);
            z-index: 1999;
            transition: left 0.3s ease;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .sidebar-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
        }

        .sidebar-close {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }

        .sidebar-close:hover {
            transform: rotate(90deg);
        }

        .sidebar-content {
            padding: 1rem 0;
        }

        .sidebar-item {
            padding: 1rem 1.5rem;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: background 0.2s ease, padding-left 0.2s ease;
        }

        .sidebar-item:hover {
            background: rgba(255, 255, 255, 0.1);
            padding-left: 2rem;
        }

        .sidebar-item:active {
            background: rgba(255, 255, 255, 0.2);
        }


/* ========================================
   PRODUCTOS RELACIONADOS (CROSS-SELLING)
   ======================================== */

.related-products-section {
    background: white;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
}

.related-products-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.related-products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 0.3rem;
}

.related-products-subtitle {
    font-size: 0.875rem;
    color: #565959;
    margin-bottom: 1.5rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Card de Producto Relacionado */
.related-product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

/* Imagen del Producto */
.related-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: #f8f8f8;
}

/* Información del Producto */
.related-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-product-name {
    font-size: 0.875rem;
    color: #007185;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em;
}

.related-product-name:hover {
    color: #C7511F;
    text-decoration: underline;
}

/* Rating */
.related-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.related-product-stars {
    color: #FFA41C;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.related-product-rating-count {
    color: #007185;
    font-size: 0.75rem;
}

/* Precio */
.related-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 0.5rem;
}

.related-product-price-currency {
    font-size: 0.75rem;
    vertical-align: top;
    margin-right: 2px;
}

/* SKU */
.related-product-sku {
    font-size: 0.75rem;
    color: #565959;
    margin-bottom: 0.75rem;
}

.related-product-sku-label {
    font-weight: 600;
    color: #0F1111;
}

/* Botón Agregar */
.related-product-add-btn {
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0F1111;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.related-product-add-btn:hover {
    background: #F7CA00;
    border-color: #F2C200;
}

.related-product-add-btn:active {
    background: #F0B800;
    transform: scale(0.98);
}

.related-product-add-btn.added {
    background: #00B300;
    border-color: #009900;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .related-product-card {
        padding: 0.75rem;
    }
    
    .related-product-image {
        height: 150px;
    }
    
    .related-products-title {
        font-size: 1.25rem;
    }
    
    .related-products-subtitle {
        font-size: 0.813rem;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .related-product-card {
        flex-direction: row;
        gap: 1rem;
    }
    
    .related-product-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }
    
    .related-product-info {
        flex: 1;
    }
}
