/* WooCommerce Overrides */
/* ============================================================
 * SHOP PAGE (WooCommerce)
 * ============================================================ */

/* Apply WooCommerce img reset ONLY inside WooCommerce content containers,
   NOT the entire page body. This prevents logos in navbar/footer
   from being affected by height:auto / max-width:100%. */
.woocommerce .products img,
.woocommerce .product img,
.woocommerce .cart img,
.wc-block-cart img,
.wc-block-checkout img,
.woocommerce-account .woocommerce img {
	height: auto;
	max-width: 100%;
}

/* Override WooCommerce plugin's .woocommerce-page img { height:auto; max-width:100% }
   which kills Tailwind sizing on navbar & footer images (logos, flags, icons).
   We re-apply the exact Tailwind utility values with !important. */

/* Logos: h-3 = 0.75rem, w-auto  (shared by navbar + footer) */
body.woocommerce-page .navbar img.logo-light,
body.woocommerce-page .navbar img.logo-dark,
body.woocommerce-page footer img.h-3 {
	height: 0.75rem !important;
	max-width: none !important;
	width: auto !important;
}

@media (min-width: 768px) {
	body.woocommerce-page .navbar img.logo-light,
	body.woocommerce-page .navbar img.logo-dark,
	body.woocommerce-page footer img.h-3 {
		height: 1rem !important; /* md:h-4 */
	}
}

/* Language flags: h-5 = 1.25rem */
body.woocommerce-page .navbar img.h-5,
body.woocommerce-page footer img.h-5 {
	height: 1.25rem !important;
	max-width: none !important;
	width: auto !important;
}

body.woocommerce-page:not(.woocommerce-account) .sidebar,
body.woocommerce-page:not(.woocommerce-account) .widget-area,
body.woocommerce-page:not(.woocommerce-account) #secondary,
body.post-type-archive-product .sidebar,
body.post-type-archive-product .widget-area,
body.post-type-archive-product #secondary,
body.tax-product_cat .sidebar,
body.tax-product_cat .widget-area,
body.tax-product_cat #secondary,
body.tax-product_tag .sidebar,
body.tax-product_tag .widget-area,
body.tax-product_tag #secondary {
	display: none !important;
}

body.woocommerce-page:not(.woocommerce-account) .content-area,
body.woocommerce-page:not(.woocommerce-account) #primary,
body.post-type-archive-product .content-area,
body.post-type-archive-product #primary,
body.tax-product_cat .content-area,
body.tax-product_cat #primary,
body.tax-product_tag .content-area,
body.tax-product_tag #primary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 auto !important;
}

body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
	padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 16px);
}

/* Force extra top spacing for WooCommerce archives (shop/category/tag). */
body.woocommerce-page:not(.woocommerce-account) .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
	padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 48px) !important;
}

/* Extra push-down for Woo archive content (requested margin-top approach). */
body.woocommerce-page:not(.woocommerce-account) .woocommerce,
body.post-type-archive-product .woocommerce,
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce,
body.woocommerce-page:not(.woocommerce-account) .content-area,
body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
	margin-top: 56px !important;
}

.products::before {
	content: "" !important;
	display: none !important;
}
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
	color: var(--text-secondary);
	font-size: 14px;
	margin: 10px 0 16px;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
	margin: 0 0 18px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
	padding: 8px 12px;
	border: 1px solid var(--border-medium);
	border-radius: 8px;
	background: #fff;
	color: var(--text-primary);
	font-size: 14px;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
	max-width: 1100px;
	margin: 16px auto 40px;
	padding: 0 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	list-style: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 14px;
	border: 1px solid var(--border-light);
	border-radius: 14px;
	background: var(--bg-white);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
ul.products li.product:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: rgba(18, 62, 138, 0.22);
}

.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
	display: block;
	width: 100%;
	max-height: 200px;
	max-width: 100%;
	object-fit: contain;
	margin: 0 0 12px;
	padding: 10px;
	background: #f8fafc;
	border-radius: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--text-primary);
	margin: 0;
	min-height: 46px;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
	font-size: 17px;
	font-weight: 700;
	color: var(--primary);
	margin: 0;
	line-height: 1.4;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
	opacity: 0.6;
	font-size: 14px;
	margin-right: 6px;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
	margin-top: auto;
	width: 100%;
	text-align: center;
	padding: 10px 14px;
	border-radius: 10px;
	border: 0;
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
	background: var(--primary-hover);
	opacity: 1;
}

.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
	left: 12px;
	top: 12px;
	min-height: 26px;
	line-height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #ef4444;
	color: #fff;
	border: 0;
	box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
	border: 0;
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 0;
	margin-top: 10px;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
	border: 1px solid var(--border-light);
	border-radius: 8px;
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	color: var(--text-primary);
	background: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li span.current {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

@media (max-width: 767px) {
	body.post-type-archive-product .site-content,
	body.tax-product_cat .site-content,
	body.tax-product_tag .site-content {
		padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 10px);
	}

	body.woocommerce-page:not(.woocommerce-account) .site-content,
	body.post-type-archive-product .site-content,
	body.tax-product_cat .site-content,
	body.tax-product_tag .site-content {
		padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 36px) !important;
	}

	body.woocommerce-page:not(.woocommerce-account) .woocommerce,
	body.post-type-archive-product .woocommerce,
	body.tax-product_cat .woocommerce,
	body.tax-product_tag .woocommerce,
	body.woocommerce-page:not(.woocommerce-account) .content-area,
	body.post-type-archive-product .content-area,
	body.tax-product_cat .content-area,
	body.tax-product_tag .content-area {
		margin-top: 40px !important;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products,
	ul.products {
		grid-template-columns: 1fr;
		padding: 0 12px;
		gap: 14px;
	}

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product,
	ul.products li.product {
		padding: 12px;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce-page ul.products li.product a img,
	.woocommerce ul.products li.product img,
	.woocommerce-page ul.products li.product img {
		max-height: 160px;
	}
}

body.dark-mode .woocommerce .woocommerce-ordering select,
body.dark-mode .woocommerce-page .woocommerce-ordering select {
	background: #2d3036;
	color: #e5e7eb;
	border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .woocommerce ul.products li.product,
body.dark-mode .woocommerce-page ul.products li.product,
body.dark-mode ul.products li.product {
	background: #23262d;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .woocommerce ul.products li.product a img,
body.dark-mode .woocommerce-page ul.products li.product a img,
body.dark-mode .woocommerce ul.products li.product img,
body.dark-mode .woocommerce-page ul.products li.product img {
	background: #1f232b;
}

body.dark-mode .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.dark-mode .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	color: #f3f4f6;
}

body.dark-mode .woocommerce nav.woocommerce-pagination ul li a,
body.dark-mode .woocommerce nav.woocommerce-pagination ul li span,
body.dark-mode .woocommerce-page nav.woocommerce-pagination ul li a,
body.dark-mode .woocommerce-page nav.woocommerce-pagination ul li span {
	background: #23262d;
	color: #e5e7eb;
	border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
 * MY ACCOUNT PAGE (WooCommerce)
 * ============================================================ */

body.woocommerce-account .site-content {
	padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 8px) !important;
}

body.woocommerce-account .content-area,
body.woocommerce-account .woocommerce {
	margin-top: 0 !important;
}

.woocommerce-account .woocommerce {
	max-width: 1100px;
	margin: 18px auto 44px;
	padding: 0 16px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 20px;
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 12px;
	border: 1px solid var(--border-light);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(18, 62, 138, 0.1);
	color: var(--primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
	border: 1px solid var(--border-light);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	padding: 20px !important;
	min-height: 340px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-primary);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend {
	font-size: 18px;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 14px;
}

.woocommerce-account .woocommerce-MyAccount-content p {
	margin: 0 0 12px;
	color: var(--text-secondary);
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	margin: 0 0 14px !important;
	padding: 12px 14px 12px 42px !important;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none;
}

.woocommerce-account .woocommerce-message {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.woocommerce-account .woocommerce-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

.woocommerce-account .woocommerce-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
	background: var(--primary) !important;
	border: 0 !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 10px 14px !important;
	line-height: 1.2;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover {
	background: var(--primary-hover) !important;
	opacity: 1;
}

.woocommerce-account .woocommerce-MyAccount-content .button.is-danger,
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #dc2626 !important;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-medium);
	border-radius: 10px;
	background: #fff;
	color: var(--text-primary);
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus {
	outline: none;
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.woocommerce-account .woocommerce-MyAccount-content .form-row {
	margin-bottom: 12px;
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-downloads {
	width: 100%;
	border-collapse: collapse;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-light);
	margin-top: 6px;
}

.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-light);
	text-align: left;
	font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: var(--text-primary);
}

.woocommerce-account .woocommerce-MyAccount-content table tbody tr:last-child td {
	border-bottom: 0;
}

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

.woocommerce-account .woocommerce-Address {
	border: 1px solid var(--border-light);
	border-radius: 12px;
	padding: 14px;
	background: #f8fafc;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.woocommerce-account .woocommerce-Address-title h3 {
	font-size: 15px;
	margin: 0;
}

.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-secondary);
	margin: 0;
}

@media (max-width: 991px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		padding: 8px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		padding: 9px 10px;
	}

	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-navigation ul,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content {
	background: #23262d;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-navigation li a {
	color: #d1d5db;
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(18, 62, 138, 0.35);
	color: #93c5fd;
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content h2,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content h3,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content legend {
	color: #f3f4f6;
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content p,
body.dark-mode .woocommerce-account .woocommerce-Address address {
	color: #cbd5e1;
}

body.dark-mode .woocommerce-account .woocommerce-Address {
	background: #1f232b;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content textarea,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content select {
	background: #1e2330;
	color: #e5e7eb;
	border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content table,
body.dark-mode .woocommerce-account .woocommerce-orders-table,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-downloads {
	border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content table thead th {
	background: #1f232b;
	color: #e5e7eb;
}

body.dark-mode .woocommerce-account .woocommerce-MyAccount-content table th,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content table td {
	border-bottom-color: rgba(255, 255, 255, 0.08);
	color: #d1d5db;
}

/* Final My Account layout fix: keep nav/content on one row with balanced widths */
.woocommerce-account .woocommerce {
	display: flex !important;
	align-items: flex-start !important;
	gap: 24px !important;
	max-width: 1200px !important;
	width: 100% !important;
	margin: 12px auto 24px !important;
	padding: 0 16px !important;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	flex: 0 0 260px !important;
	width: 260px !important;
	max-width: 30% !important;
	align-self: flex-start !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	padding: 20px !important;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-downloads {
	width: 100% !important;
	table-layout: auto;
}

.woocommerce-account .site-content {
	justify-content: flex-start !important;
}

@media (max-width: 991px) {
	.woocommerce-account .woocommerce {
		display: block !important;
		gap: 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		width: 100% !important;
		max-width: 100% !important;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 12px !important;
	}
}

/* ============================================================
 * CART PAGE (WooCommerce Blocks)
 * ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
body.woocommerce-cart .site-content {
	padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 48px) !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-cart .entry-content {
	max-width: 1100px;
	margin: 0 auto 60px;
	padding: 0 16px;
}

body.woocommerce-cart .entry-title,
body.woocommerce-cart .page-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 20px;
}

/* ── Block-based cart layout ───────────────────────────────── */
.wp-block-woocommerce-cart {
	max-width: 1100px !important;
	margin: 0 auto;
}

.wc-block-cart .wc-block-components-sidebar-layout {
	gap: 28px;
}

/* ── Cart items table ──────────────────────────────────────── */
.wc-block-cart-items {
	border-collapse: collapse;
	width: 100%;
}

.wc-block-cart-items__header {
	border-bottom: 2px solid var(--border-light);
}

.wc-block-cart-items__header th {
	padding: 10px 16px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
}

.wc-block-cart-items__header .wc-block-cart-items__header-total {
	text-align: right;
}

/* ── Individual cart item rows ─────────────────────────────── */
.wc-block-cart-items__row {
	border-bottom: 1px solid var(--border-light);
	transition: background-color var(--transition-fast);
}

.wc-block-cart-items__row:last-child {
	border-bottom: 0;
}

.wc-block-cart-items__row:hover {
	background: rgba(18, 62, 138, 0.02);
}

/* ── Product image ─────────────────────────────────────────── */
.wc-block-cart-item__image {
	width: 90px;
	padding: 16px 0 16px 16px;
	vertical-align: top;
}

.wc-block-cart-item__image a {
	display: block;
}

.wc-block-cart-item__image img {
	width: 72px !important;
	height: 72px !important;
	object-fit: contain;
	border-radius: 10px;
	background: #f8fafc;
	padding: 6px;
	border: 1px solid var(--border-light);
	transition: border-color var(--transition-fast);
}

.wc-block-cart-items__row:hover .wc-block-cart-item__image img {
	border-color: rgba(18, 62, 138, 0.2);
}

/* ── Product details cell ──────────────────────────────────── */
.wc-block-cart-item__product {
	padding: 16px;
	vertical-align: top;
}

.wc-block-cart-item__wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Product name */
a.wc-block-components-product-name {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	transition: color var(--transition-fast);
}

a.wc-block-components-product-name:hover {
	color: var(--primary);
}

/* Product description metadata */
.wc-block-components-product-metadata {
	margin: 0;
}

.wc-block-components-product-metadata__description {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
	margin: 0;
}

.wc-block-components-product-metadata__description p {
	margin: 0;
}

/* ── Prices ────────────────────────────────────────────────── */
.wc-block-cart-item__prices .wc-block-components-product-price {
	font-size: 14px;
	color: var(--text-primary);
}

.wc-block-cart-item__prices .wc-block-components-product-price__regular {
	color: var(--text-muted);
	font-size: 13px;
	margin-right: 6px;
}

.wc-block-cart-item__prices .wc-block-components-product-price__value.is-discounted {
	color: #dc2626;
	font-weight: 700;
}

/* ── Quantity selector ─────────────────────────────────────── */
.wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border-medium);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wc-block-components-quantity-selector:focus-within {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.wc-block-components-quantity-selector__input {
	width: 44px;
	padding: 6px 2px;
	border: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	background: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}

.wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wc-block-components-quantity-selector__input:focus {
	outline: none;
}

.wc-block-components-quantity-selector__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: var(--text-primary);
	font-size: 16px;
	cursor: pointer;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: rgba(18, 62, 138, 0.08);
	color: var(--primary);
}

.wc-block-components-quantity-selector__button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.wc-block-components-quantity-selector__button--minus {
	border-right: 1px solid var(--border-light);
}

.wc-block-components-quantity-selector__button--plus {
	border-left: 1px solid var(--border-light);
}

/* ── Remove link ───────────────────────────────────────────── */
.wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fef2f2;
	color: #ef4444;
	cursor: pointer;
	transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.wc-block-cart-item__remove-link svg {
	width: 16px;
	height: 16px;
	fill: #ef4444;
}

.wc-block-cart-item__remove-link:hover {
	background: #fecaca;
	transform: scale(1.08);
}

/* ── Total column ──────────────────────────────────────────── */
.wc-block-cart-item__total {
	padding: 16px;
	vertical-align: top;
	text-align: right;
}

.wc-block-cart-item__total .wc-block-components-product-price__value {
	font-size: 16px;
	font-weight: 800;
	color: var(--primary);
}

/* Sale badge */
.wc-block-components-sale-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #059669;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
	border: 1px solid #a7f3d0;
}

/* ── Cart sidebar / totals ─────────────────────────────────── */
.wc-block-cart__sidebar {
	padding: 0;
}

.wp-block-woocommerce-cart-order-summary-block {
	border: 1px solid var(--border-light);
	border-radius: 14px;
	background: var(--bg-white);
	box-shadow: var(--shadow-sm);
	padding: 20px;
}

.wc-block-cart__totals-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 16px;
	padding: 0;
}

/* Coupon panel */
.wc-block-components-totals-coupon {
	border: 0 !important;
	padding: 0;
	margin: 0 0 12px;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	cursor: pointer;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(18, 62, 138, 0.06);
	transition: background-color var(--transition-fast);
	display: flex;
	align-items: center;
	gap: 6px;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	background: rgba(18, 62, 138, 0.12);
}

.wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	width: 18px;
	height: 18px;
	fill: var(--primary);
	transition: transform var(--transition-fast);
}

/* Totals rows */
.wc-block-components-totals-wrapper {
	border-top: 1px solid var(--border-light) !important;
	padding: 0 !important;
	margin: 0;
}

.wc-block-components-totals-item {
	padding: 14px 0;
}

.wc-block-components-totals-item__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
}

.wc-block-components-totals-item__value {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

/* Footer total */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 20px;
	font-weight: 800;
	color: var(--primary);
}

/* ── Checkout button ───────────────────────────────────────── */
.wc-block-cart__submit {
	margin-top: 16px;
}

.wc-block-cart__submit-button {
	display: block;
	width: 100%;
	padding: 14px 20px !important;
	border: 0;
	border-radius: 12px !important;
	background: var(--primary) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
	box-shadow: 0 4px 14px rgba(18, 62, 138, 0.25);
}

.wc-block-cart__submit-button:hover {
	background: var(--primary-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(18, 62, 138, 0.35);
}

.wc-block-cart__submit-button .wc-block-components-button__text {
	font-size: 16px;
	font-weight: 800;
}

/* ── Empty cart ────────────────────────────────────────────── */
.wc-block-cart .wc-block-cart__empty-cart__title {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.wp-block-woocommerce-empty-cart-block {
	text-align: center;
	padding: 40px 20px;
}

.wp-block-woocommerce-empty-cart-block .wp-element-button,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--primary) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--transition-fast);
}

.wp-block-woocommerce-empty-cart-block .wp-element-button:hover,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button:hover {
	background: var(--primary-hover) !important;
}

/* ── Notices ───────────────────────────────────────────────── */
.wc-block-cart .wc-block-components-notices .wc-block-components-notice-banner {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
	font-size: 14px;
}

/* ── Responsive: Cart ──────────────────────────────────────── */
@media (max-width: 767px) {
	body.woocommerce-cart .site-content {
		padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 36px) !important;
	}

	body.woocommerce-cart .woocommerce,
	body.woocommerce-cart .entry-content {
		padding: 0 12px;
	}

	.wc-block-cart .wc-block-components-sidebar-layout {
		flex-direction: column;
		gap: 20px;
	}

	.wc-block-cart .wc-block-components-main,
	.wc-block-cart .wc-block-components-sidebar {
		width: 100% !important;
	}

	/* Card-style rows on mobile */
	.wc-block-cart-items__header {
		display: none;
	}

	.wc-block-cart-items__row {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px;
		padding: 14px;
		margin-bottom: 12px;
		border: 1px solid var(--border-light);
		border-radius: 14px;
		background: var(--bg-white);
		box-shadow: var(--shadow-sm);
	}

	.wc-block-cart-item__image {
		width: 60px;
		padding: 0;
		flex: 0 0 60px;
	}

	.wc-block-cart-item__image img {
		width: 56px !important;
		height: 56px !important;
	}

	.wc-block-cart-item__product {
		flex: 1 1 0;
		min-width: 0;
		padding: 0;
	}

	.wc-block-cart-item__total {
		width: 100%;
		text-align: left;
		padding: 8px 0 0;
		border-top: 1px dashed var(--border-light);
	}

	.wp-block-woocommerce-cart-order-summary-block {
		padding: 16px;
	}
}

/* ── Dark mode: Cart ───────────────────────────────────────── */
body.dark-mode .wc-block-cart-items__header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-cart-items__header th {
	color: #9ca3af;
}

body.dark-mode .wc-block-cart-items__row {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-cart-items__row:hover {
	background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .wc-block-cart-item__image img {
	background: #1f232b;
	border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode a.wc-block-components-product-name {
	color: #f3f4f6;
}

body.dark-mode a.wc-block-components-product-name:hover {
	color: #93c5fd;
}

body.dark-mode .wc-block-components-product-metadata__description {
	color: #9ca3af;
}

body.dark-mode .wc-block-cart-item__prices .wc-block-components-product-price {
	color: #e5e7eb;
}

body.dark-mode .wc-block-cart-item__prices .wc-block-components-product-price__regular {
	color: #6b7280;
}

body.dark-mode .wc-block-cart-item__prices .wc-block-components-product-price__value.is-discounted {
	color: #f87171;
}

body.dark-mode .wc-block-components-quantity-selector {
	border-color: rgba(255, 255, 255, 0.14);
	background: #2d3036;
}

body.dark-mode .wc-block-components-quantity-selector__input {
	color: #e5e7eb;
}

body.dark-mode .wc-block-components-quantity-selector__button {
	color: #d1d5db;
}

body.dark-mode .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: rgba(147, 197, 253, 0.12);
	color: #93c5fd;
}

body.dark-mode .wc-block-components-quantity-selector__button--minus {
	border-right-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .wc-block-components-quantity-selector__button--plus {
	border-left-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .wc-block-cart-item__remove-link {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.25);
}

body.dark-mode .wc-block-cart-item__remove-link:hover {
	background: rgba(239, 68, 68, 0.25);
}

body.dark-mode .wc-block-cart-item__total .wc-block-components-product-price__value {
	color: #93c5fd;
}

body.dark-mode .wc-block-components-sale-badge {
	background: rgba(5, 150, 105, 0.15);
	color: #6ee7b7;
	border-color: rgba(110, 231, 183, 0.25);
}

body.dark-mode .wp-block-woocommerce-cart-order-summary-block {
	background: #23262d;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-cart__totals-title {
	color: #f3f4f6;
}

body.dark-mode .wc-block-components-totals-coupon .wc-block-components-panel__button {
	background: rgba(147, 197, 253, 0.08);
	color: #93c5fd;
}

body.dark-mode .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	background: rgba(147, 197, 253, 0.15);
}

body.dark-mode .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	fill: #93c5fd;
}

body.dark-mode .wc-block-components-totals-wrapper {
	border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .wc-block-components-totals-item__label {
	color: #9ca3af;
}

body.dark-mode .wc-block-components-totals-item__value {
	color: #e5e7eb;
}

body.dark-mode .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #f3f4f6;
}

body.dark-mode .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #93c5fd;
}

@media (max-width: 767px) {
	body.dark-mode .wc-block-cart-items__row {
		background: #23262d;
		border-color: rgba(255, 255, 255, 0.08);
	}

	body.dark-mode .wc-block-cart-item__total {
		border-top-color: rgba(255, 255, 255, 0.1);
	}
}

/* ============================================================
 * CHECKOUT PAGE (WooCommerce Blocks)
 * ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
body.woocommerce-checkout .site-content {
	padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 48px) !important;
}

body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .entry-content {
	max-width: 1100px;
	margin: 0 auto 60px;
	padding: 0 16px;
}

body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .page-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 20px;
}

.wp-block-woocommerce-checkout {
	max-width: 1100px !important;
	margin: 0 auto;
}

/* ── Layout: force 2-column on desktop ─────────────────────── */
.wc-block-checkout .wc-block-components-sidebar-layout {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 28px;
	align-items: flex-start;
}

/* ── Main form area ────────────────────────────────────────── */
.wc-block-checkout .wc-block-components-main,
.wc-block-checkout__main {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
}

/* ── Sidebar area ──────────────────────────────────────────── */
.wc-block-checkout .wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	flex: 0 0 340px !important;
	width: 340px !important;
}

/* Section headings */
.wc-block-components-checkout-step .wc-block-components-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--text-primary);
	margin: 0 0 4px;
}

/* Step numbers / icons */
.wc-block-components-checkout-step__heading {
	margin-bottom: 14px;
}

.wc-block-components-checkout-step__heading-content .wc-block-components-checkout-step__description {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 2px;
}

/* Step container */
.wc-block-components-checkout-step {
	padding-bottom: 20px;
	margin-bottom: 4px;
	border: 0 !important;
}

.wc-block-components-checkout-step::after {
	border-color: var(--border-light) !important;
}

/* ── Form fields ───────────────────────────────────────────── */
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-text-input input[type="password"],
.wc-block-checkout .wc-block-components-text-input input[type="number"],
.wc-block-checkout .wc-block-components-textarea textarea,
.wc-block-checkout select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input {
	padding: 12px 14px;
	border: 1px solid var(--border-medium) !important;
	border-radius: 10px !important;
	font-size: 14px;
	color: var(--text-primary);
	background: #fff;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea textarea:focus,
.wc-block-checkout select:focus,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input:focus {
	outline: none;
	border-color: #60a5fa !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Floating labels */
.wc-block-checkout .wc-block-components-text-input label {
	font-size: 13px;
	color: var(--text-muted);
}

.wc-block-checkout .wc-block-components-text-input.is-active label {
	color: var(--primary);
	font-weight: 600;
}

/* Input container */
.wc-block-checkout .wc-block-components-text-input {
	margin-bottom: 0;
}

/* Address form grid */
.wc-block-components-address-form {
	gap: 14px !important;
}

/* ── Checkbox & radio ──────────────────────────────────────── */
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 1.5px solid var(--border-medium);
	accent-color: var(--primary);
}

.wc-block-checkout .wc-block-components-checkbox__label {
	font-size: 14px;
	color: var(--text-primary);
}

/* Radio option cards – border goes on the accordion wrapper so it
   wraps both the label AND the accordion-content div. */
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--border-light);
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.wc-block-checkout .wc-block-components-radio-control-accordion-option:hover {
	border-color: rgba(18, 62, 138, 0.3);
}

/* Checked state – actual WC class uses single-dash, not BEM double-dash */
.wc-block-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control__option-checked {
	border-color: var(--primary) !important;
	background: rgba(18, 62, 138, 0.04);
}

/* Remove the label's own border (we put it on the wrapper) */
.wc-block-checkout .wc-block-components-radio-control__option {
	border: 0 !important;
	border-radius: 0;
	margin-bottom: 0;
}

/* Radio input styling */
.wc-block-checkout .wc-block-components-radio-control__input {
	accent-color: var(--primary);
}

.wc-block-checkout .wc-block-components-radio-control__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
}

.wc-block-checkout .wc-block-components-radio-control__description {
	font-size: 13px;
	color: var(--text-muted);
}

.wc-block-checkout .wc-block-components-radio-control__secondary-label {
	font-weight: 700;
	color: var(--primary);
}

/* ── Shipping options ──────────────────────────────────────── */
/* (inherits from above accordion-option style) */

/* ── Payment methods ───────────────────────────────────────── */
/* (inherits from above accordion-option style) */

.wc-block-components-payment-method-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.wc-block-components-payment-method-icons {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wc-block-components-payment-method-icons .wc-block-components-payment-method-icons__icon {
	height: 24px;
	width: auto;
}

/* ── Express payment ───────────────────────────────────────── */
.wc-block-components-express-payment {
	border: 1px solid var(--border-light);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 20px;
	background: #f8fafc;
}

.wc-block-components-express-payment__title-container {
	margin-bottom: 12px;
}

.wc-block-components-express-payment__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-secondary);
	background: #f8fafc !important;
}

/* ── Sidebar / Order summary ───────────────────────────────── */
.wc-block-checkout__sidebar {
	padding: 0;
}

.wc-block-components-order-summary {
	border: 1px solid var(--border-light);
	border-radius: 14px;
	background: var(--bg-white);
	box-shadow: var(--shadow-sm);
	padding: 0;
	overflow: hidden;
}

/* Summary toggle header */
.wc-block-components-order-summary .wc-block-components-panel__button {
	padding: 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	transition: background-color var(--transition-fast);
}

.wc-block-components-order-summary .wc-block-components-panel__button:hover {
	background: rgba(18, 62, 138, 0.03);
}

.wc-block-components-order-summary .wc-block-components-panel__button-icon {
	width: 20px;
	height: 20px;
	fill: var(--text-muted);
	transition: transform var(--transition-fast);
}

/* Order summary items */
.wc-block-components-order-summary-item {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.wc-block-components-order-summary-item:last-child {
	border-bottom: 0;
}

.wc-block-components-order-summary-item__image {
	flex: 0 0 48px;
}

.wc-block-components-order-summary-item__image img {
	width: 48px !important;
	height: 48px !important;
	object-fit: contain;
	border-radius: 8px;
	background: #f8fafc;
	padding: 4px;
	border: 1px solid var(--border-light);
}

.wc-block-components-order-summary-item__description {
	flex: 1;
	min-width: 0;
}

.wc-block-components-order-summary-item .wc-block-components-product-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	text-decoration: none;
	line-height: 1.4;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 2px;
}

.wc-block-components-order-summary-item .wc-block-components-product-price {
	font-weight: 700;
	color: var(--primary);
	font-size: 14px;
}

.wc-block-components-order-summary-item .wc-block-components-product-price__regular {
	color: var(--text-muted);
	font-size: 12px;
}

.wc-block-components-order-summary-item .wc-block-components-product-price__value.is-discounted {
	color: #dc2626;
}

/* Quantity badge */
.wc-block-components-order-summary-item .wc-block-components-quantity-badge {
	position: relative;
}

.wc-block-components-order-summary-item .wc-block-components-quantity-badge .wc-block-components-quantity-badge__quantity {
	background: var(--primary);
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* ── Totals section in sidebar ─────────────────────────────── */
.wc-block-checkout .wc-block-components-totals-wrapper {
	border-top: 1px solid var(--border-light) !important;
	padding: 4px 0 !important;
	margin: 0;
}

.wc-block-checkout .wc-block-components-totals-item {
	padding: 12px 20px;
}

.wc-block-checkout .wc-block-components-totals-item__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
}

.wc-block-checkout .wc-block-components-totals-item__value {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
}

/* Footer total */
.wc-block-checkout .wc-block-components-totals-footer-item {
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 2px solid var(--border-light);
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 16px;
	font-weight: 800;
	color: var(--text-primary);
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 20px;
	font-weight: 800;
	color: var(--primary);
}

/* Coupon panel in checkout */
.wc-block-checkout .wc-block-components-totals-coupon {
	padding: 4px 0 !important;
}

.wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	padding: 10px 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background-color var(--transition-fast);
}

.wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	background: rgba(18, 62, 138, 0.04);
}

.wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	width: 18px;
	height: 18px;
	fill: var(--primary);
}

/* Coupon form */
.wc-block-components-totals-coupon__content {
	padding: 8px 20px 14px;
}

.wc-block-components-totals-coupon__content .wc-block-components-text-input input {
	border-radius: 10px !important;
}

.wc-block-components-totals-coupon__content .wc-block-components-button {
	border-radius: 10px !important;
	background: var(--primary) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 18px;
	border: 0;
	transition: background-color var(--transition-fast);
}

.wc-block-components-totals-coupon__content .wc-block-components-button:hover {
	background: var(--primary-hover) !important;
}

/* ── Place order button ────────────────────────────────────── */
.wc-block-checkout__actions_row {
	margin-top: 8px;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button {
	display: block;
	width: 100%;
	padding: 16px 24px !important;
	border: 0;
	border-radius: 12px !important;
	background: var(--primary) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
	box-shadow: 0 4px 14px rgba(18, 62, 138, 0.25);
}

.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--primary-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(18, 62, 138, 0.35);
}

.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
	font-size: 16px;
	font-weight: 800;
}

/* Return to cart link */
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
	transition: color var(--transition-fast);
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px 0;
}

.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--primary);
}

/* ── Validation errors ─────────────────────────────────────── */
.wc-block-components-validation-error {
	color: #dc2626;
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
}

.wc-block-checkout .wc-block-components-text-input.has-error input {
	border-color: #fca5a5 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ── Notices ───────────────────────────────────────────────── */
.wc-block-checkout .wc-block-components-notice-banner {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
	font-size: 14px;
	border: 1px solid transparent;
}

.wc-block-checkout .wc-block-components-notice-banner.is-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.wc-block-checkout .wc-block-components-notice-banner.is-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.wc-block-checkout .wc-block-components-notice-banner.is-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1d4ed8;
}

/* ── Privacy & terms ───────────────────────────────────────── */
.wc-block-checkout__terms {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.6;
}

.wc-block-checkout__terms a {
	color: var(--primary);
	text-decoration: underline;
}

.wc-block-checkout__terms a:hover {
	color: var(--primary-hover);
}

/* ── Responsive: Checkout ──────────────────────────────────── */
@media (max-width: 767px) {
	body.woocommerce-checkout .site-content {
		padding-top: calc(var(--nav-h) + var(--wpadminbar-h) + 36px) !important;
	}

	body.woocommerce-checkout .woocommerce,
	body.woocommerce-checkout .entry-content {
		padding: 0 12px;
	}

	.wc-block-checkout .wc-block-components-sidebar-layout {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		gap: 20px;
	}

	.wc-block-checkout .wc-block-components-main,
	.wc-block-checkout .wc-block-components-sidebar,
	.wc-block-checkout__main,
	.wc-block-checkout__sidebar {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.wc-block-components-order-summary-item__image img {
		width: 40px !important;
		height: 40px !important;
	}

	.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 18px;
	}
}

/* ── Dark mode: Checkout ───────────────────────────────────── */
body.dark-mode .wc-block-components-checkout-step .wc-block-components-title {
	color: #f3f4f6;
}

body.dark-mode .wc-block-components-checkout-step__heading-content .wc-block-components-checkout-step__description {
	color: #9ca3af;
}

body.dark-mode .wc-block-components-checkout-step::after {
	border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .wc-block-checkout .wc-block-components-text-input input[type="text"],
body.dark-mode .wc-block-checkout .wc-block-components-text-input input[type="email"],
body.dark-mode .wc-block-checkout .wc-block-components-text-input input[type="tel"],
body.dark-mode .wc-block-checkout .wc-block-components-text-input input[type="password"],
body.dark-mode .wc-block-checkout .wc-block-components-text-input input[type="number"],
body.dark-mode .wc-block-checkout .wc-block-components-textarea textarea,
body.dark-mode .wc-block-checkout select,
body.dark-mode .wc-block-checkout .wc-block-components-combobox .components-combobox-control__input {
	background: #2d3036;
	color: #e5e7eb;
	border-color: rgba(255, 255, 255, 0.14) !important;
}

body.dark-mode .wc-block-checkout .wc-block-components-text-input label {
	color: #9ca3af;
}

body.dark-mode .wc-block-checkout .wc-block-components-text-input.is-active label {
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout .wc-block-components-checkbox__label {
	color: #e5e7eb;
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__option {
	border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__option:hover {
	border-color: rgba(147, 197, 253, 0.3);
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__option--checked {
	border-color: rgba(147, 197, 253, 0.5) !important;
	background: rgba(18, 62, 138, 0.2);
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__label {
	color: #f3f4f6;
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__description {
	color: #9ca3af;
}

body.dark-mode .wc-block-checkout .wc-block-components-radio-control__secondary-label {
	color: #93c5fd;
}

body.dark-mode .wc-block-components-express-payment {
	background: #1f232b;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-components-express-payment__title {
	color: #9ca3af;
	background: #1f232b !important;
}

body.dark-mode .wc-block-components-order-summary {
	background: #23262d;
	border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-components-order-summary .wc-block-components-panel__button {
	color: #f3f4f6;
}

body.dark-mode .wc-block-components-order-summary .wc-block-components-panel__button:hover {
	background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .wc-block-components-order-summary .wc-block-components-panel__button-icon {
	fill: #9ca3af;
}

body.dark-mode .wc-block-components-order-summary-item {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wc-block-components-order-summary-item__image img {
	background: #1f232b;
	border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .wc-block-components-order-summary-item .wc-block-components-product-name {
	color: #f3f4f6;
}

body.dark-mode .wc-block-components-order-summary-item .wc-block-components-product-metadata {
	color: #6b7280;
}

body.dark-mode .wc-block-components-order-summary-item .wc-block-components-product-price {
	color: #93c5fd;
}

body.dark-mode .wc-block-components-order-summary-item .wc-block-components-product-price__value.is-discounted {
	color: #f87171;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-wrapper {
	border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-item__label {
	color: #9ca3af;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-item__value {
	color: #e5e7eb;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-footer-item {
	background: #1f232b;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #f3f4f6;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	background: rgba(147, 197, 253, 0.08);
}

body.dark-mode .wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	fill: #93c5fd;
}

body.dark-mode .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button {
	color: #9ca3af;
}

body.dark-mode .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button:hover {
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout .wc-block-components-notice-banner.is-success {
	background: rgba(5, 150, 105, 0.12);
	border-color: rgba(110, 231, 183, 0.25);
	color: #6ee7b7;
}

body.dark-mode .wc-block-checkout .wc-block-components-notice-banner.is-error {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.25);
	color: #fca5a5;
}

body.dark-mode .wc-block-checkout .wc-block-components-notice-banner.is-info {
	background: rgba(18, 62, 138, 0.15);
	border-color: rgba(147, 197, 253, 0.25);
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout__terms {
	color: #6b7280;
}

body.dark-mode .wc-block-checkout__terms a {
	color: #93c5fd;
}

body.dark-mode .wc-block-checkout .entry-title,
body.dark-mode .wc-block-checkout .page-title,
body.dark-mode.woocommerce-checkout .entry-title,
body.dark-mode.woocommerce-checkout .page-title {
	color: #f3f4f6;
}
