/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 1.5rem 0;
    background: var(--light-color);
    margin-top: 72px; /* Compensa header fixed */
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* ===== CART SECTION ===== */
.cart-section {
    padding: 3rem 0 5rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* ===== CART ITEMS ===== */
.cart-items-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
    display: block;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cart-empty p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.cart-items {
    display: none;
}

.cart-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 500;
    color: var(--dark-color);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    align-items: center;
}

.item-product {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--light-color);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-details h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.item-details p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.item-price {
    font-weight: 500;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    margin: 0 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray-light);
    background: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--light-color);
}

.item-subtotal {
    font-weight: 500;
}

.item-remove {
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.remove-btn:hover {
    color: #e53935;
}

/* ===== CART ACTIONS ===== */
.coupon-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.coupon-container input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* ===== CART SUMMARY ===== */
.cart-summary-container {
    position: relative;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 1rem;
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shipping-methods {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.shipping-methods h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.method-option {
    margin-bottom: 0.8rem;
}

.method-option input {
    margin-right: 0.8rem;
}

.method-name {
    display: inline-block;
    width: 70%;
}

.method-price {
    float: right;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.secure-checkout {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.secure-checkout i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.accepted-payments {
    margin-top: 2rem;
}

.accepted-payments h3 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.payment-methods img {
    height: 25px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-methods img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== RECOMMENDED PRODUCTS ===== */
.recommended-products {
    background: var(--light-color);
    padding: 4rem 0;
    margin-top: 3rem;
}

.recommended-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--dark-color);
}

/* ===== CONFIRMATION MODAL ===== */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

.modal-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-icon i {
    animation: bounceIn 0.5s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-items-header,
    .cart-item {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 0.5fr;
    }
}

@media (max-width: 768px) {
    .cart-items-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "product product"
            "price quantity"
            "subtotal remove";
        gap: 1rem;
        padding: 1.5rem;
        position: relative;
    }
    
    .item-product {
        grid-area: product;
    }
    
    .item-price {
        grid-area: price;
    }
    
    .item-quantity {
        grid-area: quantity;
        justify-content: flex-end;
    }
    
    .item-subtotal {
        grid-area: subtotal;
    }
    
    .item-remove {
        grid-area: remove;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== ESTILOS DEL FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--gray-light);
    padding: 4rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col {
        margin-bottom: 1.5rem;
    }
    
    .footer-col h3 {
        margin-bottom: 1rem;
    }
}