/* Carrello Container */
.carrello-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header del Carrello */
.carrello-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light, #e8e0d8);
}

.carrello-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text-dark, #2c2c2c);
    margin: 0 0 1rem 0;
}

.carrello-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
}

.carrello-items-count {
    margin: 0;
    color: var(--text-muted, #666);
}

.carrello-total {
    margin: 0;
    font-size: 1.2rem;
}

.total-original {
    color: var(--text-muted, #666);
    margin-right: 0.5rem;
}

.total-final {
    color: var(--text-dark, #2c2c2c);
}

.total-final strong {
    color: var(--primary, #a0826d);
    font-size: 1.3rem;
}

/* Lista Articoli */
.carrello-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Singolo Articolo */
.carrello-item {
    background: #fff;
    border: 1px solid var(--border-light, #e8e0d8);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.carrello-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Immagine Articolo */
.item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Articolo */
.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark, #2c2c2c);
    line-height: 1.3;
}

.item-variant {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

/* Controlli Quantità */
.item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-label {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--primary, #a0826d);
    border-radius: 4px;
    background: #fff;
    color: var(--primary, #a0826d);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.qty-btn:hover {
    background: var(--primary, #a0826d);
    color: #fff;
}

.qty-btn-disabled {
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.quantity-value {
    font-weight: 600;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
}

.item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary, #a0826d);
}

.item-discount {
    font-weight: 700;
    font-size: 1rem;
    color: #27ae60;
}

/* Azioni Articolo */
.item-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #c0392b;
}

/* Conferma Rimozione */
.confirm-remove {
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    min-width: 200px;
    text-align: center;
}

.btn-confirm-yes,
.btn-confirm-no {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-confirm-yes:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

.btn-confirm-no:hover {
    background: #fff;
    color: #333;
}

/* Sconto */
.carrello-discount {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Azioni Carrello */
.carrello-actions {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--border-light, #e8e0d8);
}

.btn-checkout {
    background: var(--primary, #a0826d);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-checkout:hover {
    background: var(--dark-primary, #8a7159);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 130, 109, 0.3);
}

/* Carrello Vuoto */
.carrello-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.carrello-empty i {
    font-size: 4rem;
    color: var(--border-light, #e8e0d8);
    margin-bottom: 1rem;
}

.carrello-empty h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--text-dark, #2c2c2c);
    margin: 1rem 0;
}

.carrello-empty p {
    color: var(--text-muted, #666);
    font-size: 1rem;
    margin: 0.5rem 0;
}

.btn-shop {
    display: inline-block;
    margin-top: 2rem;
    background: var(--primary, #a0826d);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--dark-primary, #8a7159);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(160, 130, 109, 0.3);
}

/* Responsive - Tablet */
@media (min-width: 600px) {
    .carrello-container {
        padding: 2.5rem 2rem;
    }

    .carrello-title {
        font-size: 2.5rem;
    }

    .carrello-summary {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .item-image {
        width: 120px;
        height: 120px;
    }

    .item-details {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Responsive - Desktop */
@media (min-width: 900px) {
    .carrello-container {
        padding: 3rem 2rem;
    }

    .carrello-item {
        padding: 1.5rem;
    }

    .item-name {
        font-size: 1.1rem;
    }
}
