/* STILE DARK MODE CLIENTE */
:root {
    --primary-dark: #1e1e2f;
    --secondary-dark: #2c2c3a;
    --accent-color: #00e676;
    --text-color: #e0e0e0;
    --border-color: #444;
    --blue-btn: #007bff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Heebo", sans-serif; }

body {
    background-color: var(--primary-dark);
    color: var(--text-color);
    padding-bottom: 100px;
    margin: 0;
}
.contenitore {
    width: 95%; max-width: 1200px; margin: 30px auto;
}
h1 { color: #fff; text-align: center; margin-bottom: 10px; text-transform: uppercase; margin-top: 67px; }
p.sub-title { text-align: center; color: #aaa; margin-bottom: 30px; }
/* Box Riepilogo */
.summary-box {
    background: linear-gradient(145deg, #2c2c3a, #323242);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #3e3e4f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.sum-price { font-size: 24px; font-weight: bold; color: var(--accent-color); }
.sum-items { color: #ccc; }
.btn-confirm {
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 230, 118, 0.3);
    transition: transform 0.2s;
}
.btn-confirm:hover { transform: scale(1.05); }
/* GRIGLIA */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}
.card:hover { border-color: #00bcd4; transform: translateY(-3px); }
.card-img-top {
    width: 100%; height: 180px; object-fit: contain;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
}
.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }

.card-title { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 5px; }
.cat-label { font-size: 12px; color: #aaa; text-transform: uppercase; margin-bottom: 10px; display: block;}
/* Controlli Quantità */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e2f;
    border-radius: 30px;
    margin: 15px 0;
    padding: 5px;
    border: 1px solid #444;
}
.qty-btn {
    background: #3a3a50; color: #fff; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    font-weight: bold; cursor: pointer; font-size: 18px;
}
.qty-btn:hover { background: #505070; }
.qty-display { padding: 0 15px; font-weight: bold; font-size: 18px; color: #fff; }
.price-single { text-align: center; font-size: 18px; color: #00bcd4; font-weight: bold; margin-bottom: 15px; }
.btn-delete {
    background-color: #ff5252;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
}
.btn-delete:hover { background-color: #d32f2f; }
.no-items { text-align: center; padding: 50px; font-size: 18px; color: #aaa; }

@media (max-width: 768px) {
    .summary-box { flex-direction: column; gap: 15px; text-align: center; }
}