body.woocommerce,
body.woocommerce-page {
	font-family: "Dana", Tahoma, sans-serif;
}

.woocommerce .khabshop-container,
.woocommerce-page .khabshop-container {
	width: min(1100px, calc(100% - 40px));
	margin: 0 auto;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce ul.products li.product {
	background: #fff;
	border-radius: 18px;
	padding: 14px;
	box-shadow: 0 10px 28px rgba(18, 60, 58, 0.08);
	list-style: none;
	text-align: center;
}

.khabshop-product-media img,
.woocommerce ul.products li.product img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 14px;
}

.woocommerce ul.products li.product h2,
.woocommerce-loop-product__title {
	font-size: 1.05rem;
	margin: 12px 0 8px;
	color: #123c3a;
}

.woocommerce .price,
.woocommerce div.product p.price {
	color: #26544b;
	font-weight: 700;
}

.woocommerce ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.35em 0.65em;
}

.woocommerce ul.products li.product .price del {
	opacity: 1;
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	text-decoration-color: #94a3b8;
}

.woocommerce ul.products li.product .price del .amount,
.woocommerce ul.products li.product .price del .amount bdi,
.woocommerce ul.products li.product .price del .woocommerce-Price-currencySymbol {
	color: #94a3b8;
	font-weight: 600;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	background: none;
	font-size: inherit;
	font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.checkout-button,
.woocommerce-button {
	background: #26544b !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 12px 20px !important;
	font-family: inherit !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #1f5a56 !important;
}

.khabshop-breadcrumb {
	margin-bottom: 18px;
	color: #5b6b68;
	font-size: 0.9rem;
}

.related.products ul.products {
	margin-top: 16px;
}

/* Single product — boxed layout with real side/top/bottom margins */
body.single-product {
	--khab-product-green: #2eb872;
	--khab-product-green-soft: #e7f8ee;
	--khab-product-line: #cfeedd;
	background: #f3f5f7;
	overflow-x: hidden;
}

body.single-product .khabshop-main {
	padding: 48px 0 72px !important;
	overflow-x: clip;
	width: 100%;
	box-sizing: border-box;
}

body.single-product .khabshop-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	padding-inline: 0 !important;
	box-sizing: border-box;
}

body.single-product .khabshop-single-product,
body.single-product div.product.khabshop-single-product,
body.single-product #content div.product.khabshop-single-product {
	width: min(1180px, calc(100% - 48px)) !important;
	max-width: 1180px !important;
	margin: 30px auto 40px !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	float: none !important;
	clear: both !important;
}

body.single-product .woocommerce-breadcrumb,
body.single-product .khabshop-breadcrumb {
	width: min(1180px, calc(100% - 48px));
	max-width: 1180px;
	margin: 0 auto 18px;
	box-sizing: border-box;
}

/* Hide additional info / reviews if still output by plugins */
body.single-product #tab-additional_information,
body.single-product #tab-reviews,
body.single-product .woocommerce-Reviews,
body.single-product li.additional_information_tab,
body.single-product li.reviews_tab {
	display: none !important;
}

.khabshop-single-product {
	position: relative;
	isolation: isolate;
	overflow: clip;
}

.khabshop-single-product::before,
.khabshop-single-product::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(64px);
}

.khabshop-single-product::before {
	width: min(380px, 70vw);
	height: min(380px, 70vw);
	background: rgba(186, 150, 255, 0.42);
	top: 40px;
	right: -4%;
}

.khabshop-single-product::after {
	width: min(320px, 60vw);
	height: min(320px, 60vw);
	background: rgba(64, 196, 176, 0.28);
	bottom: 8%;
	left: -6%;
}

.khabshop-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 22px;
	align-items: start;
	position: relative;
	z-index: 1;
	min-width: 0;
}

.khabshop-single-visual {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.khabshop-product-card {
	background: rgba(255, 255, 255, 0.62);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	box-shadow: 0 18px 46px rgba(18, 24, 32, 0.08);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
}

.khabshop-gallery-card.khabshop-product-card {
	background: #fff;
	border: 1px solid #e8eeea;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.08);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.khabshop-gallery-card {
	position: relative;
	padding: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	width: 100%;
	box-sizing: border-box;
}

.woocommerce div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page div.product div.images,
.khabshop-gallery-card .woocommerce-product-gallery {
	width: 100% !important;
	height: 100% !important;
	float: none !important;
	margin: 0;
	position: relative;
}

.khabshop-gallery-card .woocommerce-product-gallery .flex-viewport {
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

.khabshop-gallery-card .woocommerce-product-gallery .slides {
	height: 100%;
	margin: 0;
	padding: 0;
}

.khabshop-gallery-card .woocommerce-product-gallery .slides > li {
	height: 100%;
	margin: 0;
}

.khabshop-gallery-card .woocommerce-product-gallery__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.khabshop-gallery-card .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
	background: #f3f5f4;
	cursor: default;
}

.khabshop-gallery-card .zoomImg,
.woocommerce div.product div.images .zoomImg {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.khabshop-gallery-card .woocommerce-product-gallery__trigger {
	display: none;
}

.khabshop-gallery-card .flex-control-nav,
.khabshop-gallery-card .flex-control-thumbs {
	display: none !important;
}

.khabshop-buy-card .woocommerce-variation {
	min-height: 0 !important;
}

.khabshop-buy-card .woocommerce-variation-price {
	display: none !important;
}

.khabshop-gallery-card .flex-direction-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.khabshop-gallery-card .flex-direction-nav a {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 16px rgba(15, 23, 32, 0.14);
	overflow: hidden;
	text-indent: 0;
	font-size: 0;
}

.khabshop-gallery-card .flex-direction-nav .flex-prev {
	right: 22px;
	left: auto;
}

.khabshop-gallery-card .flex-direction-nav .flex-next {
	left: 22px;
	right: auto;
}

.khabshop-gallery-card .flex-direction-nav a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid #1f2933;
	border-right: 2px solid #1f2933;
}

.khabshop-gallery-card .flex-prev::before {
	transform: translate(-40%, -50%) rotate(45deg);
}

.khabshop-gallery-card .flex-next::before {
	transform: translate(-60%, -50%) rotate(-135deg);
}

.khabshop-gallery-count {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	background: rgba(255, 255, 255, 0.88);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 13px;
	color: #334155;
	box-shadow: 0 4px 12px rgba(15, 23, 32, 0.08);
}

.khabshop-excerpt-card {
	padding: 20px 22px;
	border-inline-start: 4px solid var(--khab-product-green);
}

.khabshop-excerpt-card .woocommerce-product-details__short-description > :first-child {
	margin-top: 0;
	font-size: 1.12rem;
	font-weight: 800;
	color: #111827;
	line-height: 1.7;
}

.khabshop-excerpt-card .woocommerce-product-details__short-description p {
	margin: 0;
	color: #4b5563;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary,
.khabshop-buy-card {
	width: 100% !important;
	min-width: 0;
	float: none !important;
	padding: 28px 26px 22px;
	text-align: start;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
	isolation: isolate;
	background: rgba(255, 255, 255, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 24px;
	box-shadow:
		0 18px 46px rgba(18, 24, 32, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.khabshop-buy-card::before,
.khabshop-buy-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(52px);
}

.khabshop-buy-card::before {
	width: min(300px, 80%);
	height: min(300px, 80%);
	background: rgba(186, 150, 255, 0.58);
	top: -72px;
	right: -48px;
}

.khabshop-buy-card::after {
	width: min(260px, 72%);
	height: min(260px, 72%);
	background: rgba(64, 196, 176, 0.48);
	bottom: -64px;
	left: -36px;
}

.khabshop-buy-card > * {
	position: relative;
	z-index: 1;
}

.khabshop-buy-card .product_title {
	text-align: center;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	font-weight: 800;
	color: #111827;
	margin: 0 0 18px;
	line-height: 1.55;
}

.khabshop-buy-card > .price,
.khabshop-buy-card .woocommerce-variation-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.35em 0.9em;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	border: none;
	border-radius: 20px;
	padding: 20px 24px;
	margin: 0 0 14px;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.78) 0%,
		rgba(243, 236, 255, 0.62) 38%,
		rgba(224, 247, 255, 0.58) 100%
	);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 16px 40px rgba(126, 146, 210, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(255, 255, 255, 0.35);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.khabshop-buy-card > .price::before,
.khabshop-buy-card .woocommerce-variation-price::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(
		90deg,
		rgba(186, 150, 255, 0.92) 0%,
		rgba(164, 196, 255, 0.82) 48%,
		rgba(96, 220, 255, 0.95) 100%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 0;
}

.khabshop-buy-card > .price::after,
.khabshop-buy-card .woocommerce-variation-price::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(186, 150, 255, 0.28), rgba(96, 220, 255, 0.24));
	filter: blur(10px);
	opacity: 0.85;
	pointer-events: none;
	z-index: -1;
}

.khabshop-buy-card > .price .amount,
.khabshop-buy-card > .price .amount bdi,
.khabshop-buy-card .woocommerce-variation-price .amount,
.khabshop-buy-card .woocommerce-variation-price .amount bdi,
.khabshop-buy-card .woocommerce-variation-price .price .amount,
.khabshop-buy-card .woocommerce-variation-price .price .amount bdi {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-direction: row;
	direction: ltr;
	gap: 0.42em;
	position: relative;
	z-index: 1;
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	font-weight: 800;
	line-height: 1.15;
	background: linear-gradient(180deg, #14b8a6 0%, #0f766e 52%, #115e59 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	white-space: nowrap;
}

.khabshop-buy-card > .price .woocommerce-Price-currencySymbol,
.khabshop-buy-card .woocommerce-variation-price .woocommerce-Price-currencySymbol {
	order: -1;
	font-size: 0.58em;
	font-weight: 700;
	line-height: 1.2;
	-webkit-text-fill-color: #0f766e;
	color: #0f766e;
	background: none;
}

.khabshop-buy-card > .price del,
.khabshop-buy-card > .price ins,
.khabshop-buy-card .woocommerce-variation-price del,
.khabshop-buy-card .woocommerce-variation-price ins {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35em;
	margin: 0;
	white-space: nowrap;
	background: none;
}

.khabshop-buy-card > .price ins,
.khabshop-buy-card .woocommerce-variation-price ins {
	text-decoration: none;
}

.khabshop-buy-card > .price ins .amount,
.khabshop-buy-card > .price ins .amount bdi,
.khabshop-buy-card .woocommerce-variation-price ins .amount,
.khabshop-buy-card .woocommerce-variation-price ins .amount bdi {
	font-size: clamp(1.85rem, 3.6vw, 2.65rem);
	opacity: 1;
}

.khabshop-buy-card > .price del,
.khabshop-buy-card .woocommerce-variation-price del {
	opacity: 1;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: #94a3b8;
	text-decoration-skip-ink: none;
}

.khabshop-buy-card > .price del .amount,
.khabshop-buy-card > .price del .amount bdi,
.khabshop-buy-card .woocommerce-variation-price del .amount,
.khabshop-buy-card .woocommerce-variation-price del .amount bdi {
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
	opacity: 1;
	background: none;
	-webkit-text-fill-color: #94a3b8;
	color: #94a3b8;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: #94a3b8;
	text-decoration-skip-ink: none;
}

.khabshop-buy-card > .price del .woocommerce-Price-currencySymbol,
.khabshop-buy-card .woocommerce-variation-price del .woocommerce-Price-currencySymbol {
	-webkit-text-fill-color: #94a3b8;
	color: #94a3b8;
}

.khabshop-buy-card > .price .price,
.khabshop-buy-card .woocommerce-variation-price .price {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35em 0.9em;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font-size: inherit;
	box-shadow: none;
}

.khabshop-guarantee-hint {
	margin: 0 0 10px;
	color: #0f766e;
	font-size: 0.95rem;
	font-weight: 700;
}

.khabshop-guarantee:not(.has-choice) .khabshop-guarantee-hint {
	animation: khabshop-hint-pulse 1.6s ease-in-out infinite;
}

@keyframes khabshop-hint-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.khabshop-buy-card table.variations {
	width: 100%;
	border: 0;
	margin: 0 0 18px;
}

.khabshop-buy-card table.variations th,
.khabshop-buy-card table.variations td {
	display: block;
	width: 100%;
	border: 0;
	background: none;
	padding: 0;
	text-align: right;
}

.khabshop-buy-card table.variations th label {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
	color: #111827;
}

.khabshop-guarantee-select-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.khabshop-buy-card table.variations td.value {
	position: relative;
}

.khabshop-guarantee-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	border: 1px dashed #94a3b8;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.45);
	padding: 14px;
	justify-content: center;
	align-items: center;
}

.khabshop-guarantee:not(.has-choice) .khabshop-guarantee-swatches {
	border-color: #2eb872;
	box-shadow: 0 0 0 3px rgba(46, 184, 114, 0.16);
}

.khabshop-guarantee-swatch {
	position: relative;
	width: 132px;
	min-height: 148px;
	border: 2px solid #d1d5db;
	border-radius: 14px;
	background: #fff;
	padding: 10px 8px 8px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

.khabshop-guarantee-swatch__art {
	position: relative;
	width: 88px;
	height: 88px;
	display: grid;
	place-items: center;
}

.khabshop-guarantee-swatch img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
}

.khabshop-guarantee-swatch__label {
	margin-top: 15px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1f2937;
	text-align: center;
}

.khabshop-guarantee-swatch.is-selected {
	border-color: var(--khab-product-green);
	box-shadow: 0 0 0 3px rgba(46, 184, 114, 0.28);
	background: #f4fdf8;
}

.khabshop-guarantee-x {
	position: absolute;
	inset: 10%;
	pointer-events: none;
}

.khabshop-guarantee-x::before,
.khabshop-guarantee-x::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 8%;
	width: 10px;
	height: 84%;
	background: #e11d2e;
	border-radius: 4px;
}

.khabshop-guarantee-x::before {
	transform: translateX(-50%) rotate(38deg);
}

.khabshop-guarantee-x::after {
	transform: translateX(-50%) rotate(-38deg);
}

.khabshop-guarantee-details {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #eef6ff;
	border: 1px solid #d6e6f8;
}

.khabshop-guarantee-details__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 1rem;
	color: #1e3a5f;
}

.khabshop-guarantee-details p {
	margin: 0;
	color: #334155;
	line-height: 1.85;
	font-size: 0.92rem;
}

.khabshop-buy-card .woocommerce-variation-availability,
.khabshop-buy-card .reset_variations {
	display: none !important;
}

.khabshop-buy-card form.cart .woocommerce-variation-add-to-cart,
.khabshop-buy-card form.cart:not(.variations_form) {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
}

body.single-product .khabshop-buy-card .single_add_to_cart_button {
	flex: 1 1 auto;
	border-radius: 14px !important;
	background: linear-gradient(90deg, #2eb872 0%, #1b6e8c 100%) !important;
	padding: 14px 18px !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	min-height: 52px;
	box-shadow: 0 10px 22px rgba(27, 110, 140, 0.22);
}

body.single-product .khabshop-buy-card .single_add_to_cart_button.disabled,
body.single-product .khabshop-buy-card .single_add_to_cart_button:disabled {
	opacity: 1 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

body.single-product .khabshop-buy-card .quantity {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: auto !important;
	float: none !important;
	margin: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	height: 52px;
}

body.single-product .khabshop-buy-card .quantity .qty {
	width: 48px;
	border: 0;
	border-radius: 0;
	text-align: center;
	box-shadow: none;
	padding: 0;
	height: 52px;
	-moz-appearance: textfield;
}

.khabshop-buy-card .quantity .qty::-webkit-outer-spin-button,
.khabshop-buy-card .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.khabshop-qty-btn {
	width: 42px;
	height: 52px;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 1.25rem;
	cursor: pointer;
	font-family: inherit;
}

.khabshop-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border: 0;
	border-radius: 999px;
	background: #eef1f4;
	color: #334155;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.khabshop-share-btn:hover {
	background: #e4e8ee;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 28px;
	background: linear-gradient(180deg, #efe6f8 0%, #f4eef9 38%, #fbf8fd 100%);
	border-radius: 24px;
	padding: 0;
	box-shadow: 0 18px 46px rgba(92, 58, 140, 0.12);
	overflow: hidden;
	position: relative;
	z-index: 1;
	border: 1px solid rgba(214, 196, 232, 0.55);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0;
	list-style: none;
	padding: 10px 20px 0;
	margin: 0;
	border: 0;
	background: transparent;
}

.woocommerce-tabs ul.tabs::before {
	display: none;
}

.woocommerce-tabs ul.tabs li {
	border: 0 !important;
	background: transparent !important;
	margin: 0;
	padding: 0;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 22px 14px;
	border-radius: 14px 14px 0 0;
	background: transparent;
	color: #4b5563;
	text-decoration: none;
	font-weight: 700;
	border-bottom: 3px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
	background: #fff;
	color: #1f1630;
	border-bottom-color: #8b63c7;
	box-shadow: 0 -4px 16px rgba(92, 58, 140, 0.06);
}

.woocommerce div.product .woocommerce-tabs .panel {
	padding: 28px 36px 40px;
	margin: 0;
	background: transparent;
}

.woocommerce-Tabs-panel h2 {
	font-size: 1.35rem;
	font-weight: 800;
	color: #1f1630;
	margin: 0 0 18px;
}

.woocommerce-product-details__short-description ul,
.woocommerce-Tabs-panel ul {
	list-style: disc;
	padding-inline-start: 22px;
}

body.single-product .related.products {
	margin-top: 32px;
	position: relative;
	z-index: 1;
}

body.single-product .related.products > h2 {
	font-size: 1.25rem;
	margin-bottom: 14px;
}

.khabshop-modal[hidden] {
	display: none !important;
}

.khabshop-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: grid;
	place-items: center;
	padding: 20px;
}

.khabshop-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 32, 0.45);
	backdrop-filter: blur(4px);
}

.khabshop-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 18px;
	padding: 28px 24px 22px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(15, 23, 32, 0.2);
}

.khabshop-modal__dialog p {
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.8;
}

.khabshop-modal__close {
	border: 0;
	border-radius: 12px;
	background: linear-gradient(90deg, #2eb872 0%, #1b6e8c 100%);
	color: #fff;
	padding: 10px 22px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 900px) {
	body.single-product .khabshop-main {
		padding: 48px 0 48px !important;
	}

	body.single-product .khabshop-single-product,
	body.single-product div.product.khabshop-single-product,
	body.single-product #content div.product.khabshop-single-product,
	body.single-product .woocommerce-breadcrumb,
	body.single-product .khabshop-breadcrumb {
		width: calc(100% - 28px) !important;
		max-width: none !important;
		margin-inline: auto !important;
	}

	.woocommerce ul.products,
	.khabshop-single-layout,
	.woocommerce-checkout .col2-set {
		grid-template-columns: 1fr;
	}

	.khabshop-buy-card form.cart .woocommerce-variation-add-to-cart,
	.khabshop-buy-card form.cart:not(.variations_form) {
		flex-wrap: wrap;
	}

	body.single-product .khabshop-buy-card .single_add_to_cart_button {
		flex: 1 1 100%;
		order: 2;
	}

	.khabshop-buy-card .quantity {
		order: 1;
	}

	.khabshop-buy-card > .price,
	.khabshop-buy-card .woocommerce-variation-price {
		padding: 16px 14px;
		border-radius: 18px;
	}

	.woocommerce div.product .woocommerce-tabs {
		border-radius: 20px;
	}

	.woocommerce-tabs ul.tabs {
		padding: 8px 12px 0;
	}

	.woocommerce div.product .woocommerce-tabs .panel {
		padding: 20px 18px 28px;
	}

	.khabshop-buy-card > .price .amount,
	.khabshop-buy-card > .price .amount bdi,
	.khabshop-buy-card .woocommerce-variation-price .amount,
	.khabshop-buy-card .woocommerce-variation-price .amount bdi,
	.khabshop-buy-card .woocommerce-variation-price .price .amount,
	.khabshop-buy-card .woocommerce-variation-price .price .amount bdi,
	.khabshop-buy-card > .price ins .amount,
	.khabshop-buy-card > .price ins .amount bdi {
		font-size: clamp(1.45rem, 5vw, 2rem);
		white-space: normal;
		flex-wrap: wrap;
	}

	.khabshop-buy-card > .price del .amount,
	.khabshop-buy-card > .price del .amount bdi,
	.khabshop-buy-card .woocommerce-variation-price del .amount,
	.khabshop-buy-card .woocommerce-variation-price del .amount bdi {
		font-size: clamp(1rem, 3.6vw, 1.2rem);
	}
}

.woocommerce table.shop_table {
	width: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 14px;
	border-color: #e6eeea;
}

.woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* My Account */
body.woocommerce-account {
	--khab-account-ink: #1e293b;
	--khab-account-muted: #64748b;
	--khab-account-line: #e6edf0;
	--khab-account-accent: #26544b;
}

body.woocommerce-account .khabshop-container {
	width: min(1180px, calc(100% - 32px));
}

body.woocommerce-account .khabshop-main {
	padding-top: 28px;
	padding-bottom: 56px;
}

body.woocommerce-account .khabshop-article-head h1 {
	font-size: clamp(1.4rem, 2.4vw, 1.85rem);
	margin: 0 0 22px;
}

body.woocommerce-account .woocommerce {
	font-family: inherit;
}

/* logged-in two-column layout: nav | content
   Reset WooCommerce default floats and apply CSS Grid */
body.woocommerce-account.logged-in .woocommerce {
	display: grid !important;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

/* Notices span full width or hide when empty */
body.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	display: none; /* hidden by default; JS/WC shows it when needed */
}

body.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper:not(:empty) {
	display: block;
}

body.woocommerce-account.logged-in .woocommerce > .woocommerce-message,
body.woocommerce-account.logged-in .woocommerce > .woocommerce-info,
body.woocommerce-account.logged-in .woocommerce > .woocommerce-error {
	grid-column: 1 / -1;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #1f1f4d;
	color: #fff;
	border-radius: 18px;
	padding: 16px 12px;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.08);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 11px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.6;
	transition: background 0.2s ease, color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: rgba(255, 255, 255, 0.1);
	color: #a7e76a;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	min-width: 0;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.07);
	color: var(--khab-account-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: var(--khab-account-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content p {
	margin: 0 0 12px;
	line-height: 1.8;
	color: #475569;
}

body.woocommerce-account .woocommerce-MyAccount-content a {
	color: var(--khab-account-accent);
}

body.woocommerce-account .woocommerce-MyAccount-content .shop_table {
	margin: 0 0 16px;
	background: #fff;
	border: 1px solid var(--khab-account-line);
	border-radius: 14px;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content .shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table td {
	padding: 12px 14px;
	border-color: var(--khab-account-line);
	text-align: right;
	font-size: 0.92rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit,
body.woocommerce-account .woocommerce-form-register .woocommerce-form-register__submit,
body.woocommerce-account .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--khab-account-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 10px 18px !important;
	font-family: inherit !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	min-height: 44px;
}

body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .u-columns.woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	float: none !important;
	width: 100% !important;
}

body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
	float: none !important;
	width: 100% !important;
	background: #f8fafb;
	border: 1px solid var(--khab-account-line);
	border-radius: 14px;
	padding: 16px 18px;
	box-sizing: border-box;
}

body.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2,
body.woocommerce-account #customer_login .col-1,
body.woocommerce-account #customer_login .col-2 {
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.07);
	float: none !important;
	width: 100% !important;
}

body.woocommerce-account #customer_login h2 {
	margin: 0 0 16px;
	font-size: 1.2rem;
	color: var(--khab-account-ink);
}

body.woocommerce-account .woocommerce form .form-row {
	margin: 0 0 14px;
	padding: 0;
	float: none;
	width: 100%;
}

body.woocommerce-account .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.86rem;
	font-weight: 600;
	color: #334155;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select {
	width: 100%;
	background: #f7f9fa !important;
	border: 1px solid var(--khab-account-line) !important;
	border-radius: 10px !important;
	min-height: 46px;
	box-shadow: none !important;
	box-sizing: border-box;
	padding: 10px 12px;
	font-family: inherit;
}

body.woocommerce-account .woocommerce-form-login__rememberme,
body.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.woocommerce-account .lost_password {
	margin: 12px 0 0;
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--khab-account-line);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 18px 0;
}

body.woocommerce-account .woocommerce-pagination {
	margin-top: 16px;
}

@media (max-width: 900px) {
	body.woocommerce-account.logged-in .woocommerce,
	body.woocommerce-account #customer_login,
	body.woocommerce-account .woocommerce-Addresses,
	body.woocommerce-account .u-columns.woocommerce-Addresses {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 1;
	}
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top-color: #26544b;
	background: #fff;
	border-radius: 12px;
}

.woocommerce .quantity .qty {
	border: 1px solid #d5ddd9;
	border-radius: 10px;
	padding: 8px;
	width: 72px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container .select2-selection--single {
	border-radius: 12px !important;
	border: 1px solid #d5ddd9 !important;
	min-height: 44px;
	font-family: inherit;
}

/* Checkout */
body.woocommerce-checkout,
body.woocommerce-cart {
	--khab-checkout-ink: #1e293b;
	--khab-checkout-muted: #64748b;
	--khab-checkout-line: #e6edf0;
	--khab-checkout-accent: #26544b;
}

body.woocommerce-cart .khabshop-container,
body.woocommerce-checkout .khabshop-container {
	width: min(1180px, calc(100% - 32px));
}

body.woocommerce-cart .khabshop-main {
	padding-top: 20px;
	padding-bottom: 56px;
}

.khabshop-cart {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
	gap: 22px;
	align-items: start;
}

.khabshop-cart > .khabshop-checkout-steps {
	grid-column: 1 / -1;
}

.khabshop-cart > .woocommerce-cart-form {
	min-width: 0;
}

.khabshop-cart-sidebar {
	position: sticky;
	top: 108px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.woocommerce-cart .khabshop-cart-items .shop_table {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
}

body.woocommerce-cart .khabshop-cart-items .shop_table th,
body.woocommerce-cart .khabshop-cart-items .shop_table td {
	border: 0;
	border-bottom: 1px solid var(--khab-checkout-line);
	padding: 14px 8px;
	background: transparent;
	vertical-align: middle;
}

body.woocommerce-cart .khabshop-cart-items .shop_table thead th {
	color: var(--khab-checkout-muted);
	font-weight: 600;
	font-size: 0.86rem;
}

body.woocommerce-cart .product-thumbnail img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

body.woocommerce-cart .product-name a {
	color: var(--khab-checkout-ink);
	font-weight: 700;
	text-decoration: none;
}

body.woocommerce-cart .product-remove a.remove {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b !important;
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}

body.woocommerce-cart .product-remove a.remove:hover {
	background: #fee2e2;
	color: #b91c1c !important;
}

body.woocommerce-cart .khabshop-cart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding-top: 8px;
}

body.woocommerce-cart .khabshop-cart-actions-row td {
	border-bottom: 0 !important;
}

body.woocommerce-cart .khabshop-coupon-ui {
	display: flex;
	gap: 8px;
	margin: 0;
	flex: 1;
	min-width: 220px;
}

body.woocommerce-cart .khabshop-coupon-ui .input-text {
	flex: 1;
	background: #f7f9fa;
	border: 1px solid var(--khab-checkout-line);
	border-radius: 10px;
	min-height: 44px;
	padding: 0 12px;
}

body.woocommerce-cart .khabshop-coupon-ui .button,
body.woocommerce-cart .khabshop-cart-update,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	background: linear-gradient(135deg, #2dce89, #219150) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 11px 18px !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 18px rgba(33, 145, 80, 0.28);
}

body.woocommerce-cart .khabshop-cart-update {
	background: #e8eef0 !important;
	color: var(--khab-checkout-ink) !important;
	box-shadow: none;
}

body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--khab-checkout-line);
	background: none;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	border-bottom: 0;
	padding-top: 14px;
	color: #219150;
	font-size: 1.1rem;
	font-weight: 800;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin-top: 16px;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	display: block !important;
	width: 100%;
	text-align: center;
	min-height: 48px;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.khabshop-cart {
		grid-template-columns: 1fr;
	}

	.khabshop-cart-sidebar {
		position: static;
	}
}

body.woocommerce-checkout .khabshop-container {
	width: min(1180px, calc(100% - 32px));
}

body.woocommerce-checkout .khabshop-main {
	padding-top: 20px;
	padding-bottom: 56px;
}

body.woocommerce-checkout form.checkout,
body.woocommerce-checkout .khabshop-checkout-grid,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	min-width: 0;
}

body.woocommerce-checkout .khabshop-checkout,
body.woocommerce-checkout .khabshop-checkout-sidebar,
body.woocommerce-checkout .khabshop-checkout-card,
body.woocommerce-checkout .khabshop-checkout-summary {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.woocommerce-checkout #payment {
	background: transparent !important;
	border-radius: 18px !important;
}

body.woocommerce-checkout #payment ul.payment_methods {
	padding: 0 !important;
	border: 0 !important;
	margin: 0 0 12px !important;
}

body.woocommerce-checkout #payment .form-row,
body.woocommerce-checkout #payment .form-row.place-order {
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
}

.khabshop-checkout-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 22px;
}

.khabshop-checkout-step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--khab-checkout-muted);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
}

.khabshop-checkout-step.is-current {
	background: var(--khab-checkout-accent);
	color: #fff;
}

.khabshop-checkout-step.is-muted {
	opacity: 0.7;
}

.khabshop-checkout-step__num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.18);
	font-size: 0.75rem;
}

.khabshop-checkout-step:not(.is-current) .khabshop-checkout-step__num {
	background: #e8eef0;
	color: var(--khab-checkout-ink);
}

.khabshop-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
	gap: 22px;
	align-items: start;
}

.khabshop-checkout-grid > .woocommerce-NoticeGroup,
.khabshop-checkout-grid > .woocommerce-error,
.khabshop-checkout-grid > .woocommerce-message,
.khabshop-checkout-grid > .woocommerce-info {
	grid-column: 1 / -1;
	float: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 0 4px;
}

.khabshop-checkout-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 108px;
}

.khabshop-checkout-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.07);
	padding: 22px 24px 24px;
}

.khabshop-checkout-card__title,
.khabshop-checkout-card h3 {
	margin: 0 0 18px;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--khab-checkout-ink);
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start;
	gap: 14px 16px;
	width: 100%;
}

body.woocommerce-checkout .woocommerce form .form-row {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100%;
	box-sizing: border-box;
}

/* Half-width pairs: name / family, state / city */
body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #shipping_first_name_field,
body.woocommerce-checkout #shipping_last_name_field,
body.woocommerce-checkout #shipping_state_field,
body.woocommerce-checkout #shipping_city_field,
body.woocommerce-checkout .khabshop-field-half {
	flex: 1 1 calc(50% - 8px) !important;
	width: calc(50% - 8px) !important;
	max-width: calc(50% - 8px) !important;
	min-width: 0 !important;
	float: none !important;
	clear: none !important;
	grid-column: auto !important;
}

body.woocommerce-checkout #billing_email_field {
	display: none !important;
}

body.woocommerce-checkout #billing_first_name_field { order: 1; }
body.woocommerce-checkout #billing_last_name_field { order: 2; }
body.woocommerce-checkout #billing_email_field { order: 3; }
body.woocommerce-checkout #billing_phone_field { order: 4; }
body.woocommerce-checkout #billing_state_field { order: 5; }
body.woocommerce-checkout #billing_city_field { order: 6; }
body.woocommerce-checkout #billing_address_1_field { order: 7; }
body.woocommerce-checkout #billing_postcode_field { order: 8; }
body.woocommerce-checkout #billing_country_field { order: 99; }

body.woocommerce-checkout #billing_email_field,
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_address_2_field,
body.woocommerce-checkout #billing_postcode_field,
body.woocommerce-checkout #billing_company_field,
body.woocommerce-checkout #shipping_address_1_field,
body.woocommerce-checkout #shipping_address_2_field,
body.woocommerce-checkout #shipping_postcode_field,
body.woocommerce-checkout #shipping_company_field,
body.woocommerce-checkout #order_comments_field,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #shipping_country_field,
body.woocommerce-checkout .khabshop-hidden-field {
	display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .select2-container,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .select2-container {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

body.woocommerce-checkout .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.86rem;
	font-weight: 600;
	color: #334155;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .select2-container .select2-selection--single {
	background: #f7f9fa !important;
	border: 1px solid var(--khab-checkout-line) !important;
	border-radius: 10px !important;
	min-height: 46px;
	box-shadow: none !important;
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
	min-height: 96px;
	padding: 12px 14px;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .select2-container--open .select2-selection--single {
	border-color: var(--khab-checkout-accent) !important;
	background: #fff !important;
}

body.woocommerce-checkout .select2-container {
	width: 100% !important;
}

#ship-to-different-address {
	margin: 18px 0 0;
	font-size: 0.95rem;
}

#ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
}

.khabshop-shipping-methods,
body.woocommerce-checkout ul#shipping_method,
body.woocommerce-checkout ul.woocommerce-shipping-methods {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.khabshop-shipping-method,
body.woocommerce-checkout ul#shipping_method li,
body.woocommerce-checkout .khabshop-shipping-methods li {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	text-indent: 0 !important;
}

.khabshop-shipping-method input.shipping_method,
body.woocommerce-checkout ul#shipping_method input.shipping_method,
body.woocommerce-checkout .khabshop-shipping-methods input.shipping_method {
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	margin: 0 !important;
	float: none !important;
}

.khabshop-shipping-method label,
body.woocommerce-checkout ul#shipping_method li label,
body.woocommerce-checkout .khabshop-shipping-methods li label {
	display: flex !important;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 !important;
	padding: 12px 14px !important;
	padding-inline-start: 40px !important;
	border: 1px solid var(--khab-checkout-line);
	border-radius: 12px;
	background: #f8fafb;
	cursor: pointer;
	box-sizing: border-box;
	text-indent: 0 !important;
	font-weight: 600;
	color: var(--khab-checkout-ink);
	line-height: 1.4;
}

.khabshop-shipping-method.is-selected label,
.khabshop-shipping-method:has(input:checked) label,
body.woocommerce-checkout ul#shipping_method li:has(input:checked) label {
	border-color: var(--khab-checkout-accent);
	background: #f3f8f6;
	box-shadow: 0 0 0 3px rgba(38, 84, 75, 0.12);
}

.khabshop-shipping-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	color: var(--khab-checkout-accent);
	flex: 0 0 auto;
	border: 1px solid var(--khab-checkout-line);
}

.khabshop-shipping-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.khabshop-shipping-name {
	font-weight: 700;
	color: var(--khab-checkout-ink);
	font-size: 0.92rem;
}

.khabshop-shipping-note {
	font-size: 0.8rem;
	color: var(--khab-checkout-muted);
}

.khabshop-shipping-cost {
	font-weight: 700;
	color: var(--khab-checkout-accent);
	white-space: nowrap;
	margin-inline-start: auto;
	font-size: 0.9rem;
}

.khabshop-shipping-free {
	background: #e7f8ee;
	color: #1f7a4d;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.8rem;
	display: inline-block;
}

.khabshop-shipping-empty,
.khabshop-shipping-pending {
	color: var(--khab-checkout-muted);
	margin: 0;
	font-size: 0.92rem;
}

.khabshop-shipping-package {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
}

.khabshop-checkout-shipping .khabshop-checkout-card__title {
	margin-bottom: 14px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border: 0;
	background: transparent;
	border-radius: 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--khab-checkout-line);
	background: none;
	font-weight: 500;
	vertical-align: top;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
	width: 58%;
	padding-inline-end: 10px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
	width: 42%;
	text-align: left;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table bdi,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .woocommerce-Price-amount {
	white-space: normal;
	overflow-wrap: anywhere;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation {
	margin: 6px 0 0;
	font-size: 0.82rem;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr:last-child th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr:last-child td {
	border-bottom-width: 2px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
	text-align: right;
	color: var(--khab-checkout-muted);
	font-weight: 600;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
	border-bottom: 0;
	padding-top: 14px;
	color: var(--khab-checkout-accent);
	font-size: 1.1rem;
	font-weight: 800;
}

.khabshop-coupon-ui {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	min-width: 0;
	max-width: 100%;
}

.khabshop-coupon-ui .input-text {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: #f7f9fa;
	border: 1px solid var(--khab-checkout-line);
	border-radius: 10px;
	min-height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
}

body.woocommerce-checkout .khabshop-coupon-apply {
	flex: 0 0 auto;
	border-radius: 10px !important;
	padding: 10px 16px !important;
	background: linear-gradient(135deg, #2dce89, #219150) !important;
	min-width: 72px;
	border: 0 !important;
	color: #fff !important;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

body.woocommerce-checkout .wc_payment_methods {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.woocommerce-checkout #payment.khabshop-checkout-card {
	padding: 14px 16px 16px;
}

body.woocommerce-checkout #payment .khabshop-checkout-card__title {
	margin: 0 0 10px;
	font-size: 0.95rem;
}

body.woocommerce-checkout .wc_payment_method {
	margin: 0;
	border: 1px solid var(--khab-checkout-line);
	border-radius: 8px;
	background: #f8fafb;
	overflow: hidden;
	position: relative;
}

body.woocommerce-checkout .wc_payment_method > input {
	position: absolute;
	inset-inline-start: 10px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	z-index: 1;
}

body.woocommerce-checkout .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	padding-inline-start: 30px;
	margin: 0;
	min-height: 36px;
	cursor: pointer;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--khab-checkout-ink);
	line-height: 1.2;
}

body.woocommerce-checkout .khabshop-gateway-icon {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

body.woocommerce-checkout .khabshop-gateway-icon img,
body.woocommerce-checkout .wc_payment_method > label img {
	max-height: 20px !important;
	width: auto !important;
	max-width: 56px;
	object-fit: contain;
	display: block;
}

body.woocommerce-checkout .khabshop-gateway-title {
	flex: 1;
	min-width: 0;
}

body.woocommerce-checkout .wc_payment_method:has(input:checked) {
	border-color: var(--khab-checkout-accent);
	background: #f3f8f6;
	box-shadow: 0 0 0 2px rgba(38, 84, 75, 0.12);
}

/* Compact gateways: hide long descriptions */
body.woocommerce-checkout .wc_payment_method .payment_box {
	display: none !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout button.button.alt,
body.woocommerce-checkout .button.alt {
	width: 100%;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #2dce89, #219150) !important;
	padding: 12px 16px !important;
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	min-height: 46px;
	border: 0 !important;
	color: #fff !important;
	box-shadow: 0 8px 18px rgba(33, 145, 80, 0.28);
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button.button.alt:hover,
body.woocommerce-checkout .khabshop-coupon-apply:hover {
	filter: brightness(1.04);
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 12px;
}

body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout form.woocommerce-form-login {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(18, 24, 32, 0.07);
	padding: 16px 20px;
	margin-bottom: 16px;
}

@media (max-width: 900px) {
	.khabshop-checkout-grid {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-checkout .khabshop-container {
		width: calc(100% - 24px);
		overflow-x: clip;
	}

	body.woocommerce-checkout .khabshop-checkout-card,
	body.woocommerce-checkout #order_review.khabshop-checkout-card {
		padding: 18px 14px 18px;
	}

	body.woocommerce-checkout .woocommerce-checkout-review-order-table {
		font-size: 0.88rem;
	}

	body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
	body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
		font-size: 1rem;
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-additional-fields__field-wrapper {
		display: flex !important;
		flex-direction: column;
	}

	.khabshop-checkout-sidebar {
		position: static;
	}

	body.woocommerce-checkout #billing_first_name_field,
	body.woocommerce-checkout #billing_last_name_field,
	body.woocommerce-checkout #billing_state_field,
	body.woocommerce-checkout #billing_city_field,
	body.woocommerce-checkout #shipping_first_name_field,
	body.woocommerce-checkout #shipping_last_name_field,
	body.woocommerce-checkout #shipping_state_field,
	body.woocommerce-checkout #shipping_city_field,
	body.woocommerce-checkout .khabshop-field-half,
	body.woocommerce-checkout .form-row-first,
	body.woocommerce-checkout .form-row-last {
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}



.woocommerce-tabs ul.tabs li.active a {
  background: #ffffff9c;
  padding: 10px !important;
}
