 /* ESTILOS OPTIMIZADOS */
        
        /* Modal básico para el carrito */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

        .modal {
            background: white;
            border-radius: 20px;
            padding: 0;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.7) translateY(20px);
            transition: all 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

        .modal-overlay.active .modal {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            padding: 25px 30px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            background: white;
            z-index: 10;
        }

        .modal-title {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            font-weight: 600;
            color: #3c3428;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cart-count {
            background: #8B7355;
            color: white;
            border-radius: 50%;
            padding: 2px 8px;
            font-size: 14px;
            font-weight: 600;
            min-width: 20px;
            text-align: center;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.2s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: #f5f5f5;
            color: #666;
        }

        .modal-body {
            padding: 25px 30px 30px;
        }

        /* Estados del carrito */
        .cart-loading {
            text-align: center;
            padding: 40px 20px;
            color: #8B7355;
        }

        .cart-loading i {
            font-size: 32px;
            margin-bottom: 15px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .cart-empty {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }

        .cart-empty-icon {
            font-size: 64px;
            color: #ddd;
            margin-bottom: 20px;
        }

        .cart-empty-text {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .cart-empty-subtext {
            font-size: 14px;
            color: #bbb;
        }

        .cart-error {
            text-align: center;
            padding: 40px 20px;
            color: #e74c3c;
        }

        .cart-error i {
            font-size: 48px;
            margin-bottom: 15px;
        }

        /* Items del carrito */
        .cart-items {
            margin-bottom: 20px;
        }

        .cart-item {
            display: flex;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            gap: 15px;
        }

        .cart-item:last-child {
            border-bottom: none;
        }

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

        .item-info {
            flex: 1;
        }

        .item-name {
            font-weight: 600;
            color: #3c3428;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .item-price {
            color: #8B7355;
            font-weight: 500;
        }

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

        .quantity-btn {
            background: #f0f0f0;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .quantity-btn:hover {
            background: #e0e0e0;
        }

        .quantity-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quantity-display {
            font-weight: 600;
            min-width: 30px;
            text-align: center;
        }

        .remove-item {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            padding: 5px;
            transition: all 0.2s ease;
        }

        .remove-item:hover {
            background: #ffeaea;
            border-radius: 50%;
        }

        /* Total del carrito */
        .cart-total {
            padding: 20px 0;
            border-top: 2px solid #8B7355;
            margin-top: 20px;
        }

        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .total-label {
            font-weight: 500;
            color: #666;
        }

        .total-value {
            font-weight: 600;
            color: #3c3428;
        }

        .total-final {
            font-size: 18px;
            font-weight: 700;
            color: #8B7355;
        }

        /* Botones del carrito */
        .cart-actions {
            margin-top: 20px;
            display: flex;
            gap: 10px;
        }

        .cart-btn {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .cart-btn-primary {
            background: #8B7355;
            color: white;
        }

        .cart-btn-primary:hover {
            background: #755f47;
            transform: translateY(-1px);
        }

        .cart-btn-secondary {
            background: transparent;
            color: #8B7355;
            border: 2px solid #8B7355;
        }

        .cart-btn-secondary:hover {
            background: #8B7355;
            color: white;
        }

        /* Ocultar botones de autenticación */
        .auth-buttons,
        .mobile-auth-buttons {
            display: none !important;
        }
        
        /* Botón de cerrar sesión en header */
        .header-logout-btn {
            background: rgba(139, 115, 85, 0.1);
            color: #8B7355;
            padding: 8px 12px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid rgba(139, 115, 85, 0.2);
            margin-left: 15px;
        }
        
        .header-logout-btn:hover {
            background: rgba(139, 115, 85, 0.15);
            transform: translateY(-1px);
        }

        /* Carousels de productos */
        .carousel-wrapper {
            position: relative;
            height: 100%;
            display: flex;
            transition: transform 0.4s ease;
        }

        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            font-size: 18px;
            color: #333;
        }

        .carousel-nav:hover {
            background: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .carousel-prev { left: 15px; }
        .carousel-next { right: 15px; }

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

        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .modal {
                margin: 20px;
                width: calc(100% - 40px);
            }

            .modal-header,
            .modal-body {
                padding: 20px;
            }

            .header-logout-btn {
                margin-left: 10px;
                padding: 6px 10px;
                font-size: 0.85rem;
            }
            
            .carousel-nav {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
            
            .carousel-prev { left: 10px; }
            .carousel-next { right: 10px; }

            .cart-actions {
                flex-direction: column;
            }
            
            .item-image {
                width: 50px;
                height: 50px;
            }
            
            .item-name {
                font-size: 13px;
            }
        }