/* ============================================================
   Carrito Custom WooCommerce – carrito.css
   Diseño fiel al mockup: acento magenta/rosa, fondo claro,
   layout de dos columnas en desktop → una columna en móvil.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
.ccw-wrapper {
    --ccw-accent:      #8D3072;
    --ccw-accent-dark: #8a0053;
    --ccw-bg:          #ffffff;
    --ccw-card-bg:     #F8F8F8;
    --ccw-border:      #e0e0e0;
    --ccw-text:        #333333;
    --ccw-muted:       #666666;
    --ccw-radius:      8px;
    --ccw-shadow:      0 2px 8px rgba(0, 0, 0, .08);
    --ccw-font:        'Champagne & Limousines', Tahoma, Geneva, Verdana, sans-serif;

    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    font-family: var(--ccw-font);
    color: var(--ccw-text);
    padding: 24px;
    border-radius: var(--ccw-radius);
    box-sizing: border-box;
    width: 100%;
}

/* ── Columna de productos ───────────────────────────────────── */
.ccw-col-productos {
    flex: 1 1 55%;
    min-width: 280px;
}

.ccw-titulo {
	font-family:"Champagne & Limousines" !important;
    font-size: 35px;
    font-weight: 700;
    color: var(--ccw-accent);
    margin: 0 0 20px;
    line-height: 1.2;
}

.ccw-vacio {
    color: var(--ccw-muted);
    font-style: italic;
    padding: 20px 0;
}

/* ── Lista de ítems ─────────────────────────────────────────── */
.ccw-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ccw-item {
    background: var(--ccw-card-bg);
    box-shadow: var(--ccw-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    position: relative;
    transition: box-shadow .2s ease;
}

.ccw-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* ── Imagen + badge de cantidad ─────────────────────────────── */
.ccw-item__img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 40%;
    height: auto;
}

.ccw-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #e8e8e8;
    display: block;
}

.ccw-item__qty {
    position: absolute;
    top: 0;
    right: 0;
    background: #555;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 15px;
    border-radius: 0 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Datos del ítem ─────────────────────────────────────────── */
.ccw-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ccw-item__name {
	width: 90%;
	font-family:"Champagne & Limousines" !important;
    font-size: 25px;
    font-weight: 700 !important;
    margin: 0 0 15px;
    color: #878787;
	text-transform: uppercase;
	line-height: 1;
}

.ccw-item__desc {
    font-size: 16px;
	font-family: "Inter";
	font-weight: 700;
    color: #CBCBCB;
    margin: 0 0 10px;
    line-height: 1.1;
}

.ccw-item__price {
    font-size: 25px;
    font-weight: 600;
    color: var(--ccw-accent);
    margin: 0;
    text-align: right;
}

.ccw-item__price .woocommerce-Price-amount {
    color: var(--ccw-accent);
    font-weight: 600;
}

/* ── Columna resumen ────────────────────────────────────────── */
.ccw-col-resumen {
    flex: 0 1 320px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Bloque total ───────────────────────────────────────────── */
.ccw-total-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccw-total-label {
    font-size: 36px;
    font-weight: 700;
    color: var(--ccw-accent);
    line-height: 1;
}

.ccw-total-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ccw-accent);
    line-height: 1.1;
}

.ccw-total-value .woocommerce-Price-amount,
.ccw-total-value bdi {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* ── Botón Confirmar ────────────────────────────────────────── */
.ccw-btn-confirmar {
    display: block;
    font-family: 'Champagne & Limousines' !important;
    width: 100%;
    padding: 5px;
    background: var(--ccw-accent);
    color: #fff !important;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.ccw-btn-confirmar:hover,
.ccw-btn-confirmar:focus {
    transform: translateY(-1px);
    outline: none;
}

.ccw-btn-confirmar:active {
    transform: translateY(0);
}

/* ── Políticas ──────────────────────────────────────────────── */
.ccw-politicas {
    border-top: 1px solid var(--ccw-border);
    padding-top: 12px;
}

.ccw-politicas__titulo {
	font-size: 18px;
	font-family: "Inter" !important;
    font-weight: 700;
    color: #636161;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ccw-politicas__texto {
    font-size: 16px;
    color: #A4A4A4;
    margin: 0;
    line-height: 1.5;
}

/* ── Avisos ─────────────────────────────────────────────────── */
.ccw-aviso {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ccw-aviso__icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.ccw-aviso__titulo {
    font-size: 18px;
	font-family: "Inter" !important;
    font-weight: 700;
    color: #636161;
    margin: 0 0 2px;
}

.ccw-aviso__texto {
    font-size: 16px;
    color: #A4A4A4;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   RESPONSIVE – una sola columna en pantallas ≤ 768 px
   ============================================================ */
@media (max-width: 768px) {

    .ccw-wrapper {
        flex-direction: column;
        padding: 16px;
        gap: 20px;
    }

    .ccw-col-productos,
    .ccw-col-resumen {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
    }

    /* Los productos primero, el resumen debajo */
    .ccw-col-productos { order: 1; }
    .ccw-col-resumen   { order: 2; }

    .ccw-titulo {
        font-size: 25px;
		font-family: "Champagne & Limousines" !important;
    }

    .ccw-item__img-wrap {
        width: 30%;
        height: auto;
    }

    .ccw-item__name {
        font-size: 18px;
    }

    .ccw-total-value {
        font-size: 28px;
    }

    .ccw-total-label {
        font-size: 28px;
    }

    .ccw-btn-confirmar {
        font-size: 22px;
        padding: 8px 16px;
    }
	
	.ccw-item__desc {
		font-size: 14px;
	}
	
	.ccw-item {
		flex-direction:column;
	}
}

@media (max-width: 480px) {
    .ccw-item {
        flex-wrap: wrap;
    }

    .ccw-item__img-wrap {
        width: 60%;
        height: auto;
    }
}

.ccw-item__containerInfo {
	width: 100%;
}

.ccw-item {
    display: flex;
    align-items: stretch;
}