/**
 * File: assets/css/joom-exact.css
 * Theme: Joom
 * Author: Pawan Sharma (SiteExpert.in)
 * Package: Joom_Theme
 * Description: Contains highly specific CSS overrides for WooCommerce pages to match the theme's exact UI design.
 */

/* Joom Exact Typography & Sizing Match */

/*
 * ====================================================================
 * PLUGIN COMPATIBILITY FIXES
 * ====================================================================
 * Removed overly broad, global styles for `p, h1, h2, button, input, select`.
 * These caused conflicts with plugins. Theme-specific styles are now
 * applied using more specific classes in the main style.css file.
 * This file now only contains highly specific overrides for WooCommerce pages.
 */

/* Buttons - Joom Style */
.woocommerce button.button,
.woocommerce a.button {
	padding: 10px 20px;
	height: 44px;
	border-radius: 12px;
	line-height: 1.4;
	background: #111827;
	color: #fff;
	border: 1px solid #111827;
	text-decoration: none;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

/* Free Shipping Progress Bar */
.mj-free-shipping-bar-wrap {
	background: linear-gradient(to right, #ffffff, #f8fafc);
	border: 1px solid var(--border-color, #e2e8f0);
	border-radius: 20px;
	padding: 20px 24px;
	margin-bottom: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.03);
	width: 100%;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	transition: all 0.4s ease;
}
.mj-fs-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}
.mj-fs-icon {
	width: 46px;
	height: 46px;
	background: #fff5f5;
	color: var(--primary-color, #FA3434);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(250,52,52,0.15);
	transition: all 0.4s ease;
}
.mj-fs-text-content {
	flex: 1;
	text-align: left;
}
.mj-free-shipping-text {
	margin: 0 0 4px 0;
	font-size: 15px;
	color: var(--text-color, #0f172a);
	font-weight: 600;
	line-height: 1.4;
}
.mj-free-shipping-text strong {
	color: var(--primary-color, #FA3434);
	font-weight: 800;
	background: #fff5f5;
	padding: 2px 8px;
	border-radius: 6px;
	display: inline-block;
}
.mj-fs-subtext {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}
.mj-progress-bar-container {
	background: #e2e8f0;
	border-radius: 100px;
	height: 10px;
	width: 100%;
	position: relative;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.mj-progress-bar {
	background-color: var(--primary-color, #FA3434);
	background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent), linear-gradient(90deg, var(--primary-color, #FA3434) 0%, #ff6b6b 100%);
	background-size: 1rem 1rem, 100% 100%;
	height: 100%;
	border-radius: 100px;
	animation: progress-bar-stripes 1s linear infinite;
	transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	box-shadow: 0 2px 8px rgba(250,52,52,0.3);
}
@keyframes progress-bar-stripes {
	0% { background-position: 1rem 0, 0 0; }
	100% { background-position: 0 0, 0 0; }
}
.mj-progress-bar::after {
	content: '';
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	border-radius: 100px;
	animation: mj-shimmer 2s infinite linear;
	overflow: hidden;
}
.mj-progress-indicator {
	position: absolute;
	right: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	background: #ffffff;
	border: 2px solid var(--primary-color, #FA3434);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color, #FA3434);
	font-size: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	z-index: 2;
	transition: all 0.3s ease;
}

/* Success State (100% Reached) */
.mj-free-shipping-bar-wrap.mj-fs-success {
	border-color: #10b981;
	background: linear-gradient(to right, #ffffff, #f0fdf4);
}
.mj-fs-success .mj-fs-icon {
	background: #d1fae5;
	color: #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
	animation: mj-bounce 1s ease infinite alternate;
}
.mj-fs-success .mj-free-shipping-text strong {
	color: #10b981;
	background: #d1fae5;
}
.mj-fs-success .mj-progress-bar {
	background-color: #10b981;
	background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent), linear-gradient(90deg, #10b981 0%, #34d399 100%);
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.mj-fs-success .mj-progress-indicator {
	border-color: #10b981;
	color: #10b981;
}

/* Mobile Responsive Free Shipping Bar */
@media (max-width: 768px) {
	.mj-free-shipping-bar-wrap {
		padding: 16px;
		border-radius: 16px;
		margin-bottom: 20px;
	}
	.mj-fs-header {
		gap: 12px;
		margin-bottom: 14px;
	}
	.mj-fs-icon {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
	.mj-free-shipping-text {
		font-size: 13.5px;
	}
	.mj-free-shipping-text strong {
		padding: 2px 6px;
		border-radius: 4px;
	}
	.mj-fs-subtext {
		font-size: 12px;
	}
	.mj-progress-bar-container {
		height: 8px;
	}
	.mj-progress-indicator {
		width: 24px;
		height: 24px;
		right: -12px;
		font-size: 10px;
	}
}

@keyframes mj-shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}
@keyframes mj-bounce {
	0% { transform: translateY(0); }
	100% { transform: translateY(-4px); }
}

/* =================================================
	PREMIUM CART UI (JOOM STYLE)
	================================================= */
html body.woocommerce-cart .woocommerce.woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 0px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 16px;
}
html body.woocommerce-cart .woocommerce.woocommerce::after,
html body.woocommerce-cart .woocommerce.woocommerce::before {
	display: none;
}

html body.woocommerce-cart .woocommerce .woocommerce-notices-wrapper {
	width: 100%;
	flex: 0 0 100%;
	margin-bottom: -10px;
}

html body.woocommerce-cart .woocommerce .woocommerce-cart-form {
	flex: 1 1 60%;
	min-width: 0;
}
html body.woocommerce-cart .woocommerce .cart-collaterals {
	flex: 1 1 35%;
	width: 100%;
	margin: 0;
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 120px !important;
	align-self: flex-start;
}

/* =================================================
	MODULAR JOOM CART LAYOUT (DIV-BASED)
	================================================= */
body.woocommerce-cart .woocommerce .joom-cart-layout.joom-cart-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
	width: 100%;
}

body.woocommerce-cart .woocommerce .joom-cart-header.joom-cart-header,
html body .woosw-list .joom-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #fff;
	border-radius: 16px;
	margin-bottom: 24px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}

/* Polish for Select All Label */
html body .woosw-list .joom-cart-header .label-text {
	font-weight: 700;
	color: #0f172a;
	font-size: 13px;
}

body.woocommerce-cart .woocommerce .joom-cart-item-card.joom-cart-item-card,
html body .woosw-list.woosw-list tr.joom-cart-item-card {
	display: grid;
	grid-template-columns: auto 96px 1fr;
	gap: 16px;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	align-items: center;
}

body.woocommerce-cart .woocommerce .joom-cart-item-card.joom-cart-item-card:hover,
html body .woosw-list.woosw-list tr.joom-cart-item-card:hover {
	border-color: #e2e8f0;
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* Vertically Center Checkbox in Wishlist Row */
html body .woosw-list.woosw-list .joom-item-checkbox {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	padding-right: 10px !important;
	height: auto;
	align-self: center;
}

/* Modern Checkbox Component */
body .joom-custom-checkbox.joom-custom-checkbox {
	display: inline-flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	user-select: none;
}
body .joom-custom-checkbox input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
body .joom-custom-checkbox .checkmark {
	height: 20px;
	width: 20px;
	background-color: #f8fafc;
	border: 2px solid #cbd5e1;
	border-radius: 6px;
	display: inline-block;
	position: relative;
	transition: all 0.2s ease;
}
body .joom-custom-checkbox:hover input ~ .checkmark {
	border-color: var(--primary-color, #FA3434);
}
body .joom-custom-checkbox input:checked ~ .checkmark {
	background-color: var(--primary-color, #FA3434);
	border-color: var(--primary-color, #FA3434);
}
body .joom-custom-checkbox .checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 6px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
body .joom-custom-checkbox input:checked ~ .checkmark:after {
	display: block;
}
body .joom-custom-checkbox .label-text {
	margin-left: 10px;
}

/* Cart Item Internals */
body.woocommerce-cart .joom-cart-item-card .joom-item-image img,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-image img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid #f8fafc;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-details,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-width: 0;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-name-row,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-name-row {
	margin-bottom: 6px;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-name,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-name {
	color: #0f172a;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
	transition: color 0.2s ease;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-name:hover,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-name:hover {
	color: var(--primary-color, #FA3434);
}

html body.woocommerce-cart .joom-cart-item-card dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 10px 0;
	font-size: 12px;
	color: var(--light-text-color, #64748b);
}
html body.woocommerce-cart .joom-cart-item-card dl.variation dt,
html body.woocommerce-cart .joom-cart-item-card dl.variation p {
	margin: 0;
	font-weight: 600;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-delivery,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-delivery {
	font-size: 12px;
	color: #059669;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 0px;
	padding: 3px 8px;
	background: #ecfdf5;
	border-radius: 8px;
	width: fit-content;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-delivery.out-of-stock,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-delivery.out-of-stock {
	color: #dc2626;
	background: #fef2f2;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-bottom-row,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0px;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-price,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-price {
	color: #0f172a;
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
	flex-wrap: nowrap;
	white-space: nowrap;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-price .amount,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-price .amount {
	color: var(--primary-color, #FA3434);
}
body.woocommerce-cart .joom-cart-item-card .joom-item-price ins,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-price ins {
	text-decoration: none;
	display: inline-block;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-price del,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-price del {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	display: inline-block;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-actions,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-grow: 1;
	justify-content: flex-end;
	flex-wrap: wrap;
}

html body .woosw-list.woosw-list .joom-item-actions > * {
	width: auto;
}

/* Icon Spacing Polish */
html body .woosw-list .woosw-item--add .button i {
	display: none !important;
}

/* Wishlist Specific: Hide MRP only */
html body .woosw-list.woosw-list .joom-item-price del {
	display: none !important;
}

/* QTY Container Overrides inside Joom UI */
body .joom-qty-control.joom-qty-control {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	height: 50px;
	overflow: hidden;
	padding: 0;
}
body .joom-qty-control .joom-qty-btn {
	width: 32px;
	height: 100%;
	background: transparent;
	border: none;
	font-size: 16px;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
}
body .joom-qty-control .joom-qty-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}
body .joom-qty-control .joom-qty-input {
	width: 36px;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	padding: 0;
	margin: 0;
	color: #0f172a;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none;
}

/* Hide default HTML number arrows */
body .joom-qty-control .joom-qty-input::-webkit-outer-spin-button,
body .joom-qty-control .joom-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

body.woocommerce-cart .joom-cart-item-card .joom-qty-control {
	margin-left: auto;
}

body.woocommerce-cart .joom-cart-item-card .joom-item-remove,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%; /* Consistent Circle UI for Cart Remove */
	background: #f1f5f9;
	color: #94a3b8;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s ease;
}
body.woocommerce-cart .joom-cart-item-card .joom-item-remove:hover,
html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-remove:hover {
	background: #fee2e2;
	color: #ef4444;
	transform: rotate(9deg) scale(1.05);
}

body .joom-btn-text.joom-btn-text {
	background: transparent;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 10px;
	background: #f8fafc;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s ease;
}
body .joom-btn-text.joom-btn-text:hover:not(:disabled) {
	color: #ef4444;
	background: #fff5f5;
	border-color: #fee2e2;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}
body .joom-btn-text.joom-btn-text:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

body.woocommerce-cart .joom-cart-sidebar.joom-cart-sidebar {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 120px !important;
	align-self: start;
	height: max-content;
	z-index: 10;
}

body.woocommerce-cart .joom-summary-card.joom-summary-card {
	background: #fff;
	border-radius: 24px;
	padding: 10px;
	border: 1px solid #f1f5f9;
	box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

body.woocommerce-cart .joom-summary-title.joom-summary-title {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 24px 0;
	padding-bottom: 16px;
	padding-left: 24px;
	border-bottom: 1px dashed #e2e8f0;
}

/* Restore Coupon Layout properly now */
html body.woocommerce-cart .woocommerce .coupon {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	max-width: 380px;
}
html body.woocommerce-cart .woocommerce .coupon .input-text {
	flex: 1;
	margin: 0;
	height: 44px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 0 16px;
	font-size: 14px;
	background: #f8fafc;
}
html body.woocommerce-cart .woocommerce .coupon .button {
	width: auto;
	margin: 0;
	height: 44px;
	border-radius: 12px;
	padding: 0 24px;
	background: #0f172a;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	transition: all 0.3s ease;
}
html body.woocommerce-cart .woocommerce .coupon .button:hover {
	background: #FA3434;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(250,52,52,0.2);
}

/* Hide Update Cart Button */
html body.woocommerce-cart .woocommerce button[name="update_cart"] {
	display: none;
}

/* Cart Totals Box */
html body.woocommerce-cart .woocommerce .cart_totals {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.04);
	border: 1px solid #f1f5f9;
	width: 100%;
	float: none;
}
html body.woocommerce-cart .woocommerce .cart_totals h2 {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 24px 0;
	padding-bottom: 16px;
	padding-left: 12px;
	border-bottom: 1px dashed #e2e8f0;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table {
	border: none;
	margin: 0 0 24px 0;
	width: 100%;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table th,
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table td {
	border: none;
	padding: 12px 0;
	background: transparent;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table th {
	font-weight: 700;
	color: #000;
	font-size: 14px;
	text-align: left;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table td {
	text-align: right;
	font-weight: 700;
	color: #0f172a;
	font-size: 15px;
}

/* Keep Shipping Text on a Single Line */
html body.woocommerce-cart ul#shipping_method li label,
html body.woocommerce-checkout ul#shipping_method li label {
	white-space: nowrap !important;
}

html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th,
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td {
	padding-top: 24px;
	border-top: 1px dashed #e2e8f0;
	white-space: nowrap;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th {
	font-size: 16px;
	color: #0f172a;
	font-weight: 800;
}
html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td strong {
	font-size: 22px;
	color: var(--primary-color, #FA3434);
	font-weight: 900;
}

html body.woocommerce-cart .woocommerce .woocommerce-shipping-destination {
	margin-top: 8px;
	font-size: 13px;
	color: var(--light-text-color, #64748b);
	font-weight: 500;
	text-align: right;
	display: block;
}

html body.woocommerce-cart .woocommerce .shipping-calculator-button {
	color: var(--primary-color, #FA3434);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	display: inline-block;
	margin-top: 6px;
}

/* Checkout Button */
html body.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}
html body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	background: var(--primary-color, #FA3434);
	color: #fff;
	margin: 0;
	transition: all 0.3s ease;
	box-shadow: 0 8px 24px rgba(250,52,52,0.25);
}
html body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: #e62e2e;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(250,52,52,0.35);
}

/* =================================================
	MOBILE RESPONSIVE CART
	================================================= */
@media (max-width: 1024px) {
	body.woocommerce-cart .woocommerce .joom-cart-layout.joom-cart-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	body.woocommerce-cart .joom-cart-sidebar.joom-cart-sidebar {
		position: static;
	}
	html body.woocommerce-cart .woocommerce .cart-collaterals {
		position: static !important;
	}
}

@media (max-width: 768px) {
	body.woocommerce-cart .woocommerce .joom-cart-item-card.joom-cart-item-card,
	html body .woosw-list.woosw-list tr.joom-cart-item-card {
		grid-template-columns: auto 80px 1fr;
		gap: 14px;
		padding: 16px;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-checkbox,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-checkbox {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		margin-top: 0;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-image,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-image {
		grid-column: 2;
		grid-row: 1;
		width: 80px;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-image img,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-image img {
		width: 80px;
		height: 80px;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-details,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-details {
		grid-column: 3;
		grid-row: 1;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-bottom-row,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-bottom-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-actions,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-actions {
		flex-wrap: wrap;
		width: 100%;
		gap: 12px;
	justify-content: flex-end;
		align-items: center;
	}
	html body .woosw-list.woosw-list .joom-cart-item-card .woosw-item--add {
	flex: 0 0 auto;
		margin-right: 0;
		min-width: 0;
	}
	html body .woosw-list.woosw-list .joom-cart-item-card .woosw-item--add .button {
	width: auto;
	min-width: 130px;
	padding: 0 16px;
		font-size: 13px;
		height: 40px;
		white-space: normal;
		line-height: 1.2;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-qty-control {
			flex: 0 0 auto;
			margin-left: auto;
	}
	body.woocommerce-cart .joom-cart-item-card .joom-item-name,
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-name {
		font-size: 14px;
	}
	html body.woocommerce-cart .woocommerce .coupon {
		flex-direction: row;
		gap: 8px;
	}
	html body.woocommerce-cart .woocommerce .coupon .input-text {
		width: auto;
		flex: 1;
		height: 38px;
		min-height: 38px;
	}
	html body.woocommerce-cart .woocommerce .coupon .button {
		width: auto;
		flex: 0 0 auto;
		height: 38px;
		min-height: 38px;
		padding: 0 16px;
	}
	html body.woocommerce-cart .woocommerce .cart_totals {
		padding: 16px;
		border-radius: 20px;
	}

	/* Premium Sticky Checkout for Mobile Cart */
	html body.woocommerce-cart .woocommerce.woocommerce:not(:has(.cart-empty.woocommerce-info)) {
		padding-bottom: 110px;
	}
	html body.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
		position: fixed;
		bottom: 16px;
		left: 16px;
		right: 16px;
		width: auto;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: saturate(180%) blur(20px);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		padding: 12px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
		z-index: 9999;
		border: 1px solid rgba(0, 0, 0, 0.04);
		border-radius: 12px;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	html body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
		width: 50%;
		margin: 0;
		height: 48px;
		border-radius: 12px;
		font-size: 15px;
		font-weight: 800;
		letter-spacing: -0.2px;
		box-shadow: 0 4px 14px rgba(250, 52, 52, 0.25);
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total {
		position: fixed;
		bottom: 28px;
		left: 36px;
		z-index: 10000;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		height: 48px;
		border: none;
		padding: 0;
		pointer-events: none;
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th {
		display: block;
		font-size: 16px;
		font-weight: 700;
		color: #0f172a;
		margin-right: 8px;
		padding: 0;
		border: none;
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td {
		padding: 0;
		border: none;
		margin-top: 0;
		line-height: 1;
		display: flex;
		align-items: center;
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td::before {
		display: none !important;
		content: none !important;
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td strong {
		font-size: 20px;
		font-weight: 900;
		letter-spacing: -0.5px;
		color: var(--primary-color, #FA3434);
	}
	html body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td small {
		display: none;
	}
}

/* Empty Cart Premium UI Match */
html body.woocommerce-cart .woocommerce.woocommerce:has(.cart-empty.woocommerce-info) {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid var(--border-color, #f1f5f9);
	box-shadow: 0 10px 40px rgba(0,0,0,0.03);
	max-width: 600px;
	width: 100%;
	margin: 60px auto;
	border-radius: 24px;
	padding: 60px 20px;
}

html body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info,
html body.woocommerce-cart .woocommerce .return-to-shop {
	text-align: center;
	background: transparent;
	border: none;
	box-shadow: none;
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}

html body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
	font-size: 18px;
	color: var(--text-color, #0f172a);
	font-weight: 800;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 30px;
}
html body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
	position: static;
	content: "\f07a";
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif;
	font-weight: 900;
	display: block;
	font-size: 64px;
	color: var(--border-color, #e2e8f0);
	margin: 0 auto 24px auto;
	line-height: 1;
	background: none;
	text-align: center;
}
html body.woocommerce-cart .woocommerce .return-to-shop .button.wc-backward {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 700;
	background-color: var(--primary-color, #FA3434);
	color: var(--btn-text-color, #ffffff);
	transition: all 0.3s ease;
	border: none;
	margin: 0;
}
html body.woocommerce-cart .woocommerce .return-to-shop .button.wc-backward:hover {
	background-color: var(--btn-hover-bg-color, #e62e2e);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(250,52,52,0.2);
}

/* Mobile Responsive For Empty Cart */
@media (max-width: 768px) {
	html body.woocommerce-cart .woocommerce.woocommerce:has(.cart-empty.woocommerce-info) {
		margin: 30px auto;
		padding: 40px 20px;
		border-radius: 20px;
	}
	html body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
		font-size: 16px;
		margin-bottom: 24px;
	}
	html body.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
		font-size: 50px;
		margin-bottom: 16px;
	}
}


/* Desktop & Tablet Specific Fixes for Wishlist Buttons */
@media (min-width: 769px) { /* Wishlist page UI full width fix for desktop & tablet */
	html body .woosw-list.woosw-list .joom-cart-item-card .joom-item-actions {
		display: flex !important;
		gap: 16px !important; /* Balanced gap to prevent right-side overflow */
		justify-content: flex-end !important;
		flex-wrap: wrap; /* Tight screens par wrap hone dega taaki layout na toote */
		align-items: center !important;
	}
	html body .woosw-list.woosw-list .joom-item-actions > * {
		width: auto !important; /* Buttons ko stretching se rokne ke liye */
	}
}

/* Product Cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	line-height: 1.4;
}

/* Small Text */
small,
.small-text {
	font-size: 12px;
}

/* Links */
/* Product Page Specifics */
.product-title,
.single-product .product_title {
	line-height: 1.2;
}

/* Exact Joom Price UI Style Reproduction - Professional Refinement */
.joom-exact-ui-repro {
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: space-between;
	padding: 20px 20px;
	border: 1px solid #f1f5f9;
	background-color: #ffffff;
	border-radius: 24px;
	flex-wrap: wrap;
	box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.joom-price-section {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 20px;
}

.joom-price-left-box {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 0;
}

.joom-price-right-box {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.single-product .joom-lightning-bolt {
	color: #ff4747;
	font-size: 24px;
	margin-right: 8px;
	line-height: 1;
	display: inline-block;
}

body.single-product .joom-price-bulk-row {
	display: flex;
	align-items: center;
	margin-bottom: 2px;
}

body.single-product .joom-bulk-price-display,
body.single-product .joom-bulk-price-display *,
body.single-product .joom-bulk-price-display .woocommerce-Price-amount,
body.single-product .joom-bulk-price-display bdi {
	color: var(--sale-price-color, #ff4747) !important;
	font-size: 28px !important;
	line-height: 1 !important;
	letter-spacing: -1px !important;
}

body.single-product .joom-bulk-order-text {
	font-size: 15px;
	color: #0f172a;
	font-weight: 600;
	margin-bottom: 4px;
	line-height: 1.2;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
}

body.single-product .joom-selling-bolt {
	color: #ff4747;
	font-size: 14px;
	margin-right: 6px;
}

body.single-product .joom-price-wrapper {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

body.single-product .joom-price-selling-block,
body.single-product .joom-price-regular-block {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

body.single-product .joom-tall-separator {
	width: 1px;
	background-color: #d1d5db;
	margin: 6px 0;
}

/* Updated Regular Price to match Selling Price weight and size */
.joom-regular-price-display,
.joom-regular-price-display *,
.joom-regular-price-display .woocommerce-Price-amount,
.joom-regular-price-display bdi {
	color: var(--regular-price-color, #000000) !important;
	font-size: 24px !important;
	line-height: 1 !important;
	letter-spacing: -1px !important;
	text-decoration: line-through !important;
}

body.single-product .joom-regular-label-text {
	font-size: 15px;
	color: #000000;
	font-weight: 500;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hide WooCommerce default injected variation price (handled via JS to keep Premium UI intact) */
body.single-product .woocommerce-variation-price {
	display: none !important;
}

body.single-product .joom-exact-ui-repro .joom-select-badge {
	background: #ecfdf5;
	padding: 6px 10px;
	border-radius: 12px;
	border: 1px solid #d1fae5;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	margin-top: 0;
}

body.single-product .joom-exact-ui-repro .joom-select-text {
	font-weight: 800;
	font-size: 12px;
	color: #000;
}

body.single-product .joom-exact-ui-repro .joom-select-sub {
	color: #ff4747;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
}

body.single-product .joom-badge-arrow {
	color: #999;
	font-size: 10px;
	margin-left: 2px;
}

body.single-product .joom-select-badge-link {
	text-decoration: none;
	display: inline-block;
	flex-shrink: 0;
}

body.single-product .joom-select-badge-link:hover .joom-select-badge {
	background: #e8eaed;
	transition: background 0.2s ease;
}

body.single-product .joom-exact-ui-repro .joom-button-content {
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Professional Add to Cart Button Match */
html body.single-product .joom-exact-ui-repro button.single_add_to_cart_button {
	background-color: var(--add-to-cart-bg, #FF4747);
	border-radius: 12px;
	padding: 12px 30px;
	font-size: 17px;
	font-weight: 700;
	height: 50px;
	width: 100%;
	min-width: 160px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	border: none;
	transition: all 0.3s ease;
	color: var(--btn-text-color, #ffffff);
}
html body.single-product .joom-exact-ui-repro button.single_add_to_cart_button:hover {
	background-color: var(--add-to-cart-hover, #e63939);
	transform: translateY(-2px);
}

/* Override WooCommerce default purple (#7f54b3) for disabled buttons */
html body .woocommerce div.product form.cart .button.disabled,
html body .woocommerce div.product form.cart .button:disabled,
html body .woocommerce div.product form.cart .button:disabled[disabled],
html body.single-product .joom-exact-ui-repro button.single_add_to_cart_button.disabled,
html body.single-product .joom-exact-ui-repro button.single_add_to_cart_button:disabled,
html body.single-product .joom-exact-ui-repro button.single_add_to_cart_button:disabled[disabled] {
	background-color: var(--add-to-cart-bg, #0f172a) !important;
	color: var(--btn-text-color, #ffffff) !important;
	opacity: 0.65 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Quantity Container - Desktop */
body.single-product .joom-exact-ui-repro .joom-qty-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 50px;
	width: 100%;
	min-width: unset;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background-color: #f8fafc;
	padding: 0 4px;
	overflow: hidden;
	box-sizing: border-box;
}

body.single-product .joom-exact-ui-repro .joom-qty-btn {
	background: none;
	border: none;
	font-size: 20px;
	font-weight: 500;
	color: #0f172a;
	cursor: pointer;
	width: 38px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	padding: 0;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

body.single-product .joom-exact-ui-repro .joom-qty-btn:hover {
	color: #FF4747;
	background: #f1f5f9;
	border-radius: 12px;
}

body.single-product .joom-exact-ui-repro .joom-qty-input {
	width: 32px;
	flex-grow: 1;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	padding: 0;
	margin: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.joom-exact-ui-repro .joom-qty-input::-webkit-outer-spin-button,
.joom-exact-ui-repro .joom-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Price Container - Desktop */
body.single-product .joom-price-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-align: left;
	position: static;
}

body.single-product .joom-exact-ui-repro .joom-button-content form.cart {
	width: 100%;
	margin: 0;
}

body.single-product .joom-exact-ui-repro .joom-live-viewing-wrapper {
	flex-basis: 100%;
	display: flex;
	justify-content: flex-start;
	margin-top: -12px;
}

body.single-product .joom-exact-ui-repro .joom-live-viewing {
	flex-basis: auto;
	margin-top: 0;
	width: fit-content;
}

@media (max-width: 1264px) {
	html body.single-product .joom-exact-ui-repro {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 15px;
		padding: 15px 12px;
		width: 100%;
		margin: 0;
		box-sizing: border-box;
		text-align: center;
	}

	html body.single-product .joom-exact-ui-repro .joom-price-container {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0;
		margin-bottom: 0;
		width: 100%;
		position: static;
		padding-bottom: 0;
	}

	html body.single-product .joom-exact-ui-repro .joom-price-left-box {
		flex: 0 0 auto;
		width: 100%;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	html body.single-product .joom-exact-ui-repro .joom-price-divider,
	html body.single-product .joom-exact-ui-repro .joom-price-right-box {
		display: none;
	}

	html body.single-product .joom-exact-ui-repro .joom-price-bulk-row {
		margin-bottom: 8px;
		justify-content: center;
	}

	html body.single-product .joom-exact-ui-repro .joom-bulk-order-text {
		justify-content: center;
	}

	/* Smaller font for mobile */
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display *,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display .woocommerce-Price-amount,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display bdi,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display *,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display .woocommerce-Price-amount,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display bdi {
		font-size: 32px !important;
	}

	html body.single-product .joom-exact-ui-repro .joom-price-wrapper {
		justify-content: center;
	}

	html body.single-product .joom-exact-ui-repro .joom-bulk-order-text,
	html body.single-product .joom-exact-ui-repro .joom-regular-label-text {
		font-size: 14px;
		font-weight: 500;
	}

	html body.single-product .joom-exact-ui-repro .joom-lightning-bolt {
		font-size: 24px;
		margin-right: 6px;
	}

	html body.single-product .joom-exact-ui-repro .joom-select-badge {
		background: #ecfdf5;
		padding: 6px 10px;
		border-radius: 12px;
		border: 1px solid #d1fae5;
		box-sizing: border-box;
		margin: 0 auto;
		display: inline-flex;
		justify-content: center;
	}

	html body.single-product .joom-exact-ui-repro .joom-select-text,
	html body.single-product .joom-exact-ui-repro .joom-select-sub {
		font-size: 14px;
	}

	html body.single-product .joom-exact-ui-repro .joom-button-content {
		width: 100%;
		margin: -64px auto -64px;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 0;
		box-sizing: border-box;
		height: auto;
		flex-wrap: wrap;
	}

	html body.single-product .joom-exact-ui-repro .joom-button-content form.cart {
		flex: none;
		width: calc(60% - 6px);
		margin: 0;
	}

	html body.single-product .joom-exact-ui-repro .joom-button-content .stock {
		order: 3;
		margin: 12px auto 0;
	}

	html body.single-product .joom-exact-ui-repro .single_add_to_cart_button {
		width: 100%;
		font-size: 16px;
		max-width: none;
	}

	html body.single-product .joom-exact-ui-repro .joom-qty-container {
		width: calc(40% - 6px);
		flex: none;
		height: 50px;
		margin: 0;
	}

	body.single-product .joom-exact-ui-repro .joom-live-viewing-wrapper {
		justify-content: center;
		margin-top: -0px;
	}

}

/* Base Responsive Fixes for All Devices */
@media (max-width: 480px) {
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display *,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display .woocommerce-Price-amount,
	html body.single-product .joom-exact-ui-repro .joom-bulk-price-display bdi,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display *,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display .woocommerce-Price-amount,
	html body.single-product .joom-exact-ui-repro .joom-regular-price-display bdi {
		font-size: 28px !important;
	}

	html body.single-product .joom-exact-ui-repro .single_add_to_cart_button {
		font-size: 14px;
		padding: 10px 15px;
	}

	html body.single-product .joom-exact-ui-repro .joom-qty-btn {
		width: 28px;
	}

}


/* PhotoSwipe Custom Overrides */
.pswp__button--share {
	display: block !important;
}

.pswp__share-modal {
	z-index: 1600 !important;
}

.product-price,
.woocommerce div.product p.price {
	font-size: 15px;
	font-weight: 700;
}

/* Review Stars */
.star-rating {
	font-size: 14px;
}

/* Breadcrumb */
.woocommerce-breadcrumb,
.breadcrumb {
	font-size: 12px;
}

/* Product Meta */
.product_meta {
	font-size: 12px;
}

/* Tabs */
.woocommerce-tabs ul.tabs li a {
	font-size: 14px;
	font-weight: 400;
}

/* =================================================
	ADDITIONAL INFORMATION TABLE FIX (Horizontal Layout)
	================================================= */
html body.woocommerce div.product table.shop_attributes,
html body.woocommerce div.product table.woocommerce-product-attributes {
	display: table;
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--border-color, #e2e8f0);
	border-radius: 8px;
	overflow: hidden;
}

html body.woocommerce div.product table.shop_attributes tr,
html body.woocommerce div.product table.woocommerce-product-attributes tr {
	display: table-row;
	border-bottom: 1px solid var(--border-color, #e2e8f0);
}

html body.woocommerce div.product table.shop_attributes th,
html body.woocommerce div.product table.shop_attributes td {
	display: table-cell;
	padding: 12px 16px;
	vertical-align: middle;
	text-align: left;
}

html body.woocommerce div.product table.shop_attributes th {
	width: 35%;
	font-weight: 700;
	color: var(--text-color, #0f172a);
	background-color: var(--bg-color, #f8fafc);
	border-right: 1px solid var(--border-color, #e2e8f0);
}

html body.woocommerce div.product table.shop_attributes td p {
	margin: 0;
}

/* =================================================
	CHECKOUT PAGE - SIMPLE & PREMIUM UI (APP STYLE)
	================================================= */
html body.woocommerce-checkout {
	background: #f4f7f9;
	counter-reset: checkout-steps;
}

html body.woocommerce-checkout .woocommerce {
	max-width: 1300px;
	margin: 40px auto;
	padding: 0 20px;
}

/* Notice & Coupon Form Alerts */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 20px !important;
}

/* Checkout Coupon Form Inline Layout */
html body.woocommerce-checkout .woocommerce form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.02);
	align-items: center;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon > p:first-child {
	width: 100%;
	margin-bottom: 4px;
	font-weight: 600;
	color: #475569;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row {
	margin: 0 !important;
	padding: 0 !important;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-first {
	flex: 1 !important;
	width: auto !important;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-last {
	flex: 0 0 auto !important;
	width: auto !important;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon button.button {
	height: 52px;
	padding: 0 32px;
	background: #0f172a;
	color: #fff;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.3s ease;
	margin: 0;
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon button.button:hover {
	background: var(--primary-color, #FA3434);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(250, 52, 52, 0.2);
}
html body.woocommerce-checkout .woocommerce form.checkout_coupon .clear {
	display: none;
}

html body.woocommerce-checkout .woocommerce-info,
html body.woocommerce-checkout .woocommerce-error,
html body.woocommerce-checkout .woocommerce-message {
	border: 1px solid #e2e8f0;
	border-left: 4px solid var(--primary-color, #FA3434);
	background-color: #ffffff;
	padding: 18px 24px;
	border-radius: 16px;
	color: #0f172a;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
	display: flex;
	align-items: center;
	font-size: 14px;
	gap: 12px;
	font-weight: 500;
}

html body.woocommerce-checkout .woocommerce-info::before,
html body.woocommerce-checkout .woocommerce-error::before,
html body.woocommerce-checkout .woocommerce-message::before {
	display: none;
}

html body.woocommerce-checkout .woocommerce-info a,
html body.woocommerce-checkout .woocommerce-error a,
html body.woocommerce-checkout .woocommerce-message a {
	color: var(--primary-color, #FA3434);
	font-weight: 700;
	text-decoration: none;
}

/* Main Layout - Grid replacing messy floats */
html body.woocommerce-checkout .woocommerce-checkout {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	grid-template-rows: max-content 1fr;
	grid-template-areas:
		"details heading"
		"details review";
	gap: 0 40px;
	align-items: start;
}

html body.woocommerce-checkout #customer_details {
	grid-area: details;
	width: 100%;
	margin: 0;
	float: none;
	display: flex;
	flex-direction: column;
}

html body.woocommerce-checkout #order_review_heading {
	grid-area: heading;
	width: 100%;
	margin: 0 0 20px 0;
	float: none;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 15px;
	font-size: 24px;
	font-weight: 900;
	color: #0f172a;
	letter-spacing: -0.5px;
}

html body.woocommerce-checkout #order_review_heading::before {
	counter-increment: checkout-steps;
	content: counter(checkout-steps);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #0f172a;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	margin-right: 15px;
	vertical-align: middle;
}

html body.woocommerce-checkout #order_review {
	grid-area: review;
	width: 100%;
	margin: 0;
	float: none;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 24px;
	padding: 30px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.04);
	position: sticky;
	top: 100px;
}

html body.woocommerce-checkout .woocommerce-checkout::after {
	display: none;
}

/* Billing & Additional Fields Boxes */
html body.woocommerce-checkout .woocommerce-billing-fields,
html body.woocommerce-checkout .woocommerce-shipping-fields,
html body.woocommerce-checkout .woocommerce-additional-fields {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	padding: 32px;
	margin-bottom: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.02);
	width: 100%;
	box-sizing: border-box;
}

html body.woocommerce-checkout .woocommerce-billing-fields h3,
html body.woocommerce-checkout .woocommerce-shipping-fields #ship-to-different-address,
html body.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: 22px;
	font-weight: 900;
	color: #0f172a;
	margin-bottom: 24px;
	border: none;
	padding: 0;
	background: transparent;
	box-shadow: none;
	letter-spacing: -0.5px;
}

html body.woocommerce-checkout .woocommerce-billing-fields h3::before,
html body.woocommerce-checkout .woocommerce-additional-fields h3::before {
	counter-increment: checkout-steps;
	content: counter(checkout-steps);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #0f172a;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	margin-right: 15px;
	vertical-align: middle;
}

html body.woocommerce-checkout .woocommerce-shipping-fields h3 label {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	width: 100%;
}

html body.woocommerce-checkout .woocommerce-shipping-fields h3 input[type="checkbox"] {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--primary-color, #FA3434);
	cursor: pointer;
	position: static;
}

html body.woocommerce-checkout .shipping_address {
	margin-top: 16px;
	margin-bottom: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* Review Order Table */
html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
	border: none;
	border-radius: 0;
	margin-bottom: 24px;
	width: 100%;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th {
	color: var(--light-text-color, #64748b);
	font-size: 13px;
	white-space: nowrap;
	word-break: keep-all;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px dashed #e2e8f0;
	padding: 0 0 12px 0;
	font-weight: 700;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,
html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
	text-align: right;
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
	border-top: none;
	background: transparent;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .product-name,
html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th:first-child,
html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th {
	text-align: left;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name {
	font-weight: 600;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.4;
	padding-right: 16px;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total {
	font-weight: 700;
	color: #0f172a;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th {
	font-weight: 700;
	color: #000;
	font-size: 14px;
}

.woocommerce-checkout-review-order-table .cart-subtotal th {
	white-space: nowrap;
}

/* Shipping Methods in Review Table */
html body.woocommerce-checkout .woocommerce-shipping-totals {
	display: table-row;
	visibility: visible;
	opacity: 1;
}

html body.woocommerce-checkout .woocommerce-shipping-totals th {
	vertical-align: top;
	padding-top: 16px;
}
html body.woocommerce-checkout .woocommerce-shipping-totals td {
	padding-top: 16px;
	text-align: left;
}
html body.woocommerce-checkout .woocommerce-shipping-methods,
html body.woocommerce-checkout ul#shipping_method {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	width: 100%;
}
html body.woocommerce-checkout .woocommerce-shipping-methods li,
html body.woocommerce-checkout ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	justify-content: flex-start;
	width: 100%;
	text-align: left;
}
html body.woocommerce-checkout .woocommerce-shipping-methods li input[type="radio"],
html body.woocommerce-checkout ul#shipping_method li input[type="radio"] {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--primary-color, #FA3434);
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
	opacity: 1;
	display: inline-block;
	position: static;
	visibility: visible;
	pointer-events: auto;
}
html body.woocommerce-checkout .woocommerce-shipping-methods li label,
html body.woocommerce-checkout ul#shipping_method li label {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
	display: inline-block;
	text-align: left;
}
html body.woocommerce-checkout .woocommerce-shipping-destination,
html body.woocommerce-checkout .woocommerce-shipping-totals p {
	display: block;
	margin-top: 12px;
	font-size: 13.5px;
	color: #0f172a;
	line-height: 1.5;
	background: #f8fafc;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	text-align: left;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total th,
html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total td {
	border-top: 2px solid #0f172a;
	border-bottom: none;
	padding-top: 24px;
	padding-bottom: 0;
	white-space: nowrap;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total th {
	font-size: 20px;
	color: #0f172a;
	font-weight: 800;
}

html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total td strong {
	font-size: 24px;
	color: var(--primary-color, #FA3434);
}

/* Payment Methods */
html body.woocommerce-checkout #payment {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-top: 24px;
}

html body.woocommerce-checkout #payment ul.payment_methods {
	border: none;
	padding: 0;
	margin: 0 0 24px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

html body.woocommerce-checkout #payment ul.payment_methods li {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px 16px 16px 46px;
	margin: 0;
	transition: all 0.2s ease;
	position: relative;
}

html body.woocommerce-checkout #payment ul.payment_methods li:hover,
html body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--primary-color, #FA3434);
	background: #fffafa;
	box-shadow: 0 8px 24px rgba(250,52,52,0.08);
	transform: translateY(-2px);
}

html body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0f172a;
	cursor: pointer;
	opacity: 1;
	z-index: 10;
	-webkit-appearance: radio;
	-moz-appearance: radio;
	appearance: radio;
	background: transparent;
	border: none;
}

html body.woocommerce-checkout #payment ul.payment_methods li label {
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	padding: 0;
	cursor: pointer;
	line-height: 18px;
}

html body.woocommerce-checkout #payment ul.payment_methods li label img {
	max-height: 24px;
	margin-left: 8px;
}

/* Puraane overlapping pseudo-elements (fake radios) ko hide karne ke liye */
html body.woocommerce-checkout #payment ul.payment_methods li label::before,
html body.woocommerce-checkout #payment ul.payment_methods li label::after,
html body.woocommerce-checkout #payment ul.payment_methods li::before,
html body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]::before,
html body.woocommerce-checkout #payment ul.payment_methods li input[type="radio"]::after,
html body.woocommerce-checkout #payment div.payment_box::before,
html body.woocommerce-checkout #payment div.payment_box::after {
	display: none;
	content: none;
}

html body.woocommerce-checkout #payment div.payment_box {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 12px 0 0 0;
	margin: 0;
	box-shadow: none;
	font-size: 13.5px;
	color: var(--light-text-color, #64748b);
	line-height: 1.5;
}

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

html body.woocommerce-checkout button#place_order {
	width: 100%;
	background-color: var(--primary-color, #FA3434);
	color: #ffffff;
	padding: 16px;
	border-radius: 16px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.2px;
	transition: all 0.3s ease;
	box-shadow: 0 8px 20px rgba(250, 52, 52, 0.2);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

html body.woocommerce-checkout button#place_order:hover {
	background-color: #e62e2e;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(250, 52, 52, 0.3);
}

/* Hide default WooCommerce quantity input on single product page as a custom one is used */
html body.single-product form.cart .quantity {
	display: none !important;
}

/* Form Controls */
html body.woocommerce-checkout .woocommerce form .form-row,
html body.woocommerce-checkout .woocommerce form .form-row-first,
html body.woocommerce-checkout .woocommerce form .form-row-last,
html body.woocommerce-checkout .woocommerce .col2-set .col-1,
html body.woocommerce-checkout .woocommerce .col2-set .col-2 {
	width: 100% !important;
	float: none !important;
}

html body.woocommerce-checkout .woocommerce .col2-set .col-1,
html body.woocommerce-checkout .woocommerce .col2-set .col-2 {
	margin-bottom: 0;
	padding: 0;
}

html body.woocommerce-checkout .woocommerce form .form-row {
	margin-bottom: 20px;
}

html body.woocommerce-checkout .woocommerce form .form-row-first {
	margin-right: 0 !important;
}

html body.woocommerce-checkout .woocommerce form .form-row label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #334155;
	font-size: 14px;
}

html body.woocommerce-checkout .woocommerce form .form-row input.input-text,
html body.woocommerce-checkout .woocommerce form .form-row textarea,
html body.woocommerce-checkout .woocommerce form .form-row select,
html body.woocommerce-checkout .select2-container--default .select2-selection--single {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
	min-height: 52px;
	color: #0f172a;
	transition: all 0.2s ease;
	width: 100%;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.015);
}

html body.woocommerce-checkout .woocommerce form .form-row input.input-text,
html body.woocommerce-checkout .woocommerce form .form-row select,
html body.woocommerce-checkout .select2-container--default .select2-selection--single {
	height: 52px;
	line-height: normal;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #0f172a;
	line-height: 50px;
	padding: 0;
	font-weight: 500;
}

html body.woocommerce-checkout .woocommerce form .form-row textarea {
	min-height: 120px;
	resize: vertical;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	padding: 0 16px;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
	right: 10px;
}

html body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
html body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
html body.woocommerce-checkout .select2-container--default .select2-selection--single:focus,
html body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
	background: #ffffff;
	border-color: var(--primary-color, #FA3434);
	outline: none;
	box-shadow: 0 0 0 3px rgba(250, 52, 52, 0.1);
}

/* Mobile Responsive Checkout */
@media (max-width: 1024px) {
	html body.woocommerce-checkout .woocommerce-checkout {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
				"details"
			"heading"
				"review";
		gap: 24px;
	}

	html body.woocommerce-checkout #order_review {
		position: static;
	}
}

@media (max-width: 768px) {
	html body.woocommerce-checkout .woocommerce {
		margin: 10px auto 30px;
		padding: 0 12px;
		padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px));
	}

	html body.woocommerce-checkout .woocommerce-billing-fields,
	html body.woocommerce-checkout .woocommerce-shipping-fields,
	html body.woocommerce-checkout .woocommerce-additional-fields,
	html body.woocommerce-checkout #order_review {
		padding: 20px 16px;
		border-radius: 16px;
		box-shadow: 0 4px 12px rgba(0,0,0,0.03);
		border: 1px solid #f1f5f9;
	}


	/* Prevents iOS Safari auto-zoom on input focus */
	html body.woocommerce-checkout .woocommerce form .form-row input.input-text,
	html body.woocommerce-checkout .woocommerce form .form-row textarea,
	html body.woocommerce-checkout .woocommerce form .form-row select,
	html body.woocommerce-checkout .select2-container--default .select2-selection--single,
	input[type="text"], input[type="email"], input[type="search"],
	input[type="password"], input[type="tel"], input[type="number"], textarea, select {
		font-size: 16px;
	}

	html body.woocommerce-checkout button#place_order {
		padding: 14px;
		font-size: 16px;
		position: fixed;
		bottom: calc(58px + env(safe-area-inset-bottom, 0px));
		left: 16px;
		width: calc(100% - 32px) !important;
		z-index: 9999;
		box-shadow: 0 12px 32px rgba(250, 52, 52, 0.35);
		margin: 0;
	}

	html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,
	html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
		padding: 12px 0;
		font-size: 14px;
	}

	html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th {
		font-size: 12px;
	}

	html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total th {
		font-size: 17px;
		white-space: nowrap;
	}

	html body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table .order-total td strong {
		font-size: 19px;
		white-space: nowrap;
	}

	/* Keep coupon inline on mobile exactly like cart page */
	html body.woocommerce-checkout .woocommerce form.checkout_coupon {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		padding: 16px;
		border-radius: 16px;
		gap: 8px;
	}
	html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-first,
	html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-last {
		width: auto !important;
		margin: 0 !important;
	}
	html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-first {
		flex: 1 !important;
	}
	html body.woocommerce-checkout .woocommerce form.checkout_coupon .form-row-last {
		flex: 0 0 auto !important;
	}
	html body.woocommerce-checkout .woocommerce form.checkout_coupon input.input-text,
	html body.woocommerce-checkout .woocommerce form.checkout_coupon button.button {
		height: 44px !important;
		min-height: 44px !important;
	}
	html body.woocommerce-checkout .woocommerce form.checkout_coupon button.button {
		padding: 0 16px !important;
		font-size: 14px !important;
	}
}

/* Order Received / Thank You Page Styling - Pro Elite UI */
html body.woocommerce-order-received {
	background: #f8fafc;
}

html body.woocommerce-order-received .woocommerce {
	max-width: 900px;
	margin: 40px auto 80px;
	padding: 0 16px;
	display: block;
}

/* Header Section with Animated Feel */
html body.woocommerce-order-received .woocommerce-thankyou-order-received {
	background: #ffffff;
	border: none;
	border-radius: 30px;
	padding: 50px 30px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.05);
	color: #111;
	font-size: 32px;
	font-weight: 800;
	position: relative;
	overflow: hidden;
	margin-bottom: 40px;
	text-align: center;
}

html body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
	content: "\f058";
	font-family: "Font Awesome 6 Free";
	display: block;
	font-size: 72px;
	color: #10b981;
	margin-bottom: 20px;
	font-weight: 900;
}

/* High-End Order Info Bar */
html body.woocommerce-order-received .woocommerce-thankyou-order-details {
	list-style: none;
	padding: 10px;
	background: #0f172a; /* Dark Premium Bar */
	border-radius: 20px;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 40px;
	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
	overflow: hidden;
}

html body.woocommerce-order-received .woocommerce-thankyou-order-details li {
	flex: 1;
	min-width: 200px;
	padding: 25px 20px;
	border-right: 1px dashed rgba(255,255,255,0.15);
	text-align: center;
	color: #94a3b8;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin: 0;
}

html body.woocommerce-order-received .woocommerce-thankyou-order-details li:last-child {
	border-right: none;
}

html body.woocommerce-order-received .woocommerce-thankyou-order-details li strong {
	display: block;
	font-size: 17px;
	color: #ffffff !important;
	margin-top: 10px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

/* Ensure the actual price amount inside the dark bar is visible and highlighted */
html body.woocommerce-order-received .woocommerce-thankyou-order-details li strong .woocommerce-Price-amount,
html body.woocommerce-order-received .woocommerce-thankyou-order-details li strong bdi {
	color: #ffffff !important;
}

/* Specifically highlight the TOTAL amount in Primary Color */
html body.woocommerce-order-received .woocommerce-thankyou-order-details li.total strong,
html body.woocommerce-order-received .woocommerce-thankyou-order-details li.total strong .woocommerce-Price-amount {
	color: var(--primary-color, #FA3434) !important;
}

/* Sections Polish */
html body.woocommerce-order-received section.woocommerce-order-details,
html body.woocommerce-order-received section.woocommerce-customer-details {
	background: #ffffff;
	border-radius: 24px;
	padding: 40px;
	margin-bottom: 40px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.02);
	border: 1px solid #f1f5f9;
}

html body.woocommerce-order-received h2.woocommerce-order-details__title {
	font-size: 24px;
	font-weight: 900;
	color: #0f172a;
	margin-bottom: 30px;
	position: relative;
	padding-bottom: 12px;
	letter-spacing: -0.5px;
}

html body.woocommerce-order-received h2.woocommerce-order-details__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--primary-color, #FA3434);
	border-radius: 2px;
}

/* Table Refresh */
html body.woocommerce-order-received .shop_table.order_details {
	width: 100%;
	border-spacing: 0;
	border: none;
}

html body.woocommerce-order-received .shop_table.order_details thead th {
	padding: 10px 0 20px;
	color: var(--light-text-color, #64748b);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	font-weight: 700;
}

html body.woocommerce-order-received .shop_table.order_details thead th.product-total {
	text-align: right;
}

html body.woocommerce-order-received .shop_table.order_details td {
	padding: 18px 0;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	text-align: left;
	background: transparent;
}

html body.woocommerce-order-received .shop_table.order_details td.product-total {
	text-align: right;
}

html body.woocommerce-order-received .shop_table.order_details .product-name a {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
}

html body.woocommerce-order-received .shop_table.order_details .product-name .product-quantity {
	font-weight: 600;
	color: var(--primary-color, #FA3434);
	margin-left: 10px;
	background: #fdf2f2;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 13px;
}

html body.woocommerce-order-received .shop_table.order_details tfoot th {
	padding: 15px 0;
	font-weight: 600;
	color: #475569;
	text-align: left;
	border: none;
}

html body.woocommerce-order-received .shop_table.order_details tfoot td {
	padding: 15px 0;
	text-align: right;
	font-weight: 800;
	color: #0f172a;
	border: none;
}

html body.woocommerce-order-received .shop_table.order_details tfoot tr.order-total th,
html body.woocommerce-order-received .shop_table.order_details tfoot tr.order-total td {
	border-top: 2px dashed #e2e8f0;
	padding-top: 25px;
}

html body.woocommerce-order-received .shop_table.order_details tfoot tr.order-total th {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}

html body.woocommerce-order-received .shop_table.order_details tfoot tr.order-total td {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color, #FA3434);
}

/* Address Cards Refinement */
html body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

html body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column {
	flex: 1;
	min-width: 300px;
}

html body.woocommerce-order-received h2.woocommerce-column__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	display: inline-block;
	border: none; /* Remove duplicate border */
	padding-bottom: 12px;
	position: relative;
}

html body.woocommerce-order-received address {
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	color: #475569;
	line-height: 1.6;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.joom-thankyou-footer {
	text-align: center;
	margin-top: 20px;
}

.joom-back-home {
	display: inline-block;
	background: #0f172a;
	color: #fff !important;
	padding: 16px 40px;
	border-radius: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: all 0.3s ease;
}

.joom-back-home:hover {
	background: var(--primary-color, #FA3434);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(250, 52, 52, 0.25);
}

@keyframes joomFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
	html body.woocommerce-order-received .woocommerce {
		margin: 30px auto;
	}
	html body.woocommerce-order-received .woocommerce-thankyou-order-received {
		font-size: 24px;
		padding: 40px 20px;
	}
	html body.woocommerce-order-received .woocommerce-thankyou-order-details {
		flex-direction: column;
	}
	html body.woocommerce-order-received .woocommerce-thankyou-order-details li {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	html body.woocommerce-order-received section.woocommerce-order-details,
	html body.woocommerce-order-received section.woocommerce-customer-details {
		padding: 30px 20px;
	}
	body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
		grid-template-columns: 1fr;
	}
}

/* Widget Titles */
.widget-title,
.widgettitle {
	font-size: 16px;
	font-weight: 500;
}

/* Navigation Menu */
.main-navigation a {
	font-size: 14px;
	font-weight: 400;
}

/* Hide all divider lines */
html body .site-main hr {
	display: none;
}

/* Hide duplicate WooCommerce/Plugin tick icons on 'Added to cart' buttons */
body .added::after,
body .button.added::after,
body button.added::after,
body a.added::after,
body .added .fa-check,
body .added .fas.fa-check {
	display: none;
	content: none;
}

/* Hide 'View Cart' / 'View Order' link globally */
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* Instant visual feedback for Add to Cart button (Home & Shop pages) */
html body .mj-cart-btn.loading,
html body .ajax_add_to_cart.loading,
html body .mj-cart-btn.added,
html body .ajax_add_to_cart.added {
	transition: all 0.1s ease;
}
html body .mj-cart-btn.loading svg,
html body .ajax_add_to_cart.loading svg,
html body .mj-cart-btn.added svg,
html body .ajax_add_to_cart.added svg {
	stroke: currentColor !important;
}
html body .mj-cart-btn.loading,
html body .ajax_add_to_cart.loading {
	transform: scale(0.92);
	opacity: 0.9;
}

/* Go to Cart button on Archive Page Cards */
.mj-cart-btn.mj-is-go-to-cart {
	text-decoration: none !important;
	border-bottom: none !important;
}
.mj-cart-btn.mj-is-go-to-cart i {
	font-size: 16px;
	text-decoration: none !important;
}

/* =================================================
	GALLERY ARROWS FIX
	================================================= */
html body .joom-gallery-arrow.disabled {
	pointer-events: auto !important;
	cursor: default !important;
}

/* =================================================


/* =================================================
	CATALOG MODE HIDES
	================================================= */
body.joom-catalog-mode-active .cart-icon,
body.joom-catalog-mode-active .joom-sticky-cart,
body.joom-catalog-mode-active .joom-qty-container,
body.joom-catalog-mode-active .mj-mbm-item[href*="cart"],
body.joom-catalog-mode-active .joom-fbt-wrapper,
body.joom-catalog-mode-active .joom-button-content,
body.joom-catalog-mode-active .mj-cart-btn {
	display: none !important;
}

/* =================================================
	PINCODE CHECKER UI
	================================================= */
.joom-pincode-checker {
	margin: 16px 0;
	width: 100%;
	box-sizing: border-box;
}
.joom-pincode-title {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 12px 0 !important;
	display: flex;
	align-items: center;
	gap: 6px;
	text-transform: none;
	letter-spacing: 0;
}
.joom-pincode-form {
	display: flex;
	position: relative;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 4px;
	transition: all 0.3s ease;
	align-items: center;
}
.joom-pincode-form:focus-within {
	background: #ffffff;
	border-color: var(--primary-color, #FA3434);
	box-shadow: 0 4px 16px rgba(250,52,52,0.1);
}
.joom-pincode-icon {
	position: absolute;
	left: 14px;
	color: var(--primary-color, #FA3434);
	font-size: 16px;
	z-index: 2;
}
.joom-pincode-form input {
	flex: 1;
	height: 42px;
	border: none;
	background: transparent;
	padding: 0 12px 0 38px;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	outline: none;
	box-shadow: none !important;
	min-width: 0;
}
.joom-pincode-form input::placeholder {
	color: #94a3b8;
	font-weight: 400;
	font-size: 14px;
}
.joom-pincode-form button {
	height: 42px;
	padding: 0 20px;
	background: #0f172a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}
.joom-pincode-form button:hover {
	background: var(--primary-color, #FA3434);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(250,52,52,0.2);
}
.joom-pincode-result {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	display: none;
}
.joom-pincode-result i {
	margin-right: 4px;
	font-size: 14px;
}
.joom-pincode-result.success {
	display: block;
	color: #059669;
}
.joom-pincode-result.error {
	display: block;
	color: #ef4444;
}

/* =================================================
	HOME PAGE (ELEMENTOR) PRODUCT CARD UI FIX
	Overrides Elementor's default large heading & image gaps without !important
	================================================= */
html body .jt-product-item .mj-premium-card .mj-visual-box a {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	line-height: 0;
	margin: 0;
	padding: 0;
}
html body .jt-product-item .mj-premium-card .mj-visual-box img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	display: block;
}
html body .jt-product-item .mj-premium-card .mj-price-cart-row {
	margin: 0 0 4px 0;
}
html body .jt-product-item .mj-premium-card .mj-card-details > a {
	margin: 0;
	padding: 0;
	display: block;
	text-decoration: none;
}
html body .jt-product-item .mj-premium-card .mj-product-name {
	font-size: 13px;
	margin: 0 0 4px 0;
	padding: 0;
	line-height: 1.2;
	height: 32px;
}
@media (max-width: 768px) {
	html body .jt-product-item .mj-premium-card .mj-product-name {
		font-size: 13px;
		margin-bottom: 6px;
	}
}
