/* ============================================================
   ClickoMart — main stylesheet
   Design tokens are overridden at runtime by the Customizer
   (see functions.php: --cm-primary, --cm-secondary, --cm-container).
   Default scheme: Orange & White.
   ============================================================ */

:root {
	--cm-primary: #F97316;
	--cm-primary-dark: #EA580C;
	--cm-secondary: #EA580C;
	--cm-text: #1f2937;
	--cm-muted: #6b7280;
	--cm-surface: #ffffff;
	--cm-bg: #f8fafc;
	--cm-border: #e5e7eb;
	--cm-header-bg: #ffffff;
	--cm-footer-bg: #111827;
	--cm-footer-text: #d1d5db;
	--cm-container: 1200px;
	--cm-radius: 10px;
	--cm-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
	--cm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--cm-font);
	color: var(--cm-text);
	background: var(--cm-surface);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cm-primary); text-decoration: none; }
a:hover { color: var(--cm-primary-dark); }

.container {
	width: 100%;
	max-width: var(--cm-container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--cm-radius);
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cm-primary); border-color: var(--cm-primary); color: #fff; }
.btn-primary:hover { background: var(--cm-primary-dark); border-color: var(--cm-primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--cm-primary); color: var(--cm-primary); }
.btn-outline:hover { background: var(--cm-primary); color: #fff; }
/* Light buttons sit on a fixed white pill in every color scheme, so the text
   color is pinned to a dark tone instead of var(--cm-text) (which turns
   near-white in dark mode and becomes unreadable). */
.btn-light { background: #fff; border-color: #fff; color: #1f2937; }
.btn-light:hover { background: rgba(255, 255, 255, 0.9); color: #1f2937; }

/* ---------- Top bar ---------- */
.topbar {
	background: var(--cm-footer-bg);
	color: var(--cm-footer-text);
	font-size: 0.82rem;
}
.topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 7px;
	padding-bottom: 7px;
}
.topbar-welcome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.topbar-menu a { color: var(--cm-footer-text); }
.topbar-menu a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--cm-header-bg); position: relative; z-index: 200; }
.site-header.is-sticky { position: sticky; top: 0; box-shadow: var(--cm-shadow); }

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-branding { flex-shrink: 0; min-width: 0; }
.site-title { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; }
.site-title a { color: var(--cm-text); }
.site-title a:hover { color: var(--cm-primary); }
.site-description { margin: 0; font-size: 0.8rem; color: var(--cm-muted); }
.custom-logo { max-height: 60px; width: auto; }
.site-logo-default { display: inline-block; line-height: 0; }
.default-logo { max-height: 60px; width: auto; max-width: 100%; height: auto; }

/* Search */
.header-search { flex: 1 1 auto; max-width: 560px; margin: 0 auto; }
.product-search { display: flex; border: 2px solid var(--cm-primary); border-radius: var(--cm-radius); overflow: hidden; background: #fff; }
.product-search .search-field {
	flex: 1;
	border: 0;
	padding: 11px 16px;
	font-size: 0.95rem;
	outline: none;
	min-width: 0;
}
.product-search .search-submit {
	border: 0;
	background: var(--cm-primary);
	color: #fff;
	padding: 0 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.product-search .search-submit:hover { background: var(--cm-primary-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-actions a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--cm-text);
	padding: 8px 10px;
	border-radius: var(--cm-radius);
	position: relative;
}
.header-actions a:hover { color: var(--cm-primary); background: var(--cm-bg); }
.header-action-label { font-size: 0.85rem; font-weight: 600; }
.header-cart .cart-count {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--cm-primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* Hamburger */
.menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--cm-text);
	padding: 8px;
}
.menu-toggle-icon-close { display: none; }
.menu-toggle.toggled .menu-toggle-icon { display: none; }
.menu-toggle.toggled .menu-toggle-icon-close { display: block; }

/* ---------- Mobile drawer nav overlay (built by JS when the drawer opens) ---------- */
.cm-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
	/* Must stay BELOW .site-header (z-index: 200): the mobile drawer lives
	 * inside the header's stacking context, so an overlay above 200 would
	 * cover the drawer, dim it and swallow all taps on its menu links. */
	z-index: 150;
}
.cm-nav-overlay.is-visible { opacity: 1; visibility: visible; }
body.cm-nav-open { overflow: hidden; }

/* Drawer close button — shown only on mobile (inside the drawer). */
.cm-nav-close {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 14px 18px;
	align-self: flex-end;
}
.cm-nav-close svg { width: 22px; height: 22px; display: block; }

/* ---------- Primary navigation ---------- */
.main-navigation { background: var(--cm-primary); }
.nav-inner { padding-left: 20px; padding-right: 20px; }

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 14px 20px;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
	background: rgba(0, 0, 0, 0.15);
	color: #fff;
}

/* Dropdowns */
.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	border-radius: 0 0 var(--cm-radius) var(--cm-radius);
	box-shadow: var(--cm-shadow);
	z-index: 300;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li.focus > .sub-menu { display: block; }
.primary-menu .sub-menu li { position: relative; }
.primary-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--cm-text);
	font-size: 0.9rem;
	white-space: nowrap;
}
.primary-menu .sub-menu a:hover { background: var(--cm-bg); color: var(--cm-primary); }
.primary-menu .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--cm-radius); }

/* Mega menu: add the "mega-menu" CSS class to a top-level menu item
   in Appearance > Menus to turn its dropdown into a full-width panel. */
.primary-menu > li.mega-menu { position: static; }
.primary-menu > li.mega-menu > .sub-menu {
	left: 0;
	right: 0;
	width: 100%;
	display: none;
	flex-wrap: wrap;
	padding: 24px;
	gap: 8px 32px;
	border-radius: 0 0 var(--cm-radius) var(--cm-radius);
}
.primary-menu > li.mega-menu:hover > .sub-menu,
.primary-menu > li.mega-menu.focus > .sub-menu { display: flex; }
.primary-menu > li.mega-menu > .sub-menu > li { flex: 1 1 200px; }
.primary-menu > li.mega-menu > .sub-menu > li > a {
	font-weight: 700;
	color: var(--cm-text);
	text-transform: uppercase;
	font-size: 0.82rem;
	letter-spacing: 0.5px;
	padding: 6px 0;
}
.primary-menu > li.mega-menu .sub-menu .sub-menu {
	position: static;
	display: block;
	box-shadow: none;
	padding: 0;
	min-width: 0;
}

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--cm-footer-bg); }
.hero-slides { position: relative; }
.hero-slide {
	display: none;
	min-height: 420px;
	align-items: center;
	color: #fff;
}
.hero-slide.is-active { display: flex; animation: heroFade 0.6s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero-slide.tone-a { background: linear-gradient(120deg, var(--cm-primary) 0%, var(--cm-secondary) 60%, #7c2d12 130%); }
.hero-slide.tone-b { background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 70%, var(--cm-primary) 140%); }
.hero-slide.tone-c { background: linear-gradient(120deg, #065f46 0%, #047857 60%, var(--cm-primary) 150%); }

.hero-content { padding-top: 70px; padding-bottom: 70px; max-width: var(--cm-container); }
.hero-heading { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0 0 0.4em; letter-spacing: -1px; }
.hero-text { font-size: 1.1rem; max-width: 560px; opacity: 0.92; margin-bottom: 1.4em; }
.hero-btn { font-size: 1rem; }

.hero-prev, .hero-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18);
	border: 0;
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.hero-prev:hover, .hero-next:hover { background: rgba(255, 255, 255, 0.35); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-dots {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}
.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

/* ---------- Trust badges ---------- */
.trust-badges { background: var(--cm-surface); border-bottom: 1px solid var(--cm-border); }
.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 22px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon { color: var(--cm-primary); flex-shrink: 0; display: flex; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--cm-muted); }

/* ---------- Homepage sections ---------- */
.home-section { padding: 56px 0; }
.home-section:nth-of-type(even) { background: var(--cm-bg); }

.section-head { text-align: center; margin-bottom: 34px; }
.section-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.25em; }
.section-sub { color: var(--cm-muted); margin: 0; }
.section-empty { text-align: center; color: var(--cm-muted); grid-column: 1 / -1; min-width: 0; overflow-wrap: break-word; }

/* Category tiles */
.category-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.category-tile {
	position: relative;
	border-radius: var(--cm-radius);
	min-height: 170px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
	color: #fff;
	overflow: hidden;
	box-shadow: var(--cm-shadow);
	transition: transform 0.2s ease;
}
.category-tile:hover { transform: translateY(-4px); color: #fff; }
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05));
}
.tile-a { background: linear-gradient(135deg, #F97316, #c2410c); }
.tile-b { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.tile-c { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.tile-d { background: linear-gradient(135deg, #10b981, #065f46); }
.tile-e { background: linear-gradient(135deg, #f43f5e, #9f1239); }
.tile-f { background: linear-gradient(135deg, #f59e0b, #92400e); }
.tile-letter {
	position: absolute;
	top: 12px;
	right: 16px;
	font-size: 3.2rem;
	font-weight: 800;
	opacity: 0.35;
	z-index: 1;
	line-height: 1;
}
.tile-name, .tile-count { position: relative; z-index: 1; }
.tile-name { font-weight: 700; font-size: 1.02rem; }
.tile-count { font-size: 0.8rem; opacity: 0.85; }

/* ---------- WooCommerce product cards ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
/* Shop loop sale badges: tidy inline row, never overlapping. */
.woocommerce ul.products li.product .cm-badge-deal,
.woocommerce ul.products li.product span.onsale { display: inline-block; vertical-align: middle; }
.woocommerce ul.products li.product .cm-badge-deal { margin: 0 6px 6px 0; }
.woocommerce ul.products li.product span.onsale { margin: 0 0 6px; }
.woocommerce ul.products li.product {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	margin: 0 !important;
	padding: 0 0 18px !important;
	width: auto !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--cm-shadow); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--cm-text);
	padding: 14px 16px 4px;
	margin: 0;
}
.woocommerce ul.products li.product .price {
	color: var(--cm-primary);
	font-weight: 800;
	font-size: 1.05rem;
	padding: 0 16px;
	margin-bottom: 10px;
}
.woocommerce ul.products li.product .price del { color: var(--cm-muted); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .star-rating { margin: 0 16px 8px; color: #f59e0b; }
.woocommerce ul.products li.product .button {
	margin: auto 16px 0;
	background: var(--cm-primary);
	color: #fff;
	border-radius: var(--cm-radius);
	font-weight: 700;
	text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--cm-primary-dark); color: #fff; }
.woocommerce span.onsale {
	background: var(--cm-primary);
	color: #fff;
	font-weight: 700;
	border-radius: 999px;
	min-height: 0;
	line-height: 1;
	padding: 7px 12px;
	font-size: 0.78rem;
}

/* Single product tweaks */
.woocommerce div.product .product_title { font-size: 1.8rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cm-primary); font-size: 1.5rem; font-weight: 800; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt,
.woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--cm-primary);
}
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: var(--cm-primary-dark);
}

/* Shop layout with sidebar */
.shop-layout, .content-layout { display: grid; gap: 32px; align-items: start; }
.shop-layout { grid-template-columns: 270px 1fr; }
/* No sidebar widgets: let the content use the full width. */
.shop-layout-no-sidebar { grid-template-columns: 1fr; }
/* Single product pages have no sidebar — don't squeeze content into the 270px track */
.single-product .shop-layout { grid-template-columns: 1fr; }
/* Let the grid item shrink below its content width (prevents mobile overflow) */
.single-product .shop-content { min-width: 0; }
.content-layout.layout-right { grid-template-columns: 1fr 300px; }
.content-layout.layout-left { grid-template-columns: 300px 1fr; }
.content-layout.layout-left .content-area { order: 2; }
.content-layout.layout-left .widget-area { order: 1; }
.content-layout.layout-none { grid-template-columns: 1fr; }

/* WooCommerce notice when inactive */
.wc-notice {
	background: var(--cm-bg);
	border: 1px dashed var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 40px 24px;
	text-align: center;
}
.wc-notice p { font-size: 1.05rem; margin-bottom: 1.2em; }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-banner {
	border-radius: var(--cm-radius);
	padding: 34px 28px;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 190px;
	justify-content: center;
	transition: transform 0.2s ease;
}
.promo-banner:hover { transform: translateY(-4px); color: #fff; }
.promo-a { background: linear-gradient(135deg, var(--cm-primary), var(--cm-secondary)); }
.promo-b { background: linear-gradient(135deg, #1e293b, #0f172a); }
.promo-c { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.promo-kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; }
.promo-title { font-size: 1.35rem; line-height: 1.3; }
.promo-link { font-weight: 700; margin-top: 6px; }

/* ---------- Product tabs ---------- */
.cm-tab-list { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.cm-tab {
	background: var(--cm-bg);
	border: 1px solid var(--cm-border);
	border-radius: 999px;
	padding: 10px 26px;
	font-weight: 700;
	font-size: 0.92rem;
	cursor: pointer;
	color: var(--cm-text);
}
.cm-tab:hover { border-color: var(--cm-primary); color: var(--cm-primary); }
.cm-tab.is-active { background: var(--cm-primary); border-color: var(--cm-primary); color: #fff; }
.cm-tab-panel { display: none; }
.cm-tab-panel.is-active { display: block; animation: heroFade 0.4s ease; }

/* ---------- Brand strip ---------- */
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brand-badge {
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 14px 30px;
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--cm-muted);
	background: var(--cm-surface);
	letter-spacing: 0.5px;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.brand-badge:hover { color: var(--cm-primary); border-color: var(--cm-primary); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 28px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--cm-shadow);
}
.testimonial-stars { color: #f59e0b; display: flex; gap: 3px; }
.testimonial blockquote { margin: 0; font-style: italic; color: var(--cm-text); flex: 1; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { font-size: 0.82rem; color: var(--cm-muted); }

/* ---------- Newsletter ---------- */
.newsletter-cta { background: linear-gradient(120deg, var(--cm-primary), var(--cm-secondary)) !important; color: #fff; text-align: center; }
.newsletter-cta-inner h2 { font-size: 1.8rem; margin-bottom: 0.3em; }
.newsletter-cta-inner p { opacity: 0.92; margin-bottom: 1.4em; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type="email"] {
	flex: 1;
	border: 0;
	border-radius: var(--cm-radius);
	padding: 13px 18px;
	font-size: 0.95rem;
	min-width: 0;
}
.newsletter-form button {
	border: 0;
	border-radius: var(--cm-radius);
	background: var(--cm-footer-bg);
	color: #fff;
	font-weight: 700;
	padding: 13px 26px;
	cursor: pointer;
	white-space: nowrap;
}
.newsletter-form button:hover { background: #000; }
.newsletter-success, .newsletter-error {
	max-width: 480px;
	margin: 0 auto;
	padding: 14px 18px;
	border-radius: var(--cm-radius);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.newsletter-success { background: rgba(255, 255, 255, 0.18); color: #fff; }
.newsletter-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
footer .newsletter-form { margin: 14px 0 0; max-width: none; }
footer .newsletter-form input[type="email"] { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
footer .newsletter-form input[type="email"]::placeholder { color: #9ca3af; }
footer .newsletter-form button { background: var(--cm-primary); }
footer .newsletter-form button:hover { background: var(--cm-primary-dark); }
footer .newsletter-success { background: rgba(255, 255, 255, 0.1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cm-footer-bg); color: var(--cm-footer-text); padding: 56px 0 0; margin-top: 0; }
.footer-widgets { display: grid; gap: 32px; padding-bottom: 40px; }
.footer-columns-1 { grid-template-columns: 1fr; }
.footer-columns-2 { grid-template-columns: repeat(2, 1fr); }
.footer-columns-3 { grid-template-columns: repeat(3, 1fr); }
.footer-columns-4 { grid-template-columns: repeat(4, 1fr); }
.site-footer .widget-title { color: #fff; font-size: 1.05rem; margin-bottom: 1em; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer a { color: var(--cm-footer-text); }
.site-footer a:hover { color: var(--cm-primary); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.55em; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { flex-shrink: 0; color: var(--cm-primary); }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge {
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 5px;
	padding: 5px 12px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	color: #fff;
	white-space: nowrap;
}
.copyright { margin: 0; font-size: 0.85rem; }

/* ---------- Blog ---------- */
.page-header { margin: 36px 0 28px; }
.page-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.archive-description { color: var(--cm-muted); margin-top: 8px; }

.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 36px; }
.post-card {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: var(--cm-shadow); transform: translateY(-3px); }
.post-card-thumb img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .entry-title { font-size: 1.25rem; margin-bottom: 0.4em; }
.post-card .entry-title a { color: var(--cm-text); }
.post-card .entry-title a:hover { color: var(--cm-primary); }
.entry-meta { font-size: 0.82rem; color: var(--cm-muted); margin-bottom: 0.9em; display: flex; gap: 12px; flex-wrap: wrap; }
.entry-summary { flex: 1; color: var(--cm-muted); }
.post-card .entry-footer { margin-top: 1.1em; }

/* Single post / page */
.post-single .entry-title, .page-single .entry-title { font-size: 2.2rem; }
.post-thumbnail { margin: 0 0 1.8em; border-radius: var(--cm-radius); overflow: hidden; }
.entry-content { margin-bottom: 2em; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { margin: 1.5em 0; font-weight: 700; }

/* Post navigation */
.post-navigation { border-top: 1px solid var(--cm-border); padding-top: 1.5em; margin-bottom: 2.5em; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation .nav-subtitle { display: block; font-size: 0.8rem; color: var(--cm-muted); text-transform: uppercase; letter-spacing: 1px; }
.post-navigation .nav-title { font-weight: 700; color: var(--cm-text); }

/* Pagination */
.pagination { margin: 0 0 40px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	color: var(--cm-text);
	font-weight: 600;
}
.page-numbers.current { background: var(--cm-primary); border-color: var(--cm-primary); color: #fff; }
a.page-numbers:hover { border-color: var(--cm-primary); color: var(--cm-primary); }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 2em; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1em; padding-bottom: 0.6em; border-bottom: 2px solid var(--cm-primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 0.5em; padding-bottom: 0.5em; border-bottom: 1px solid var(--cm-border); }
.widget ul li:last-child { border-bottom: 0; }
.widget select, .widget input[type="text"], .widget input[type="search"] { width: 100%; padding: 10px 12px; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); }

/* ---------- Comments ---------- */
.comments-area { margin: 2.5em 0; border-top: 1px solid var(--cm-border); padding-top: 2em; }
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2em; padding: 0; }
.comment-list .children { list-style: none; margin-left: 40px; padding: 0; }
.comment-body { border: 1px solid var(--cm-border); border-radius: var(--cm-radius); padding: 18px; margin-bottom: 16px; }
.comment-meta { font-size: 0.82rem; color: var(--cm-muted); margin-bottom: 0.6em; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 12px 14px;
	font-size: 0.95rem;
	font-family: inherit;
}
.comment-form .form-submit input[type="submit"] {
	background: var(--cm-primary);
	color: #fff;
	border: 0;
	border-radius: var(--cm-radius);
	padding: 12px 30px;
	font-weight: 700;
	cursor: pointer;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--cm-primary-dark); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 70px 0; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--cm-primary); margin: 0; line-height: 1; }
.error-404 .search-form { max-width: 440px; margin: 1.6em auto; display: flex; gap: 8px; }
.error-404 .search-field { flex: 1; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); padding: 12px 16px; }
.error-404 .search-submit {
	background: var(--cm-primary);
	color: #fff;
	border: 0;
	border-radius: var(--cm-radius);
	padding: 12px 24px;
	font-weight: 700;
	cursor: pointer;
}
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1em; }

/* ---------- Back to top ---------- */
#back-to-top {
	position: fixed;
	bottom: 92px; /* sits above the WhatsApp float, never under it */
	right: 26px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--cm-primary);
	color: #fff;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: var(--cm-shadow);
	z-index: 400;
}
#back-to-top:hover { background: var(--cm-primary-dark); }
#back-to-top.is-visible { display: flex; }
@media (max-width: 640px) {
	#back-to-top { bottom: 78px; right: 18px; width: 44px; height: 44px; }
	/* Never allow sideways page scroll on small screens (clip keeps sticky header working) */
	html, body { overflow-x: clip; }
}

/* ---------- Search forms (widget / no-results) ---------- */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; border: 1px solid var(--cm-border); border-radius: var(--cm-radius); padding: 10px 14px; min-width: 0; }
.search-form .search-submit {
	background: var(--cm-primary);
	color: #fff;
	border: 0;
	border-radius: var(--cm-radius);
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
	.shop-layout { grid-template-columns: 230px 1fr; }
	.content-layout.layout-right { grid-template-columns: 1fr 260px; }
	.content-layout.layout-left { grid-template-columns: 260px 1fr; }
	.header-action-label { display: none; }
}

@media (max-width: 860px) {
	/* Mobile nav — becomes an off-canvas drawer (drawer styles live in the 900px block below) */
	.menu-toggle { display: block; }
	.nav-inner { padding: 0; }
	.primary-menu { flex-direction: column; }
	.primary-menu > li > a { padding: 13px 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
	.primary-menu .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		border-radius: 0;
		background: rgba(0, 0, 0, 0.12);
		padding: 0;
	}
	.primary-menu .sub-menu a { color: #fff; padding: 10px 34px; white-space: normal; }
	.primary-menu .sub-menu a:hover { background: rgba(0, 0, 0, 0.15); color: #fff; }
	.primary-menu > li.mega-menu > .sub-menu { display: block; padding: 0 0 8px; }
	.primary-menu > li.mega-menu > .sub-menu > li { flex: 1 1 100%; }
	.primary-menu > li.mega-menu > .sub-menu > li > a { color: #fff; padding: 10px 34px; }
	.primary-menu > li.mega-menu .sub-menu .sub-menu a { padding-left: 48px; }

	.header-inner { flex-wrap: wrap; gap: 14px; }
	.site-branding { order: 1; }
	.menu-toggle { order: 0; }
	.header-actions { order: 2; }
	.header-search { order: 3; flex: 1 1 100%; max-width: none; }

	.hero-slide { min-height: 340px; }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.promo-grid { grid-template-columns: 1fr; }
	.testimonial-grid { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.shop-layout, .content-layout.layout-right, .content-layout.layout-left { grid-template-columns: 1fr; }
	.content-layout.layout-left .content-area { order: 1; }
	.content-layout.layout-left .widget-area { order: 2; }
	.sidebar-shop, .widget-area { border-top: 1px solid var(--cm-border); padding-top: 24px; }
	.footer-columns-4, .footer-columns-3 { grid-template-columns: repeat(2, 1fr); }
	.posts-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
	.topbar-menu { display: none; }
}

@media (max-width: 520px) {
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
	.woocommerce ul.products li.product .button { font-size: 0.82rem; }
	.newsletter-form { flex-direction: column; }
	.footer-columns-4, .footer-columns-3, .footer-columns-2 { grid-template-columns: 1fr; }
	.hero-prev, .hero-next { display: none; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.home-section { padding: 40px 0; }
}

/* ============================================================
   ClickoMart — homepage product sections, product cards,
   single-product tweaks and checkout fee notices.
   ============================================================ */

/* ---------- Hero slider: product slides ---------- */
.hero-product-inner {
	display: flex;
	align-items: center;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 56px;
}
.hero-product-text { flex: 1 1 55%; min-width: 0; }
.hero-product-image {
	flex: 1 1 45%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}
.hero-product-image img {
	max-height: 360px;
	width: auto;
	max-width: 100%;
	border-radius: var(--cm-radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	background: #fff;
}
.hero-product-letter {
	font-size: 9rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.35);
	line-height: 1;
}
.hero-sale-badge {
	display: inline-block;
	background: #fff;
	color: var(--cm-primary);
	font-weight: 800;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 999px;
	padding: 6px 16px;
	margin-bottom: 14px;
}
.hero-price {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0 0 1.2em;
	color: #fff;
}
.hero-price del { opacity: 0.65; font-weight: 400; margin-right: 10px; font-size: 1.2rem; }
.hero-price ins { text-decoration: none; }

/* ---------- Product cards (hot items + category grids) ---------- */
.hot-items-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}
.cat-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.cm-product-card {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cm-product-card:hover { box-shadow: var(--cm-shadow); transform: translateY(-3px); }
.cm-product-card-media {
	position: relative;
	display: block;
	background: var(--cm-bg);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.cm-product-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cm-product-card-letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4.5rem;
	font-weight: 800;
	color: var(--cm-muted);
	opacity: 0.4;
}
.cm-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--cm-primary);
	color: #fff;
	font-weight: 800;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 999px;
	padding: 6px 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Inside the card badge row the SALE badge must flow with the flex row,
   not absolutely overlay the discount/DEAL badges. */
.cm-card-badges .cm-sale-badge { position: static; }
.cm-product-card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.cm-product-card-title { font-size: 1rem; font-weight: 600; margin: 0 0 0.4em; line-height: 1.4; }
.cm-product-card-title a { color: var(--cm-text); }
.cm-product-card-title a:hover { color: var(--cm-primary); }
.cm-product-card-price {
	color: var(--cm-primary);
	font-weight: 800;
	font-size: 1.1rem;
	margin: 0 0 0.8em;
}
.cm-product-card-price del { color: var(--cm-muted); font-weight: 400; margin-right: 8px; font-size: 0.9rem; }
.cm-product-card-price ins { text-decoration: none; }
.cm-product-card .button {
	margin-top: auto;
	background: var(--cm-primary);
	color: #fff;
	border-radius: var(--cm-radius);
	font-weight: 700;
	text-align: center;
	border: 0;
	padding: 12px 18px;
	cursor: pointer;
}
.cm-product-card .button:hover { background: var(--cm-primary-dark); color: #fff; }

/* Large hot-item cards */
.cm-product-card-large .cm-product-card-media { aspect-ratio: 16 / 10; }
.cm-product-card-large .cm-product-card-title { font-size: 1.3rem; }
.cm-product-card-large .cm-product-card-price { font-size: 1.4rem; }
.cm-product-card-large .cm-product-card-body { padding: 24px 26px 28px; }
.cm-product-card-large .button { font-size: 1.02rem; padding: 14px 22px; }

/* ---------- Category sections ---------- */
.cat-section-banner {
	position: relative;
	border-radius: var(--cm-radius);
	overflow: hidden;
	margin-bottom: 28px;
	background: linear-gradient(120deg, var(--cm-primary), var(--cm-secondary));
	min-height: 150px;
	display: flex;
	align-items: center;
}
.cat-section-banner.has-image { min-height: 190px; }
.cat-section-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cat-section-head {
	position: relative;
	z-index: 1;
	padding: 30px 34px;
	color: #fff;
}
.cat-section-banner.has-image .cat-section-head {
	background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
	width: 100%;
}
.cat-section-head .section-title { color: #fff; margin-bottom: 0.15em; }
.cat-section-head .section-sub { color: rgba(255, 255, 255, 0.9); margin: 0; }
.cat-section-more { text-align: center; margin-top: 30px; }

/* ---------- Single product page ---------- */
/* Prominent sale badge */
.woocommerce div.product span.onsale {
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 10px 20px;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	z-index: 5;
}
/* Clearly visible stock status */
.cm-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 999px;
	padding: 8px 18px;
	margin: 0 0 1.2em;
}
.cm-stock-status::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
}
.cm-stock-in { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.cm-stock-low { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.cm-stock-out { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
/* Variation dropdowns (Color / Type / Pack / Sizes — any attribute) */
.woocommerce div.product form.cart .variations { margin-bottom: 1.2em; }
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	text-align: left;
	padding: 0;
	background: none;
}
.woocommerce div.product form.cart .variations th label {
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	display: block;
}
.woocommerce div.product form.cart .variations select {
	width: 100%;
	max-width: 340px;
	padding: 12px 14px;
	border: 2px solid var(--cm-border);
	border-radius: var(--cm-radius);
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--cm-text);
	background: #fff;
	margin-bottom: 14px;
	cursor: pointer;
}
.woocommerce div.product form.cart .variations select:focus {
	border-color: var(--cm-primary);
	outline: none;
}
.woocommerce div.product form.cart .reset_variations {
	margin-left: 10px;
	font-size: 0.85rem;
}
/* Checkout fee / discount rows */
.woocommerce .cart-fee th,
.woocommerce .cart-fee td { font-weight: 700; }

/* ---------- Responsive: new sections ---------- */
@media (max-width: 1024px) {
	.cat-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.hero-product-inner { flex-direction: column; gap: 26px; text-align: center; padding-top: 44px; padding-bottom: 44px; }
	.hero-product-image img { max-height: 260px; }
	.hero-price { margin-bottom: 1em; }
	.hot-items-grid { grid-template-columns: 1fr; }
	.cat-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.cat-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cm-product-card-body { padding: 12px 12px 16px; }
	.cm-product-card-large .cm-product-card-body { padding: 18px; }
	.cat-section-head { padding: 22px; }
}

/* ============================================================
 * ClickoMart — Shop extras (v1.2.0)
 * Wishlist / compare / quick view / countdown / sticky cart /
 * recently viewed / policy pages.
 * ============================================================ */

/* ---------- Product card icon actions ---------- */
.cm-product-card { position: relative; }
.cm-card-actions {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 3;
}
.cm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--cm-border);
	background: var(--cm-surface);
	color: var(--cm-text);
	cursor: pointer;
	box-shadow: var(--cm-shadow);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	padding: 0;
}
.cm-icon-btn:hover { transform: scale(1.08); border-color: var(--cm-primary); color: var(--cm-primary); }
.cm-icon-btn.is-active { background: var(--cm-primary); border-color: var(--cm-primary); color: #fff; }
.cm-icon-btn.cm-flash { animation: cm-flash 0.5s ease; }
@keyframes cm-flash { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Quick view button revealed on card hover */
.cm-product-card-media-wrap { position: relative; }
/* Quick view bar revealed on media hover.
   Scoped to the media-wrap placement only: the same .cm-quick-view-btn class
   is also used as a plain icon button inside .cm-card-hover and as a text
   button inside .cm-loop-actions, where the absolute full-width bar would
   cover the wishlist/compare buttons and swallow their clicks. */
.cm-product-card-media-wrap > .cm-quick-view-btn {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--cm-radius);
	background: rgba(17, 24, 39, 0.85);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 2;
}
.cm-product-card-media-wrap:hover > .cm-quick-view-btn,
.cm-product-card-media-wrap:focus-within > .cm-quick-view-btn { opacity: 1; transform: translateY(0); }
.cm-product-card-media-wrap > .cm-quick-view-btn:hover { background: var(--cm-primary); }
.cm-quick-view-btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Buttons under native WooCommerce loop cards */
.cm-loop-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cm-text-btn {
	background: transparent;
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 8px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cm-text);
	cursor: pointer;
}
.cm-text-btn:hover { border-color: var(--cm-primary); color: var(--cm-primary); }

/* Buttons on the single product page */
.cm-single-actions { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.cm-outline-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--cm-text);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cm-outline-btn:hover { border-color: var(--cm-primary); color: var(--cm-primary); }
.cm-outline-btn.is-active { background: var(--cm-primary); border-color: var(--cm-primary); color: #fff; }

/* ---------- Header wishlist ---------- */
.header-wishlist { position: relative; }
.header-wishlist .wishlist-count {
	position: absolute;
	top: -6px;
	inset-inline-end: -8px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--cm-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
.header-wishlist .wishlist-count.is-empty { background: var(--cm-muted); }

/* ---------- Quick view modal ---------- */
body.cm-qv-open { overflow: hidden; }
.cm-qv-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cm-qv-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); }
.cm-qv-dialog {
	position: relative;
	background: var(--cm-surface);
	border-radius: 14px;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
	animation: cm-qv-in 0.22s ease;
}
@keyframes cm-qv-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.cm-qv-close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--cm-border);
	background: var(--cm-surface);
	font-size: 1.3rem;
	line-height: 1;
	color: var(--cm-text);
	cursor: pointer;
	z-index: 2;
}
.cm-qv-close:hover { border-color: var(--cm-primary); color: var(--cm-primary); }
.cm-qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }
.cm-qv-media { position: relative; }
.cm-qv-media img { width: 100%; height: auto; border-radius: var(--cm-radius); display: block; }
.cm-qv-title { margin: 0 0 8px; font-size: 1.35rem; }
.cm-qv-title a { color: var(--cm-text); }
.cm-qv-price { font-size: 1.25rem; font-weight: 700; color: var(--cm-primary); margin: 10px 0; }
.cm-qv-price del { color: var(--cm-muted); font-weight: 400; font-size: 1rem; margin-right: 8px; }
.cm-qv-price ins { text-decoration: none; }
.cm-qv-desc { color: var(--cm-muted); font-size: 0.95rem; margin: 0 0 16px; }
.cm-qv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-qv-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--cm-muted); margin: 0; }
.cm-stock-in { color: #16a34a; font-weight: 600; }
.cm-stock-out { color: #dc2626; font-weight: 600; }
.cm-stock-low { color: #d97706; font-weight: 600; }
@media (max-width: 640px) {
	.cm-qv-grid { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}

/* ---------- Sale countdown ---------- */
.cm-countdown {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 7px 12px;
	border-radius: var(--cm-radius);
	background: #fef2f2;
	border: 1px dashed #fca5a5;
	font-size: 0.82rem;
	color: #b91c1c;
}
.cm-cd-label { font-weight: 600; }
.cm-cd-time { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.5px; }
.cm-countdown-single { font-size: 0.95rem; padding: 10px 16px; }

/* ---------- Sticky mobile add-to-cart ---------- */
.cm-sticky-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: var(--cm-surface);
	border-top: 1px solid var(--cm-border);
	box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
	transform: translateY(110%);
	transition: transform 0.25s ease;
	display: none;
}
.cm-sticky-cart.is-visible { transform: translateY(0); }
.cm-sticky-cart-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: var(--cm-container);
	margin: 0 auto;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.cm-sticky-cart-media img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.cm-sticky-cart-info { flex: 1 1 auto; min-width: 0; }
.cm-sticky-cart-info strong { display: block; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sticky-cart-price { font-size: 0.9rem; font-weight: 700; color: var(--cm-primary); }
.cm-sticky-cart .button { white-space: nowrap; }
@media (max-width: 860px) {
	.cm-sticky-cart.is-visible { display: block; }
	/* Lift the floating buttons above the sticky add-to-cart bar */
	body.cm-has-sticky-cart #back-to-top { bottom: 154px; }
}

/* ---------- Recently viewed ---------- */
.cm-recently-viewed { padding: 40px 0 8px; }
.cm-product-grid { display: grid; gap: 20px; }
.cm-product-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .cm-product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cm-product-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Wishlist / compare pages ---------- */
.cm-wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .cm-wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cm-wishlist-grid { grid-template-columns: repeat(2, 1fr); } }
.cm-compare-scroll { overflow-x: auto; }
.cm-compare-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--cm-surface); border-radius: var(--cm-radius); overflow: hidden; }
.cm-compare-table th,
.cm-compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--cm-border); text-align: start; vertical-align: top; }
.cm-compare-table th { width: 160px; color: var(--cm-muted); font-weight: 600; font-size: 0.85rem; background: var(--cm-bg); }
.cm-compare-product { position: relative; text-align: center; }
.cm-compare-product img { max-width: 180px; width: 100%; height: auto; border-radius: var(--cm-radius); }
.cm-compare-product h3 { font-size: 1rem; margin: 10px 0 6px; }
.cm-compare-product h3 a { color: var(--cm-text); }
.cm-compare-remove {
	background: none;
	border: 0;
	color: var(--cm-muted);
	font-size: 0.82rem;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}
.cm-compare-remove:hover { color: #dc2626; }
.cm-compare-price { font-weight: 700; color: var(--cm-primary); font-size: 1.05rem; }
.cm-compare-price del { color: var(--cm-muted); font-weight: 400; margin-right: 6px; }
.cm-compare-price ins { text-decoration: none; }

/* ---------- Policy / legal pages ---------- */
.cm-policy-notice {
	border: 1px solid #fcd34d;
	background: #fffbeb;
	color: #92400e;
	border-radius: var(--cm-radius);
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 0.9rem;
}
.cm-policy-sections h2 { margin-top: 2em; font-size: 1.25rem; }
.cm-policy-sections h2:first-child { margin-top: 0; }
.cm-policy-sections p, .cm-policy-sections li { color: var(--cm-text); line-height: 1.75; }
.cm-policy-sections ul { padding-inline-start: 1.4em; }
.cm-policy-meta { color: var(--cm-muted); font-size: 0.85rem; margin-bottom: 24px; }

/* ---------- Track order ---------- */
.cm-track-order-wrap { max-width: 560px; margin: 0 auto; }
.cm-track-order-wrap .woocommerce form { background: var(--cm-surface); border: 1px solid var(--cm-border); border-radius: var(--cm-radius); padding: 28px; }

/* ---------- Page template layout (about/faq/contact/policy pages) ---------- */
.page-template-wrap { padding: 44px 0 60px; }
.page-template-narrow { max-width: 820px; }
.page-header-centered { text-align: center; margin-bottom: 34px; }
.page-header-centered .page-title { margin: 0.2em 0 0.3em; }
.section-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--cm-primary);
	margin-bottom: 6px;
}
.page-cta { text-align: center; margin-top: 30px; }

/* ============================================================
 * ClickoMart Marketplace design language (v1.3.0)
 * Fresh original styling inspired by modern marketplace demos.
 * All colors flow through CSS variables → compatible with every
 * color preset and dark mode.
 * ============================================================ */

/* ---------- Global pill feel + spacing ---------- */
:root { --cm-radius-lg: 18px; }
.btn, .button, button[type="submit"] { border-radius: 999px; }
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"],
textarea, select {
	border-radius: 999px;
}
textarea { border-radius: var(--cm-radius-lg); }
.home-section { padding: 52px 0; }
.section-head { margin-bottom: 26px; }
.section-title { font-size: 1.7rem; letter-spacing: -0.01em; }

/* ---------- Marketplace 3-row header ---------- */
.marketplace-header .mh-main-row {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 18px 0;
}
.marketplace-header .site-branding { flex: 0 0 auto; }
.marketplace-header .header-search { flex: 1 1 auto; max-width: 640px; }
.marketplace-header .product-search {
	border-radius: 999px;
	display: flex;
	align-items: stretch;
	overflow: visible;
	position: relative;
}
.marketplace-header .search-cats {
	border: 0;
	border-right: 1px solid var(--cm-border);
	background: transparent;
	padding: 0 12px;
	font-size: 14px;
	color: var(--cm-muted);
	max-width: 150px;
	border-radius: 999px 0 0 999px;
}
.marketplace-header .search-field { border: 0; flex: 1; }
.marketplace-header .search-submit { border-radius: 0 999px 999px 0; }
.marketplace-header .header-extras {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}
.header-hotline { display: flex; align-items: center; gap: 10px; }
.hotline-icon {
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--cm-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-primary);
}
.hotline-text small { display: block; font-size: 12px; color: var(--cm-muted); }
.hotline-text strong { font-size: 15px; white-space: nowrap; }
.marketplace-header .header-actions { display: flex; align-items: center; gap: 14px; }
.header-cart .cart-meta { display: inline-flex; flex-direction: column; line-height: 1.2; margin-left: 6px; }
.header-cart .cart-total { font-size: 13px; font-weight: 700; }
.header-cart { display: inline-flex; align-items: center; }

/* Orange category nav bar */
.cat-nav { background: var(--cm-primary); color: #fff; }
.cat-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.cat-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
}
.cat-nav-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 600;
	font-size: 14.5px;
	padding: 13px 14px;
	white-space: nowrap;
	border-radius: 10px;
}
.cat-nav-list a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cat-nav-icon { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.25); }
.cat-nav-links a { color: #fff; font-size: 14px; font-weight: 600; padding: 13px 8px; white-space: nowrap; }
.cat-nav-links a:hover { text-decoration: underline; }
.mh-mobile-nav { display: none; }
@media (max-width: 900px) {
	.marketplace-header .mh-main-row { flex-wrap: wrap; gap: 14px; }
	.marketplace-header .header-search { order: 3; flex: 1 1 100%; max-width: none; }
	.header-hotline { display: none; }
	.menu-toggle { display: block; }

	/* ----- Off-canvas drawer navigation (all header layouts) -----
	 * On mobile the primary nav no longer sits in the page flow; it slides
	 * in from the side as a drawer with an overlay, so it can never cover
	 * or push the page content permanently. */
	.main-navigation {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: min(330px, 86vw);
		height: 100dvh;
		max-height: 100dvh;
		overflow-y: auto;
		overflow-x: hidden;
		transform: translateX(-106%);
		transition: transform 0.32s ease, visibility 0.32s;
		visibility: hidden;
		z-index: 10050;
	}
	body.admin-bar .main-navigation {
		top: 46px;
		height: calc(100dvh - 46px);
		max-height: calc(100dvh - 46px);
	}
	.main-navigation.toggled { transform: translateX(0); visibility: visible; }
	.mh-mobile-nav { display: flex; }
	.cm-nav-close { display: inline-flex; }

	/* No sticky/fixed header bar on mobile — the header scrolls away with
	 * the page, so it can never sit on top of the content. */
	.site-header.is-sticky { position: static; top: auto; box-shadow: none; }

	/* ----- Mobile logo: always fit fully inside the header ----- */
	.site-branding,
	.marketplace-header .site-branding { flex: 1 1 auto; min-width: 0; }
	.site-branding .custom-logo,
	.site-branding .default-logo {
		max-height: 44px;
		max-width: 160px;
		width: auto;
		height: auto;
	}
	.custom-logo-link { display: inline-block; max-width: 100%; }
}

/* ---------- Hero zone: slider + side promo ---------- */
.hero-zone { padding: 26px 0 6px; }
.hero-zone-inner {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	align-items: stretch;
}
.hero-zone .hero { border-radius: var(--cm-radius-lg); overflow: hidden; margin: 0; }
.hero-zone .hero-slide { border-radius: var(--cm-radius-lg); }
.hero-slide.tone-a { background: linear-gradient(120deg, #fff7ed, #ffedd5); }
.hero-slide.tone-b { background: linear-gradient(120deg, #eff6ff, #dbeafe); }
.hero-slide.tone-c { background: linear-gradient(120deg, #f0fdf4, #dcfce7); }
/* Light theme: slides sit on pastel backgrounds, so slide text and controls
   must be dark to stay readable (dark theme keeps white — see below). */
.hero-slide .hero-heading { color: #1f2937; }
.hero-slide .hero-text { color: #4b5563; }
.hero-slide .hero-price,
.hero-slide .hero-price .price,
.hero-slide .hero-price ins { color: #1f2937; text-decoration: none; }
.hero-slide .hero-price del { color: #6b7280; }
.hero-prev, .hero-next { color: #1f2937; background: rgba(255, 255, 255, .65); }
.hero-prev:hover, .hero-next:hover { background: rgba(255, 255, 255, .9); }
.hero-dot { background: rgba(31, 41, 55, .25); }
.hero-dot.is-active { background: var(--cm-primary); transform: scale(1.25); }
.hero-product-letter { color: rgba(31, 41, 55, .16); }
.hero-slide .hero-kicker, .hero-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--cm-primary);
	background: rgba(255, 255, 255, .7);
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 12px;
}
.hero-side {
	background: linear-gradient(160deg, var(--cm-primary), var(--cm-secondary));
	color: #fff;
	border-radius: var(--cm-radius-lg);
	padding: 30px 26px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	box-shadow: var(--cm-shadow);
}
.hero-side-kicker {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .9;
}
.hero-side-title { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.hero-side-text { margin: 0; opacity: .95; font-size: 14.5px; }
.hero-side .btn { margin-top: 8px; align-self: flex-start; }
/* Deal-of-the-Day product mode */
.hero-side-product { gap: 8px; }
.hero-deal-thumb { display: block; border-radius: var(--cm-radius); overflow: hidden; background: rgba(255, 255, 255, .18); }
.hero-deal-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.hero-deal-name { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-deal-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-side-product .price { color: #fff; font-size: 1.15rem; font-weight: 800; }
.hero-side-product .price del { color: rgba(255, 255, 255, .65); font-weight: 400; font-size: .95rem; margin-right: 6px; }
.hero-side-product .price ins { text-decoration: none; }
.hero-deal-save { background: #fff; color: var(--cm-primary); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
@media (max-width: 900px) {
	.hero-zone-inner { grid-template-columns: 1fr; }
	.hero-side { min-height: 220px; }
}

/* ---------- Hot categories circular strip ---------- */
.hot-cats-section { padding: 18px 0 6px; }
.hot-cats-strip {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding: 6px 2px 12px;
}
.hot-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 84px;
	color: var(--cm-text);
}
.hot-cat-circle {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-size: 26px;
	font-weight: 700;
	color: var(--cm-primary);
	box-shadow: var(--cm-shadow);
	transition: transform .2s ease;
}
.hot-cat:hover .hot-cat-circle { transform: scale(1.06); }
.hot-cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.hot-cat-label { font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- Benefits pill bar ---------- */
.benefits-section { padding: 10px 0; }
.benefits-pill {
	background: #1f2937;
	color: #fff;
	border-radius: 999px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 20px 34px;
	flex-wrap: wrap;
}
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit-icon {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-primary);
	flex: 0 0 auto;
}
.benefit-text strong { display: block; font-size: 14.5px; }
.benefit-text span { font-size: 12.5px; opacity: .75; }
@media (max-width: 900px) {
	.benefits-pill { border-radius: 22px; }
	.benefit { flex: 1 1 40%; }
}

/* ---------- Tabbed carousels ---------- */
.tabs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.cm-tabs { display: inline-flex; gap: 8px; background: var(--cm-bg); border-radius: 999px; padding: 5px; }
.cm-tab {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 9px 20px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	color: var(--cm-muted);
}
.cm-tab.is-active { background: var(--cm-surface); color: var(--cm-text); box-shadow: var(--cm-shadow); }
.cm-carousel-wrap { position: relative; }
.cm-carousel {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 2px 14px;
	scrollbar-width: none;
}
.cm-carousel::-webkit-scrollbar { display: none; }
.cm-carousel .cm-product-card { flex: 0 0 230px; scroll-snap-align: start; }
.cm-carousel-arrow {
	position: absolute;
	top: 38%;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--cm-border);
	background: var(--cm-surface);
	box-shadow: var(--cm-shadow);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cm-text);
	z-index: 2;
}
.cm-carousel-prev { left: -14px; }
.cm-carousel-next { right: -14px; }
@media (max-width: 640px) {
	.cm-carousel-arrow { display: none; }
}

/* ---------- Circular category tiles band ---------- */
.cat-tiles-carousel .cat-tile { flex: 0 0 130px; scroll-snap-align: start; }
.cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--cm-text);
}
.cat-tile-circle {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	font-weight: 700;
	color: var(--cm-primary);
	box-shadow: var(--cm-shadow);
	transition: transform .2s ease;
}
.cat-tile:hover .cat-tile-circle { transform: translateY(-4px); }
.cat-tile-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-label { font-weight: 600; font-size: 14px; text-align: center; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--cm-primary); }
/* Shop by categories heading link is underlined so it reads as clickable. */
.cat-tiles-section .section-title a { text-decoration: underline; text-underline-offset: 4px; }
/* "View all" link after the 12 category circles. */
.cm-cats-view-all-wrap { text-align: center; margin-top: 16px; }
.cm-cats-view-all { color: var(--cm-primary); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.cm-cats-view-all:hover { color: var(--cm-primary); text-decoration-thickness: 2px; }

/* ---------- Square category boxes grid (All Categories page) ---------- */
.cat-box-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}
.cat-box {
	display: block;
	color: var(--cm-text);
	text-decoration: none;
}
.cat-box-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	box-shadow: var(--cm-shadow);
	font-size: 40px;
	font-weight: 700;
	color: var(--cm-primary);
	transition: transform .2s ease;
}
.cat-box-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-box:hover .cat-box-img { transform: translateY(-4px); }
.cat-box-name {
	display: block;
	margin-top: 8px;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}
@media (max-width: 640px) {
	.cat-box-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.cat-box-img { font-size: 30px; }
}

/* ---------- Product card restyle ---------- */
.cm-product-card {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.cm-product-card:hover { box-shadow: var(--cm-shadow); transform: translateY(-4px); }
.cm-card-media { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.cm-card-media-link { display: block; width: 100%; height: 100%; }
.cm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cm-product-card:hover .cm-card-media img { transform: scale(1.05); }
.cm-card-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 2;
	max-width: calc(100% - 20px);
}
/* Mobile: stack badges vertically so they never overlap. */
@media (max-width: 640px) {
	.cm-card-badges {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		top: 8px;
		left: 8px;
	}
}
.cm-badge-discount {
	background: #16a34a;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	border-radius: 999px;
	padding: 4px 10px;
}
.cm-badge-hot {
	background: #dc2626;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	border-radius: 999px;
	padding: 4px 10px;
	letter-spacing: .04em;
}
.cm-card-hover {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(transparent, rgba(15, 23, 42, .55));
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease;
}
.cm-product-card:hover .cm-card-hover { opacity: 1; transform: none; }
@media (hover: none) {
	.cm-card-hover { opacity: 1; transform: none; position: static; background: none; padding: 0 14px 4px; justify-content: flex-start; }
}
.cm-card-hover .cm-icon-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--cm-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--cm-shadow);
}
.cm-card-hover .button {
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
}
.cm-card-body { padding: 14px 16px 18px; text-align: left; }
.cm-card-rating { margin-bottom: 6px; }
.cm-card-rating .star-rating { color: #f59e0b; }
.cm-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 2px; line-height: 1.4; }
.cm-card-title a { color: var(--cm-text); }
.cm-card-title a:hover { color: var(--cm-primary); }
.cm-card-cat { font-size: 12.5px; color: var(--cm-muted); margin: 0 0 8px; }
.cm-card-price { font-size: 1.15rem; font-weight: 800; color: var(--cm-primary); margin: 0 0 6px; }
.cm-card-price del { color: var(--cm-muted); font-weight: 400; margin-right: 8px; font-size: .9rem; }
.cm-card-price ins { text-decoration: none; }
.cm-product-card-large .cm-card-media { aspect-ratio: 16 / 10; }
.cm-product-card-large .cm-card-title { font-size: 1.25rem; }
.cm-product-card-large .cm-card-price { font-size: 1.35rem; }
.cm-product-card-large .cm-card-body { padding: 20px 22px 24px; }
/* Native WooCommerce loop items */
.woocommerce ul.products li.cm-loop-item { margin: 0 0 18px; }
.woocommerce ul.products li.cm-loop-item .cm-product-card { height: 100%; }

/* ---------- White footer restyle ---------- */
.site-footer { background: #fff; color: var(--cm-text); border-top: 1px solid var(--cm-border); }
.footer-top-strip { border-bottom: 1px solid var(--cm-border); }
.footer-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
}
.footer-brand .default-logo { max-height: 44px; width: auto; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social-label { font-weight: 600; font-size: 14px; color: var(--cm-muted); margin-right: 4px; }
.social-btn {
	width: 38px; height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
}
.social-facebook { background: #1877f2; }
.social-x { background: #111827; }
.social-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social-youtube { background: #ff0000; }
.social-tiktok { background: #010101; }
.social-btn svg { width: 18px; height: 18px; display: block; flex: none; }
.footer-main {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 34px;
	padding: 36px 0 10px;
}
.footer-newsletter-card {
	background: var(--cm-bg);
	border-radius: var(--cm-radius-lg);
	padding: 26px;
	align-self: start;
}
.footer-newsletter-card h3 { margin: 0 0 6px; color: var(--cm-primary); font-size: 1.15rem; }
.footer-newsletter-card p { font-size: 14px; color: var(--cm-muted); margin: 0 0 14px; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 18px 0 22px;
	border-top: 1px solid var(--cm-border);
	margin-top: 10px;
}
@media (max-width: 900px) {
	.footer-main { grid-template-columns: 1fr; }
}

/* ---------- Bold Deals preset ---------- */
.homepage-deals .hero { min-height: 480px; }
.homepage-deals .hero-heading { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.homepage-deals .flash-deals-section { background: var(--cm-surface); border-top: 1px solid var(--cm-border); border-bottom: 1px solid var(--cm-border); }
.deals-masonry { columns: 3; column-gap: 18px; }
.masonry-tile {
	display: inline-block;
	width: 100%;
	margin: 0 0 18px;
	break-inside: avoid;
	border-radius: var(--cm-radius-lg);
	overflow: hidden;
}
.masonry-cat {
	position: relative;
	display: block;
	min-height: 220px;
	background: linear-gradient(140deg, var(--cm-primary), var(--cm-secondary));
	color: #fff;
	padding: 24px;
}
.masonry-cat img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .45;
}
.masonry-cat-name, .masonry-cat-link { position: relative; }
.masonry-cat-name { display: block; font-size: 1.4rem; font-weight: 800; margin-top: 110px; }
.masonry-cat-link { font-weight: 600; }
.masonry-product .cm-product-card { margin: 0; }
@media (max-width: 900px) { .deals-masonry { columns: 2; } }
@media (max-width: 560px) { .deals-masonry { columns: 1; } }

/* ---------- Dark-mode variants for the new design ---------- */
html[data-theme="dark"] .site-footer { background: #0b1220; }
html[data-theme="dark"] .footer-newsletter-card { background: #1f2937; }
html[data-theme="dark"] .hero-slide.tone-a { background: linear-gradient(120deg, #3a2a12, #4a2f10); }
html[data-theme="dark"] .hero-slide.tone-b { background: linear-gradient(120deg, #16283f, #1c3350); }
html[data-theme="dark"] .hero-slide.tone-c { background: linear-gradient(120deg, #123324, #17452f); }
/* Dark theme: slides sit on dark backgrounds — keep text and controls white. */
html[data-theme="dark"] .hero-slide .hero-heading,
html[data-theme="dark"] .hero-slide .hero-text,
html[data-theme="dark"] .hero-slide .hero-price,
html[data-theme="dark"] .hero-slide .hero-price .price,
html[data-theme="dark"] .hero-slide .hero-price ins { color: #fff; }
html[data-theme="dark"] .hero-slide .hero-price del { color: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .hero-prev, html[data-theme="dark"] .hero-next { color: #fff; background: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .hero-prev:hover, html[data-theme="dark"] .hero-next:hover { background: rgba(255, 255, 255, .35); }
html[data-theme="dark"] .hero-dot { background: rgba(255, 255, 255, .45); }
html[data-theme="dark"] .hero-dot.is-active { background: #fff; }
html[data-theme="dark"] .hero-product-letter { color: rgba(255, 255, 255, .35); }
html[data-theme="dark"] .hero-kicker { background: rgba(0, 0, 0, .35); }
html[data-theme="dark"] .cm-card-media { background: #111827; }
html[data-theme="dark"] .cm-tabs { background: #1f2937; }
html[data-theme="dark"] .cm-tab.is-active { background: #374151; color: #fff; }
html[data-theme="dark"] .benefits-pill { background: #0b1220; border: 1px solid var(--cm-border); }
/* Card hover icon buttons are white circles in both modes; keep their icons
   dark in dark mode too (var(--cm-text) turns near-white there). */
html[data-theme="dark"] .cm-card-hover .cm-icon-btn { background: #1f2937; color: #f3f4f6; border: 1px solid #374151; }
