:root {
    --race-red-900: #52070b;
    --race-red-800: #7f0000;
    --race-red-700: #970000;
    --race-red-600: #ad0000;
    --race-red-500: #c20000;
    --charcoal-900: #121317;
    --charcoal-800: #1b1f26;
    --charcoal-700: #2a313d;
    --white: #ffffff;
    --neutral-100: #f8f9fb;
    --neutral-200: #edf2f4;
    --neutral-300: #f1f1f1;
    --neutral-500: #8991a3;
    --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 12px 30px rgba(18, 19, 23, 0.12);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(127, 0, 0, 0.55) 0%, rgba(82, 7, 11, 0.34) 28%, #121317 68%, #0e0f12 100%),
        repeating-linear-gradient(-35deg, rgba(237, 242, 244, 0.08) 0 56px, rgba(237, 242, 244, 0) 56px 168px),
        #0f1116;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Barlow", "Segoe UI", Arial, sans-serif;
}

p,
li {
    color: rgba(255, 255, 255, 0.88);
}

p strong,
p em,
li strong,
li em {
    color: rgba(255, 255, 255, 0.96);
}

a {
    color: var(--race-red-700);
    text-decoration: none;
}

a:hover {
    color: var(--race-red-500);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
}

/* ---------- Navbar ---------- */
.site-navbar {
    background:
        linear-gradient(120deg, rgba(237, 242, 244, 0.1) 0%, rgba(237, 242, 244, 0.02) 45%, rgba(237, 242, 244, 0.08) 100%),
        repeating-linear-gradient(-35deg, rgba(237, 242, 244, 0.15) 0 22px, rgba(237, 242, 244, 0) 22px 96px),
        linear-gradient(90deg, var(--race-red-800), var(--race-red-700));
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    padding: 0.55rem 0;
}

.site-nav-container {
    align-items: center;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-navbar .nav-link:hover {
    color: var(--white);
}

.site-navbar .navbar-nav {
    gap: 0.25rem;
}

.site-navbar .navbar-nav .nav-link {
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-navbar .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link.active:hover {
    background-color: #ffffff;
    color: var(--race-red-700);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.site-navbar .navbar-nav .site-logout-link {
    color: #fff5f5;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(126, 8, 24, 0.36));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(65, 0, 10, 0.22);
}

.site-navbar .navbar-nav .site-logout-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(148, 11, 30, 0.5));
    border-color: rgba(255, 255, 255, 0.3);
}

.site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.site-navbar .navbar-toggler-icon {
    filter: invert(1) contrast(1.15);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0;
}

.site-brand-logo {
    width: auto;
    height: 56px;
    max-width: min(50vw, 300px);
    object-fit: contain;
    display: block;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 2px 4px;
}

.lang-link {
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0 7px;
    line-height: 1;
    border-radius: 999px;
}

.lang-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.74rem;
    line-height: 1;
    user-select: none;
}

/* ---------- Main ---------- */
.site-main {
    padding-top: 1.4rem;
    padding-bottom: 2.5rem;
}

.site-main > .container,
.site-main > .hero-section {
    animation: rise-in 320ms ease-out;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(140deg, var(--race-red-700), var(--race-red-500));
    border: none;
    color: var(--white);
    box-shadow: 0 10px 18px rgba(166, 20, 27, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(140deg, #b51a22, #ef2b39);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(140deg, #303644, #474f5f);
    border: none;
    color: var(--white);
}

.btn-light {
    background: #ffffff;
    border: 1px solid #e2e6ef;
    color: #1e2430;
}

.btn-light:hover {
    background: #f4f6fa;
    color: #1e2430;
}

.btn-outline-primary {
    border-color: rgba(166, 20, 27, 0.45);
    color: var(--race-red-700);
}

.btn-outline-primary:hover {
    border-color: var(--race-red-700);
    background: rgba(166, 20, 27, 0.08);
    color: var(--race-red-800);
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border: 1px solid #d6dbe6;
    border-radius: 12px;
    padding: 0.68rem 0.82rem;
    font-weight: 500;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.04);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(193, 27, 34, 0.55);
    box-shadow: 0 0 0 0.24rem rgba(193, 27, 34, 0.2);
}

.form-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
}

.card .form-label,
.card .form-check-label {
    color: #1e2430;
}

.form-floating > label {
    color: #1e2430;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid rgba(193, 27, 34, 0.2);
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff, #f8f9fd);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.card p,
.card li,
.card span,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card strong,
.card em {
    color: #1e2430;
}

.card-body {
    padding: clamp(1.1rem, 2.2vw, 1.8rem);
}

.card-title {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card .news-date {
    color: #667086;
}

.news-description {
    color: #5e6778;
}

.news-body {
    margin-top: 1rem;
    line-height: 1.6;
}

/* ---------- Muted text readable on dark background ---------- */
.form-text {
    color: rgba(255, 255, 255, 0.72);
}

.card .form-text {
    color: #667086;
}

.text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

.card .text-muted {
    color: #667086 !important;
}

/* ---------- Order status (Check your order) ---------- */
.order-product .image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

.order-product .title {
    font-family: "Barlow", "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #1e2430;
}

.product-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    margin-top: 0.35rem;
}

.product-statuses .status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5e6778;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.status-dot--preparing { background-color: #f59e0b; }
.status-dot--delivered { background-color: #22a447; }
.status-dot--selfservice { background-color: #6b7280; }

/* ---------- Ordini: icone di stato ---------- */
.order-status-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.order-status-dot {
    font-size: 0.55rem;
    line-height: 1;
    animation: order-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes order-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .order-status-dot { animation: none; }
}

.legend-item {
    font-size: 0.9rem;
    white-space: nowrap;
    color: #1e2430;
}

/* ---------- Dettaglio ordine: riga prodotto espandibile ---------- */
.order-product-details summary {
    list-style: none;
    cursor: pointer;
}

.order-product-details summary::-webkit-details-marker {
    display: none;
}

.order-product-details .summary-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.order-product-details[open] .summary-chevron {
    transform: rotate(180deg);
}

.table-opened-on {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

/* ---------- Pre-order explanation ---------- */
.preorder-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.75rem;
}

.preorder-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.preorder-steps .preorder-step-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--race-red-700), var(--race-red-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.preorder-why {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fff8e6;
    border-left: 4px solid #f59e0b;
    color: #7a5800;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.preorder-important {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fff0f0;
    border-left: 4px solid var(--race-red-700);
    color: #7f161c;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.preorder-footnote {
    color: #5e6778;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.preorder-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eef1f6;
}

.preorder-product:last-of-type {
    border-bottom: none;
}

.preorder-product-info {
    flex: 1;
    min-width: 0;
}

.preorder-product-name {
    font-weight: 600;
    color: #1e2430;
    line-height: 1.3;
}

.preorder-product-price {
    color: #5e6778;
    font-size: 0.9rem;
}

.preorder-qty {
    width: 64px;
    flex-shrink: 0;
    text-align: center;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 164, 71, 0.12);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.card .confirmation-icon {
    color: #22a447;
}

.card .confirmation-footer {
    color: #5e6778;
}

.text-primary {
    color: var(--race-red-700) !important;
}

.text-secondary {
    color: var(--charcoal-700) !important;
}

/* ---------- Readability on light surfaces ---------- */
.table {
    color: #1e2430;
    --bs-table-bg: #ffffff;
    --bs-table-color: #1e2430;
}

.table th,
.table td {
    color: #1e2430;
}

.list-group-item,
.input-group-text,
.page-link,
.nav-tabs .nav-link,
.dropdown-menu,
.dropdown-item,
.modal-content,
.modal-title,
.toast,
.toast-body {
    color: #1e2430;
}

.fav-toggle {
    line-height: 1;
    flex-shrink: 0;
}

.fav-toggle .bi {
    pointer-events: none;
}

.fav-toggle.fav-on {
    color: #f59e0b;
    border-color: #f59e0b;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2430;
}

.nav-tabs .nav-link.active {
    color: #1e2430;
    font-weight: 700;
}

/* ---------- Alerts ---------- */
.alert {
    border: none;
    border-left: 5px solid;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.alert-info {
    background: #f0f8ff;
    border-left-color: #0066cc;
    color: #1a4d7a;
}

.alert-warning {
    background: #fff5e6;
    border-left-color: var(--race-red-700);
    color: #8b5900;
}

.alert-danger {
    background: #ffe6e6;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-success {
    background: #e6f5e6;
    border-left-color: #28a745;
    color: #1e6b2e;
}

/* ---------- Accordion ---------- */
.accordion-item {
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    color: #222a36;
    background: #f8f9fd;
}

.accordion-button:not(.collapsed) {
    color: var(--white);
    background: linear-gradient(120deg, var(--race-red-700), var(--race-red-500));
}

.accordion-button:not(.collapsed) .header .information {
    color: rgba(255, 255, 255, 0.85);
}

.accordion-body p,
.accordion-body li,
.accordion-body span,
.accordion-body h1,
.accordion-body h2,
.accordion-body h3,
.accordion-body h4,
.accordion-body h5,
.accordion-body h6,
.accordion-body strong,
.accordion-body em {
    color: #1e2430;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    margin-bottom: 1.25rem;
    background:
        linear-gradient(125deg, rgba(0, 0, 0, 0.65), rgba(80, 7, 11, 0.74)),
        url('../img/hero-bg.png') center/cover no-repeat;
    box-shadow: var(--shadow-strong);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.11) 0 38px, rgba(255, 255, 255, 0) 38px 120px);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-overlay h1 {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 780px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

/* ---------- Service cards (Home) ---------- */
.home-action-card {
    height: 100%;
    text-decoration: none;
}

.home-action-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
}

.home-action-copy {
    min-width: 0;
}

.service-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 20, 27, 0.08);
    color: var(--race-red-700);
    font-size: 1.5rem;
}

.card .service-icon {
    color: var(--race-red-700);
}

.home-action-card .card-title {
    color: #1e2430;
    font-size: 1.4rem;
}

.home-action-card p {
    color: #5e6778;
    font-size: 1rem;
    line-height: 1.3;
}

/* ---------- Menu / products ---------- */
.delivery-point {
    margin-bottom: 15px;
}

.delivery-point .header .title {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 1.6em;
    line-height: 1.05;
    font-weight: 600;
    text-transform: uppercase;
}

.delivery-point .header .information {
    font-size: 1.1em;
    line-height: 1;
    font-weight: lighter;
    margin-bottom: 0;
    color: #5e6778;
}

.product {
    display: flex;
    justify-content: flex-start;
    align-content: stretch;
    position: relative;
    border: 1px solid #e5e8f0;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    background: #fbfcff;
    overflow: hidden;
}

.product .title {
    font-size: 1.5rem;
    line-height: 1;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    text-transform: uppercase;
    color: #1e2430;
}

.product .description {
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: lighter;
    color: #5e6778;
}

.product .price {
    font-size: 1.05rem;
    color: var(--race-red-700);
    font-weight: 700;
}

.product .image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    align-self: center;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 2px;
}

.product .image.not-available {
    filter: grayscale(100%);
}

.product .details {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
    padding: 5px;
}

.product-not-available {
    width: 15px;
    background-color: #dc3545;
}

.product-available {
    width: 15px;
    background-color: #28a745;
}

.product-limited {
    width: 15px;
    background-color: #fd7e14;
}

.product-allergens {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2px;
    margin-top: 2px;
}

.allergen-image {
    width: 30px;
    height: 30px;
    margin: 1px;
}

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.8rem;
}

.allergen-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.allergen-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.allergen-grid .allergen-label {
    font-size: 0.78rem;
    line-height: 1.15;
    color: #5e6778;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 2rem;
    padding: 1.3rem 0 1.5rem;
    background:
        radial-gradient(circle at 10% 5%, rgba(194, 0, 0, 0.18) 0%, rgba(194, 0, 0, 0) 40%),
        linear-gradient(90deg, #13161d, #171c26 45%, #11151d);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-shell {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 0.95rem 1.1rem;
    text-align: center;
}

.footer-eyebrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-org {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff6f7;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.4rem 0.82rem;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* ---------- Animations ---------- */
@keyframes rise-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 575px) {
    .site-footer {
        margin-top: 1rem;
        padding: 0.4rem 0 0.5rem;
    }

    .footer-shell {
        padding: 0.35rem 0.5rem;
        border-radius: 10px;
        background: none;
        border: none;
        box-shadow: none;
    }
}

/* ---------- Crea ordine ---------- */
/* Punti di distribuzione: chips sticky in alto */
.dp-chips {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.6rem 0.25rem;
    margin: 0 -0.25rem 0.75rem;
    background: rgba(18, 19, 23, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
}

.dp-chips::-webkit-scrollbar {
    display: none;
}

.dp-chip {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.dp-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.dp-chip.active {
    background: linear-gradient(140deg, var(--race-red-700), var(--race-red-500));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(166, 20, 27, 0.4);
}

/* Badge conteggio prodotto */
.product-count-badge {
    background: #f5a623;
    color: #1a1a1a !important;
    font-weight: 800;
    font-size: 0.85rem;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

/* Card prodotto: meno arrotondata */
.product-card {
    border-radius: 10px;
}

.product-card .card-body {
    padding: 0;
}

.product-card-content {
    padding: 0.4rem 0.6rem;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e2430;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-width: 0;
}

.product-price {
    font-weight: 400;
    color: var(--race-red-700);
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Miniatura prodotto nella card di Crea ordine */
.product-thumb {
    width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    align-self: stretch;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border-right: 1px solid #eef1f6;
}

.product-thumb.not-available {
    filter: grayscale(100%);
}

/* Pulsanti quantità: + verde, - rosso, modifica neutro */
.btn-qty {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-qty:active {
    transform: scale(0.94);
}

.btn-plus {
    background: #1f8a4c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(31, 138, 76, 0.35);
}

.btn-plus:hover {
    background: #1b7a43;
    color: #fff;
}

.btn-minus {
    background: var(--race-red-700);
    color: #fff;
    box-shadow: 0 6px 14px rgba(151, 0, 0, 0.35);
}

.btn-minus:hover {
    background: var(--race-red-800);
    color: #fff;
}

.btn-minus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-edit {
    background: #eef1f6;
    color: #3a4252;
    border: 1px solid #d6dbe6;
    box-shadow: none;
}

.btn-edit:hover {
    background: #e2e7f0;
}

.product-actions {
    justify-content: flex-end;
}

/* Chip varianti */
.variation-chip {
    border: 1px solid rgba(193, 27, 34, 0.3);
    color: var(--race-red-700);
    background: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.variation-chip:hover {
    background: rgba(193, 27, 34, 0.08);
    color: var(--race-red-800);
    border-color: var(--race-red-700);
}

/* Prodotti personalizzati mostrati in riga */
.custom-rows:empty {
    display: none;
}

.custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
    padding: 0.35rem 0.6rem;
    background: #f4f6fa;
    border: 1px dashed #c9d2e0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #3a4252;
}

.custom-row-note {
    font-style: italic;
    min-width: 0;
    overflow-wrap: anywhere;
}

.custom-row-qty {
    font-weight: 800;
    color: var(--race-red-700);
    white-space: nowrap;
}

/* Barra carrello sticky in basso */
.cart-bar-spacer {
    height: 92px;
}

.cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
    background: linear-gradient(140deg, var(--race-red-800), var(--race-red-500));
    color: #fff;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px 18px 0 0;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.cart-bar:hover {
    color: #fff;
    transform: translateY(-1px);
}

.cart-bar-left {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.cart-bar-label {
    font-size: 1rem;
}

.cart-count {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.05rem 0.65rem;
    font-size: 0.85rem;
    display: inline-block;
}

.cart-bar-total {
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Riga articolo nel modale carrello */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f6;
}

.cart-item-qty {
    font-weight: 800;
    color: var(--race-red-700);
    min-width: 2.2rem;
    text-align: right;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    color: #1e2430;
}

.cart-item-note {
    font-style: italic;
    color: #667086;
    font-size: 0.88rem;
}

.cart-item-price {
    font-weight: 700;
    color: #1e2430;
    white-space: nowrap;
}

.cart-remove {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

/* Stepper quantità nel modale personalizzazione */
.note-qty-value {
    font-size: 1.8rem;
    font-weight: 800;
    min-width: 3rem;
    text-align: center;
    color: #1e2430;
}

/* Contrasto testo dentro i modali (sfondo chiaro) */
.modal .form-label,
.modal .form-check-label {
    color: #1e2430;
}

.modal .text-muted {
    color: #667086 !important;
}

.modal .form-control,
.modal .form-select {
    color: #1e2430;
}
