/* =========================================
   PÁGINA DE CARRITO (KOKORO)
   ========================================= */

.kk-cart-page {
    background-color: var(--background);
    min-height: calc(100vh - 300px);
}

.kk-page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--contrast);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Encabezados de la tabla flex */
.kk-cart-header {
    border-bottom: 2px solid var(--contrast);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--contrast);
}

.kk-col-product { flex: 0 0 50%; max-width: 50%; }
.kk-col-qty { flex: 0 0 25%; max-width: 25%; display: flex; justify-content: center; }
.kk-col-total { flex: 0 0 25%; max-width: 25%; }

/* Ítems del carrito */
.kk-cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
}

.kk-cart-item .kk-col-product {
    display: flex;
    gap: 20px;
}

.kk-item-color {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kk-color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.kk-color-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kk-cart-img-wrapper {
    width: 100px;
    height: 125px; /* Proporción 4:5 estilo belleza/moda */
    background-color: #f8f8f8;
    flex-shrink: 0;
}

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

.kk-cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kk-brand-sm {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.kk-item-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--contrast);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.kk-item-title:hover {
    color: var(--soft-wine);
}

.kk-item-variant {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.kk-item-variant strong {
    color: var(--contrast);
}

/* Botón Eliminar */
.kk-btn-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kk-btn-remove:hover {
    color: var(--soft-wine);
}

/* Selector de Cantidad */
.kk-qty-selector {
    display: flex;
    border: 1px solid #ddd;
    height: 40px;
}

.kk-qty-selector button {
    width: 35px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--contrast);
    transition: background 0.2s;
}

.kk-qty-selector button:hover {
    background: #f5f5f5;
}

.kk-qty-selector input {
    width: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-weight: 600;
    color: var(--contrast);
    -moz-appearance: textfield;
}

.kk-qty-selector input::-webkit-outer-spin-button,
.kk-qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Precio Total del Item */
.kk-item-total-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--contrast);
}

/* Caja de Resumen Sticky */
.kk-summary-box {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.kk-summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.kk-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.kk-total-row {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--contrast);
    margin-bottom: 0;
}

.kk-divider-full {
    height: 1px;
    background-color: #eee;
    width: 100%;
}

/* Promo Code Input Cuadrado */
.kk-promo-input-group {
    display: flex;
}

.kk-promo-input-group .kk-input {
    flex-grow: 1;
    border-right: none;
}

.kk-btn-apply {
    background-color: #eee;
    border: 1px solid #eee;
    color: var(--contrast);
    font-weight: 600;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 !important;
    transition: all 0.2s;
}

.kk-btn-apply:hover {
    background-color: #ddd;
    border-color: #ddd;
}

/* Botón Checkout Principal */
.kk-btn-checkout {
    display: block;
    width: 100%;
    background-color: var(--contrast);
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 0 !important; /* Cuadrado */
    transition: background 0.3s;
}

.kk-btn-checkout:hover {
    background-color: var(--soft-wine);
    color: white;
}

.kk-btn-checkout.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.kk-trust-badges-cart {
    font-size: 0.85rem;
    color: #888;
}

.kk-trust-badges-cart i {
    color: var(--soft-wine);
    margin-right: 5px;
}

/* Responsive Ajustes */
@media (max-width: 767px) {
    .kk-cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .kk-col-product {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .kk-cart-item .kk-col-qty,
    .kk-cart-item .kk-col-total {
        width: 50%;
        max-width: 50%;
    }
    .kk-cart-item .kk-col-qty {
        justify-content: flex-start;
    }
    .kk-cart-img-wrapper {
        width: 80px;
        height: 100px;
    }
}