/* ========== ESTILOS PARA CARRITO ========== */

/* BARRA NEGRA PEGADA AL HEADER */
.cart-body {
    padding-top: 120px !important;
}

.cart-body .black-navbar {
    background-color: #000000;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-family: sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    width: 100%;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
}

.cart-body .black-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-body .black-navbar .nav-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-body header {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

/* PÁGINA PRINCIPAL DEL CARRITO */
.cart-page {
    padding: 110px 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 20px;
}

/* SECCIÓN DE ITEMS */
.cart-items-section {
    background: white;
    border-radius: 0px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#cartItemsContainer {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CARRITO VACÍO */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

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

.empty-cart p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    background: #333;
    text-decoration: none;
    color: white;
}

/* ITEM DEL CARRITO */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 150px 80px;
    gap: 25px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

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

.cart-item:hover {
    background: #f9f9f9;
    padding: 20px;
    margin: 0 -20px;
    padding-left: 0;
    padding-right: 0;
}

/* IMAGEN DEL PRODUCTO */
.cart-item-image {
    width: 120px;
    height: 150px;
    background: #f5f5f5;
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .placeholder {
    color: #ddd;
    font-size: 40px;
}

/* DETALLES DEL PRODUCTO */
.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.item-brand {
    font-size: 13px;
    color: #927a1b;
    margin: 0;
    font-weight: 600;
}

.item-category {
    font-size: 12px;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CANTIDAD */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    width: fit-content;
}

.qty-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.qty-value {
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    font-size: 14px;
}

/* PRECIO */
.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.price-info {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.unit-price {
    color: #666;
}

.multiplier {
    color: #999;
    font-size: 12px;
}

.discount-badge {
    display: inline-block;
    background: #d4a574;
    color: white;
    padding: 4px 10px;
    border-radius: 0px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.item-total {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

/* ACCIONES */
.cart-item-actions {
    display: flex;
    justify-content: center;
}

.remove-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
    font-size: 14px;
}

.remove-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

/* RESUMEN LATERAL */
.cart-summary {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.summary-card {
    background: white;
    border-radius: 0px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    gap: 10px;
}

.discount-text {
    color: #d4a574;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 25px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #000;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.btn-checkout:hover:not(:disabled) {
    background: #333;
}

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

.btn-continue {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-continue:hover {
    border-color: #000;
    color: #000;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 110px 15px 30px;
    }

    .cart-items-section {
        padding: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-price {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #eee;
        padding-top: 12px;
        margin-top: 12px;
    }

    .cart-item-actions {
        grid-column: 2;
    }

    .item-name {
        font-size: 14px;
    }

    .item-quantity {
        margin-top: 8px;
    }

    .summary-card {
        padding: 20px;
    }

    .btn-checkout, .btn-continue {
        padding: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 110px 10px 20px;
    }

    .cart-items-section {
        padding: 15px;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 100px;
    }

    .item-name {
        font-size: 13px;
    }

    .item-brand {
        font-size: 11px;
    }

    .item-category {
        font-size: 10px;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-item, .summary-total {
        font-size: 13px;
    }

    .item-total {
        font-size: 15px;
    }
}
