/* ==========================================================================
   Chamdon — WooCommerce native markup (single product, cart, checkout, account)
   Tailwind utilities cannot reach plugin-generated markup, so the storefront
   internals are normalised here with the same design tokens.
   ========================================================================== */

:root {
	--w-cream: #faf6f0;
	--w-cream2: #f5efeb;
	--w-cream3: #ede4da;
	--w-wine: #721224;
	--w-wine-deep: #500012;
	--w-amber: #c88a3e;
	--w-amber-deep: #b45309;
	--w-noir: #1a0d0f;
	--w-ink: #1c1c18;
	--w-ink-soft: #564242;
	--w-muted: #897172;
	--w-line: rgba(114, 18, 36, 0.1);
	--w-line-strong: rgba(114, 18, 36, 0.18);
	--w-radius: 16px;
	--w-font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
	--w-mono: "Space Grotesk", "Vazirmatn", monospace;
}

.woocommerce,
.woocommerce-page {
	font-family: var(--w-font);
	color: var(--w-ink);
}

/* Notices — modern card with a status glyph ------------------------------- */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 26px;
	padding: 15px 18px;
	padding-inline-start: 60px;
	min-height: 60px;
	border: 1px solid var(--w-line);
	border-radius: 14px;
	background: #fff;
	color: var(--w-ink);
	font-size: 0.875rem;
	line-height: 1.85;
	list-style: none;
	box-shadow: 0 10px 26px -14px rgba(88, 14, 29, 0.24), 0 1px 2px rgba(26, 13, 15, 0.04);
	animation: chNoticeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes chNoticeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Status glyph in a soft disc. */
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-message::before,
.woocommerce-page .woocommerce-info::before,
.woocommerce-page .woocommerce-error::before {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: 14px;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 999px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 17px 17px;
}

/* Success */
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message {
	border-color: rgba(47, 107, 79, 0.22);
	background: linear-gradient(90deg, rgba(47, 107, 79, 0.07), #fff 42%);
	color: #245a41;
}

.woocommerce .woocommerce-message::before,
.woocommerce-page .woocommerce-message::before {
	background-color: rgba(47, 107, 79, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232f6b4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* Info */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
	border-color: rgba(200, 138, 62, 0.32);
	background: linear-gradient(90deg, rgba(200, 138, 62, 0.1), #fff 42%);
	color: #7a4f14;
}

.woocommerce .woocommerce-info::before,
.woocommerce-page .woocommerce-info::before {
	background-color: rgba(200, 138, 62, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

/* Error */
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	border-color: rgba(186, 26, 26, 0.24);
	background: linear-gradient(90deg, rgba(186, 26, 26, 0.08), #fff 42%);
	color: #a11717;
}

.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before {
	background-color: rgba(186, 26, 26, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ba1a1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
}

/* Error lists arrive as <li> items. */
.woocommerce .woocommerce-error li,
.woocommerce-page .woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.95;
}

.woocommerce .woocommerce-error li + li {
	margin-top: 2px;
}

/* Action button inside a notice. */
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button,
.woocommerce-page .woocommerce-message .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-error .button {
	margin-inline-start: auto;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--w-wine);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info .button:hover,
.woocommerce .woocommerce-error .button:hover,
.woocommerce-page .woocommerce-message .button:hover,
.woocommerce-page .woocommerce-info .button:hover,
.woocommerce-page .woocommerce-error .button:hover {
	background: var(--w-wine-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -10px rgba(80, 0, 18, 0.6);
}

/* Inline (single product / cart) variants sit tighter. */
.woocommerce .woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info {
	margin-bottom: 20px;
}

@media (max-width: 560px) {
	.woocommerce .woocommerce-message,
	.woocommerce .woocommerce-info,
	.woocommerce .woocommerce-error,
	.woocommerce-page .woocommerce-message,
	.woocommerce-page .woocommerce-info,
	.woocommerce-page .woocommerce-error {
		padding-inline-start: 52px;
		font-size: 0.8125rem;
	}

	.woocommerce .woocommerce-message::before,
	.woocommerce .woocommerce-info::before,
	.woocommerce .woocommerce-error::before,
	.woocommerce-page .woocommerce-message::before,
	.woocommerce-page .woocommerce-info::before,
	.woocommerce-page .woocommerce-error::before {
		inset-inline-start: 12px;
		width: 28px;
		height: 28px;
		margin-top: -14px;
		background-size: 15px 15px;
	}

	.woocommerce .woocommerce-message .button,
	.woocommerce .woocommerce-info .button,
	.woocommerce-page .woocommerce-message .button,
	.woocommerce-page .woocommerce-info .button {
		margin-inline-start: 0;
		width: 100%;
		text-align: center;
	}
}

/* Single product ---------------------------------------------------------- */
.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
	width: 100% !important;
	float: none !important;
	margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
	border-radius: var(--w-radius);
	overflow: hidden;
	background: var(--w-cream2);
	border: 1px solid var(--w-line);
}

.woocommerce div.product .woocommerce-product-gallery__image {
	position: relative;
}

.woocommerce div.product .woocommerce-product-gallery__image a {
	display: block;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
	width: 100%;
	display: block;
	border-radius: var(--w-radius);
}

/* Fix empty srcset warning */
.woocommerce div.product .woocommerce-product-gallery__image[data-thumb-srcset=""] img {
	object-fit: cover;
}

/* Gallery zoom trigger */
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	inset-inline-end: 12px;
	top: 12px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border: 1px solid var(--w-line);
	color: var(--w-ink);
	font-size: 0;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
	background: #fff;
	transform: scale(1.05);
}

.woocommerce div.product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product .flex-control-thumbs li {
	width: auto;
	margin: 0;
}

.woocommerce div.product .flex-control-thumbs img {
	border-radius: 10px;
	border: 1px solid var(--w-line);
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.2s, border-color 0.2s;
}

.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--w-amber);
}

.woocommerce div.product .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce div.product .product_title {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.woocommerce div.product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 0.8125rem;
}

.woocommerce .star-rating {
	color: var(--w-amber);
	font-size: 0.9em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--w-wine);
	font-family: var(--w-mono);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.woocommerce div.product p.price del {
	color: var(--w-muted);
	font-size: 0.7em;
	font-weight: 400;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--w-ink-soft);
	font-size: 0.9375rem;
	line-height: 2;
	margin: 12px 0 18px;
}

.woocommerce div.product .stock {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #2f6b4f;
}

.woocommerce div.product .stock.out-of-stock {
	color: #ba1a1a;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
}

.woocommerce div.product form.cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--w-line);
	border-radius: 999px;
	background: var(--w-cream2);
	overflow: hidden;
	height: 48px;
}

.woocommerce .quantity .qty {
	width: 52px;
	height: 46px;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--w-mono);
	font-weight: 600;
	-moz-appearance: textfield;
	font-size: 1rem;
	color: var(--w-ink);
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Quantity stepper +/- buttons */
.woocommerce .quantity .ch-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 46px;
	border: 0;
	background: transparent;
	color: var(--w-ink-soft);
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	user-select: none;
	line-height: 1;
}

.woocommerce .quantity .ch-qty-btn:hover {
	color: var(--w-wine);
	background: rgba(114, 18, 36, 0.06);
}

.woocommerce .quantity .ch-qty-btn:active {
	background: rgba(114, 18, 36, 0.12);
}

.woocommerce .quantity .ch-qty-btn:disabled {
	color: var(--w-line-strong);
	cursor: not-allowed;
	background: transparent;
}

/* Grind + Quantity row layout */
.woocommerce div.product form.cart .ch-cart-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	width: 100%;
}

.woocommerce div.product form.cart .ch-grind-wrap {
	flex: 1 1 160px;
	min-width: 140px;
}

.woocommerce div.product form.cart .ch-qty-wrap {
	flex: 0 0 auto;
}

/* Hide default WooCommerce quantity when custom stepper is present */
.woocommerce div.product form.cart .ch-cart-row ~ .quantity:not(:has(.ch-qty-btn)) {
	display: none !important;
}

.woocommerce div.product form.cart .ch-cart-row ~ .button {
	margin-top: 4px;
	width: 100%;
}

.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--w-wine);
	color: var(--w-cream);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce .single_add_to_cart_button:hover {
	background: #881337;
	box-shadow: 0 0 0 1px rgba(200, 138, 62, 0.35), 0 8px 24px rgba(114, 18, 36, 0.12);
}

.woocommerce div.product form.cart .button:active {
	transform: scale(0.98);
}

.woocommerce div.product .product_meta {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--w-line);
	font-size: 0.75rem;
	color: var(--w-muted);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce div.product .product_meta a {
	color: var(--w-wine);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: 12px;
	border-top: 1px solid var(--w-line);
	padding-top: 28px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 1px solid var(--w-line);
	border-radius: 999px;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 20px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--w-ink-soft);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--w-wine);
	border-color: var(--w-wine);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--w-cream);
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	font-size: 0.9375rem;
	line-height: 2;
	color: var(--w-ink-soft);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	font-size: 1.125rem;
	color: var(--w-ink);
}

.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
	grid-column: 1 / -1;
	margin-top: 36px;
}

/* Full-width blocks injected inside the two-column product grid. */
.woocommerce div.product > .ch-span {
	grid-column: 1 / -1;
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
	font-size: 1.25rem;
	margin-bottom: 18px;
}

.woocommerce div.product .related ul.products,
.woocommerce div.product .upsells ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product .related ul.products li.product,
.woocommerce div.product .upsells ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
}

.woocommerce span.onsale {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--w-wine);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.8;
}

/* Cart -------------------------------------------------------------------- */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	overflow: hidden;
	background: #fff;
	font-size: 0.875rem;
}

.woocommerce table.shop_table th {
	padding: 14px 16px;
	background: var(--w-cream2);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--w-ink-soft);
	text-align: start;
}

.woocommerce table.shop_table td {
	padding: 16px;
	border-top: 1px solid var(--w-line);
	vertical-align: middle;
}

.woocommerce table.shop_table td.product-name a {
	font-weight: 600;
	color: var(--w-ink);
}

.woocommerce table.shop_table td.product-name a:hover {
	color: var(--w-wine);
}

.woocommerce table.cart img {
	width: 64px;
	border-radius: 8px;
}

.woocommerce table.cart td.actions {
	padding: 14px 16px;
}

.woocommerce table.cart td.actions .coupon {
	display: flex;
	gap: 8px;
	float: none;
}

.woocommerce table.cart td.actions .coupon .input-text {
	width: 160px;
	padding: 10px 14px;
	border: 1px solid var(--w-line);
	border-radius: 8px;
	background: var(--w-cream2);
	font-size: 0.8125rem;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--w-wine);
	color: var(--w-cream);
	font-family: var(--w-font);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
	background: #881337;
	color: #fff;
	box-shadow: 0 0 0 1px rgba(200, 138, 62, 0.35);
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
	background: var(--w-noir);
	color: var(--w-cream);
}

.woocommerce .button.alt:hover {
	background: #2a171a;
}

.woocommerce .cart_totals,
.woocommerce #customer_details,
.woocommerce .woocommerce-checkout-review-order {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: clamp(18px, 2.4vw, 28px);
}

.woocommerce .cart_totals h2,
.woocommerce #order_review_heading {
	font-size: 1.0625rem;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--w-line);
}

.woocommerce .cart-collaterals {
	display: grid;
	grid-template-columns: 1fr minmax(300px, 420px);
	gap: 24px;
	margin-top: 28px;
}

.woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	margin-inline-start: auto;
}

.woocommerce .cart-collaterals .cross-sells {
	grid-column: 1;
}

.woocommerce .cart-collaterals .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce a.remove {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--w-line);
	color: var(--w-muted) !important;
	font-size: 1rem;
	line-height: 1;
	background: transparent !important;
}

.woocommerce a.remove:hover {
	color: #ba1a1a !important;
	border-color: #ba1a1a;
}

/* Checkout ---------------------------------------------------------------- */
.woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
	gap: 28px;
	align-items: start;
}

.woocommerce form.checkout #customer_details {
	grid-column: 1;
}

.woocommerce form.checkout #order_review_heading,
.woocommerce form.checkout #order_review {
	grid-column: 2;
}

.woocommerce form.checkout #order_review_heading {
	margin: 0 0 -18px;
}

.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-shipping-fields h3,
.woocommerce .woocommerce-additional-fields h3 {
	font-size: 1rem;
	margin: 0 0 14px;
}

.woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--w-ink-soft);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--w-line);
	border-radius: 8px;
	background: var(--w-cream2);
	font-size: 0.875rem;
	color: var(--w-ink);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--w-amber);
	box-shadow: 0 0 0 3px rgba(200, 138, 62, 0.16);
	background: #fff;
}

.woocommerce .woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods {
	padding: 0 0 14px;
	border-bottom: 1px solid var(--w-line);
	list-style: none;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li {
	margin-bottom: 8px;
	font-size: 0.8125rem;
}

.woocommerce .woocommerce-checkout #payment div.place-order {
	padding: 16px 0 0;
}

.woocommerce #place_order {
	width: 100%;
	padding: 15px;
	font-size: 0.9375rem;
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 24px;
	padding: 18px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
}

.woocommerce ul.order_details li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.6875rem;
	color: var(--w-muted);
}

.woocommerce ul.order_details li strong {
	display: block;
	margin-top: 4px;
	font-family: var(--w-mono);
	font-size: 0.875rem;
	color: var(--w-ink);
}

/* My account -------------------------------------------------------------- */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 14px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--w-ink-soft);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--w-wine);
	color: var(--w-cream);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: clamp(20px, 3vw, 32px);
	font-size: 0.9375rem;
	line-height: 2;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-size: 1.125rem;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	max-width: 480px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	background: #fff;
}

.woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
	float: none;
	width: auto;
}

/* Order tables & misc */
.woocommerce-orders-table__cell-order-actions .button {
	padding: 6px 14px;
	font-size: 0.6875rem;
}

.woocommerce .woocommerce-customer-details address {
	border: 1px solid var(--w-line);
	border-radius: 12px;
	padding: 16px;
	font-style: normal;
	line-height: 2;
}

.woocommerce form .show-password-input {
	display: none;
}

.woocommerce .lost_password a {
	font-size: 0.75rem;
}

.woocommerce mark {
	background: rgba(200, 138, 62, 0.18);
	color: inherit;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin: 0;
}

@media (max-width: 900px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce form.checkout #order_review_heading,
	.woocommerce form.checkout #order_review {
		grid-column: 1;
	}
	.woocommerce form.checkout #order_review_heading {
		margin: 12px 0 10px;
	}
	.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce .cart-collaterals {
		grid-template-columns: minmax(0, 1fr);
	}
	.woocommerce div.product .related ul.products,
	.woocommerce div.product .upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.woocommerce table.shop_table_responsive tr td::before {
		font-size: 0.6875rem;
		color: var(--w-muted);
	}
	.woocommerce table.cart td.actions .coupon {
		flex-wrap: wrap;
	}
	.woocommerce-account .u-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Block-based empty cart / checkout notices
   The cart and checkout pages use WooCommerce blocks, so the empty state and
   its icon need normalising to the Chamdon type scale.
   ========================================================================== */
.wp-block-woocommerce-empty-cart-block {
	max-width: 620px;
	margin-inline: auto;
	padding: clamp(28px, 5vw, 56px) 24px;
	background: #fff;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-r-lg);
	box-shadow: var(--ch-shadow-sm);
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.wc-block-cart__empty-cart__title {
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.9;
	color: var(--ch-noir);
	margin-bottom: 10px;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	background-size: contain;
	opacity: 0.85;
}

.wp-block-woocommerce-empty-cart-block p {
	font-size: 0.8125rem;
	line-height: 2;
	color: var(--ch-muted);
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button {
	border-radius: var(--ch-r-pill);
	background: var(--ch-wine);
	color: var(--ch-cream);
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 10px 22px;
	text-decoration: none;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button:hover {
	background: var(--ch-wine-deep);
	color: var(--ch-cream);
}

/* ==========================================================================
   Cart / checkout blocks — notice banners + empty-cart state
   WooCommerce Blocks ships its own markup, so the classic notice rules above
   do not reach it.
   ========================================================================== */
.wc-block-components-notice-banner {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin: 0 0 22px;
	padding: 15px 18px;
	border: 1px solid var(--ch-line);
	border-radius: 14px;
	background: #fff;
	color: var(--ch-ink);
	font-size: 0.875rem;
	line-height: 1.9;
	box-shadow: 0 10px 26px -14px rgba(88, 14, 29, 0.24), 0 1px 2px rgba(26, 13, 15, 0.04);
}

.wc-block-components-notice-banner > svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	fill: currentColor;
}

.wc-block-components-notice-banner__content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.wc-block-components-notice-banner__content p {
	margin: 0;
}

.wc-block-components-notice-banner__content p + p {
	margin-top: 6px;
}

/* Success */
.wc-block-components-notice-banner.is-success {
	border-color: rgba(47, 107, 79, 0.22);
	background: linear-gradient(90deg, rgba(47, 107, 79, 0.07), #fff 45%);
	color: #245a41;
}

/* Error */
.wc-block-components-notice-banner.is-error {
	border-color: rgba(186, 26, 26, 0.24);
	background: linear-gradient(90deg, rgba(186, 26, 26, 0.08), #fff 45%);
	color: #a11717;
}

/* Info / warning */
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
	border-color: rgba(200, 138, 62, 0.32);
	background: linear-gradient(90deg, rgba(200, 138, 62, 0.1), #fff 45%);
	color: #7a4f14;
}

/* Action links inside a banner become pills. */
.wc-block-components-notice-banner .wc-forward,
.wc-block-components-notice-banner a.wc-block-components-button,
.wc-block-components-notice-banner .wc-block-components-notice-banner__content .wc-forward {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: 8px;
	margin-top: 0;
	padding: 6px 15px;
	vertical-align: middle;
	line-height: 1.7;
	border: 0;
	border-radius: 999px;
	background: var(--ch-wine);
	color: var(--ch-cream) !important;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease;
}

.wc-block-components-notice-banner .wc-forward:hover,
.wc-block-components-notice-banner a.wc-block-components-button:hover {
	background: var(--ch-wine-deep);
	transform: translateY(-1px);
}

/* Snackbar variant sits above the fold. */
.wc-block-components-notice-snackbar-list .wc-block-components-notice-banner {
	margin-bottom: 10px;
	box-shadow: 0 24px 60px -18px rgba(88, 14, 29, 0.28);
}

/* Empty cart — replace the default sad glyph with a brand mark. */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.with-empty-cart-icon.wc-block-cart__empty-cart__title::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	background-color: var(--ch-cream-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%23721224' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 6.5c3 3 2.6 7.9-.9 11.4s-8.4 3.9-11.4.9-2.6-7.9.9-11.4S14.5 3.5 17.5 6.5Z'/%3E%3Cpath d='M7.6 16.4c1.4-1.2 1.2-2.6 2.3-3.7s2.5-.9 3.7-2.3'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 30px 30px;
	border-radius: 999px;
}

.wc-block-components-notice-banner__summary {
	margin: 0 0 4px;
	font-weight: 700;
}

.wc-block-components-notice-banner__dismiss {
	flex: 0 0 auto;
	margin: 0;
	padding: 4px;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.wc-block-components-notice-banner__dismiss:hover {
	opacity: 1;
	transform: rotate(90deg);
}

.wc-block-components-notice-banner__dismiss svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ==========================================================================
   Cart / checkout / account — layout refinements
   ========================================================================== */

/* Checkout: two columns, sticky summary -------------------------------- */
.woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	gap: 24px 28px;
	align-items: start;
}

.woocommerce form.checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.woocommerce form.checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0 0 4px;
	padding: 0 0 0;
	border: 0;
	font-size: 1rem;
}

.woocommerce form.checkout #order_review {
	grid-column: 2;
	grid-row: 2;
	position: sticky;
	top: 100px;
	margin: 0;
}

.woocommerce form.checkout #order_review table.shop_table {
	margin-bottom: 16px;
}

/* Billing fields: two-up grid, wide rows span both columns. */
.woocommerce .woocommerce-billing-fields__field-wrapper,
.woocommerce .woocommerce-shipping-fields__field-wrapper,
.woocommerce .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.woocommerce .woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row,
.woocommerce .woocommerce-additional-fields__field-wrapper > .form-row {
	float: none;
	width: 100%;
	margin: 0;
}

.woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-wide,
.woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-wide,
.woocommerce .woocommerce-additional-fields__field-wrapper > .form-row-wide {
	grid-column: 1 / -1;
}

.woocommerce form .form-row label {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--w-ink-soft);
}

.woocommerce form .form-row .required {
	color: #b32d2e;
	text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	min-height: 44px;
	padding: 11px 14px;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: var(--w-cream2);
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--w-ink);
	transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.woocommerce form .form-row select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23564242' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	padding-inline-end: 14px;
	padding-inline-start: 34px;
}

.woocommerce form .form-row .select2-container .select2-selection--single {
	height: 44px;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: var(--w-cream2);
}

.woocommerce form .form-row .select2-container .select2-selection__rendered {
	line-height: 42px;
	padding-inline: 14px;
	font-size: 0.875rem;
	color: var(--w-ink);
}

.woocommerce form .form-row .select2-container .select2-selection__arrow {
	height: 42px;
	inset-inline-end: 8px;
	left: auto;
}

/* Checkout section headings */
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-additional-fields h3 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--w-line);
	font-size: 1rem;
	font-weight: 700;
	color: var(--w-ink);
}

.woocommerce #customer_details {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: clamp(18px, 2vw, 26px);
	box-shadow: 0 10px 26px -22px rgba(88, 14, 29, 0.5);
}

.woocommerce #order_review {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: clamp(16px, 1.8vw, 22px);
	box-shadow: 0 10px 26px -22px rgba(88, 14, 29, 0.5);
}

/* Cart table ------------------------------------------------------------ */
.woocommerce table.cart td.product-thumbnail img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--w-line);
	background: var(--w-cream2);
}

.woocommerce table.cart td.product-name a {
	display: inline-block;
	max-width: 30ch;
	font-weight: 600;
	line-height: 1.8;
}

.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal {
	font-family: var(--w-mono);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

.woocommerce table.cart td.actions {
	padding: 14px 16px;
	background: var(--w-cream2);
	text-align: start;
}

.woocommerce table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	float: none;
	margin: 0;
}

.woocommerce table.cart td.actions .coupon .input-text {
	width: 190px;
	height: 42px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: #fff;
	font-size: 0.8125rem;
}

.woocommerce table.cart td.actions .coupon .button {
	height: 42px;
	padding-inline: 20px;
}

.woocommerce table.cart td.actions > .button {
	float: inline-end;
	margin: 0;
	vertical-align: middle;
}

.woocommerce table.cart td.actions .button:disabled,
.woocommerce table.cart td.actions .button[disabled] {
	opacity: 0.5;
	pointer-events: none;
}

.woocommerce .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.woocommerce .quantity .qty {
	width: 52px;
	height: 38px;
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--w-mono);
	font-size: 0.8125rem;
	color: var(--w-ink);
	-moz-appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Totals table ---------------------------------------------------------- */
.woocommerce .cart_totals table.shop_table,
.woocommerce #order_review table.shop_table {
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce #order_review table.shop_table th {
	width: 46%;
	padding: 11px 0;
	background: transparent;
	border-bottom: 1px solid var(--w-line);
	font-weight: 500;
	color: var(--w-ink-soft);
	text-align: start;
}

.woocommerce .cart_totals table.shop_table td,
.woocommerce #order_review table.shop_table td {
	padding: 11px 0;
	border-bottom: 1px solid var(--w-line);
	font-family: var(--w-mono);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--w-ink);
	text-align: end;
	background: transparent;
}

.woocommerce .cart_totals table.shop_table tr:last-child th,
.woocommerce .cart_totals table.shop_table tr:last-child td,
.woocommerce #order_review table.shop_table tr:last-child th,
.woocommerce #order_review table.shop_table tr:last-child td {
	border-bottom: 0;
}

.woocommerce .cart_totals table.shop_table tr.order-total th,
.woocommerce .cart_totals table.shop_table tr.order-total td,
.woocommerce #order_review table.shop_table tr.order-total th,
.woocommerce #order_review table.shop_table tr.order-total td {
	padding-top: 14px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--w-wine);
}

.woocommerce .cart_totals .wc-proceed-to-checkout {
	padding: 16px 0 0;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	padding: 14px 20px;
	font-size: 0.9375rem;
}

/* Payment --------------------------------------------------------------- */
.woocommerce .woocommerce-checkout #payment ul.payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 0 14px;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	padding: 11px 13px;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: var(--w-cream2);
	font-size: 0.8125rem;
	line-height: 1.9;
	transition: border-color 0.18s, background 0.18s;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
	border-color: rgba(200, 138, 62, 0.55);
	background: #fff;
}

.woocommerce .woocommerce-checkout #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	color: var(--w-ink);
	cursor: pointer;
}

.woocommerce .woocommerce-checkout #payment div.payment_box {
	margin: 10px 0 0;
	padding: 11px 13px;
	border-radius: 8px;
	background: var(--w-cream);
	font-size: 0.75rem;
	line-height: 1.9;
	color: var(--w-ink-soft);
}

.woocommerce .woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce .woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
	margin: 12px 0;
	font-size: 0.75rem;
}

.woocommerce #place_order {
	width: 100%;
	padding: 15px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 700;
}

/* Coupon / login toggles at the top of the checkout */
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
	margin-bottom: 18px;
}

/* Account: tighten the layout and give the nav a card look --------------- */
.woocommerce-account .woocommerce {
	gap: 24px;
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: 10px;
	box-shadow: 0 10px 26px -22px rgba(88, 14, 29, 0.5);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 2px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 13px;
	border-radius: 9px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--w-ink-soft);
	text-decoration: none;
	transition: background 0.18s, color 0.18s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.35;
	flex: 0 0 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--w-wine);
	color: var(--w-cream);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
	opacity: 1;
	background: var(--w-amber);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--w-cream2);
	color: var(--w-wine);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--w-line);
	border-radius: var(--w-radius);
	padding: clamp(18px, 2.2vw, 28px);
	box-shadow: 0 10px 26px -22px rgba(88, 14, 29, 0.5);
	font-size: 0.875rem;
	line-height: 2;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content button.button {
	width: auto;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 899px) {
	.woocommerce form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce form.checkout #customer_details,
	.woocommerce form.checkout #order_review_heading,
	.woocommerce form.checkout #order_review {
		grid-column: 1;
		grid-row: auto;
	}

	.woocommerce form.checkout #order_review {
		position: static;
	}

	.woocommerce .cart-collaterals {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 599px) {
	.woocommerce .woocommerce-billing-fields__field-wrapper,
	.woocommerce .woocommerce-shipping-fields__field-wrapper,
	.woocommerce .woocommerce-additional-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce table.cart td.actions {
		justify-content: stretch;
	}

	.woocommerce table.cart td.actions .coupon,
	.woocommerce table.cart td.actions > .button {
		width: 100%;
	}

	.woocommerce table.cart td.actions .coupon .input-text {
		flex: 1 1 auto;
		width: auto;
	}
}

.woocommerce form.checkout #order_review_heading {
	text-align: start;
}

.woocommerce #place_order:disabled,
.woocommerce #place_order.disabled,
.woocommerce .button:disabled,
.woocommerce .button.disabled {
	background: var(--w-ink-soft);
	color: var(--w-cream);
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

/* Account: café history ------------------------------------------------- */
.ch-history-list {
	display: grid;
	gap: 12px;
	margin: 4px 0 30px;
}

.ch-history-card {
	border: 1px solid var(--w-line);
	border-radius: 12px;
	background: var(--w-cream);
	padding: 14px 16px;
}

.ch-history-card > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.ch-history-card > header strong {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--w-ink);
}

.ch-history-meta {
	display: block;
	margin-top: 2px;
	font-size: 0.6875rem;
	color: var(--w-muted);
}

.ch-history-items {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.95;
	color: var(--w-ink-soft);
}

.ch-history-card > footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--w-line);
}

.ch-history-total {
	font-family: var(--w-mono);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--w-wine);
}

.ch-history-badge {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.9;
	white-space: nowrap;
}

.ch-history-badge.is-done {
	background: rgba(47, 107, 79, 0.12);
	color: #2f6b4f;
}

.ch-history-badge.is-live {
	background: rgba(200, 138, 62, 0.16);
	color: #8a5a15;
}

.ch-history-badge.is-bad {
	background: rgba(179, 45, 46, 0.12);
	color: #b32d2e;
}

.ch-history-badge.is-muted {
	background: rgba(114, 18, 36, 0.07);
	color: var(--w-ink-soft);
}

.ch-history-empty {
	padding: 22px;
	border: 1px dashed var(--w-line-strong);
	border-radius: 12px;
	background: var(--w-cream);
	text-align: center;
	font-size: 0.8125rem;
	color: var(--w-muted);
}

/* Cart table column widths ---------------------------------------------- */
.woocommerce table.cart th.product-remove,
.woocommerce table.cart td.product-remove {
	width: 52px;
	padding-inline: 10px;
}

.woocommerce table.cart th.product-thumbnail,
.woocommerce table.cart td.product-thumbnail {
	width: 96px;
}

.woocommerce table.cart th.product-price,
.woocommerce table.cart td.product-price {
	width: 132px;
}

.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity {
	width: 132px;
}

.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-subtotal {
	width: 148px;
}



/* Collaterals: totals sit on the inline-end side, cross-sells fill the rest */
.woocommerce .cart-collaterals {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 24px;
	margin-top: 28px;
}

.woocommerce .cart-collaterals .cross-sells {
	flex: 1 1 480px;
	float: none;
	width: auto;
}

.woocommerce .cart-collaterals .cart_totals {
	flex: 0 0 min(430px, 100%);
	float: none;
	width: auto;
	margin-inline-start: 0;
}

@media (max-width: 899px) {
	.woocommerce .cart-collaterals {
		justify-content: stretch;
	}

	.woocommerce .cart-collaterals .cross-sells,
	.woocommerce .cart-collaterals .cart_totals {
		flex: 1 1 100%;
	}
}

/* Form controls inherit the brand accent */
.woocommerce input[type="radio"],
.woocommerce input[type="checkbox"],
.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="checkbox"] {
	accent-color: var(--w-wine);
	width: 15px;
	height: 15px;
	margin-inline-end: 4px;
	cursor: pointer;
}

.woocommerce .woocommerce-checkout #payment div.payment_box {
	color: var(--w-ink-soft);
	font-size: 0.75rem;
}

.woocommerce .woocommerce-checkout #payment div.payment_box p {
	margin: 0;
}

/* ==========================================================================
   Store notice (WooCommerce demo-store bar)
   --------------------------------------------------------------------------
   WooCommerce ships `.woocommerce-store-notice` as `position: absolute; top: 0`
   with a floated dismiss link. Because the theme draws its own noir
   announcement bar directly under <body>, the notice floated on top of it and
   the "رد کردن" link collided with the marquee text. Put it back in the flow and
   give it the brand treatment instead.
   ========================================================================== */
.woocommerce-store-notice.demo_store,
.woocommerce-store-notice {
	position: relative;
	inset: auto;
	z-index: 40;
	display: block;
	margin: 0;
	padding: 0.6rem 4.5rem;
	background: var(--ch-wine, #721224);
	color: var(--ch-cream, #faf6f0);
	font-size: 0.8125rem;
	line-height: 1.9;
	text-align: center;
	box-shadow: inset 0 -1px 0 rgb(255 255 255 / 8%);
}

.woocommerce-store-notice.demo_store a:not(.woocommerce-store-notice__dismiss-link) {
	color: var(--ch-amber-soft, #e8c79a);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-store-notice .woocommerce-store-notice__dismiss-link {
	position: absolute;
	inset-inline-end: 1rem;
	top: 50%;
	float: none;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.7rem;
	border: 1px solid rgb(255 255 255 / 28%);
	border-radius: 999px;
	color: var(--ch-cream, #faf6f0);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	opacity: 0.85;
	transition: background-color 0.18s ease, opacity 0.18s ease;
}

.woocommerce-store-notice .woocommerce-store-notice__dismiss-link:hover,
.woocommerce-store-notice .woocommerce-store-notice__dismiss-link:focus-visible {
	background: rgb(255 255 255 / 14%);
	color: var(--ch-cream, #faf6f0);
	opacity: 1;
}

@media (max-width: 640px) {
	.woocommerce-store-notice.demo_store,
	.woocommerce-store-notice {
		padding: 0.55rem 3.75rem 0.55rem 1rem;
		font-size: 0.75rem;
		text-align: start;
	}
}
