/*
 * QuickCom Pro Theme Main Stylesheet
 *
 * Designed for Kirana, Grocery & Fresh Vegetable WooCommerce Stores
 * Mobile-First Responsive Architecture
 */

:root {
	--qm-primary: #16A34A;
	--qm-primary-hover: #15803D;
	--qm-primary-light: #DCFCE7;
	--qm-secondary: #1E293B;
	--qm-accent-red: #EF4444;
	--qm-accent-green: #16A34A;
	--qm-bg-body: #F8FAFC;
	--qm-bg-surface: #FFFFFF;
	--qm-text-main: #0F172A;
	--qm-text-muted: #64748B;
	--qm-border-color: #E2E8F0;
	--qm-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--qm-container-max: 1320px;
	--qm-radius: 12px;
	--qm-radius-sm: 8px;
	--qm-radius-pill: 9999px;
	--qm-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--qm-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
	--qm-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

/* Global Reset & Universal Container Width Enforcer */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	max-width: 100vw;
	overflow-x: hidden !important;
	margin: 0;
	padding: 0;
	/* FIX G8: Remove purple/blue glow border artifact */
	background-image: none !important;
	box-shadow: none !important;
}
body {
	font-family: var(--qm-font-family);
	background-color: var(--qm-bg-body);
	color: var(--qm-text-main);
	line-height: 1.5;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	/* FIX G8: Ensure no glow on any wrapper */
	box-shadow: none !important;
}
#page, .site, #content {
	box-shadow: none !important;
	background-image: none !important;
	border: none !important;
	outline: none !important;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

button, input, select, textarea {
	font-family: inherit;
}

/* ABSOLUTE OVERRIDE FOR CHECKOUT CONTAINER & GRID */
.woocommerce-checkout .woocommerce,
.woocommerce-checkout .entry-content,
.woocommerce-checkout .wp-block-post-content,
.woocommerce-checkout .is-layout-constrained,
.woocommerce-checkout .is-layout-constrained > *,
.woocommerce-checkout #page,
.woocommerce-checkout .site,
.woocommerce-checkout .qm-container,
.woocommerce-checkout .qm-checkout-wrapper,
.woocommerce-cart .woocommerce,
.woocommerce-cart .entry-content,
.woocommerce-cart .wp-block-post-content,
.woocommerce-cart .is-layout-constrained,
.woocommerce-cart .is-layout-constrained > *,
.woocommerce-cart #page,
.woocommerce-cart .site,
.woocommerce-cart .qm-container,
.woocommerce-cart .qm-cart-page-wrapper {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

body.woocommerce-checkout .qm-container,
body.woocommerce-cart .qm-container,
.qm-container {
	max-width: 1320px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	box-sizing: border-box !important;
}

body.woocommerce-checkout .qm-header-row,
body.woocommerce-checkout .qm-topbar,
body.woocommerce-checkout .qm-desktop-nav-bar,
body.woocommerce-cart .qm-header-row,
body.woocommerce-cart .qm-topbar,
body.woocommerce-cart .qm-desktop-nav-bar {
	width: 100% !important;
	max-width: 100% !important;
}

/* Checkout & Cart Desktop Layout (>1024px) */
@media (min-width: 1025px) {
	.qm-mobile-step-tabs,
	.qm-mobile-step-nav {
		display: none !important;
	}
	.qm-step-card-1,
	.qm-step-card-2 {
		display: block !important;
		width: 100% !important;
	}
	.qm-custom-checkout-grid {
		display: grid !important;
		grid-template-columns: 1fr 420px !important;
		gap: 30px !important;
		width: 100% !important;
		max-width: 1320px !important;
		margin: 0 auto !important;
		align-items: start !important;
		box-sizing: border-box !important;
	}
	.qm-checkout-left-col {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	.qm-checkout-right-col {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		position: sticky !important;
		top: 90px !important;
	}
	.qm-cart-grid {
		display: grid !important;
		grid-template-columns: 1fr 380px !important;
		gap: 30px !important;
		width: 100% !important;
		max-width: 100% !important;
		align-items: start !important;
		box-sizing: border-box !important;
	}
}

/* ABSOLUTE GLOBAL OVERRIDES FOR WOOCOMMERCE CHECKOUT SQUISHING & FLOATS */
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review,
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

/* 2-Page Multi-Step Checkout Layout (Mobile & Desktop) */
.qm-checkout-wrapper.qm-show-page-1 .qm-checkout-page-1,
body.qm-body-page-1 #order_review_heading,
body.qm-body-page-1 #order_review,
body.qm-body-page-1 .qm-checkout-right-col {
	display: block !important;
	width: 100% !important;
	float: none !important;
}
.qm-checkout-wrapper.qm-show-page-1 .qm-checkout-page-2,
body.qm-body-page-1 #customer_details,
body.qm-body-page-1 .col2-set,
body.qm-body-page-1 .qm-checkout-left-col {
	display: none !important;
}

.qm-checkout-wrapper.qm-show-page-2 .qm-checkout-page-1,
body.qm-body-page-2 #order_review_heading,
body.qm-body-page-2 #order_review,
body.qm-body-page-2 .qm-checkout-right-col {
	display: none !important;
}
.qm-checkout-wrapper.qm-show-page-2 .qm-checkout-page-2,
body.qm-body-page-2 #customer_details,
body.qm-body-page-2 .col2-set,
body.qm-body-page-2 .qm-checkout-left-col {
	display: block !important;
	width: 100% !important;
	float: none !important;
}

@media (max-width: 1024px) {
	.qm-checkout-step-tabs {
		display: flex !important;
		gap: 8px !important;
		margin-bottom: 20px !important;
		background: #F1F5F9 !important;
		padding: 6px !important;
		border-radius: 14px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.qm-checkout-page-1,
	.qm-checkout-page-2 {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

@media (min-width: 1025px) {
	.qm-checkout-step-tabs {
		display: flex !important;
		max-width: 600px !important;
		margin: 0 auto 28px auto !important;
	}
	.qm-checkout-page-1,
	.qm-checkout-page-2 {
		max-width: 900px !important;
		margin: 0 auto !important;
	}
}








#customer_details, .col-1, .col-2 {
	width: 100% !important;
	float: none !important;
	box-sizing: border-box !important;
}


/* Desktop 2-Column Field Layout for Checkout */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px 0 !important;
}

.woocommerce-checkout .form-row {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin-bottom: 16px !important;
}

@media (min-width: 769px) {
	.woocommerce-checkout .form-row-first {
		width: calc(50% - 10px) !important;
		margin-right: 20px !important;
		float: left !important;
		clear: none !important;
	}
	.woocommerce-checkout .form-row-last {
		width: calc(50% - 10px) !important;
		float: right !important;
		margin-right: 0 !important;
		clear: none !important;
	}
	.woocommerce-checkout .form-row-wide {
		width: 100% !important;
		clear: both !important;
	}
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	padding: 12px 16px !important;
	border: 1.5px solid #CBD5E1 !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	color: #0F172A !important;
	background-color: #FFFFFF !important;
	outline: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	border-color: #16A34A !important;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
	background-color: #FFFFFF !important;
}

/* Place Order Button */
#place_order {
	width: 100% !important;
	padding: 16px 24px !important;
	background: #16A34A !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 12px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}
#place_order:hover {
	background: #15803D !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
}


/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.qm-topbar {
	background-color: #15803D;
	color: #F8FAFC;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 0;
}

.qm-site-header {
	background-color: var(--qm-bg-surface);
	border-bottom: 1px solid var(--qm-border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--qm-shadow-sm);
	/* FIX G3: Smooth sticky transition */
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.qm-site-header.qm-header-scrolled {
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	background-color: rgba(255,255,255,0.97);
	backdrop-filter: blur(8px);
}

.qm-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 16px;
}

.qm-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.qm-mobile-hamburger-btn {
	display: none;
	background: none;
	border: none;
	color: var(--qm-text-main);
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

.qm-header-center {
	flex: 1;
	max-width: 540px;
}

.qm-search-wrapper {
	display: flex;
	align-items: center;
	background-color: var(--qm-bg-body);
	border: 1px solid var(--qm-border-color);
	border-radius: var(--qm-radius-pill);
	padding: 6px 6px 6px 16px;
	cursor: pointer;
}

.qm-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	white-space: nowrap;
}

.qm-account-desktop-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0F172A;
	flex-shrink: 0;
	white-space: nowrap;
}

.qm-account-text {
	white-space: nowrap;
	line-height: 1.2;
}

.qm-cart-trigger {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.qm-cart-trigger:hover {
	background: #F1F5F9;
}

.qm-cart-icon-wrap {
	position: relative;
	width: 40px;
	height: 40px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0F172A;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.qm-cart-trigger:hover .qm-cart-icon-wrap {
	background: #DCFCE7;
	border-color: #86EFAC;
	color: #16A34A;
}

.qm-cart-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: var(--qm-primary, #16A34A);
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(22,163,74,0.35);
}

/* All Departments Dropdown Positioning */
.qm-departments-dropdown-wrap {
	position: relative !important;
	display: inline-block !important;
	z-index: 99999 !important;
}

.qm-dept-dropdown-list {
	display: none;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	width: 240px !important;
	background: #FFFFFF !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 0 0 12px 12px !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
	z-index: 999999 !important;
	padding: 6px 0 !important;
}
.qm-dept-dropdown-list a {
	display: block !important;
	padding: 10px 18px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	text-decoration: none !important;
	border-bottom: 1px solid #F1F5F9 !important;
	background: #FFFFFF !important;
}
.qm-dept-dropdown-list a:hover {
	background: #F0FDF4 !important;
	color: #16A34A !important;
}

/* Single Clean WooCommerce Pagination Styling */
.qm-pagination-wrap .woocommerce-pagination {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	justify-content: center !important;
	border: none !important;
}
.qm-pagination-wrap .woocommerce-pagination ul.page-numbers {
	display: flex !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 8px !important;
	border: none !important;
}
.qm-pagination-wrap .woocommerce-pagination ul.page-numbers li {
	display: inline-block !important;
	border: none !important;
	margin: 0 !important;
}
.qm-pagination-wrap .woocommerce-pagination ul.page-numbers li span.current {
	background: #16A34A !important;
	color: #FFFFFF !important;
	font-weight: 900 !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	border: none !important;
	display: inline-block !important;
}
.qm-pagination-wrap .woocommerce-pagination ul.page-numbers li a {
	background: #FFFFFF !important;
	color: #0F172A !important;
	font-weight: 700 !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	border: 1px solid #CBD5E1 !important;
	text-decoration: none !important;
	display: inline-block !important;
	transition: all 0.2s ease !important;
}
.qm-pagination-wrap .woocommerce-pagination ul.page-numbers li a:hover {
	background: #F0FDF4 !important;
	color: #16A34A !important;
	border-color: #16A34A !important;
}

/* Cart Table Layout */
.shop_table.cart {
	width: 100% !important;
	max-width: 100% !important;
	border-collapse: collapse !important;
}
.shop_table.cart th, .shop_table.cart td {
	padding: 14px !important;
}

/* Quantity Input Styling */
.quantity input.qty {
	width: 60px !important;
	height: 38px !important;
	padding: 0 8px !important;
	text-align: center !important;
	border: 1px solid #CBD5E1 !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
}

/* Cart Collaterals & Totals */
.cart_totals {
	width: 100% !important;
}
.cart_totals table {
	width: 100% !important;
	border-collapse: collapse !important;
}
.cart_totals table th, .cart_totals table td {
	padding: 10px 0 !important;
	border-bottom: 1px solid #F1F5F9 !important;
}
.wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	padding: 14px !important;
	background: #16A34A !important;
	color: #FFFFFF !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	text-decoration: none !important;
	margin-top: 16px !important;
	box-sizing: border-box !important;
}

/* ==========================================================================
   Overlay Drawers (Mini Cart & Mobile Navigation)
   ========================================================================== */
.qm-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qm-drawer-overlay.active {
	opacity: 1 !important;
	visibility: visible !important;
}

.qm-mini-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 100vw;
	height: 100vh;
	background-color: var(--qm-bg-surface);
	z-index: 100000;
	box-shadow: var(--qm-shadow-lg);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qm-drawer-overlay.active .qm-mini-cart-drawer {
	transform: translateX(0) !important;
}

.qm-mobile-menu-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 320px;
	max-width: 85vw;
	height: 100vh;
	background-color: var(--qm-bg-surface);
	z-index: 100000;
	box-shadow: var(--qm-shadow-lg);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qm-drawer-overlay.active .qm-mobile-menu-drawer {
	transform: translateX(0) !important;
}

.qm-drawer-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--qm-border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.qm-drawer-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--qm-text-muted);
	padding: 8px;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Homepage & Shop Layout Components
   ========================================================================== */
.qm-hero-row {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: stretch;
}
/* ==========================================================================
   Hero Sidebar Category Menu & Hover Effects
   ========================================================================== */
.qm-hero-sidebar {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	overflow: visible;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	padding: 8px;
	position: relative;
	z-index: 50;
	display: flex;
	flex-direction: column;
}
.qm-hero-sidebar ul,
.qm-hero-sidebar-menu,
.qm-hero-sidebar-menu ul {
	list-style: none !important;
	list-style-type: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-grow: 1;
}
.qm-menu-all-cat {
	margin-top: auto !important;
}
.qm-hero-sidebar li,
.qm-hero-sidebar-menu li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	border: none !important;
}
.qm-hero-sidebar a,
.qm-hero-sidebar-menu li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	color: #1E293B;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 10px;
	border-left: 3px solid transparent;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}
.qm-hero-sidebar a::after,
.qm-hero-sidebar-menu li a::after {
	content: '›';
	font-size: 16px;
	font-weight: 800;
	color: #94A3B8;
	opacity: 0.5;
	transition: all 0.2s ease;
	transform: translateX(0);
}
.qm-hero-sidebar a:hover,
.qm-hero-sidebar-menu li a:hover,
.qm-hero-sidebar-menu li:hover > a {
	background: #F0FDF4;
	color: #15803D;
	border-left-color: #16A34A;
	padding-left: 18px;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
	transform: translateX(2px);
}
.qm-hero-sidebar a:hover::after,
.qm-hero-sidebar-menu li a:hover::after,
.qm-hero-sidebar-menu li:hover > a::after {
	color: #16A34A;
	opacity: 1;
	transform: translateX(3px);
}

/* "View All Categories" highlight */
.qm-hero-sidebar .qm-menu-all-cat,
.qm-hero-sidebar-menu .qm-menu-all-cat {
	margin-top: 4px !important;
	border-top: 1px dashed #E2E8F0 !important;
	padding-top: 4px !important;
}
.qm-hero-sidebar .qm-menu-all-cat a,
.qm-hero-sidebar-menu .qm-menu-all-cat a {
	color: #16A34A !important;
	font-weight: 800 !important;
	background: #F0FDF4;
}
.qm-hero-sidebar .qm-menu-all-cat a:hover,
.qm-hero-sidebar-menu .qm-menu-all-cat a:hover {
	background: #DCFCE7 !important;
	color: #15803D !important;
	padding-left: 18px;
}
.qm-hero-sidebar .qm-menu-all-cat a::after,
.qm-hero-sidebar-menu .qm-menu-all-cat a::after {
	content: '➔';
	font-size: 13px;
	color: #16A34A;
	opacity: 1;
}

/* Submenu flyout on hover */
.qm-hero-sidebar-menu .sub-menu {
	display: none !important;
	position: absolute !important;
	left: 100% !important;
	top: -6px !important;
	min-width: 220px !important;
	background: #FFFFFF !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 14px !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
	padding: 8px !important;
	z-index: 99999 !important;
	margin-left: 8px !important;
}
.qm-hero-sidebar-menu li:hover > .sub-menu {
	display: flex !important;
	flex-direction: column !important;
	animation: qm-fadeIn 0.15s ease-out;
}

.qm-hero-banner-box {
	background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
	border-radius: 20px;
	padding: 48px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid #BBF7D0;
}
.qm-hero-discount-badge {
	position: absolute;
	top: 30px;
	right: 40px;
	background: #15803D;
	color: #FFFFFF;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	text-align: center;
	line-height: 1.1;
	z-index: 3;
	box-shadow: 0 4px 14px rgba(21,128,61,0.3);
}
.qm-hero-image {
	width: 340px;
	border-radius: 16px;
	object-fit: cover;
	z-index: 1;
}

.qm-trust-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 30px;
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 20px;
}

.qm-top-categories-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

/* FIX S3: Category Quick Filter Pills Bar - scroll with fade edge indicator */
.qm-pills-scroll-wrap {
	position: relative;
	margin-bottom: 24px;
}
.qm-pills-scroll-wrap::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 60px;
	background: linear-gradient(to right, transparent, #F8FAFC);
	pointer-events: none;
	z-index: 2;
}
.qm-quick-filters-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	max-width: 100%;
	padding: 4px 4px 10px 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.qm-quick-filters-bar::-webkit-scrollbar {
	display: none;
}
.qm-pill-item {
	white-space: nowrap;
	flexshrink: 0;
	transition: all 0.2s ease !important;
}
.qm-pill-item:hover {
	background: var(--qm-primary-light) !important;
	color: var(--qm-primary) !important;
	border-color: var(--qm-primary) !important;
}

.qm-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

/* Product Card Styling */
.qm-product-card {
	background-color: var(--qm-bg-surface);
	border: 1px solid var(--qm-border-color);
	border-radius: 16px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
}
.qm-product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--qm-shadow-md);
}

.qm-card-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
	pointer-events: none;
}
.qm-badge-sale {
	background-color: var(--qm-accent-red);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 6px;
	border-radius: 4px;
	text-transform: uppercase;
}
.qm-badge-speed {
	background-color: var(--qm-bg-surface);
	border: 1px solid var(--qm-border-color);
	color: var(--qm-primary);
	font-size: 10px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: var(--qm-radius-pill);
	display: flex;
	align-items: center;
	gap: 3px;
}

.qm-card-image-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
	background-color: #F1F5F9;
	display: block;
	position: relative;
}
.qm-card-image-wrap img,
.qm-card-image {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.qm-card-image-wrap .qm-card-alt-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.qm-product-card:hover .qm-card-image-wrap.qm-has-alt-image .qm-card-alt-image {
	opacity: 1;
	transform: scale(1.05);
}
.qm-product-card:hover .qm-card-image-wrap.qm-has-alt-image .qm-card-primary-image {
	opacity: 0;
	transform: scale(1.05);
}

.qm-card-weight {
	font-size: 11px;
	color: var(--qm-text-muted);
	font-weight: 600;
	margin-bottom: 4px;
}
.qm-card-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--qm-text-main);
	margin: 0 0 8px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 36px;
}

.qm-card-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 6px;
}
.qm-price-current {
	font-size: 16px;
	font-weight: 800;
	color: var(--qm-text-main);
}
.qm-price-regular {
	font-size: 12px;
	color: var(--qm-text-muted);
	text-decoration: line-through;
}

/* FIX H7: ADD button with icon, better visual weight */
.qm-btn-add-card {
	padding: 8px 14px;
	min-height: 38px;
	background-color: var(--qm-primary-light);
	border: 1.5px solid var(--qm-primary);
	color: var(--qm-primary);
	font-weight: 800;
	font-size: 13px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.qm-btn-add-card:hover {
	background-color: var(--qm-primary);
	color: #FFFFFF;
	transform: scale(1.04);
}
.qm-btn-add-card:active {
	transform: scale(0.97);
}

/* ==========================================================================
   Mobile Sticky Bottom Navigation Bar
   ========================================================================== */
.qm-mobile-sticky-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #FFFFFF;
	border-top: 1px solid #E2E8F0;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
	z-index: 99990;
	justify-content: space-around;
	align-items: center;
}
.qm-mobile-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #64748B;
	font-size: 10px;
	font-weight: 700;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	flex: 1;
	height: 100%;
	text-decoration: none;
	min-height: 44px;
}
.qm-mobile-bar-item.active, .qm-mobile-bar-item:hover {
	color: var(--qm-primary);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.qm-site-footer {
	background-color: var(--qm-secondary);
	color: #94A3B8;
	padding-top: 48px;
	padding-bottom: 30px;
	font-size: 14px;
}
/* FIX F2: Balanced footer grid - equal weight columns */
.qm-footer-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
	gap: 32px;
	margin-bottom: 36px;
}
.qm-footer-col-title {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px 0;
}
.qm-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.qm-footer-links li {
	margin-bottom: 10px;
}
.qm-footer-links a {
	color: #94A3B8;
	transition: color 0.2s ease;
	font-size: 13px;
}
.qm-footer-links a:hover {
	color: #FFFFFF;
}
/* FIX F1: Footer logo text — force white */
.qm-site-footer .qm-brand-logo span {
	color: #FFFFFF !important;
}
.qm-site-footer .qm-brand-logo div > span:first-child {
	color: #FFFFFF !important;
}
/* FIX F4: Social media links */
.qm-footer-social-links {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.qm-footer-social-link {
	width: 36px;
	height: 36px;
	background: #334155;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #CBD5E1;
	transition: all 0.2s ease;
	text-decoration: none;
}
.qm-footer-social-link:hover {
	background: var(--qm-primary);
	color: #FFFFFF;
	transform: translateY(-2px);
}
.qm-footer-bottom {
	border-top: 1px solid #334155;
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
/* FIX F3: Better payment badges */
.qm-payment-badges {
	display: flex;
	gap: 6px;
	align-items: center;
}
.qm-pay-pill {
	background-color: #334155;
	color: #E2E8F0;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid #475569;
	letter-spacing: 0.3px;
}

/* FIX G7: WhatsApp FAB — safe z-index that doesn't block ADD buttons */
.qm-whatsapp-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 52px;
	height: 52px;
	background-color: #25D366;
	color: #FFFFFF;
	border-radius: var(--qm-radius-pill);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
	z-index: 500;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qm-whatsapp-fab:hover {
	transform: scale(1.08) translateY(-2px);
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}
/* FIX: Back to top button */
.qm-back-to-top {
	position: fixed;
	bottom: 88px;
	right: 24px;
	width: 40px;
	height: 40px;
	background: #FFFFFF;
	border: 1.5px solid #E2E8F0;
	border-radius: var(--qm-radius-pill);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 500;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	color: var(--qm-text-main);
	text-decoration: none;
}
.qm-back-to-top.visible {
	opacity: 1;
	visibility: visible;
}
.qm-back-to-top:hover {
	background: var(--qm-primary);
	color: #FFFFFF;
	border-color: var(--qm-primary);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Rules
   ========================================================================== */
@media (max-width: 1024px) {
	.qm-product-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.qm-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 992px) {
	.qm-hero-row {
		grid-template-columns: 1fr !important;
	}
	.qm-hero-sidebar {
		display: none !important;
	}
	.qm-cart-grid, .qm-custom-checkout-grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	.qm-checkout-right-col {
		position: static !important;
		top: auto !important;
		width: 100% !important;
	}
	.qm-mobile-order-summary-box {
		display: block !important;
	}
}

@media (max-width: 768px) {
	body {
		padding-bottom: 74px !important;
	}

	.qm-mobile-hamburger-btn {
		display: flex !important;
	}
	.qm-desktop-nav-bar, .qm-topbar, .qm-account-text, .qm-cart-text {
		display: none !important;
	}
	.qm-mobile-search-row {
		display: block !important;
	}
	.qm-mobile-sticky-bar {
		display: flex !important;
		z-index: 99990 !important;
	}
	.qm-whatsapp-fab {
		bottom: 84px !important;
		right: 14px !important;
		width: 46px !important;
		height: 46px !important;
	}

	/* Keep third-party cookie consent revisit icon from overlapping the bottom nav bar */
	#cky-btn-revisit,
	.cky-revisit-bottom-left,
	.cky-btn-revisit,
	#cookie-law-info-again,
	.wt-cli-cookie-bar {
		bottom: 78px !important;
	}

	.qm-header-row {
		height: 56px !important;
		padding: 0 4px !important;
		gap: 8px !important;
	}
	.qm-header-left {
		gap: 8px !important;
		flex-shrink: 0 !important;
	}
	.qm-header-center {
		display: none !important;
	}
	.qm-header-right {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
	}

	.qm-account-desktop-link {
		width: 38px !important;
		height: 38px !important;
		background: #F8FAFC !important;
		border: 1px solid #E2E8F0 !important;
		border-radius: 10px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 0 !important;
		color: #0F172A !important;
	}
	.qm-account-desktop-link svg {
		width: 20px !important;
		height: 20px !important;
	}

	.qm-cart-trigger {
		padding: 0 !important;
		min-width: 38px !important;
		min-height: 38px !important;
		gap: 0 !important;
		border-radius: 10px !important;
	}
	.qm-cart-icon-wrap {
		width: 38px !important;
		height: 38px !important;
		border-radius: 10px !important;
	}
	.qm-cart-icon-wrap svg {
		width: 20px !important;
		height: 20px !important;
	}
	.qm-cart-badge {
		top: -4px !important;
		right: -4px !important;
		width: 17px !important;
		height: 17px !important;
		font-size: 10px !important;
	}

	/* Compact Card Padding on Mobile */
	.qm-checkout-card,
	.qm-billing-card,
	.qm-shipping-card,
	.qm-checkout-right-col {
		padding: 18px 14px !important;
		border-radius: 14px !important;
	}
	.qm-checkout-progress-bar {
		padding: 10px 12px !important;
		gap: 6px !important;
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
		border-radius: 12px !important;
	}
	.qm-step-item {
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		white-space: nowrap !important;
	}
	.qm-step-badge {
		width: 22px !important;
		height: 22px !important;
		font-size: 11px !important;
		flex-shrink: 0 !important;
	}
	.qm-step-divider {
		width: 14px !important;
		flex-shrink: 0 !important;
	}
	.qm-step-item span:not(.qm-step-badge) {
		font-size: 11px !important;
		font-weight: 700 !important;
	}

	/* Product Cards Grid on Mobile */
	.qm-product-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
	.qm-product-card {
		padding: 10px !important;
		border-radius: 12px !important;
	}
	.qm-card-title {
		font-size: 13px !important;
		height: 34px !important;
		line-height: 1.3 !important;
	}
	.qm-btn-add-card {
		padding: 8px 12px !important;
		font-size: 12px !important;
		min-height: 38px !important;
		border-radius: 8px !important;
	}

	/* Checkout Page Mobile Overrides */
	body.woocommerce-checkout {
		padding-bottom: 90px !important;
	}
	body.woocommerce-checkout .qm-whatsapp-fab {
		display: none !important;
	}

	/* Footer */
	.qm-footer-grid {
		grid-template-columns: 1fr !important;
		gap: 24px;
	}
	.qm-footer-bottom {
		flex-direction: column;
		gap: 14px;
		text-align: center;
	}
	.qm-text-page-card,
	.qm-single-post-card {
		padding: 28px 20px !important;
		border-radius: 16px !important;
	}
}

/* ==========================================================================
   Typography & Content Styling for Text Pages (Terms, Policies, Guides)
   ========================================================================== */
.qm-typography-content h1,
.qm-typography-content h2,
.qm-typography-content h3,
.qm-typography-content h4,
.qm-typography-content h5,
.qm-typography-content h6 {
	color: #0F172A;
	font-weight: 800;
	margin-top: 28px;
	margin-bottom: 12px;
	line-height: 1.3;
}
.qm-typography-content h2 {
	font-size: 22px;
	border-bottom: 1px solid #F1F5F9;
	padding-bottom: 8px;
}
.qm-typography-content h3 {
	font-size: 18px;
}
.qm-typography-content p {
	margin-top: 0;
	margin-bottom: 16px;
}
.qm-typography-content ul,
.qm-typography-content ol {
	margin: 0 0 20px 0;
	padding-left: 24px;
}
.qm-typography-content li {
	margin-bottom: 8px;
}
.qm-typography-content blockquote {
	margin: 24px 0;
	padding: 16px 20px;
	background: #F8FAFC;
	border-left: 4px solid var(--qm-primary, #16A34A);
	border-radius: 0 12px 12px 0;
	color: #475569;
	font-style: italic;
}
.qm-typography-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}
.qm-typography-content table th,
.qm-typography-content table td {
	padding: 12px 16px;
	border: 1px solid #E2E8F0;
	text-align: left;
}
.qm-typography-content table th {
	background: #F8FAFC;
	font-weight: 800;
	color: #0F172A;
}
.qm-typography-content a {
	color: var(--qm-primary, #16A34A);
	text-decoration: underline;
	font-weight: 600;
}
.qm-typography-content a:hover {
	color: var(--qm-primary-hover, #15803D);
}
.qm-typography-content hr {
	border: none;
	border-top: 1px solid #E2E8F0;
	margin: 32px 0;
}

/* ==========================================================================
   Footer Styling (Dark Navy Premium Theme)
   ========================================================================== */
.qm-site-footer {
	background: #0F172A !important;
	color: #94A3B8 !important;
	padding: 60px 0 30px 0 !important;
	border-top: 1px solid #1E293B !important;
	margin-top: 40px !important;
}
.qm-footer-grid {
	display: grid !important;
	grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
	gap: 40px !important;
	margin-bottom: 40px !important;
}
@media (max-width: 900px) {
	.qm-footer-grid {
		grid-template-columns: 1fr 1fr !important;
		gap: 30px !important;
	}
}
@media (max-width: 600px) {
	.qm-footer-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
}
.qm-footer-col-title {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #FFFFFF !important;
	margin: 0 0 16px 0 !important;
	letter-spacing: 0.3px !important;
}
.qm-footer-links {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}
.qm-footer-links li {
	margin: 0 !important;
	padding: 0 !important;
}
.qm-footer-links a {
	color: #94A3B8 !important;
	font-size: 13px !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}
.qm-footer-links a:hover {
	color: #16A34A !important;
}
.qm-footer-social-links {
	display: flex !important;
	gap: 10px !important;
	align-items: center !important;
}
.qm-footer-social-link {
	width: 36px !important;
	height: 36px !important;
	border-radius: 8px !important;
	background: #1E293B !important;
	color: #94A3B8 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}
.qm-footer-social-link:hover {
	background: #16A34A !important;
	color: #FFFFFF !important;
	transform: translateY(-2px) !important;
}
.qm-footer-bottom {
	border-top: 1px solid #1E293B !important;
	padding-top: 24px !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
}
.qm-payment-badges {
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
}
.qm-pay-pill {
	background: #1E293B !important;
	color: #CBD5E1 !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	border: 1px solid #334155 !important;
}

/* ==========================================================================
   Single Product Interactive Zoom & Alternate Pictures (Max 4)
   ========================================================================== */
.qm-single-zoom-container {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #F8FAFC;
	cursor: crosshair;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #E2E8F0;
	user-select: none;
}
.qm-single-gallery-main.qm-zoom-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.12s ease-out, opacity 0.15s ease;
	display: block !important;
	pointer-events: none;
	will-change: transform, transform-origin;
}
.qm-zoom-hint {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.qm-single-thumbs-row {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	overflow-x: auto;
	padding: 4px 2px 8px 2px;
	scrollbar-width: thin;
}
.qm-gallery-thumb-btn {
	width: 72px;
	height: 72px;
	padding: 2px;
	border-radius: 10px;
	border: 2px solid #E2E8F0;
	background: #FFFFFF;
	cursor: pointer;
	overflow: hidden;
	flex-shrink: 0;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	position: relative;
}
.qm-gallery-thumb-btn:hover {
	border-color: #94A3B8;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.qm-gallery-thumb-btn.active {
	border-color: #16A34A !important;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2), 0 4px 12px rgba(22, 163, 74, 0.15);
	transform: translateY(-2px);
}
.qm-gallery-thumb-btn img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 7px;
	display: block;
	pointer-events: none;
}

/* Dynamic Header Navigation from Appearance -> Menus */
.qm-header-nav-wrap {
	display: flex;
	align-items: center;
	white-space: nowrap;
}
.qm-header-nav-list {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.qm-header-nav-list li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: inline-flex;
	align-items: center;
}
.qm-header-nav-list li a {
	color: #0F172A;
	text-decoration: none;
	transition: color 0.15s ease;
	display: inline-flex;
	align-items: center;
}
.qm-header-nav-list li a:hover,
.qm-header-nav-list li.current-menu-item > a,
.qm-header-nav-list li.current-menu-ancestor > a {
	color: #16A34A !important;
}

/* Mobile Drawer Dynamic Navigation */
.qm-mobile-nav-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 24px 0;
	padding: 0;
	list-style: none;
}
.qm-mobile-nav-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.qm-mobile-nav-list li a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 700;
	color: #0F172A;
	text-decoration: none;
	transition: background 0.15s;
}
.qm-mobile-nav-list li a:hover,
.qm-mobile-nav-list li.current-menu-item > a {
	background: #F0FDF4;
	color: #16A34A !important;
}



