@media screen and (min-width: 1024px) {
	#cardIndex{
		max-width:95%;
	}
	.container {
        max-width: 100%;
    }
	#homeCont{
		max-width:30%;
	}
	.riepCont{
		/*
		max-width: 70%;
		*/
	}
	.vtype{
		max-width:50%;
	}
	.product-card {
            width: 90%;
	}
	
	
}

@media screen and (max-width: 2048px) {

    .product-card {
        max-width: 100%;
    }

}

#container{
	
}
#dimScreen
{
    position:fixed;
    padding:0;
    margin:0;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background:rgba(0,0,0,0.8);
	display: none;
	
}

#homeCont{
		min-width: 250px;
	}
.prodotto{
		max-width: 400px;
		}
		
body {
            background: #f5f7fa;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }

        .container-shop {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
			margin: 0 auto;
			justify-content: center;
        }

        .product-card {
			width: 100%;
            max-width: 280px;
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 14px rgba(0,0,0,.08);
            transition: .2s;
        }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0,0,0,.15);
        }

        .product-title {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            padding: 14px;
            text-align: center;
            min-height: 70px;

            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-title a {
            color: #222;
            text-decoration: none;
            font-weight: bold;
            font-size: 15px;
        }

        .product-image {
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f9fafb;
            padding: 10px;
        }

        .product-image img {
            max-width: 100%;
            max-height: 190px;
        }

        .product-body {
            padding: 15px;
        }

        .price-box {
            background: #fef3c7;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 15px;
            text-align: center;
        }

        .price {
            font-size: 24px;
            font-weight: bold;
            color: #111827;
        }

        .price-note {
            font-size: 12px;
            color: #666;
        }

        .qty-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .qty-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #f1f5f9;

            display: flex;
            align-items: center;
            justify-content: center;

            cursor: pointer;
            transition: .2s;
        }

        .qty-btn:hover {
            background: #dbeafe;
        }

        .qty-input {
            width: 70px;
            text-align: center;
            border-radius: 8px;
            border: 1px solid #ccc;
            padding: 8px;
            font-size: 16px;
            font-weight: bold;
        }

        .btn-cart {
            width: 100%;
            margin-top: 15px;
            border-radius: 10px;
            font-weight: bold;
        }
.product-detail {
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 35px;
    align-items: start;
}

.product-image-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.product-image-box img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
}

.qty-box {
    /* display: flex; */
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    transition: .2s;
}

.qty-btn:hover {
    background: #dbeafe;
}

.qty-input {
    width: 120px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.qty-label {
    font-size: 13px;
    font-weight: bold;
    color: #6b7280;
}

.tech-btn {
    margin-bottom: 25px;
}

.tech-btn .button {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: bold;
}

.product-info {
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px;
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-info li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.product-info li:last-child {
    border-bottom: none;
}

.product-info strong {
    color: #111827;
}

.code-cedi {
    background: #2563eb;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 24px;
        text-align: center;
    }

    .qty-box {
        justify-content: center;
    }

}

.promo-banner {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;

    padding: 14px 18px;
    margin: 10px 0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    text-align: center;

    font-size: 18px;
    font-weight: 700;

    box-shadow: 0 6px 18px rgba(34,197,94,.35);

    animation: promoPulse 2s infinite;
}

.promo-icon {
    font-size: 24px;
}

.promo-date {
    background: rgba(255,255,255,.18);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.promo-extra {
    background: #dc2626;
    color: white;

    padding: 6px 12px;
    border-radius: 999px;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: .5px;
}

@keyframes promoPulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }

}
	.checkout-wrapper {
    width: 100%;
    max-width: 980px;
    margin: 25px auto;
    padding: 0 15px;
}

.checkout-title {
    text-align: center;
    margin-bottom: 20px;
}

.riepCont {
    background: #ffffff;
    border: 1px solid #dbeafe !important;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.checkout-product-main {
    display: grid;
    grid-template-columns: 90px 1fr 160px;
    gap: 15px;
    align-items: center;
}

.checkout-product-img img {
    max-width: 80px;
    max-height: 100px;
    object-fit: contain;
}

.checkout-product-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.checkout-qty-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.checkout-qty-form input[type="text"] {
    width: 48px;
    height: 36px;
    text-align: center !important;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-weight: bold;
}

.checkout-qty-form input[type="submit"] {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.checkout-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.checkout-stats div {
    padding: 8px 5px;
    text-align: center;
    font-size: 13px;
    border-right: 1px solid #e5e7eb;
}

.checkout-stats div:nth-child(6n) {
    border-right: none;
}

/* rifatturazione: solo Qta / pzXct / TotPz (3 colonne) */
.checkout-stats.checkout-stats--rifat {
    grid-template-columns: repeat(3, 1fr);
}
.checkout-stats.checkout-stats--rifat div:nth-child(3n) {
    border-right: none;
}

.checkout-stats.checkout-stats--pack {
    grid-template-columns: repeat(7, 1fr);
}
.checkout-stats.checkout-stats--rifat.checkout-stats--pack {
    grid-template-columns: repeat(4, 1fr);
}
.checkout-stats.checkout-stats--pack div,
.checkout-stats.checkout-stats--rifat.checkout-stats--pack div {
    border-right: 1px solid #e5e7eb;
}
.checkout-stats.checkout-stats--pack div:last-child {
    border-right: none;
}

/* Riepilogo compatto: UM / Qta / eventuale imballo / prezzo. */
.checkout-stats.checkout-stats--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-stats.checkout-stats--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-stats.checkout-stats--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkout-stats.checkout-stats--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.checkout-stats[class*="checkout-stats--cols-"] div {
    border-right: 1px solid #e5e7eb;
}
.checkout-stats[class*="checkout-stats--cols-"] div:last-child {
    border-right: none;
}

/* rifatturazione: Totale cartoni grande come il Totale ordine */
.checkout-summary-row.checkout-summary-row--big {
    font-size: 20px;
    font-weight: 800;
    border-bottom: none;
}

.checkout-stats-header {
    background: #f1f5f9;
    font-weight: 700;
    color: #475569;
}

.checkout-summary {
    max-width: 420px;
    margin-left: auto;
    background: #f8fafc;
    border-radius: 14px;
    padding: 15px;
    margin-top: 20px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-summary-row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: 800;
}

.checkout-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.checkout-box-title {
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.checkout-box select,
.checkout-box input[type="text"],
.checkout-box textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.confirm-order-btn {
    width: 100%;
    max-width: 420px;
    padding: 16px;
    background: rgb(236, 88, 41);
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: .3px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(236, 88, 41, .32);
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.confirm-order-btn:hover {
    background: #d24a22;
    box-shadow: 0 8px 20px rgba(236, 88, 41, .4);
}

.confirm-order-btn:active {
    transform: translateY(1px);
}
input.confirm-order-btn,
button.confirm-order-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 20px auto;

    padding: 18px 24px !important;

    background: rgb(236, 88, 41) !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 14px !important;

    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .3px;

    cursor: pointer;
    box-shadow: 0 8px 20px rgba(236, 88, 41, .32);
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;

    appearance: none;
    -webkit-appearance: none;
}

input.confirm-order-btn:hover,
button.confirm-order-btn:hover {
    background: #d24a22 !important;
    box-shadow: 0 10px 24px rgba(236, 88, 41, .4);
}

input.confirm-order-btn:active,
button.confirm-order-btn:active {
    transform: translateY(1px);
}

@media screen and (max-width: 768px) {

    .checkout-wrapper {
        margin: 10px auto;
        padding: 0 10px;
    }

    .checkout-product-main {
        grid-template-columns: 80px 1fr;
    }

    .checkout-qty-form {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 10px;
    }

    .checkout-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-stats div {
        border-bottom: 1px solid #e5e7eb;
    }

    .checkout-summary {
        max-width: 100%;
        margin-left: 0;
    }

    .confirm-order-btn {
        max-width: 100%;
    }
}
.orders-page {
    width: 100%;
    max-width: 980px;
    margin: 25px auto;
    padding: 0 15px 28px;
    color: #0b1c30;
    font-family: "Inter", Arial, sans-serif;
}

.orders-page__title {
    margin-bottom: 20px;
}

.orders-page__title h2 {
    margin: 0;
    color: #004ac6;
    font-size: 26px;
    line-height: 32px;
    font-weight: 800;
    letter-spacing: 0;
}

.order-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #c3c6d7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(11, 28, 48, 0.08);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.order-card-header__main {
    min-width: 0;
}

.order-card-numline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.order-card-titleline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card-titleword {
    color: #004ac6;
    font-size: 21px;
    line-height: 26px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-card-kicker {
    display: block;
    margin-bottom: 3px;
    color: #004ac6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-card-header h3 {
    margin: 0;
    color: #0b1c30;
    font-size: 21px;
    line-height: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.order-card-date {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #c3c6d7;
    border-radius: 999px;
    background: #eff4ff;
    color: #434655;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.order-card-date--inline {
    align-self: center;
    color: #004ac6;
}

.order-card-date-text {
    color: #0b1c30;
    font-size: clamp(13px, 3.2vw, 16px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.order-rifat-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35em;
    margin-top: 7px;
}

.order-rifat-line .order-rifat-label {
    margin-top: 0;
}

.order-rifat-label {
    display: inline;
    margin-top: 7px;
    color: rgb(236, 88, 41);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.order-rifat-sep {
    color: rgb(236, 88, 41);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.order-rifat-supplier {
    color: #004ac6;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.order-status--corner {
    align-self: flex-start;
    text-align: center;
    white-space: nowrap;
}

.order-card--rifat {
    position: relative;
}

.order-card--rifat .order-card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-card--rifat .order-card-header__main {
    flex: 1 1 auto;
    min-width: 0;
}

.order-card--rifat .order-card-titleline {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    flex-wrap: nowrap;
}

.order-card--rifat .order-card-titleword {
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1;
}

.order-card--rifat .order-card-header h3 {
    font-size: clamp(17px, 4.2vw, 21px);
    line-height: 1;
    white-space: nowrap;
}

.order-card--rifat .order-status--corner {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: clamp(9px, 2.4vw, 12px);
    line-height: 1;
    white-space: nowrap;
}

.order-status {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
}

.order-status--pending {
    background: #ffe3e3;
    color: #ba1a1a;
}

.order-status--accepted {
    background: #dff5df;
    color: #176b2c;
}

.order-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #ffd6c7;
    border-radius: 8px;
    background: #fff7f2;
}

.order-note span {
    color: #ba1a1a !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-note strong {
    color: #176b2c !important;
    font-size: 14px;
    line-height: 19px;
    overflow-wrap: anywhere;
}

.order-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.order-card--rifat .order-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-field {
    min-width: 0;
    border: 1px solid #dce9ff;
    border-radius: 8px;
    padding: 11px 12px;
    background: #f8f9ff;
}

.order-field span {
    display: block;
    margin-bottom: 5px;
    color: #5f6675;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-field strong {
    display: block;
    color: #0b1c30;
    font-size: 15px;
    line-height: 20px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.order-field .red_text a {
    color: #ba1a1a;
    font-weight: 800;
    text-decoration: none;
}

.order-card-footer {
    display: block;
    padding-top: 2px;
}

.order-actions-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.order-inline-detail {
    width: 100%;
}

.order-inline-detail summary {
    list-style: none;
}

.order-inline-detail summary::-webkit-details-marker {
    display: none;
}

.order-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 0 18px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.order-detail-toggle:hover {
    background: #004ac6;
}

.order-detail-toggle:active {
    opacity: .82;
}

.order-detail-close {
    display: none;
}

.order-inline-detail[open] .order-detail-toggle {
    border-radius: 6px 6px 0 0;
    background: #004ac6;
}

.order-inline-detail[open] .order-detail-open {
    display: none;
}

.order-inline-detail[open] .order-detail-close {
    display: inline;
}

.order-inline-detail__body {
    border: 1px solid #c3c6d7;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 14px;
    background: #ffffff;
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 148px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.order-action-btn--primary {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
}

.order-action-btn--primary:hover {
    background: #004ac6;
    border-color: #004ac6;
    color: #ffffff;
}

.order-action-btn--secondary {
    align-self: flex-end;
    background: #ffffff;
    border: 1px solid #c3c6d7;
    color: #004ac6;
}

.order-action-btn--secondary:hover {
    background: #eff4ff;
    border-color: #004ac6;
    color: #004ac6;
}

.order-action-btn:active {
    opacity: .82;
}

.orders-empty {
    border: 1px solid #c3c6d7;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    color: #434655;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
    box-shadow: 0 1px 3px rgba(11, 28, 48, 0.08);
}

@media (max-width: 768px) {
    .orders-page {
        margin: 10px auto;
        padding: 0 10px 22px;
    }

    .order-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .order-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .order-card-date {
        align-self: flex-start;
    }

    .order-card-grid {
        grid-template-columns: 1fr;
    }

    .order-actions-list {
        flex-direction: column;
    }

    .order-action-btn {
        width: 100%;
    }
}
.order-inline-detail__body > .row {
    margin: 0 0 12px;
}

.order-inline-detail__body > .row .cell {
    padding: 10px 12px;
    border-radius: 6px;
    background: #eff4ff !important;
    color: #004ac6 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: left !important;
    text-transform: uppercase;
}

.order-inline-detail__body > .cell {
    width: 100%;
}

.order-detail-card {
    border: 1px solid #dce9ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9ff;
}

.order-detail-card:last-child {
    margin-bottom: 0;
}

.order-detail-card--gift {
    border-color: #f0b4b4;
    background: #fff5f5;
}

.order-detail-card--promo {
    border-color: #ba1a1a;
    background: #fff8f5;
}

.order-detail-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 20px;
}

.order-detail-title a {
    color: #0b1c30;
    text-decoration: none;
}

.order-detail-title a:hover {
    color: #004ac6;
}

.order-detail-gift-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ba1a1a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.order-detail-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #ba1a1a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.order-detail-gift-note {
    width: 100%;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #8a1010;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.order-detail-grid--rifat {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.order-detail-grid.order-detail-grid--pack {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.order-detail-grid--rifat.order-detail-grid--pack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-detail-field {
    min-width: 0;
    border: 1px solid #dce9ff;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
}

.order-detail-grid--rifat .order-detail-field {
    text-align: center;
}

.order-detail-grid--rifat .order-detail-field span,
.order-detail-grid--rifat .order-detail-field strong {
    display: block;
}

.order-detail-grid--rifat .order-detail-field strong {
    margin-left: 0;
}

.order-detail-field span {
    display: block;
    margin-bottom: 4px;
    color: #5f6675;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-detail-field strong {
    display: block;
    color: #0b1c30;
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.order-detail-field.qty {
    background: #dff5df;
    border-color: #b7dfb7;
}

@media (max-width: 768px) {
    .order-card-header--rifat {
        display: block;
    }

    .order-card--rifat .order-status--corner {
        max-width: none;
        white-space: nowrap;
        line-height: 1;
    }

    .order-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-detail-grid--rifat {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-detail-grid.order-detail-grid--pack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-detail-grid--rifat.order-detail-grid--pack {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-card--rifat .order-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-grid--rifat {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-detail-grid--rifat.order-detail-grid--pack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .order-card--rifat .order-card-titleline {
        gap: 4px;
    }

    .order-card--rifat .order-status--corner {
        padding-left: 6px;
        padding-right: 6px;
    }
}
.tag-insegna {
    display: inline-flex;
    align-items: center;

    height: 22px;
    padding: 0 8px;

    background: #ffca28;
    color: #222;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}
.client-link {
    display: block;

    padding: 5px 12px;
    margin-bottom: 5px;

    border-radius: 2px;

    text-decoration: none;
    color: #1565c0;

    transition: .15s ease;
}

.client-link:hover {
    background: #f7f7f7;
}

.client-row-top {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}

.client-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #222;

    flex-shrink: 0;
}

.client-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 24px;

    padding: 0 10px;

    background: #ffca28;
    color: #111;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    flex-shrink: 0;
}

.client-name {
    font-size: 15px;
    font-weight: 500;

    line-height: 1.3;

    overflow: hidden;
    text-overflow: ellipsis;
}

.client-address {
    margin-left: 22px;
    margin-top: 6px;

    font-size: 12px;
    color: #666;

    line-height: 1.3;
}
.client-modal-search {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.client-modal-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}
.product-content-row {
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
}

.product-content-row .product-image {
    height: 210px;
    padding: 10px;
}

.product-content-row .product-image img {
    max-height: 185px;
    max-width: 100%;
}

.product-content-row .product-body {
    padding: 10px;
}

.product-content-row .price-box {
    margin-bottom: 0;
}

.product-content-row .inProd {
    width: 100%;
    max-width: 90px;
    height: 42px;
    font-size: 20px;
}

.product-content-row .mif-minus,
.product-content-row .mif-plus {
    font-size: 34px;
}
@media (max-width: 768px){

    .container{
        width:100% !important;
        max-width:100% !important;
        padding-left:8px !important;
        padding-right:8px !important;
        margin:0 !important;
    }

    .container-shop{
        width:100%;
        justify-content:center;
    }

    .product-card{
        max-width:none;
        width:100%;
    }

}
@media (max-width: 480px) {

    .product-content-row {
        grid-template-columns: 58% 42%;
    }

    .product-card {
        max-width: 100%;
    }

    .product-content-row .product-image {
        height: 190px;
    }

    .product-content-row .product-image img {
        max-height: 165px;
    }

    .product-content-row .product-body {
        padding: 8px;
    }
}

/* ── Notifiche blocco acquisto / fornitore ───────────────────────────── */
.forn-block-notice {
    position: fixed;
    top: 14px;
    top: max(14px, env(safe-area-inset-top));
    left: 50%;
    z-index: 99999;
    width: min(620px, calc(100vw - 24px));
    box-sizing: border-box;
    background: #ffffff;
    color: #1f2937;
    padding: 14px 52px 14px 62px;
    border: 1px solid #d9dee8;
    border-left: 5px solid #c43d3d;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 16px 42px rgba(11, 28, 48, .20), 0 3px 10px rgba(11, 28, 48, .10);
    transform: translate(-50%, calc(-100% - 28px));
    opacity: 0;
    transition: transform .28s ease, opacity .2s ease;
    display: flex;
    align-items: center;
    min-height: 72px;
}
.forn-block-notice--visible {
    transform: translate(-50%, 0);
    opacity: 1;
}
.forn-block-notice__icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fde8e8;
    color: #b92f2f;
}
.forn-block-notice__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.forn-block-notice__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.forn-block-notice__title {
    display: block;
    color: #0b1c30;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.forn-block-notice__msg {
    display: block;
    color: #536174;
}
.forn-block-notice__msg strong {
    color: #27364a;
    font-weight: 800;
}
.forn-block-notice__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #657287;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: .75;
}
.forn-block-notice__close:hover {
    color: #0b1c30;
    opacity: 1;
}

@media (max-width: 560px) {
    .forn-block-notice {
        top: 10px;
        top: max(10px, env(safe-area-inset-top));
        width: calc(100vw - 18px);
        padding: 13px 44px 13px 55px;
        border-radius: 14px;
        min-height: 66px;
    }
    .forn-block-notice__icon {
        left: 14px;
        width: 29px;
        height: 29px;
    }
    .forn-block-notice__title { font-size: 14px; }
    .forn-block-notice__msg { font-size: 13px; }
    .forn-block-notice__close { right: 9px; }
}

/* --- pannello reinvio email ordine rifatturazione --- */
.order-action-btn--mail {
    background: #ffffff;
    border: 1px solid #6b7280;
    color: #374151;
    min-width: auto;
    padding: 0 14px;
    gap: 6px;
}
.order-action-btn--mail:hover {
    background: #f3f4f6;
    border-color: #374151;
    color: #111827;
}
.mail-ordine-panel {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid #d9dee3;
    border-radius: 6px;
    background: #f9fafb;
    width: 100%;
    box-sizing: border-box;
}
.mail-ordine-panel__title {
    font-weight: 700;
    font-size: 13px;
    color: #27364a;
    margin: 0 0 10px 0;
}
.mail-ordine-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.mail-ordine-dest-forn,
.mail-ordine-dest-manual {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 6px 8px;
    border: 1px solid #c3c6d7;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
}
.mail-ordine-dest-manual {
    resize: vertical;
    min-height: 48px;
}
.mail-ordine-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 10px 0;
    cursor: pointer;
}
.mail-ordine-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}
.mail-ordine-msg {
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 8px;
}
.mail-ordine-msg--ok  { color: #166534; font-weight: 600; }
.mail-ordine-msg--err { color: #991b1b; font-weight: 600; }
.mail-ordine-actions {
    display: flex;
    gap: 8px;
}
.mail-ordine-send-btn {
    padding: 7px 18px;
    background: #27364a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.mail-ordine-send-btn:disabled {
    opacity: .55;
    cursor: default;
}
.mail-ordine-cancel-btn {
    padding: 7px 14px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #c3c6d7;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}
.mail-ordine-cancel-btn:hover {
    background: #f3f4f6;
}
