/* ══════════════════════════════════════
   CARRITO — Luna y el Tarot
   MGWeb 2026
   Archivo: assets/css/cart.css
══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700&family=Nunito:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════
   1. LAYOUT PRINCIPAL
══════════════════════════════════════ */

.luna-cart-wrap {
    background: #faf9f6;
    min-height: 60vh;
    padding: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.luna-cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* ══════════════════════════════════════
   2. TÍTULO DE PÁGINA
══════════════════════════════════════ */

.luna-cart-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 20px;
    /* Fuera del grid — encima de ambas columnas */
}

/* ══════════════════════════════════════
   3. ITEM DEL CARRITO
══════════════════════════════════════ */

.luna-cart-item {
    background: white;
    border: 1px solid rgba(149,123,234,0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: border-color 0.2s;
}

.luna-cart-item:hover {
    border-color: rgba(149,123,234,0.4);
}

/* Thumbnail */
.luna-cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f0ecfd;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Info */
.luna-cart-item-info {
    flex: 1;
    min-width: 0;
}

.luna-cart-item-name {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 4px;
}

.luna-cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.luna-cart-item-name a:hover {
    color: #957bea;
}

.luna-cart-item-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #8b82a0;
    line-height: 1.5;
    margin-bottom: 4px;
}

.luna-cart-item-meta {
    margin: 6px 0;
    font-size: 12px;
    color: #8b82a0;
}

.luna-cart-item-meta dl {
    margin: 0;
}

.luna-cart-item-meta dt,
.luna-cart-item-meta dd {
    display: inline;
    font-size: 11px;
}

.luna-cart-item-remove {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    color: #8b82a0;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 6px;
    transition: color 0.2s;
}

.luna-cart-item-remove:hover {
    color: #c0392b;
}

/* Precio */
.luna-cart-item-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1625;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   4. CROSS-SELLS — "También puede interesarte"
══════════════════════════════════════ */

.luna-cross-sells {
    background: #f0ecfd;
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}

.luna-cross-sells-title {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7d60d4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.luna-cross-sell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(149,123,234,0.15);
}

.luna-cross-sell-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.luna-cross-sell-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: white;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luna-cross-sell-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luna-cross-sell-info {
    flex: 1;
    min-width: 0;
}

.luna-cross-sell-name {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1625;
    line-height: 1.3;
}

.luna-cross-sell-name a {
    color: inherit;
    text-decoration: none;
}

.luna-cross-sell-name a:hover {
    color: #957bea;
}

.luna-cross-sell-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    color: #8b82a0;
    margin-top: 2px;
}

.luna-cross-sell-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #957bea;
    flex-shrink: 0;
}

.luna-cross-sell-add {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #957bea;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 10px;
    border: 1.5px solid #957bea;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.luna-cross-sell-add:hover {
    background: #957bea;
    color: white;
}

/* ══════════════════════════════════════
   5. RESUMEN DEL PEDIDO (sidebar derecha)
══════════════════════════════════════ */

.luna-cart-right {
    position: sticky;
    top: 24px;
}

.luna-cart-summary {
    background: white;
    border: 1px solid rgba(149,123,234,0.2);
    border-radius: 14px;
    overflow: hidden;
}

.luna-cart-summary-header {
    background: #f0ecfd;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(149,123,234,0.15);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1625;
}

.luna-cart-summary-body {
    padding: 16px 16px 18px;
    box-sizing: border-box;
}

.luna-cart-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #8b82a0;
    margin-bottom: 8px;
}

.luna-cart-sum-row span:last-child {
    font-weight: 600;
    color: #1a1625;
}

.luna-cart-sum-discount span:last-child {
    color: #2ecc71;
}

.luna-cart-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(149,123,234,0.15);
    margin-top: 6px;
    margin-bottom: 4px;
}

.luna-cart-sum-total-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1625;
}

.luna-cart-sum-total-val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1625;
}

/* ── Botón finalizar compra ── */
.luna-cart-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #957bea;
    color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 15px 24px;
    margin-top: 18px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.luna-cart-cta:hover {
    background: #7d60d4;
    color: white;
}

/* ── Botón seguir comprando ── */
.luna-cart-back {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #957bea;
    border: 1.5px solid #957bea;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 24px;
    margin-bottom: 14px;
    transition: background 0.2s, color 0.2s;
}

.luna-cart-back:hover {
    background: #f0ecfd;
    color: #7d60d4;
}

/* ── Trust badges ── */
.luna-trust-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.luna-trust-item {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    color: #8b82a0;
}

/* ══════════════════════════════════════
   6. ESTADO VACÍO
══════════════════════════════════════ */

.luna-cart-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.luna-cart-empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.luna-cart-empty-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 12px;
}

.luna-cart-empty-text {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #8b82a0;
    line-height: 1.7;
    margin-bottom: 28px;
}

.luna-btn-primary {
    display: inline-block;
    background: #957bea;
    color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    padding: 14px 28px;
    transition: background 0.2s;
}

.luna-btn-primary:hover {
    background: #7d60d4;
    color: white;
}

/* ══════════════════════════════════════
   7. RESPONSIVE — MÓVIL
══════════════════════════════════════ */

@media (max-width: 768px) {

    .luna-cart-wrap {
        padding: 20px 16px;
    }

    .luna-cart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Resumen arriba en móvil */
    .luna-cart-right {
        order: -1;
        position: static;
    }

    .luna-cart-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .luna-cart-item {
        padding: 12px;
        gap: 12px;
    }

    .luna-cart-item-thumb {
        width: 56px;
        height: 56px;
    }

    .luna-cart-item-price {
        font-size: 15px;
    }

    .luna-cart-sum-total-val {
        font-size: 20px;
    }
}

/* ══════════════════════════════════════
   9. ACORDEÓN DE PREGUNTAS
   Mismo tratamiento que en checkout.
══════════════════════════════════════ */

.luna-cart-meta-details {
    border-left: 3px solid #957bea;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.luna-cart-meta-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f7f4fe;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #957bea;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.luna-cart-meta-summary::-webkit-details-marker { display: none; }
.luna-cart-meta-summary::marker { display: none; }

.luna-cart-meta-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.luna-cart-meta-details[open] .luna-cart-meta-chevron {
    transform: rotate(90deg);
}

.luna-cart-meta-content {
    background: #f7f4fe;
    padding: 10px 12px;
}

.luna-cart-meta-content dl,
.luna-cart-meta-content .wc-item-meta,
.luna-cart-meta-content .variation {
    margin: 0;
}

.luna-cart-meta-content dt {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b82a0;
    display: block;
    margin: 6px 0 2px;
    float: none;
    clear: both;
}

.luna-cart-meta-content dt:first-of-type {
    margin-top: 0;
}

.luna-cart-meta-content dd {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #4a4458;
    margin: 0;
    display: block;
    line-height: 1.5;
}

.luna-cart-meta-content dd p {
    margin: 0;
}
