/* =============================================================================
   DomShop Cart — styling sopra selettori WooCommerce canonici
   File: assets/css/cart.css
   Riferimento: woocommerce/cart/cart.php + cart-totals.php (V3 Dark Header)
   ============================================================================= */

/* ============ Nascondi titolo "Cart" della pagina WP ============ */
body.woocommerce-cart article > h1:first-child,
body.woocommerce-cart .entry-title,
body.woocommerce-cart .ds-page__title,
body.woocommerce-cart h1.page-title{
	display:none !important;
}

/* ============ Layout 2-col scope-able ============ */
.ds-cart-page{
	margin:32px 0 60px;
}
.ds-cart-page__layout{
	display:grid;
	grid-template-columns:minmax(0, 1fr) 380px;
	gap:24px;
	align-items:start;
}
.ds-cart-page__col-main,
.ds-cart-page__col-side{
	min-width:0;
}
.ds-cart-page__col-side{
	position:sticky;
	top:90px;
}
@media (max-width:920px){
	.ds-cart-page__layout{
		grid-template-columns:1fr;
		gap:20px;
	}
	.ds-cart-page__col-side{position:static;}
}

/* =============================================================================
   LISTA ARTICOLI — V2 Minimal No Extra
   La table .shop_table.cart è convertita in display:block, ogni .cart_item
   diventa una grid riga con: thumb, info (name + prezzo unit), stepper qty,
   subtotale, ×. Le righe "Spedizione Standard: 15 × N = X" iniettate via
   woocommerce_get_item_data sono nascoste qui (restano nel checkout).
   ============================================================================= */
.ds-cart-page .woocommerce-cart-form .shop_table.cart,
.ds-cart-page .woocommerce-cart-form .shop_table.cart tbody{
	display:block;
	width:100%;
	margin:0;
	border:0;
	background:transparent;
	border-collapse:separate;
}
.ds-cart-page .woocommerce-cart-form .shop_table.cart thead{ display:none; }

.ds-cart-page .woocommerce-cart-form tr.cart_item{
	display:grid;
	grid-template-columns:72px 1fr auto auto 32px;
	grid-template-rows:auto auto;
	grid-template-areas:
		"thumb name    qty subtotal remove"
		"thumb price   qty subtotal remove";
	column-gap:18px;
	row-gap:4px;
	align-items:center;
	padding:16px 18px;
	background:#fff;
	border:0;
	border-bottom:1px solid var(--ds-border, rgba(0,0,0,.10));
	border-radius:0;
}
.ds-cart-page .woocommerce-cart-form tr.cart_item:first-child{
	border-top:1px solid var(--ds-border, rgba(0,0,0,.10));
}
.ds-cart-page .woocommerce-cart-form tr.cart_item > td{
	display:block;
	padding:0;
	margin:0;
	border:0;
	background:transparent;
	vertical-align:initial;
}

/* product-thumbnail */
.ds-cart-page .product-thumbnail{ grid-area:thumb; width:72px; }
.ds-cart-page .product-thumbnail img{
	width:72px; height:72px;
	object-fit:cover;
	border-radius:8px;
	display:block;
}

/* product-name (nome + eventuali varianti, NO info "Spedizione...") */
.ds-cart-page .product-name{ grid-area:name; min-width:0; }
.ds-cart-page .product-name a{
	font-size:15px;
	font-weight:700;
	color:var(--ds-black);
	text-decoration:none;
	line-height:1.3;
	letter-spacing:-0.005em;
}
.ds-cart-page .product-name a:hover{ text-decoration:underline; }

/* Nascondi info "Spedizione Standard/Premium" iniettate via item_data */
.ds-cart-page .product-name dl.variation dt[class*="Spedizione"],
.ds-cart-page .product-name dl.variation dt[class*="Spedizione"] + dd,
.ds-cart-page .product-name dl.variation dt[class*="spedizione"],
.ds-cart-page .product-name dl.variation dt[class*="spedizione"] + dd{
	display:none;
}
.ds-cart-page .product-name dl.variation{
	margin:4px 0 0;
	font-size:12px;
	color:rgba(0,0,0,.55);
}
.ds-cart-page .product-name dl.variation dt,
.ds-cart-page .product-name dl.variation dd{
	display:inline;
	margin:0;
}

/* product-price (prezzo unitario, sotto al nome — "x € / pz") */
.ds-cart-page .product-price{
	grid-area:price;
	font-size:12.5px;
	color:var(--ds-muted, rgba(0,0,0,.6));
	font-variant-numeric:tabular-nums;
}
.ds-cart-page .product-price::after{
	content:" / pz";
	color:var(--ds-mutest, rgba(0,0,0,.42));
}
.ds-cart-page .product-price .amount,
.ds-cart-page .product-price .woocommerce-Price-amount{
	font-size:12.5px !important;
	font-weight:500 !important;
	color:var(--ds-muted, rgba(0,0,0,.6)) !important;
}

/* product-quantity — stepper +/- (markup da quantity-input.php cart branch) */
.ds-cart-page .product-quantity{ grid-area:qty; }
.ds-cart-page .product-quantity .ds-qty,
.ds-cart-page .product-quantity .quantity.ds-qty{
	display:inline-flex;
	align-items:center;
	background:var(--ds-surface, #fbfbf7);
	border:1px solid var(--ds-border, rgba(0,0,0,.10));
	border-radius:99px;
	padding:0;
	height:34px;
}
.ds-cart-page .product-quantity .ds-qty__btn{
	width:30px; height:34px;
	border:0; background:transparent;
	cursor:pointer;
	font-size:15px; font-weight:700;
	color:var(--ds-black);
	display:inline-flex; align-items:center; justify-content:center;
	transition:color .15s;
}
.ds-cart-page .product-quantity .ds-qty__btn:hover{ color:var(--ds-yellow-dark, #e0a800); }
.ds-cart-page .product-quantity .ds-qty input.qty,
.ds-cart-page .product-quantity .ds-qty .ds-qty__input{
	width:34px; height:34px;
	border:0; background:transparent;
	text-align:center;
	font-weight:700;
	font-size:13px;
	color:var(--ds-black);
	outline:none;
	-moz-appearance:textfield;
	padding:0;
}
.ds-cart-page .product-quantity .ds-qty input.qty::-webkit-outer-spin-button,
.ds-cart-page .product-quantity .ds-qty input.qty::-webkit-inner-spin-button{
	-webkit-appearance:none;
	margin:0;
}

/* product-subtotal */
.ds-cart-page .product-subtotal{
	grid-area:subtotal;
	font-size:17px;
	font-weight:800;
	color:var(--ds-black);
	text-align:right;
	font-variant-numeric:tabular-nums;
	min-width:90px;
}
.ds-cart-page .product-subtotal .amount,
.ds-cart-page .product-subtotal .woocommerce-Price-amount{
	font-size:17px !important;
	font-weight:800 !important;
	color:var(--ds-black) !important;
}

/* product-remove (×) */
.ds-cart-page .product-remove{
	grid-area:remove;
	text-align:right;
}
.ds-cart-page .product-remove a.remove{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:32px; height:32px;
	font-size:18px;
	font-weight:400;
	color:var(--ds-mutest, rgba(0,0,0,.42));
	text-decoration:none;
	border-radius:50%;
	transition:background .15s, color .15s;
}
.ds-cart-page .product-remove a.remove:hover{
	background:#fef2f2;
	color:#dc2626;
}


/* Actions row: coupon + Aggiorna carrello (stile coerente col design V3) */
.ds-cart-page .woocommerce-cart-form .actions{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:12px;
	padding:20px 4px 8px;
	border:0;
}
/* Coupon (input + Applica codice) — occupa la parte sinistra, cresce su spazio disponibile */
.ds-cart-page .woocommerce-cart-form .actions .coupon{
	display:flex;
	flex:1 1 360px;
	gap:10px;
	align-items:stretch;
	margin:0;
}
.ds-cart-page .woocommerce-cart-form .actions .coupon #coupon_code{
	flex:1 1 auto;
	min-width:0;
	height:46px;
	padding:0 16px;
	background:#fff;
	border:1px solid var(--ds-border, rgba(0,0,0,.14));
	border-radius:10px;
	font-size:14px;
	color:var(--ds-black, #2B2B2B);
	outline:none;
	box-shadow:none;
	transition:border-color .15s, box-shadow .15s;
}
.ds-cart-page .woocommerce-cart-form .actions .coupon #coupon_code::placeholder{
	color:rgba(0,0,0,.42);
}
.ds-cart-page .woocommerce-cart-form .actions .coupon #coupon_code:focus{
	border-color:var(--ds-black, #2B2B2B);
	box-shadow:0 0 0 3px rgba(0,0,0,.06);
}
/* Bottoni Applica codice + Aggiorna carrello — uniformi, inline, compatti */
.ds-cart-page .woocommerce-cart-form .actions button[name="apply_coupon"],
.ds-cart-page .woocommerce-cart-form .actions button[name="update_cart"]{
	flex:0 0 auto;
	width:auto;
	height:46px;
	padding:0 22px;
	background:var(--ds-black, #2B2B2B);
	color:#fff;
	border:1px solid var(--ds-black, #2B2B2B);
	border-radius:10px;
	font-weight:700;
	font-size:13px;
	letter-spacing:.2px;
	line-height:1;
	white-space:nowrap;
	cursor:pointer;
	box-shadow:none;
	transition:background .15s, border-color .15s, opacity .15s, transform .05s;
}
.ds-cart-page .woocommerce-cart-form .actions button[name="apply_coupon"]:hover:not(:disabled),
.ds-cart-page .woocommerce-cart-form .actions button[name="update_cart"]:hover:not(:disabled){
	background:#000;
	border-color:#000;
}
.ds-cart-page .woocommerce-cart-form .actions button[name="apply_coupon"]:active:not(:disabled),
.ds-cart-page .woocommerce-cart-form .actions button[name="update_cart"]:active:not(:disabled){
	transform:translateY(1px);
}
.ds-cart-page .woocommerce-cart-form .actions button:disabled{
	opacity:.4;
	cursor:not-allowed;
}
/* Responsive: su schermi stretti il bottone "Aggiorna carrello" va a capo e si allarga */
@media (max-width:720px){
	.ds-cart-page .woocommerce-cart-form .actions button[name="update_cart"]{
		flex:1 1 100%;
		width:100%;
	}
}


/* Overlay blockUI di wc-cart.js nascosto durante l'AJAX update_cart
   (altrimenti l'utente vede il grigio "stuck" sopra cart-form e cart_totals).
   Il blocco logico continua a funzionare (wc-cart.js gestisce comunque il
   ciclo block/unblock e is_blocked check), solo l'overlay visivo e' off. */
.ds-cart-page .blockUI.blockOverlay,
.ds-cart-page .blockUI.blockMsg{
	display:none !important;
}
.ds-cart-page .woocommerce-cart-form.processing,
.ds-cart-page .cart_totals.processing{
	position:static !important;
	cursor:default !important;
}

/* responsive: stack su mobile */
@media (max-width:720px){
	.ds-cart-page .woocommerce-cart-form tr.cart_item{
		grid-template-columns:64px 1fr auto;
		grid-template-rows:auto auto auto;
		grid-template-areas:
			"thumb name     remove"
			"thumb price    price"
			"thumb qty      subtotal";
		column-gap:14px;
		row-gap:6px;
		padding:14px;
		align-items:center;
	}
	.ds-cart-page .product-thumbnail{
		width:64px;
		grid-area:thumb;
		align-self:start;
	}
	.ds-cart-page .product-thumbnail img{ width:64px; height:64px; }

	.ds-cart-page .product-name{
		grid-area:name;
		align-self:start;
	}
	.ds-cart-page .product-name a{ font-size:14.5px; }

	.ds-cart-page .product-remove{
		grid-area:remove;
		align-self:start;
		text-align:right;
	}

	.ds-cart-page .product-price{
		grid-area:price;
	}

	.ds-cart-page .product-quantity{
		grid-area:qty;
		justify-self:start;
	}
	.ds-cart-page .product-subtotal{
		grid-area:subtotal;
		justify-self:end;
		align-self:center;
		min-width:auto;
	}
}

/* =============================================================================
   CART_TOTALS V3 — Dark Header Premium (sidebar destra)
   Struttura PHP: woocommerce/cart/cart-totals.php
     .cart_totals.cart_totals--v3
       .v3__hero      (sfondo scuro: titolo + ic-cart + totale grande)
       .v3__body
         .v3__rows   (subtotale, spedizione, fee, tax)
         .v3__ship   (radio metodi: Standard / Premium / ...)
         .v3__addr   (indirizzo + Modifica)
         .v3__pay    (delivery date pill + .wc-proceed-to-checkout hook)
   ============================================================================= */
.ds-cart-page .cart-collaterals{
	display:block;
	width:100%;
}
.ds-cart-page .cart_totals--v3{
	background:#fff;
	border:1px solid var(--ds-border, #f0eee9);
	border-radius:var(--ds-radius, 12px);
	overflow:hidden;
	box-shadow:var(--ds-shadow, 0 6px 20px rgba(0,0,0,.025));
	padding:0;
	display:block;
}
.ds-cart-page .cart_totals--v3 > *{ margin:0; }

/* ---- HERO scuro ---- */
.ds-cart-page .cart_totals--v3 .v3__hero{
	background:radial-gradient(120% 100% at 0% 0%, #3a3a37 0%, var(--ds-black, #2b2b2b) 60%);
	color:#fff;
	padding:22px 22px 26px;
	position:relative;
}
.ds-cart-page .cart_totals--v3 .v3__hero::after{
	content:""; position:absolute; left:0; right:0; bottom:0; height:12px;
	background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.10) 100%);
	pointer-events:none;
}
.ds-cart-page .cart_totals--v3 .v3__hero-top{
	display:flex; justify-content:space-between; align-items:center;
	margin-bottom:14px;
}
.ds-cart-page .cart_totals--v3 .v3__hero-top .ttl{
	font-family:var(--ds-font);
	font-weight:800;
	font-size:18px;
	letter-spacing:-0.005em;
	color:#fff;
}
.ds-cart-page .cart_totals--v3 .v3__hero-top .ic-cart{
	width:36px; height:36px; border-radius:50%;
	background:rgba(255,255,255,.10);
	display:inline-flex; align-items:center; justify-content:center;
	flex:0 0 36px;
}
.ds-cart-page .cart_totals--v3 .v3__hero-top .ic-cart svg{
	width:18px; height:18px; color:#fff;
}

.ds-cart-page .cart_totals--v3 .v3__total-block{
	display:flex; justify-content:space-between; align-items:flex-end; gap:12px;
}
.ds-cart-page .cart_totals--v3 .v3__total-block .lbl{
	font-size:10px;
	font-weight:800;
	letter-spacing:.22em;
	text-transform:uppercase;
	color:rgba(255,255,255,.55);
}
.ds-cart-page .cart_totals--v3 .v3__total-block .sub{
	font-size:11.5px;
	color:rgba(255,255,255,.6);
	margin-top:4px;
}
.ds-cart-page .cart_totals--v3 .v3__total-block .val{
	font-family:var(--ds-font);
	font-weight:900;
	font-size:40px;
	line-height:1;
	letter-spacing:-0.02em;
	font-variant-numeric:tabular-nums;
	color:#fff;
}
.ds-cart-page .cart_totals--v3 .v3__total-block .val .amount,
.ds-cart-page .cart_totals--v3 .v3__total-block .val .woocommerce-Price-amount{
	font-size:40px !important;
	font-weight:900 !important;
	color:#fff !important;
	letter-spacing:-0.02em !important;
}

/* ---- BODY chiaro ---- */
.ds-cart-page .cart_totals--v3 .v3__body{
	padding:18px 22px 22px;
}

/* Righe importi */
.ds-cart-page .cart_totals--v3 .v3__rows{
	font-size:13.5px;
}
.ds-cart-page .cart_totals--v3 .v3__rows .row{
	display:flex; justify-content:space-between; align-items:baseline;
	padding:7px 0;
}
.ds-cart-page .cart_totals--v3 .v3__rows .row .muted{ color:var(--ds-muted, rgba(0,0,0,.6)); }
.ds-cart-page .cart_totals--v3 .v3__rows .row .v{
	font-weight:600; font-variant-numeric:tabular-nums; color:var(--ds-black);
}
.ds-cart-page .cart_totals--v3 .v3__rows .row .v .amount,
.ds-cart-page .cart_totals--v3 .v3__rows .row .v .woocommerce-Price-amount{
	font-size:13.5px !important; font-weight:600 !important; color:var(--ds-black) !important;
}

/* Lista metodi spedizione */
.ds-cart-page .cart_totals--v3 .v3__ship{
	background:var(--ds-surface, #fbfbf7);
	border-radius:10px;
	padding:12px;
	margin:12px 0;
	display:flex; flex-direction:column; gap:8px;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt{
	display:flex; align-items:center; gap:10px;
	padding:10px 12px;
	background:#fff;
	border:1px solid transparent;
	border-radius:8px;
	cursor:pointer;
	font-size:13px;
	position:relative;
	margin:0;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt input[type="radio"]{
	position:absolute; opacity:0; width:0; height:0; pointer-events:none; margin:0;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt.is-active{
	border-color:var(--ds-black, #2b2b2b);
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt .check{
	width:18px; height:18px; flex:0 0 18px;
	border:1.5px solid var(--ds-border-strong, rgba(0,0,0,.22));
	border-radius:50%;
	background:#fff;
	display:inline-flex; align-items:center; justify-content:center;
	transition:background .15s, border-color .15s;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt .check svg{
	display:none; width:11px; height:11px; color:#fff;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt.is-active .check{
	border-color:var(--ds-black, #2b2b2b);
	background:var(--ds-black, #2b2b2b);
	color:#fff;
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt.is-active .check svg{ display:block; }
.ds-cart-page .cart_totals--v3 .v3__ship-opt .text{
	flex:1; line-height:1.3; color:var(--ds-black);
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt .price{
	font-weight:700;
	font-variant-numeric:tabular-nums;
	color:var(--ds-black);
}
.ds-cart-page .cart_totals--v3 .v3__ship-opt .price .amount,
.ds-cart-page .cart_totals--v3 .v3__ship-opt .price .woocommerce-Price-amount{
	font-size:13px !important; font-weight:700 !important; color:var(--ds-black) !important;
}

/* Indirizzo */
.ds-cart-page .cart_totals--v3 .v3__addr{
	display:flex; align-items:center; gap:10px;
	padding:10px 0;
	font-size:12.5px;
	color:rgba(43,43,43,.72);
}
.ds-cart-page .cart_totals--v3 .v3__addr svg{
	width:16px; height:16px; flex:0 0 16px;
	color:rgba(0,0,0,.42);
}
.ds-cart-page .cart_totals--v3 .v3__addr .a{
	flex:1;
}
.ds-cart-page .cart_totals--v3 .v3__addr .a strong{
	font-weight:700;
	color:var(--ds-black);
}
.ds-cart-page .cart_totals--v3 .v3__addr a{
	color:var(--ds-black);
	font-weight:700;
	text-decoration:underline;
	text-underline-offset:3px;
	white-space:nowrap;
}

/* ---- Pagamento (delivery + Klarna + CTA + Express tutti via hook) ---- */
.ds-cart-page .cart_totals--v3 .v3__pay{
	margin-top:18px;
	display:flex; flex-direction:column; gap:20px;
}

/* Delivery date — riusa marcatori del PDP */
.ds-cart-page .cart_totals--v3 .ds-cart-delivery{ margin:0; }
.ds-cart-page .cart_totals--v3 .ds-cart-delivery .ds-pdp__delivery{
	background:#e9f3ec;
	border:0;
	border-radius:8px;
	padding:10px 12px;
	display:flex; align-items:center; justify-content:flex-start;
	gap:10px;
	font-size:13px;
	font-weight:600;
	color:var(--ds-black);
	line-height:1.4;
	margin:0;
	text-align:left;
}
.ds-cart-page .cart_totals--v3 .ds-cart-delivery .ds-pdp__delivery svg{
	flex-shrink:0;
	color:var(--ds-success, #2f7d4a);
}
.ds-cart-page .cart_totals--v3 .ds-cart-delivery .ds-pdp__cd{
	display:inline-block;
	font-weight:800;
	font-variant-numeric:tabular-nums;
	color:var(--ds-black);
	background:var(--ds-yellow, #FFC107);
	padding:2px 9px;
	border-radius:6px;
	letter-spacing:.2px;
	font-size:12.5px;
	line-height:1.4;
	margin:0 2px;
}

/* Bottone "Procedi al checkout" (giallo, hookato a woocommerce_proceed_to_checkout) */
.ds-cart-page .cart_totals--v3 .wc-proceed-to-checkout{
	margin:0; padding:0;
	display:flex; flex-direction:column; gap:16px;
}
.ds-cart-page .cart_totals--v3 .wc-proceed-to-checkout > *{
	margin-top:0 !important;
}
.ds-cart-page .cart_totals--v3 .wc-proceed-to-checkout .checkout-button{
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:100% !important;
	height:54px !important;
	padding:0 24px !important;
	margin:0 !important;
	background:var(--ds-yellow, #FFC107) !important;
	color:var(--ds-black, #2B2B2B) !important;
	border:0 !important;
	border-radius:10px !important;
	font-weight:800 !important;
	font-size:14px !important;
	letter-spacing:.5px !important;
	text-transform:uppercase !important;
	text-decoration:none !important;
	cursor:pointer !important;
	box-shadow:0 8px 24px rgba(255,193,7,.36) !important;
	transition:background .15s, box-shadow .15s !important;
}
.ds-cart-page .cart_totals--v3 .wc-proceed-to-checkout .checkout-button:hover{
	background:var(--ds-yellow-dark, #E5AC00) !important;
	box-shadow:0 10px 28px rgba(255,193,7,.45) !important;
}

/* ============ CAROSELLO prodotti random (full-width sotto le 2 col) ============ */
.ds-cart__carousel{
	margin-top:48px;
	padding:32px 0 0;
	background:transparent;
	border:0;
	border-top:1px solid var(--ds-border, rgba(0,0,0,.10));
	border-radius:0;
}
.ds-cart__carousel-head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	margin-bottom:20px;
}
.ds-cart__carousel-title{
	margin:0;
	font-size:18px;
	font-weight:800;
	letter-spacing:-0.005em;
	color:var(--ds-black);
}

/* Frecce nav — match stile home (.ds-sectionsell__arrow unified) */
.ds-cart__carousel .ds-sectionsell__nav{
	display:inline-flex;
	gap:8px;
}
.ds-cart__carousel .ds-sectionsell__arrow{
	width:44px;
	height:44px;
	border-radius:999px;
	background:#fff;
	border:1px solid var(--ds-border, rgba(0,0,0,.12));
	color:var(--ds-black, #2b2b2b);
	font-size:20px;
	line-height:1;
	cursor:pointer;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	user-select:none;
	padding:0;
	transition:background .2s, border-color .2s, transform .2s, color .2s;
}
.ds-cart__carousel .ds-sectionsell__arrow:hover,
.ds-cart__carousel .ds-sectionsell__arrow:focus-visible{
	background:var(--ds-black, #2b2b2b);
	color:#fff;
	border-color:var(--ds-black, #2b2b2b);
	outline:none;
}
.ds-cart__carousel .ds-sectionsell__arrow:active{ transform:scale(.95); }
.ds-cart__carousel .ds-sectionsell__arrow[disabled],
.ds-cart__carousel .ds-sectionsell__arrow:disabled{
	opacity:.35;
	cursor:not-allowed;
	background:#fff;
	color:var(--ds-black, #2b2b2b);
}

.ds-cart__carousel-track{
	list-style:none;
	padding:0;
	margin:0;
	display:flex;
	gap:10px;
	overflow-x:auto;
	scroll-behavior:smooth;
	scroll-snap-type:x mandatory;
	scrollbar-width:none;
}
.ds-cart__carousel-track::-webkit-scrollbar{display:none;}

.ds-cart__carousel-item{
	flex:0 0 calc((100% - 10px * 4) / 5);
	min-width:0;
	scroll-snap-align:start;
	background:#fff;
	border:1px solid var(--ds-border, rgba(0,0,0,.10));
	border-radius:12px;
	padding:10px;
	display:flex;
	flex-direction:column;
	gap:8px;
	transition:box-shadow .2s, border-color .2s;
}
.ds-cart__carousel-item:hover{
	box-shadow:0 14px 30px rgba(15,23,42,.10);
	border-color:rgba(0,0,0,.18);
}
.ds-cart__carousel-thumb{
	position:relative;
}
.ds-cart__carousel-thumb-overlay{
	position:absolute; inset:0;
	display:flex; align-items:center; justify-content:center;
	background:rgba(0,0,0,.45);
	color:#fff;
	font-size:10.5px; font-weight:800; letter-spacing:.02em; text-transform:uppercase;
	border-radius:8px;
	padding:8px;
	text-align:center;
	line-height:1.25;
	opacity:0; transition:opacity .2s;
	pointer-events:none;
}
.ds-cart__carousel-item:hover .ds-cart__carousel-thumb-overlay{ opacity:1; }
@media (max-width:1024px){.ds-cart__carousel-item{flex:0 0 calc((100% - 10px * 3) / 4);}}
@media (max-width:720px){.ds-cart__carousel-item{flex:0 0 calc((100% - 10px * 2) / 3);}}
@media (max-width:480px){.ds-cart__carousel-item{flex:0 0 calc((100% - 10px) / 2);}}

.ds-cart__carousel-link{
	display:flex;flex-direction:column;gap:6px;
	text-decoration:none;color:var(--ds-black);
}
.ds-cart__carousel-thumb{
	width:100%;aspect-ratio:1;overflow:hidden;border-radius:8px;background:#f5f1e8;
}
.ds-cart__carousel-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.ds-cart__carousel-name{
	font-size:12px;font-weight:700;line-height:1.3;color:var(--ds-black);
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
	min-height:31px;
}
.ds-cart__carousel-price{font-size:13px;font-weight:800;color:var(--ds-black);}
.ds-cart__carousel-price .amount,
.ds-cart__carousel-price .woocommerce-Price-amount{font-size:13px !important;font-weight:800 !important;color:var(--ds-black) !important;}
.ds-cart__carousel-price del,
.ds-cart__carousel-price del .amount{font-size:11px !important;font-weight:500 !important;color:rgba(0,0,0,.4) !important;text-decoration:line-through !important;margin-right:6px;}

/* Bottone carosello — V5: giallo brand pieno, hover yellow-dark + shadow */
.ds-cart__carousel .ds-cart__carousel-add,
.ds-cart__carousel a.ds-cart__carousel-add.ds-btn,
.ds-cart__carousel a.ds-cart__carousel-add.ds-btn--primary,
.ds-cart__carousel a.ds-cart__carousel-add.button{
	margin-top:auto !important;
	display:inline-flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:4px !important;
	width:100% !important;
	height:auto !important;
	min-height:40px !important;
	padding:8px 6px !important;
	background:var(--ds-yellow, #FFC107) !important;
	color:var(--ds-black, #2B2B2B) !important;
	border:0 !important;
	border-radius:8px !important;
	font-size:10.5px !important;
	font-weight:800 !important;
	letter-spacing:.02em !important;
	text-transform:uppercase !important;
	text-decoration:none !important;
	text-align:center !important;
	box-shadow:0 4px 14px rgba(255,193,7,.30) !important;
	line-height:1.2 !important;
	cursor:pointer !important;
	transition:background .15s, box-shadow .15s !important;
}
.ds-cart__carousel .ds-cart__carousel-add:hover,
.ds-cart__carousel a.ds-cart__carousel-add.ds-btn:hover{
	background:var(--ds-yellow-dark, #e0a800) !important;
	color:var(--ds-black, #2B2B2B) !important;
	box-shadow:0 6px 18px rgba(255,193,7,.45) !important;
}
.ds-cart__carousel-add-icon{font-size:13px;line-height:1;font-weight:900;}

/* ============ Cart-empty ============ */
.ds-cart-empty{
	max-width:600px;margin:60px auto;padding:0 20px;text-align:center;
}
.ds-cart-empty__inner{
	background:#fff;border:1px solid var(--ds-border);border-radius:14px;padding:48px 32px;
}
.ds-cart-empty__icon{display:inline-flex;margin-bottom:18px;color:rgba(0,0,0,.25);}
.ds-cart-empty__title{font-size:24px;font-weight:800;letter-spacing:-.4px;margin:0 0 8px;}
.ds-cart-empty__text{font-size:14px;color:rgba(0,0,0,.6);margin:0 0 24px;}
.ds-cart-empty__cta{
	display:inline-flex;align-items:center;justify-content:center;
	height:52px;padding:0 32px;
	background:var(--ds-yellow);color:var(--ds-black);border:0;border-radius:99px;
	font-weight:800;font-size:14px;letter-spacing:.4px;text-transform:uppercase;
	text-decoration:none;
	box-shadow:0 8px 22px rgba(255,193,7,.36);
	transition:background .15s, box-shadow .15s;
}
.ds-cart-empty__cta:hover{background:var(--ds-yellow-dark);box-shadow:0 10px 28px rgba(255,193,7,.45);}
