:root {
	--rcb-wine: #6b0f1a;
	--rcb-wine-dark: #55060c;
	--rcb-cream: #faf1e1;
	--rcb-paper: #fffbf3;
	--rcb-sand: #f1e6d0;
	--rcb-line: #e6d8bd;
	--rcb-gold: #b88a44;
	--rcb-ink: #2b1b17;
	--rcb-muted: #7a6a55;
	--rcb-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Contenitore: allarga la pagina carrello ---------- */
body.woocommerce-cart .entry-content,
body.woocommerce-cart .wp-block-post-content {
	max-width: none;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .rcb-bar,
body.woocommerce-cart .rcb-upsell,
.rcb-steps {
	width: 100%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* ---------- Titolo pagina centrato ---------- */
body.woocommerce-cart {
	overflow-x: clip;
}
body.woocommerce-cart .entry-title,
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-cart main h1 {
	text-align: center;
}

/* ---------- Banner a tutta larghezza ---------- */
.rcb-banner {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw) 36px;
	background-color: var(--rcb-wine-dark);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	color: var(--rcb-cream);
	min-height: clamp(380px, 46vw, 560px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.rcb-banner.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(38, 4, 8, 0.5);
}
.rcb-banner__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
	box-sizing: border-box;
}
.rcb-banner__title {
	margin: 0;
	max-width: 24ch;
	font-family: var(--rcb-serif);
	font-size: clamp(2.1rem, 5vw, 3.8rem);
	font-weight: 600;
	line-height: 1.08;
	color: var(--rcb-cream);
}
.rcb-banner__rule {
	display: block;
	width: 64px;
	height: 3px;
	background: var(--rcb-gold);
	margin: 22px 0;
}
.rcb-banner__text {
	margin: 0;
	max-width: 56ch;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.6;
	color: #f1e3c8;
}
.rcb-banner__cta {
	margin-top: 36px;
	display: inline-block;
	background: var(--rcb-gold);
	color: var(--rcb-wine-dark);
	border-radius: 999px;
	padding: 15px 36px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.rcb-banner__cta:hover,
.rcb-banner__cta:focus-visible {
	background: var(--rcb-cream);
	color: var(--rcb-wine);
}
.rcb-banner__cta:focus-visible {
	outline: 2px solid var(--rcb-cream);
	outline-offset: 3px;
}

/* ---------- Passaggi: Carrello, Spedizione, Pagamento ---------- */
.rcb-steps {
	display: flex;
	align-items: center;
	gap: 0;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin-top: 0;
	margin-bottom: 26px;
}
.rcb-step {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rcb-muted);
	font-size: 0.95rem;
	margin: 0;
}
.rcb-step + .rcb-step::before {
	content: "";
	width: clamp(28px, 6vw, 72px);
	height: 1px;
	background: var(--rcb-line);
	margin-right: 10px;
}
.rcb-step__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid var(--rcb-line);
	background: var(--rcb-paper);
	font-size: 0.85rem;
	font-weight: 600;
}
.rcb-step.is-active {
	color: var(--rcb-wine);
	font-weight: 600;
}
.rcb-step.is-active .rcb-step__dot {
	background: var(--rcb-wine);
	border-color: var(--rcb-wine);
	color: var(--rcb-paper);
}
.rcb-step.is-done .rcb-step__dot {
	background: var(--rcb-gold);
	border-color: var(--rcb-gold);
	color: var(--rcb-paper);
}
@media (max-width: 480px) {
	.rcb-step__label {
		display: none;
	}
	.rcb-step.is-active .rcb-step__label {
		display: inline;
	}
}

/* ---------- Barra spedizione gratuita ---------- */
.rcb-bar {
	background: var(--rcb-paper);
	border: 1px solid var(--rcb-line);
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 28px;
	color: var(--rcb-ink);
}
.rcb-bar__msg {
	margin: 0 0 10px;
	font-size: 0.95rem;
}
.rcb-bar__msg strong {
	color: var(--rcb-wine);
	font-weight: 600;
}
.rcb-bar__track {
	height: 8px;
	background: var(--rcb-sand);
	border-radius: 999px;
	overflow: hidden;
}
.rcb-bar__fill {
	height: 100%;
	background: var(--rcb-gold);
	border-radius: 999px;
	transition: width 0.5s ease;
}

/* ---------- Carrello (blocco WooCommerce) ---------- */
.wp-block-woocommerce-cart .wc-block-cart__main {
	background: var(--rcb-paper);
	border: 1px solid var(--rcb-line);
	border-radius: 14px;
	padding: 8px 24px 20px;
	align-self: start;
}
.wp-block-woocommerce-cart table.wc-block-cart-items {
	border: 0;
}
.wp-block-woocommerce-cart .wc-block-cart-items__header th {
	color: var(--rcb-muted);
	font-size: 0.8rem;
	font-weight: 500;
	border-bottom: 1px solid var(--rcb-line);
}
.wp-block-woocommerce-cart .wc-block-cart-items__row td {
	border-top: 1px solid var(--rcb-line);
	padding-top: 22px;
	padding-bottom: 22px;
}
.wp-block-woocommerce-cart .wc-block-cart-item__image img {
	width: 104px;
	height: auto;
	background: var(--rcb-sand);
	border-radius: 12px;
	padding: 8px;
	box-sizing: border-box;
	object-fit: contain;
}
.wp-block-woocommerce-cart .wc-block-components-product-name {
	font-family: var(--rcb-serif);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--rcb-wine);
	text-decoration: none;
}
.wp-block-woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--rcb-wine-dark);
	text-decoration: underline;
}
.wp-block-woocommerce-cart .wc-block-components-product-metadata__description {
	color: var(--rcb-muted);
}
.wp-block-woocommerce-cart .wc-block-components-product-price__value,
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
	color: var(--rcb-ink);
	font-weight: 600;
}
.wp-block-woocommerce-cart .wc-block-components-product-badge,
.wp-block-woocommerce-cart .wc-block-components-sale-badge {
	background: #f6e6c6;
	color: #6b4a14;
	border: 0;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.75rem;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--rcb-line);
	overflow: hidden;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after {
	display: none;
}
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link {
	color: var(--rcb-muted);
}
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: var(--rcb-wine);
}

/* ---------- Riepilogo ---------- */
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
	background: var(--rcb-paper);
	border: 1px solid var(--rcb-line);
	border-radius: 14px;
	padding: 20px 24px 24px;
	align-self: start;
}
.wp-block-woocommerce-cart .wc-block-components-totals-wrapper {
	border-color: var(--rcb-line);
}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--rcb-serif);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--rcb-wine);
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) {
	background: var(--rcb-wine);
	color: var(--rcb-paper);
	border: 0;
	border-radius: 999px;
	padding: 16px 24px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background 0.2s ease;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover {
	background: var(--rcb-wine-dark);
	color: var(--rcb-paper);
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
	text-decoration: none;
}

/* ---------- Suggerimenti ---------- */
.rcb-upsell {
	margin-top: 48px;
	margin-bottom: 56px;
	color: var(--rcb-ink);
}
.rcb-upsell[hidden],
.rcb-card[hidden] {
	display: none;
}
.rcb-upsell__head {
	text-align: center;
}
.rcb-upsell__title {
	margin: 0;
	font-family: var(--rcb-serif);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 600;
	color: var(--rcb-wine);
	line-height: 1.15;
}
.rcb-upsell__sub {
	margin: 6px 0 22px;
	color: var(--rcb-muted);
}
.rcb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.rcb-card {
	display: flex;
	flex-direction: column;
	background: var(--rcb-paper);
	border: 1px solid var(--rcb-line);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.rcb-card:hover {
	border-color: var(--rcb-gold);
	transform: translateY(-3px);
}
.rcb-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rcb-sand);
	height: 260px;
	padding: 14px;
	box-sizing: border-box;
	overflow: hidden;
}
.rcb-card__media img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	margin: 0;
}
.rcb-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--rcb-wine);
	color: var(--rcb-paper);
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 0.75rem;
	font-weight: 600;
}
.rcb-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 14px 18px 20px;
	flex: 1;
}
.rcb-pill {
	background: #f6e6c6;
	color: #6b4a14;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.75rem;
}
.rcb-card__name {
	margin: 0;
	font-family: var(--rcb-serif);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}
.rcb-card__name a {
	color: var(--rcb-ink);
	text-decoration: none;
}
.rcb-card__name a:hover {
	color: var(--rcb-wine);
}
.rcb-card__price {
	font-weight: 600;
	color: var(--rcb-wine);
}
.rcb-card__price del {
	color: var(--rcb-muted);
	font-weight: 400;
	margin-right: 6px;
}
.rcb-card__price ins {
	text-decoration: none;
}
.rcb-add {
	margin-top: auto;
	width: 100%;
	box-sizing: border-box;
	display: inline-block;
	text-align: center;
	cursor: pointer;
	background: transparent;
	color: var(--rcb-wine);
	border: 1.5px solid var(--rcb-wine);
	border-radius: 999px;
	padding: 11px 18px;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.rcb-add:hover,
.rcb-add:focus-visible {
	background: var(--rcb-wine);
	color: var(--rcb-paper);
}
.rcb-add:focus-visible,
.rcb-card__name a:focus-visible {
	outline: 2px solid var(--rcb-gold);
	outline-offset: 2px;
}
.rcb-add:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 600px) {
	.wp-block-woocommerce-cart .wc-block-cart__main {
		padding: 4px 14px 16px;
	}
	.wp-block-woocommerce-cart .wc-block-cart-item__image img {
		width: 72px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rcb-card,
	.rcb-bar__fill,
	.rcb-add {
		transition: none;
	}
	.rcb-card:hover {
		transform: none;
	}
}

/* ---------- Avviso solo amministratori ---------- */
.rcb-notice {
	max-width: 900px;
	margin: 40px auto;
	padding: 18px 22px;
	background: #fff7e0;
	border: 1px dashed var(--rcb-gold);
	border-radius: 12px;
	color: var(--rcb-ink);
	font-size: 0.92rem;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.rcb-notice table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}
.rcb-notice th,
.rcb-notice td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid var(--rcb-line);
}
