:root {
--primary-color: #5b38ed;
    --secondary-color: #1a1a1a;
    --dark-background: #000000;
    --dark-surface: #1a1a1a;
    --text-color-light: #e0e0e0;
    --text-color-dark: #333;
    --success-color: #28a745; /* Nueva variable para notificaciones */
}
    

/* ====================
    ESTILOS DEL CARRITO DE COMPRAS
    ==================== */
.cart-layout{
    background: var(--secondary-color);
}

.container {
    background: var(--dark-surface);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ====================
    1. Breadcrumb
    ==================== */
.breadcrumb {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    color: #666;
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* ====================
    2. Carrito Vacío
    ==================== */
.empty-cart {
    padding: 6rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #666;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.empty-cart h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ====================
    3. Carrito con Productos
    ==================== */
.cart-section {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-header .section__title {
    margin: 0;
    font-size: 2.2rem;
}

.btn--danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn--danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* ====================
    4. Layout del Carrito
    ==================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* ====================
    5. Sección de Productos
    ==================== */
.cart-items-section {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
}

.cart-items-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.cart-items-header h2 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
}

.shipping-progress {
    margin-top: 1rem;
}

.shipping-message {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.shipping-message.success {
    color: #28a745;
}

.shipping-message.info {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ====================
    6. Items del Carrito
    ==================== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    min-width: 0; /* Permite que el texto se trunque */
}

.cart-item-name {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.cart-item-price {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dark-surface);
    border-radius: 25px;
    padding: 0.3rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    color: #fff;
    font-weight: bold;
    min-width: 2rem;
    text-align: center;
    font-size: 1rem;
}

.cart-item-total {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.cart-item-remove:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #fff;
    transform: scale(1.1);
}

/* ====================
    7. Resumen de Compra
    ==================== */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background-color: var(--dark-surface);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
}

.summary-title {
    color: #fff;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    font-size: 1rem;
}

.summary-row span:first-child {
    color: #b0b0b0;
}

.summary-row span:last-child {
    color: #fff;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background-color: #333;
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.summary-total span {
    color: var(--primary-color) !important;
    font-size: 1.3rem;
}

/* ====================
    8. Botón de Checkout
    ==================== */
.summary-actions {
    text-align: center;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(91, 56, 237, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 56, 237, 0.4);
}

.checkout-btn:active {
    transform: translateY(-1px);
}

.payment-methods {
    text-align: center;
}

.payment-methods span {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: var(--primary-color);
}

/* ====================
    9. Información de Envío
    ==================== */
.shipping-info {
    background-color: rgba(91, 56, 237, 0.1);
    border: 1px solid rgba(91, 56, 237, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.shipping-info h4 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shipping-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping-info li {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.shipping-info li:last-child {
    margin-bottom: 0;
}

.shipping-info i {
    color: #28a745;
    font-size: 0.8rem;
    width: 12px;
}

/* ====================
    10. Productos Recomendados
    ==================== */
.recommended-products {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.no-recommendations {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* ====================
    11. Sección de Confianza
    ==================== */
.trust-section {
    padding: 3rem 0;
    background-color: var(--dark-surface);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-item h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.trust-item p {
    color: #b0b0b0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ====================
    12. Responsive Design
    ==================== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cart-header .section__title {
        font-size: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
        justify-self: end;
        margin-top: 0.5rem;
    }
    
    .cart-item-quantity {
        justify-self: start;
    }
    
    .cart-item-details {
        grid-column: 2;
        margin-bottom: 1rem;
    }
    
    .empty-cart {
        padding: 4rem 0;
    }
    
    .empty-cart h1 {
        font-size: 2rem;
    }
    
    .empty-cart-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badges {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .cart-section {
        padding: 1rem 0 2rem;
    }
    
    .cart-items-section {
        padding: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        padding: 0.8rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .checkout-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
    
    .empty-cart h1 {
        font-size: 1.8rem;
    }
}

/* ====================
    13. Animaciones y Transiciones
    ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideInUp 0.3s ease-out;
}

.cart-item:nth-child(2) { animation-delay: 0.1s; }
.cart-item:nth-child(3) { animation-delay: 0.2s; }
.cart-item:nth-child(4) { animation-delay: 0.3s; }

/* ====================
    14. Estados de Carga
    ==================== */
.loading-skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}