/**
 * Krittiya Garden World - main theme styles
 * @package Krittiya_Garden
 */

/* ============================================================
   1. Base & layout
   ============================================================ */
.kg-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 28px;
}

.site-content { overflow: hidden; }

.kg-section { padding: 64px 0; }
.kg-section-head { text-align: center; margin-bottom: 40px; }
.kg-section-head-row { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.kg-section-title {
	font-size: 30px;
	margin: 0 0 8px;
	color: var(--kg-dark);
}
.kg-section-title .kg-icon { color: var(--kg-accent); vertical-align: middle; }
.kg-section-sub { color: var(--kg-muted); margin: 0; font-size: 16px; }
.kg-section-cta { text-align: center; margin-top: 36px; }

/* Buttons */
.kg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 28px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all .2s ease;
	text-align: center;
}
.kg-btn-primary { background: var(--kg-primary); color: #fff; }
.kg-btn-primary:hover { background: var(--kg-primary-dark); color: #fff; transform: translateY(-1px); }
.kg-btn-outline { background: transparent; color: var(--kg-primary); border-color: var(--kg-primary); }
.kg-btn-outline:hover { background: var(--kg-primary); color: #fff; }
.kg-btn-light { background: #fff; color: var(--kg-primary); }
.kg-btn-light:hover { background: var(--kg-light); }

.kg-link-more { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.kg-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   2. Top bar
   ============================================================ */
.kg-topbar {
	background: var(--kg-dark);
	color: #e8efe2;
	font-size: 13px;
}
.kg-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 16px;
}
.kg-topbar-left, .kg-topbar-right { display: flex; align-items: center; gap: 18px; }
.kg-topbar .kg-icon { width: 16px; height: 16px; opacity: .9; }
.kg-topbar-ship, .kg-topbar-phone, .kg-topbar-line { display: inline-flex; align-items: center; gap: 6px; }
.kg-topbar a { color: #e8efe2; }
.kg-topbar a:hover { color: #fff; }
.kg-socials { display: inline-flex; align-items: center; gap: 8px; }
.kg-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	border-radius: 50%;
	color: #fff;
}
.kg-topbar .kg-social-facebook { background: #1877f2; }
.kg-topbar .kg-social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#bc1888); }
.kg-topbar .kg-social-youtube { background: #ff0000; }
.kg-topbar .kg-social-tiktok { background: #000; }

/* ============================================================
   3. Header
   ============================================================ */
.kg-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
/* Header frame: logo (spans both rows) | right column (search row + menu row) */
.kg-header-grid {
	display: flex;
	align-items: center;
	gap: 22px;
}
.kg-header-main {
	flex: 1;
	min-width: 0;               /* lets the search field shrink as space runs out */
	display: flex;
	flex-direction: column;
}
.kg-header-row { display: flex; align-items: center; gap: 16px; }
.kg-header-row-top { min-height: 84px; }
.kg-header-row-bottom { min-height: 58px; gap: 20px; }

.kg-branding { flex-shrink: 0; display: flex; align-items: center; }
.kg-branding img, .custom-logo {
	max-height: var(--kg-logo-h, 118px);
	max-width: var(--kg-logo-w, 190px);
	width: auto; height: auto;
	display: block;
}
.kg-logo-default { display: inline-flex; align-items: center; gap: 12px; }
.kg-logo-default .kg-icon { width: 48px; height: 48px; color: var(--kg-primary); }
.kg-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.kg-logo-text strong { font-size: 22px; color: var(--kg-dark); }
.kg-logo-text small { font-size: 11px; color: var(--kg-muted); }

/* Product search field: fills the free space and shrinks automatically */
.kg-header-search { flex: 1 1 auto; min-width: 0; }
.kg-header-search form {
	display: flex; align-items: stretch; gap: 0;
	max-width: none; margin: 0; width: 100%;
}
.kg-header-search .kg-search-input,
.kg-header-search input[type="search"] {
	flex: 1; min-width: 0;
	padding: 13px 18px;
	font-family: inherit; font-size: 15px;
	border: 1px solid var(--kg-border);
	border-right: none;
	border-radius: 8px 0 0 8px;
	background: #fff; color: var(--kg-text);
	outline: none;
}
.kg-header-search .kg-search-input:focus,
.kg-header-search input[type="search"]:focus { border-color: var(--kg-primary); }
.kg-header-search .kg-search-submit {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 62px; padding: 0;
	border: 1px solid var(--kg-primary);
	background: var(--kg-primary); color: #fff;
	border-radius: 0 8px 8px 0;
	cursor: pointer; transition: background .2s ease;
}
.kg-header-search .kg-search-submit:hover { background: var(--kg-primary-dark); border-color: var(--kg-primary-dark); }
.kg-header-search .kg-search-submit svg { width: 22px; height: 22px; }

/* ----- Bottom row: All Categories button + primary menu ----- */
.kg-allcat { position: relative; flex-shrink: 0; }
.kg-allcat-btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 12px 22px;
	background: #eceff1; border: none; border-radius: 10px;
	font-family: inherit; font-size: 15px; font-weight: 500;
	color: var(--kg-dark); cursor: pointer;
	transition: background .2s ease;
}
.kg-allcat-btn:hover, .kg-allcat.is-open .kg-allcat-btn { background: #e0e4e6; }
.kg-allcat-bars { display: flex; flex-direction: column; gap: 4px; }
.kg-allcat-bars span { display: block; width: 20px; height: 2px; background: var(--kg-dark); border-radius: 2px; }

.kg-allcat-panel {
	position: absolute; top: calc(100% + 6px); left: 0;
	min-width: 260px; background: #fff;
	border: 1px solid var(--kg-border); border-radius: 12px;
	box-shadow: 0 14px 34px rgba(0,0,0,.14);
	padding: 8px; z-index: 260;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.kg-allcat.is-open .kg-allcat-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.kg-allcat-list { list-style: none; margin: 0; padding: 0; }
.kg-allcat-item { position: relative; }
.kg-allcat-item > a {
	display: block; padding: 10px 14px; border-radius: 8px;
	font-size: 14.5px; color: var(--kg-text);
}
.kg-allcat-item > a:hover { background: var(--kg-light); color: var(--kg-primary); }
.kg-allcat-item.has-children > a::after {
	content: ""; float: right; width: 7px; height: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-45deg); margin-top: 7px; opacity: .5;
}
/* Sub-categories slide out to the right */
.kg-allcat-sub {
	position: absolute; top: -8px; left: 100%;
	min-width: 220px; background: #fff;
	border: 1px solid var(--kg-border); border-radius: 12px;
	box-shadow: 0 14px 34px rgba(0,0,0,.14);
	padding: 8px; margin-left: 4px;
	opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.kg-allcat-item:hover > .kg-allcat-sub { opacity: 1; visibility: visible; }

.kg-nav { margin-left: auto; }
.kg-menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kg-menu li { position: relative; }
.kg-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--kg-text);
	font-weight: 500;
	font-size: 15px;
	border-radius: 6px;
	white-space: nowrap;
}
.kg-menu > li.current-menu-item > a,
.kg-menu > li.current_page_item > a,
.kg-menu a:hover { color: var(--kg-primary); }
.kg-menu > li > a::after {
	content: ""; display: block; height: 2px; width: 0;
	background: var(--kg-primary); transition: width .2s ease; margin-top: 4px;
}
.kg-menu > li.current-menu-item > a::after,
.kg-menu > li:hover > a::after { width: 100%; }

/* Submenus */
.kg-menu .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	min-width: 210px;
	list-style: none;
	margin: 0; padding: 8px;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
	z-index: 50;
}
.kg-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kg-menu .sub-menu a { padding: 9px 12px; font-size: 14px; }
.kg-menu .sub-menu a:hover { background: var(--kg-light); }
.kg-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); margin-left: 7px; vertical-align: middle; opacity: .6;
}
/* Items with a submenu use ::after for the arrow instead of the underline, making them
   6px shorter - compensate so every menu item is the same height */
.kg-menu > li.menu-item-has-children > a { padding-bottom: 16px; }

.kg-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.kg-action-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: transparent; border: none; cursor: pointer;
	color: var(--kg-dark); position: relative;
}
.kg-action-btn:hover { background: var(--kg-light); color: var(--kg-primary); }
.kg-cart-count {
	position: absolute; top: 2px; right: 0;
	background: var(--kg-accent); color: #fff;
	font-size: 11px; font-weight: 600;
	min-width: 18px; height: 18px; border-radius: 9px;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.kg-menu-toggle { display: none; flex-direction: column; gap: 5px; }
.kg-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--kg-dark); border-radius: 2px; transition: .25s; }
.kg-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kg-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.kg-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Legacy search bar (kept in case it is called from elsewhere) */
.kg-search-bar { background: var(--kg-light); border-top: 1px solid var(--kg-border); padding: 16px 0; }
.kg-search-bar form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.kg-search-bar input[type="search"], .kg-search-bar input[type="text"] {
	flex: 1; padding: 12px 16px; border: 1px solid var(--kg-border); border-radius: 8px; font-family: inherit;
}

/* ============================================================
   4. Hero banner
   ============================================================ */
.kg-hero {
	position: relative;
	background: linear-gradient(135deg, #eef4e6 0%, #f6f9f1 60%);
	background-size: cover; background-position: center;
	overflow: hidden;
}
/* Image overlay - lighter, fading left (readable text) to right (crisp image) */
.kg-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,249,241,.82) 0%, rgba(246,249,241,.55) 24%, rgba(246,249,241,.15) 42%, rgba(246,249,241,0) 50%); }
/* With a background image, reduce the left overlay further and add a text shadow for legibility */
.kg-hero[style*="background-image"] .kg-hero-title { text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.kg-hero[style*="background-image"] .kg-hero-subtitle { text-shadow: 0 1px 2px rgba(255,255,255,.5); }
.kg-hero-inner {
	position: relative;
	display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
	padding: 70px 20px;
}
.kg-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--kg-primary); font-weight: 600; margin-bottom: 14px; }
.kg-hero-title { font-size: 46px; line-height: 1.2; margin: 0 0 18px; color: var(--kg-dark); font-weight: 700; }
.kg-hero-subtitle { font-size: 18px; color: #44523c; margin: 0 0 24px; max-width: 520px; }
/* Single translucent rounded box with dividers between claims.
   width:max-content + the max-width allowance let the box run slightly past the
   text column so all four claims stay on one line; it still wraps on small screens. */
.kg-hero-badges {
	display: inline-flex; flex-wrap: wrap; align-items: stretch;
	width: max-content;
	max-width: calc(100% + 60px);
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(255,255,255,.9);
	border-radius: 16px;
	padding: 4px;
	margin-bottom: 30px;
	box-shadow: 0 6px 20px rgba(31,58,22,.08);
	backdrop-filter: blur(3px);
}
.kg-hero-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: transparent; border: none;
	border-right: 1px solid rgba(31,58,22,.12);
	border-radius: 0;
	padding: 8px 13px; font-size: 13px; font-weight: 500;
}
.kg-hero-badge:last-child { border-right: none; }
.kg-hero-badge .kg-icon { color: var(--kg-primary); }
.kg-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.kg-hero-media { text-align: center; }
.kg-hero-media img { max-height: 480px; filter: drop-shadow(0 20px 40px rgba(31,58,22,.25)); }

/* ============================================================
   5. Features strip
   ============================================================ */
/* Pulled up to overlap the hero edge slightly, for depth */
.kg-features-strip { background: transparent; padding: 0 0 8px; margin-top: -52px; position: relative; z-index: 10; }
/* Rounded green box at content width (not full-bleed) with faint white dividers */
.kg-features-grid {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
	background: var(--kg-dark); border-radius: 18px; padding: 22px 10px;
	box-shadow: 0 12px 30px rgba(31,58,22,.15);
}
.kg-feature-item { display: flex; align-items: center; gap: 12px; color: #fff; padding: 4px 22px; border-right: 1px solid rgba(255,255,255,.14); }
.kg-feature-item:last-child { border-right: none; }
.kg-feature-icon {
	flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
	color: #cfe3bd;
}
.kg-feature-text strong { display: block; font-size: 14px; font-weight: 600; }
.kg-feature-text span { font-size: 12px; color: #b9c9ac; }

/* ============================================================
   6. Product grid
   ============================================================ */
.kg-product-grid, ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 24px;
}
/* Hide the WooCommerce clearfix ::before/::after, which become "ghost cells" in grid/flex */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }
.kg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.kg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.kg-cols-3 { grid-template-columns: repeat(3, 1fr); }

.kg-product-card, ul.products li.product {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 14px;
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease; position: relative;
	margin: 0 !important; width: auto !important; float: none !important;
	text-align: left;
}
.kg-product-card:hover, ul.products li.product:hover { box-shadow: 0 14px 34px rgba(31,58,22,.12); transform: translateY(-3px); }

.kg-product-thumb { position: relative; background: var(--kg-light); }
.kg-product-thumb-link { display: block; }
.kg-product-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

.kg-badge-bestseller, ul.products .onsale {
	position: absolute; top: 12px; left: 12px; z-index: 3;
	background: var(--kg-accent); color: #fff; font-size: 11px; font-weight: 600;
	padding: 5px 10px; border-radius: 6px; letter-spacing: .5px;
}
ul.products .onsale { background: #d65745; right: auto; }

.kg-product-actions { position: absolute; bottom: 12px; right: 12px; z-index: 3; }
.kg-quickbuy {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; background: #fff;
	color: var(--kg-primary); box-shadow: 0 4px 12px rgba(0,0,0,.15);
	opacity: 0; transform: translateY(8px); transition: all .2s ease;
}
.kg-product-card:hover .kg-quickbuy { opacity: 1; transform: translateY(0); }
.kg-quickbuy:hover { background: var(--kg-btn-buy); color: #fff; }
.kg-quickbuy.loading { opacity: 1; }
.kg-quickbuy.added { background: var(--kg-btn-buy-dark); color: #fff; }

.kg-product-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kg-product-title { font-size: 16px; margin: 0; line-height: 1.4; }
.kg-product-title a { color: var(--kg-dark); }
.kg-product-title a:hover { color: var(--kg-primary); }
.kg-product-rating { display: flex; align-items: center; gap: 6px; }
.kg-product-rating-count { font-size: 12px; color: var(--kg-muted); }
/* Theme SVG stars - supports fractions (e.g. 4.5) and aligns precisely */
.kg-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; vertical-align: middle; }
.kg-stars-empty { display: inline-block; line-height: 0; color: #d9d9d9; }
.kg-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; display: inline-block; line-height: 0; white-space: nowrap; color: var(--kg-star); }
.kg-stars .kg-icon { display: inline-block; vertical-align: top; }

/* Recolour the WooCommerce review stars gold (colour only, keeping their structure) */
.woocommerce .star-rating::before { color: #d9d9d9; }
.woocommerce .star-rating span::before { color: var(--kg-star); }
.woocommerce .star-rating { color: var(--kg-star); }
.woocommerce p.stars a::before { color: var(--kg-star); }
.woocommerce p.stars a:hover ~ a::before { color: #d9d9d9; }
.woocommerce p.stars.selected a.active::before,
.woocommerce p.stars:hover a::before { color: var(--kg-star); }
.kg-product-price { font-size: 19px; font-weight: 700; color: var(--kg-dark); margin-top: auto; }
.kg-product-price del { color: var(--kg-muted); font-weight: 400; font-size: 14px; margin-right: 6px; }
.kg-product-price ins { text-decoration: none; }
.kg-product-buy { margin-top: 6px; }
.kg-product-buy .button, .kg-product-buy a.added_to_cart {
	display: block; width: 100%; text-align: center;
	background: var(--kg-btn-buy); color: #fff;
	padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
	border: none; cursor: pointer; transition: background .2s;
}
.kg-product-buy .button:hover { background: var(--kg-btn-buy-dark); }
.kg-product-buy a.added_to_cart { background: var(--kg-btn-buy-dark); margin-top: 6px; }
.kg-product-buy a.added_to_cart:hover { background: var(--kg-btn-buy-dark); }

/* ============================================================
   7. Shop by need
   ============================================================ */
.kg-needs { background: var(--kg-light); }
/* flex + centred: cards stay centred no matter how many there are */
.kg-needs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.kg-need-card {
	flex: 0 1 178px; min-width: 0;
	background: #fff; border: 1px solid var(--kg-border); border-radius: 14px;
	padding: 22px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
	transition: all .2s ease;
}
.kg-need-card:hover { border-color: var(--kg-primary); box-shadow: 0 10px 24px rgba(31,58,22,.1); transform: translateY(-3px); }
.kg-need-icon {
	width: 56px; height: 56px; border-radius: 16px; background: var(--kg-light);
	display: flex; align-items: center; justify-content: center; color: var(--kg-primary);
}
.kg-need-card:hover .kg-need-icon { background: var(--kg-primary); color: #fff; }
.kg-need-card strong { font-size: 15px; color: var(--kg-dark); }
.kg-need-card span { font-size: 12px; color: var(--kg-muted); }

/* ============================================================
   8. Testimonials
   ============================================================ */
.kg-testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kg-testi-card {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 16px;
	padding: 26px 22px; margin: 0; position: relative; display: flex; flex-direction: column; gap: 12px;
}
.kg-testi-quote { color: var(--kg-light); position: absolute; top: 18px; right: 18px; }
.kg-testi-quote .kg-icon { color: #e4ecd9; }
.kg-testi-card blockquote { margin: 0; font-size: 14px; color: #4b5544; line-height: 1.7; }
.kg-testi-author { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.kg-testi-author img, .kg-testi-avatar {
	width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
	background: var(--kg-light); display: flex; align-items: center; justify-content: center; color: var(--kg-primary);
}
.kg-testi-meta strong { display: block; font-size: 14px; color: var(--kg-dark); }
.kg-testi-meta small { color: var(--kg-muted); font-size: 12px; }

/* ============================================================
   9. Story + FDA box
   ============================================================ */
.kg-story { background: linear-gradient(180deg, #fff 0%, var(--kg-light) 100%); }
/* 3 columns: [image+copy] [highlights] [FDA] - one row, equal height */
.kg-story-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 28px; align-items: stretch; }

/* Column 1: image left + copy right */
.kg-story-main { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 22px; align-items: stretch; min-width: 0; }
.kg-story-media { display: flex; min-width: 0; }
.kg-story-media img { width: 100%; height: 100%; max-height: 340px; min-height: 220px; object-fit: cover; border-radius: 16px; box-shadow: 0 14px 34px rgba(31,58,22,.16); }
.kg-story-body { align-self: center; min-width: 0; }
.kg-story-title { font-size: 25px; margin: 0 0 14px; }
.kg-story-text { color: #4b5544; margin: 0 0 20px; font-size: 15px; }

/* Column 2: highlights */
.kg-story-features { min-width: 0; align-self: center; }
.kg-story-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.kg-story-points li { display: flex; gap: 12px; align-items: flex-start; }
.kg-story-point-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--kg-border); display: flex; align-items: center; justify-content: center; color: var(--kg-primary); }
.kg-story-points strong { display: block; font-size: 14px; color: var(--kg-dark); }
.kg-story-points small { color: var(--kg-muted); font-size: 12px; }

/* Column 3: FDA */
.kg-story-fda { min-width: 0; display: flex; }
.kg-fda-box {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 14px;
	padding: 26px 22px; text-align: center; width: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.kg-fda-icon { line-height: 0; margin-bottom: 8px; }
.kg-fda-logo-svg, .kg-fda-logo-img { width: 66px; height: 66px; object-fit: contain; display: inline-block; }
.kg-fda-title { font-size: 13px; color: #4b5544; margin: 4px 0 4px; }
.kg-fda-number { font-size: 20px; font-weight: 700; color: var(--kg-dark); letter-spacing: 1px; margin: 0 0 10px; }
.kg-fda-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; }

/* ============================================================
   10. Articles
   ============================================================ */
.kg-home-articles { background: var(--kg-light); }
.kg-articles-grid, .kg-blog-grid { display: grid; gap: 26px; }
.kg-article-card {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.kg-article-card:hover { box-shadow: 0 14px 34px rgba(31,58,22,.12); transform: translateY(-3px); }
.kg-article-thumb { position: relative; display: block; aspect-ratio: 16/10; background: var(--kg-light); overflow: hidden; }
.kg-article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kg-article-card:hover .kg-article-thumb img { transform: scale(1.05); }
.kg-article-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c2d3b1; }
.kg-article-cat {
	position: absolute; bottom: 12px; left: 12px;
	background: rgba(31,58,22,.85); color: #fff; font-size: 11px; font-weight: 500;
	padding: 4px 10px; border-radius: 6px;
}
.kg-article-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kg-article-title { font-size: 17px; margin: 0; line-height: 1.45; }
.kg-article-title a { color: var(--kg-dark); }
.kg-article-title a:hover { color: var(--kg-primary); }
.kg-article-excerpt { font-size: 13.5px; color: var(--kg-muted); margin: 0; flex: 1; }
.kg-article-meta { display: flex; gap: 16px; font-size: 12px; color: var(--kg-muted); }
.kg-article-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   11. Newsletter
   ============================================================ */
/* Horizontal promo banner (homepage) - content width */
.kg-promo-banner { padding: 24px 0; }
.kg-promo-banner .kg-promo-img { width: 100%; height: auto; border-radius: 16px; display: block; }
.kg-promo-banner .kg-promo-link { display: block; }

.kg-newsletter-strip { background: linear-gradient(120deg, #eef4e6, #e3eed5); padding: 48px 0; }
.kg-newsletter-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.kg-newsletter-leaf { color: var(--kg-primary); opacity: .5; }
.kg-newsletter-copy { flex: 1; min-width: 220px; }
.kg-newsletter-copy h2 { font-size: 24px; margin: 0 0 4px; }
.kg-newsletter-copy p { margin: 0; color: #4b5544; }
.kg-newsletter-form { display: flex; gap: 10px; }
.kg-newsletter-form input[type="email"] {
	padding: 13px 18px; border: 1px solid var(--kg-border); border-radius: 8px;
	min-width: 260px; font-family: inherit; background: #fff;
}

/* ============================================================
   12. Trust strip
   ============================================================ */
.kg-trust-strip { background: #fff; border-top: 1px solid var(--kg-border); padding: 34px 0; }
.kg-trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.kg-trust-item { display: flex; align-items: center; gap: 12px; }
.kg-trust-icon {
	flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
	background: var(--kg-light); color: var(--kg-primary);
	display: flex; align-items: center; justify-content: center;
}
.kg-trust-text strong { display: block; font-size: 14px; color: var(--kg-dark); }
.kg-trust-text span { font-size: 12px; color: var(--kg-muted); }

/* ============================================================
   13. Page hero + breadcrumb
   ============================================================ */
.kg-page-hero {
	position: relative; background: var(--kg-dark); color: #fff;
	background-size: cover; background-position: center; padding: 56px 0;
}
.kg-page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,41,15,.85), rgba(22,41,15,.5)); }
.kg-page-hero .kg-container { position: relative; }
.kg-page-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #bcd6a3; font-weight: 500; margin-bottom: 8px; }
.kg-page-hero-title { color: #fff; font-size: 38px; margin: 0; }
.kg-page-hero-sub { color: #d8e6cc; margin: 10px 0 0; font-size: 16px; max-width: 640px; }

.kg-breadcrumb { background: var(--kg-light); padding: 12px 0; font-size: 13px; color: var(--kg-muted); }
.kg-breadcrumb .kg-container { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.kg-breadcrumb a { color: var(--kg-muted); }
.kg-breadcrumb a:hover { color: var(--kg-primary); }
.kg-bc-sep { display: inline-flex; opacity: .5; }

/* ============================================================
   14. Blog layout + sidebar
   ============================================================ */
.kg-blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 50px; padding-bottom: 60px; align-items: start; }
.kg-blog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.kg-blog-heading { font-size: 24px; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.kg-blog-heading .kg-icon { color: var(--kg-accent); }

.kg-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kg-pill { padding: 8px 18px; border-radius: 30px; background: var(--kg-light); color: var(--kg-text); font-size: 13px; font-weight: 500; }
.kg-pill:hover, .kg-pill.is-active { background: var(--kg-primary); color: #fff; }

.kg-search-form { display: flex; gap: 8px; }
.kg-search-input { padding: 11px 16px; border: 1px solid var(--kg-border); border-radius: 8px; font-family: inherit; min-width: 200px; }
.kg-search-submit { background: var(--kg-primary); color: #fff; border: none; border-radius: 8px; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; }

/* Sidebar */
.kg-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 110px; }
.kg-sidebar .widget, .kg-widget-search, .kg-widget-categories, .kg-widget-popular, .kg-widget-cta {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; padding: 22px;
}
.widget-title, .kg-shop-widget-title { font-size: 17px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--kg-border); }
.kg-cat-list, .kg-shop-cat-list { list-style: none; margin: 0; padding: 0; }
.kg-cat-list li, .kg-shop-cat-list li { padding: 7px 0; border-bottom: 1px dashed var(--kg-border); display: flex; justify-content: space-between; }
.kg-cat-list li:last-child, .kg-shop-cat-list li:last-child { border-bottom: none; }
.kg-cat-list a, .kg-shop-cat-list a { color: var(--kg-text); }
.kg-cat-list a:hover, .kg-shop-cat-list a:hover { color: var(--kg-primary); }

.kg-popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kg-popular-item { display: flex; gap: 12px; align-items: center; }
.kg-popular-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--kg-primary); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.kg-popular-thumb img { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; }
.kg-popular-info a { display: block; font-size: 13.5px; color: var(--kg-dark); font-weight: 500; line-height: 1.4; }
.kg-popular-info a:hover { color: var(--kg-primary); }
.kg-popular-info small { color: var(--kg-muted); font-size: 12px; }

.kg-widget-cta { background: var(--kg-dark); color: #fff; text-align: center; }
.kg-widget-cta-icon { color: #bcd6a3; }
.kg-widget-cta h3 { color: #fff; margin: 10px 0 6px; }
.kg-widget-cta p { color: #d8e6cc; font-size: 13px; margin: 0 0 16px; }

/* ============================================================
   15. Single post
   ============================================================ */
.kg-single-cat { display: inline-block; background: var(--kg-accent); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 6px; margin-bottom: 12px; }
.kg-single-meta { display: flex; gap: 18px; margin-top: 14px; color: #d8e6cc; font-size: 13px; flex-wrap: wrap; }
.kg-single-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kg-entry-content { font-size: 16.5px; line-height: 1.85; color: #333; }
.kg-entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.kg-entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.kg-entry-content h3 { font-size: 21px; margin-top: 1.5em; }
.kg-entry-content img { border-radius: 12px; }
.kg-entry-content blockquote { border-left: 4px solid var(--kg-primary); background: var(--kg-light); margin: 1.5em 0; padding: 16px 22px; border-radius: 0 10px 10px 0; }
.kg-entry-content a { text-decoration: underline; }
.kg-entry-content ul, .kg-entry-content ol { padding-left: 1.4em; }
.kg-single-tags { margin-top: 30px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kg-single-tags a { background: var(--kg-light); padding: 5px 12px; border-radius: 20px; font-size: 13px; }

.kg-author-box { display: flex; gap: 18px; background: var(--kg-light); border-radius: 14px; padding: 24px; margin-top: 36px; }
.kg-author-avatar img { border-radius: 50%; }
.kg-author-name { font-size: 17px; color: var(--kg-dark); }
.kg-author-info p { margin: 6px 0 0; color: var(--kg-muted); font-size: 14px; }

.kg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.kg-post-nav a { background: #fff; border: 1px solid var(--kg-border); border-radius: 12px; padding: 16px 20px; }
.kg-post-nav-next { text-align: right; }
.kg-post-nav small { display: flex; align-items: center; gap: 6px; color: var(--kg-muted); font-size: 12px; margin-bottom: 6px; }
.kg-post-nav-next small { justify-content: flex-end; }
.kg-post-nav span { color: var(--kg-dark); font-weight: 500; font-size: 14px; }

.kg-comments { margin-top: 44px; }
.kg-comments-title { font-size: 22px; margin-bottom: 20px; }
.kg-comment-list { list-style: none; margin: 0; padding: 0; }
.kg-comment-list .comment { margin-bottom: 20px; }
.kg-comment-list .comment-body { background: var(--kg-light); border-radius: 12px; padding: 18px; }
.kg-comments .comment-respond { background: var(--kg-light); border-radius: 14px; padding: 26px; margin-top: 24px; }
.kg-comments input[type="text"], .kg-comments input[type="email"], .kg-comments input[type="url"], .kg-comments textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--kg-border); border-radius: 8px; font-family: inherit; margin-top: 6px;
}

/* ============================================================
   16. Generic page + About
   ============================================================ */
.kg-page-wrap { padding: 50px 20px 70px; max-width: 920px; }
.kg-page-content { max-width: 920px; margin: 0 auto; }

.kg-about-features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.kg-about-feature { background: #fff; border: 1px solid var(--kg-border); border-radius: 16px; padding: 28px 20px; text-align: center; }
.kg-about-feature-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--kg-light); color: var(--kg-primary); display: flex; align-items: center; justify-content: center; }
.kg-about-feature strong { display: block; font-size: 16px; color: var(--kg-dark); margin-bottom: 6px; }
.kg-about-feature p { margin: 0; font-size: 13px; color: var(--kg-muted); }
.kg-about-features { background: var(--kg-light); }

/* Process steps */
.kg-process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kg-process-step { text-align: center; position: relative; padding: 0 8px; }
.kg-process-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--kg-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.kg-process-title { display: block; font-size: 15px; color: var(--kg-dark); margin-bottom: 6px; }
.kg-process-step p { margin: 0; font-size: 13px; color: var(--kg-muted); }
.kg-process-arrow { position: absolute; top: 24px; right: -16px; color: #c2d3b1; }

/* Certifications */
.kg-certs-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; }
.kg-certs-logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.kg-cert-item { text-align: center; }
.kg-cert-item img { max-height: 90px; width: auto; }
.kg-cert-item figcaption { font-size: 12px; color: var(--kg-muted); margin-top: 8px; }
.kg-certs-cta { background: linear-gradient(120deg, #f3f0e6, #eef4e6); border-radius: 16px; padding: 30px; text-align: center; color: var(--kg-primary); }
.kg-certs-cta p { color: var(--kg-dark); font-size: 18px; font-weight: 500; margin: 12px 0 0; }

/* Stats */
.kg-stats-strip { background: var(--kg-dark); padding: 44px 0; }
.kg-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.kg-stat-item { text-align: center; color: #fff; }
.kg-stat-icon { color: #bcd6a3; margin-bottom: 8px; display: inline-flex; }
.kg-stat-number { display: block; font-size: 32px; font-weight: 700; color: #fff; }
.kg-stat-label { font-size: 13px; color: #c9dabb; }

/* ============================================================
   17. Shop archive
   ============================================================ */
.kg-shop-cat-bar { border-bottom: 1px solid var(--kg-border); background: #fff; }
.kg-shop-cat-bar-inner { display: flex; gap: 8px; overflow-x: auto; padding: 16px 20px; }
.kg-shop-cat { flex-shrink: 0; min-width: 110px; padding: 14px 16px; border-radius: 12px; text-align: center; color: var(--kg-text); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; transition: all .2s; }
.kg-shop-cat:hover, .kg-shop-cat.is-active { background: var(--kg-light); color: var(--kg-primary); }
.kg-shop-cat-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--kg-light); display: flex; align-items: center; justify-content: center; }
.kg-shop-cat.is-active .kg-shop-cat-icon { background: var(--kg-primary); color: #fff; }

.kg-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-top: 40px; padding-bottom: 60px; align-items: start; }
.kg-shop-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
.kg-shop-widget { background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; padding: 20px; }
.kg-shop-cat-list li.is-active > a { color: var(--kg-primary); font-weight: 600; }
.kg-shop-cat-list ul.children { list-style: none; padding-left: 14px; margin: 6px 0 0; }

.kg-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kg-shop-heading { font-size: 24px; margin: 0; }
.woocommerce-result-count { margin: 0; color: var(--kg-muted); font-size: 14px; }
.woocommerce-ordering select, .kg-shop-toolbar select { padding: 10px 14px; border: 1px solid var(--kg-border); border-radius: 8px; font-family: inherit; }
.kg-shop-content ul.products { grid-template-columns: repeat(3, 1fr); }

/* WooCommerce price slider widget */
.kg-shop-widget .price_slider_wrapper { margin-top: 10px; }
.kg-shop-widget .ui-slider { background: var(--kg-border); height: 5px; border-radius: 3px; position: relative; }
.kg-shop-widget .ui-slider .ui-slider-range { background: var(--kg-primary); height: 5px; position: absolute; }
.kg-shop-widget .ui-slider .ui-slider-handle { background: var(--kg-primary); width: 16px; height: 16px; border-radius: 50%; top: -6px; }
.kg-shop-widget .button { background: var(--kg-primary); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: 10px; border-top: none; padding: 14px 18px 14px 44px; list-style: none;
}
.woocommerce-message { background: #eef6e6; border-left: 4px solid var(--kg-primary); }
.woocommerce-info { background: #eef3fa; border-left: 4px solid #4a78b0; }
.woocommerce-error { background: #fbeeee; border-left: 4px solid #c0392b; }

/* ============================================================
   18. Single product
   ============================================================ */
.kg-shop-wrapper { padding-top: 40px; padding-bottom: 60px; overflow: hidden; }
/* 3-column layout: gallery | product summary | highlights sidebar
   Everything else (tabs, reviews, up-sells/related) spans full width below */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.92fr);
	gap: 32px;
	align-items: start;
}
/* By default every child spans full width, preventing it being squeezed into the grid */
.single-product div.product > * { grid-column: 1 / -1; min-width: 0; }
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1; }
.single-product div.product > .kg-single-trust { grid-column: 3; grid-row: 1; margin: 0; }
/* Reset the default WooCommerce float/width so items fill their column */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary,
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0;
	min-width: 0;
}
/* Sale badge floats over the image corner without taking a grid cell */
.single-product div.product > .onsale { position: absolute; z-index: 5; }
/* Product gallery - constrained to fit its column */
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; max-width: 100%; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image > a,
.single-product .woocommerce-product-gallery img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	border-radius: 14px;
}
/* Zoom button */
.single-product .woocommerce-product-gallery__trigger {
	position: absolute; top: 14px; right: 14px; z-index: 6;
	width: 40px; height: 40px; border-radius: 50%; background: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
/* Thumbnails below */
.single-product .flex-control-thumbs {
	display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0;
}
.single-product .flex-control-thumbs li { width: 78px; margin: 0; }
.single-product .flex-control-thumbs img {
	width: 100%; height: auto; border-radius: 8px; cursor: pointer; opacity: .55; border: 1px solid var(--kg-border); transition: opacity .2s;
}
.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover { opacity: 1; border-color: var(--kg-primary); }
/* If the gallery is not a slider (images stacked), show just the first one */
.single-product .woocommerce-product-gallery--columns-4 .woocommerce-product-gallery__image:not(:first-child),
.single-product .woocommerce-product-gallery--columns-3 .woocommerce-product-gallery__image:not(:first-child) {
	display: inline-block; width: 23%; margin: 10px 1% 0 0;
}
.single-product .product_title { font-size: 30px; margin: 6px 0 12px; }
.single-product .woocommerce-product-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; line-height: 1; }
/* SVG stars align vertically with the text */
.kg-product-rating-single .kg-stars { align-self: center; }
.kg-product-rating-single .kg-rating-avg,
.kg-product-rating-single .kg-review-link,
.kg-product-rating-single .kg-sold-count { align-self: center; }
.kg-product-rating-single .kg-rating-avg { font-weight: 700; color: var(--kg-dark); font-size: 16px; line-height: 1; }
.kg-product-rating-single .kg-review-link { color: var(--kg-muted); font-size: 14px; line-height: 1; }
.kg-product-rating-single .kg-review-link:hover { color: var(--kg-primary); }
.kg-product-rating-single .kg-sold-count { color: var(--kg-muted); font-size: 14px; line-height: 1; }
.single-product .price { font-size: 30px; color: var(--kg-dark); font-weight: 700; }
.single-product .price del { font-size: 18px; color: var(--kg-muted); font-weight: 400; }
.single-product .quantity input { width: 70px; padding: 12px; border: 1px solid var(--kg-border); border-radius: 8px; text-align: center; }

/* Quantity picker: label + minus/plus buttons + stock text */
/* Stock text next to the quantity field */
.kg-stock-inline { font-size: 14px; color: #000; font-weight: 500; white-space: nowrap; }
/* Hide the default WooCommerce stock text (moved next to the quantity instead) */
.single-product .woocommerce-variation-availability,
.single-product .summary > p.stock { display: none !important; }
.single-product .kg-quantity-enhanced { display: flex; align-items: center; gap: 14px; }
.kg-quantity-enhanced .kg-qty-label { font-weight: 600; color: var(--kg-dark); }
.kg-quantity-enhanced .kg-qty-box { display: inline-flex; align-items: center; border: 1px solid var(--kg-border); border-radius: 10px; overflow: hidden; background: #fff; }
.kg-quantity-enhanced .kg-qty-btn {
	width: 44px; height: 46px; border: none; background: var(--kg-light); color: var(--kg-dark);
	font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.kg-quantity-enhanced .kg-qty-btn:hover { background: #e6ecd9; }
.single-product .kg-quantity-enhanced input.qty {
	width: 56px; height: 46px; padding: 0; text-align: center; border: none;
	border-left: 1px solid var(--kg-border); border-right: 1px solid var(--kg-border); border-radius: 0;
	-moz-appearance: textfield; appearance: textfield;
}
.kg-quantity-enhanced input.qty::-webkit-outer-spin-button,
.kg-quantity-enhanced input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .single_add_to_cart_button, .single-product .button.alt {
	border-radius: 8px !important;
	padding: 14px 28px !important; font-size: 16px !important; font-weight: 500 !important; border: none !important;
}

/* "Buy Now" button - deeper orange than the add-to-cart button */
.single-product form.cart .kg-buy-now,
.woocommerce .kg-buy-now {
	background-color: var(--kg-btn-buynow, #c2640e) !important;
	color: #fff !important; border: none !important; border-radius: 8px !important;
	padding: 14px 28px !important; font-size: 16px !important; font-weight: 500 !important;
	cursor: pointer; margin-left: 10px;
}
.single-product form.cart .kg-buy-now:hover,
.woocommerce .kg-buy-now:hover {
	background-color: var(--kg-btn-buynow-dark, #93490a) !important; color: #fff !important;
}
/* Variable products: disable the button until all options are chosen */
.woocommerce-variation-add-to-cart-disabled .kg-buy-now { opacity: .45; pointer-events: none; }

/* ===== Product page buttons: larger, split evenly across the full width ===== */
.single-product form.cart:not(.variations_form),
.single-product .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
}
.single-product form.cart:not(.variations_form) > .quantity,
.single-product .woocommerce-variation-add-to-cart > .quantity { flex: 0 0 100%; }
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .kg-buy-now {
	flex: 1 1 0 !important; min-width: 0; margin: 0 !important;
	padding: 18px 18px !important; font-size: 17px !important; font-weight: 600 !important;
}
/* "Add to cart" - colour editable in the Customizer (higher specificity than the shared buy-button rule so it is not overridden) */
.woocommerce.single-product form.cart .single_add_to_cart_button,
.woocommerce.single-product form.cart button.single_add_to_cart_button {
	background-color: var(--kg-btn-cart) !important; color: var(--kg-btn-cart-text) !important;
}
.woocommerce.single-product form.cart .single_add_to_cart_button:hover,
.woocommerce.single-product form.cart button.single_add_to_cart_button:hover {
	background-color: var(--kg-btn-cart-dark) !important; color: var(--kg-btn-cart-text) !important;
}
/* "Buy Now" - colour editable in the Customizer */
.single-product form.cart .kg-buy-now {
	background-color: var(--kg-btn-buynow) !important; color: var(--kg-btn-buynow-text) !important;
}
.single-product form.cart .kg-buy-now:hover {
	background-color: var(--kg-btn-buynow-dark) !important; color: var(--kg-btn-buynow-text) !important;
}

/* ===== Primary buy buttons in orange (to drive clicks) =====
   Covers: add to cart, proceed to checkout, place order - all are .button.alt */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce .cart .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order {
	background-color: var(--kg-btn-buy, #f5821f) !important;
	color: var(--kg-btn-buy-text, #fff) !important;
	border-color: var(--kg-btn-buy, #f5821f) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .cart .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-checkout #place_order:hover {
	background-color: var(--kg-btn-buy-dark, #d96c0a) !important;
	border-color: var(--kg-btn-buy-dark, #d96c0a) !important;
	color: var(--kg-btn-buy-text, #fff) !important;
}
.single-product .variations select { padding: 10px 14px; border: 1px solid var(--kg-border); border-radius: 8px; }
.single-product .product_meta { font-size: 13px; color: var(--kg-muted); margin-top: 18px; }

.single-product .woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; border-bottom: 1px solid var(--kg-border); }
.single-product .woocommerce-tabs ul.tabs li { margin: 0; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 20px; color: var(--kg-text); font-weight: 500; border-bottom: 2px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--kg-primary); border-bottom-color: var(--kg-primary); }

/* "Why choose us" + shipping + payment boxes - stacked in the right column */
.kg-single-trust { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; clear: both; }
.kg-single-why { background: var(--kg-light); border-radius: 14px; padding: 22px; }
.kg-single-why-title { font-size: 17px; margin: 0 0 14px; }
.kg-single-why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kg-single-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #44523c; }
.kg-single-why-icon { color: var(--kg-primary); flex-shrink: 0; }
.kg-single-ship { background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; padding: 22px; display: flex; gap: 12px; align-items: center; }
.kg-single-ship-icon { color: var(--kg-primary); flex-shrink: 0; }
.kg-single-ship strong { display: block; color: var(--kg-dark); }
.kg-single-ship p { margin: 4px 0 0; font-size: 13px; color: var(--kg-muted); }
.kg-single-pay { background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; padding: 22px; }
.kg-single-pay strong { display: block; margin-bottom: 10px; color: var(--kg-dark); }
.kg-single-pay img { max-height: 30px; }
/* 1:1 banner in the product sidebar */
.kg-single-banner img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; }

/* ----- Customer reviews showcase ----- */
.kg-product-reviews { margin-top: 50px; width: 100%; clear: both; }
.kg-product-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kg-product-reviews-head h2 { margin: 0; font-size: 24px; }
.kg-product-reviews-body { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: stretch; }
.kg-reviews-score {
	background: var(--kg-light); border-radius: 16px; padding: 24px; text-align: center;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.kg-reviews-avg { font-size: 52px; line-height: 1; color: var(--kg-dark); font-weight: 700; }
.kg-reviews-score .kg-stars .kg-star { color: var(--kg-star); }
.kg-reviews-count { font-size: 13px; color: var(--kg-muted); }
.kg-reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; min-width: 0; }
.kg-review-card { margin: 0; background: #fff; border: 1px solid var(--kg-border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.kg-review-top { display: flex; align-items: center; gap: 12px; }
.kg-review-avatar img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.kg-review-author strong { display: block; font-size: 14px; color: var(--kg-dark); }
.kg-review-card blockquote { margin: 0; font-size: 13.5px; color: #4b5544; line-height: 1.7; flex: 1; }
.kg-review-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* ----- Product carousels: "You may also like" + "Related products" ----- */
.related.products, .up-sells.products, .upsells.products {
	margin-top: 50px; width: 100%; clear: both; float: none; position: relative;
}
.kg-carousel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.kg-carousel-head h2 { margin: 0; font-size: 24px; }
.kg-carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.kg-carousel-prev, .kg-carousel-next {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--kg-border);
	background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--kg-dark); transition: all .2s;
}
.kg-carousel-prev:hover, .kg-carousel-next:hover { background: var(--kg-primary); color: #fff; border-color: var(--kg-primary); }
.kg-carousel-prev .kg-icon { transform: rotate(180deg); }
.kg-carousel-nav button:disabled { opacity: .35; cursor: default; background: #fff; color: var(--kg-dark); border-color: var(--kg-border); }

.related.products ul.products,
.up-sells.products ul.products,
.upsells.products ul.products {
	display: flex; flex-wrap: nowrap; gap: 20px; margin: 0; padding: 4px 2px 10px;
	overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
	scrollbar-width: thin; scrollbar-color: var(--kg-border) transparent;
}
.related.products ul.products::-webkit-scrollbar,
.up-sells.products ul.products::-webkit-scrollbar,
.upsells.products ul.products::-webkit-scrollbar { height: 6px; }
.related.products ul.products::-webkit-scrollbar-thumb,
.up-sells.products ul.products::-webkit-scrollbar-thumb,
.upsells.products ul.products::-webkit-scrollbar-thumb { background: var(--kg-border); border-radius: 3px; }
.related.products ul.products li.product,
.up-sells.products ul.products li.product,
.upsells.products ul.products li.product {
	flex: 0 0 calc((100% - 80px) / 5); /* 5 per row, the rest scroll */
	scroll-snap-align: start; min-width: 0;
}

/* ============================================================
   19. Footer
   ============================================================ */
.kg-footer { background: var(--kg-darker); color: #c4d2b8; margin-top: auto; }
.kg-footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr 1.5fr; gap: 34px; padding-top: 56px; padding-bottom: 44px; }
.kg-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kg-footer-logo .kg-icon { width: 40px; height: 40px; color: #bcd6a3; }
.kg-footer-logo span, .kg-footer-logo strong { color: #fff; font-size: 20px; font-weight: 600; }
.kg-footer-logo img { max-height: 50px; filter: brightness(0) invert(1); opacity: .92; }
.kg-footer-desc { font-size: 13.5px; line-height: 1.7; margin: 0 0 18px; }
.footer-widget-title { color: #fff; font-size: 16px; margin: 0 0 18px; }
.kg-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kg-footer-menu a { color: #c4d2b8; font-size: 14px; }
.kg-footer-menu a:hover { color: #fff; padding-left: 4px; }
.kg-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kg-contact-list li { display: flex; gap: 10px; font-size: 14px; }
.kg-contact-list .kg-icon { color: #bcd6a3; flex-shrink: 0; margin-top: 2px; }
.kg-contact-list a { color: #c4d2b8; }
.kg-contact-list a:hover { color: #fff; }
.kg-footer .kg-social { background: rgba(255,255,255,.1); }
.kg-footer .kg-social:hover { background: var(--kg-primary); }
.kg-footer-newsletter p { font-size: 13.5px; margin: 0 0 14px; }
.kg-footer-newsletter .kg-newsletter-form { flex-direction: column; gap: 10px; }
.kg-footer-newsletter input[type="email"] { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; }
.kg-footer-newsletter input[type="email"]::placeholder { color: #93a487; }
.kg-footer-newsletter .kg-btn { justify-content: center; }

/* Honeypot to catch bots (hidden from real users) + subscription result message */
.kg-newsletter-form .kg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kg-newsletter-msg { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.kg-newsletter-msg:empty { display: none; }
.kg-newsletter-msg.is-success { color: #9be3a8; }
.kg-newsletter-msg.is-error { color: #ffc2b0; }

/* Column with two stacked blocks: payment methods + delivery services */
.kg-footer-col-stacked { display: flex; flex-direction: column; gap: 26px; }
.kg-footer-block .footer-widget-title { margin-bottom: 12px; }
.kg-footer-block .footer-widget-subtitle { color: #fff; font-size: 14px; margin: 0 0 8px; font-weight: 500; }
.kg-footer-media { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kg-footer-media img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.kg-footer-media .footer-widget { margin: 0; }
.kg-footer-media p { margin: 0; font-size: 13.5px; color: #c4d2b8; }

.kg-footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 30px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.kg-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: 13px; color: #93a487; }

/* ============================================================
   20. Pagination + back to top + 404
   ============================================================ */
.kg-pagination ul { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; flex-wrap: wrap; }
.kg-pagination a, .kg-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px;
	background: #fff; border: 1px solid var(--kg-border); color: var(--kg-text); font-weight: 500;
}
.kg-pagination a:hover { background: var(--kg-light); color: var(--kg-primary); }
.kg-pagination .current { background: var(--kg-primary); color: #fff; border-color: var(--kg-primary); }
.kg-pagination .prev .kg-icon { transform: rotate(180deg); }

/* Floating LINE chat button, bottom right */
.kg-chat-btn {
	position: fixed; bottom: 24px; right: 24px; z-index: 200;
	display: inline-flex; align-items: center; gap: 9px;
	background: #06c755; color: #fff;
	padding: 12px 20px; border-radius: 40px;
	box-shadow: 0 8px 22px rgba(6,199,85,.4);
	font-weight: 600; font-size: 15px; line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease;
}
.kg-chat-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6,199,85,.5); }
.kg-chat-btn:active { transform: translateY(0); }
.kg-chat-icon { display: inline-flex; }
.kg-chat-icon .kg-icon { width: 26px; height: 26px; }
@media (max-width: 600px) {
	.kg-chat-btn { padding: 13px; right: 16px; bottom: 16px; }
	.kg-chat-text { display: none; }
}

.kg-404 { text-align: center; padding: 80px 20px; max-width: 560px; }
.kg-404-icon { color: #c2d3b1; }
.kg-404-code { font-size: 90px; color: var(--kg-primary); margin: 0; line-height: 1; }
.kg-404 .kg-search-form { justify-content: center; margin: 24px 0; }

.kg-no-results { text-align: center; padding: 60px 20px; }
.kg-no-results-icon { color: #c2d3b1; }
.kg-no-results .kg-search-form { justify-content: center; margin-top: 20px; }

/* ============================================================
   21. Responsive
   ============================================================ */
@media (max-width: 1100px) {
	.kg-cols-5 { grid-template-columns: repeat(3, 1fr); }
	.kg-need-card { flex-basis: calc(25% - 12px); }
	.kg-features-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
	.kg-feature-item { border-right: none; }
	.kg-trust-grid { grid-template-columns: repeat(3, 1fr); }
	.kg-stats-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
	.kg-footer-top { grid-template-columns: 1fr 1fr 1fr; }

	/* Product page: 2 columns (gallery + summary); the highlights box drops to full width */
	.single-product div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
	.single-product div.product > .kg-single-trust {
		grid-column: 1 / -1; grid-row: auto;
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px;
	}
	/* Product carousel: 4 per row */
	.related.products ul.products li.product,
	.up-sells.products ul.products li.product,
	.upsells.products ul.products li.product { flex-basis: calc((100% - 60px) / 4); }

	/* Story: column 1 full width on top; highlights + FDA share a 2-column row below */
	.kg-story-grid { grid-template-columns: 1fr 1fr; }
	.kg-story-main { grid-column: 1 / -1; }

	/* Menu bar: tighten spacing so a long menu still fits on one line */
	.kg-header-grid { gap: 16px; }
	.kg-header-row-bottom { gap: 12px; }
	.kg-allcat-btn { padding: 11px 15px; gap: 8px; font-size: 14px; }
	.kg-menu { gap: 2px; }
	.kg-menu a { padding: 10px 7px; font-size: 14px; }
	.kg-branding img, .custom-logo { max-width: var(--kg-logo-w-md, 150px); }
}

@media (max-width: 980px) {
	.kg-nav { position: fixed; top: 0; right: 0; width: 280px; max-width: 82vw; height: 100vh; background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.12); padding: 80px 20px 20px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: 250; }
	.kg-nav.is-open { transform: translateX(0); }
	.kg-menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
	.kg-menu a { white-space: normal; }
	.kg-menu > li > a::after { display: none; }
	.kg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; }
	.kg-menu-toggle { display: flex; }
	.kg-nav { margin-left: 0; }

	/* Mobile: flatten the header structure into stacked lines
	   Line 1 = logo + buttons | Line 2 = search | Line 3 = All Categories */
	.kg-header-grid { flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
	.kg-header-main { display: contents; }
	.kg-header-row-top { display: contents; }

	.kg-branding { order: 1; margin-right: auto; }
	.kg-branding img, .custom-logo { max-height: var(--kg-logo-h-sm, 64px); max-width: 150px; }
	.kg-header-actions { order: 2; }
	.kg-header-search { order: 3; flex: 0 0 100%; }
	.kg-header-search form { max-width: none; }
	.kg-header-search .kg-search-submit { width: 54px; }
	.kg-header-row-bottom { order: 4; flex: 0 0 100%; min-height: 0; }

	/* Bottom row keeps only the All Categories button (primary menu moves to the slide-in nav) */
	.kg-allcat { width: 100%; }
	.kg-allcat-btn { width: 100%; justify-content: center; }
	.kg-allcat-panel { width: 100%; min-width: 0; }
	/* Sub-categories on mobile: stack below instead of sliding out sideways */
	.kg-allcat-sub {
		position: static; opacity: 1; visibility: visible;
		border: none; box-shadow: none; border-radius: 0;
		margin-left: 0; padding: 0 0 4px 16px;
	}
	.kg-allcat-item.has-children > a::after { display: none; }

	.kg-hero-inner { grid-template-columns: 1fr; text-align: center; padding: 50px 20px; }
	.kg-hero-title { font-size: 34px; }
	.kg-hero-badges, .kg-hero-actions { justify-content: center; }
	/* One column here, so the badge box must not run past the edge - let it wrap again */
	.kg-hero-badges { width: auto; max-width: 100%; }
	.kg-hero-media { order: -1; }
	.kg-hero-media img { max-height: 320px; }

	.kg-story-grid { grid-template-columns: 1fr; }
	.kg-blog-layout, .kg-shop-layout { grid-template-columns: 1fr; }
	.kg-sidebar, .kg-shop-sidebar { position: static; }
	.kg-process-list { grid-template-columns: repeat(2, 1fr); }
	.kg-process-arrow { display: none; }
	.kg-about-features-grid { grid-template-columns: repeat(3, 1fr); }
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product div.product > .woocommerce-product-gallery,
	.single-product div.product > .summary { grid-column: 1 / -1; grid-row: auto; }
	.related.products ul.products li.product,
	.up-sells.products ul.products li.product,
	.upsells.products ul.products li.product { flex-basis: calc((100% - 40px) / 3); }
	.kg-product-reviews-body { grid-template-columns: 1fr; }
	.kg-reviews-list { grid-template-columns: 1fr; }
	.kg-shop-content ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
	.kg-section { padding: 44px 0; }
	.kg-section-title { font-size: 24px; }
	.kg-topbar-left .kg-topbar-ship { font-size: 12px; }
	.kg-topbar-line, .kg-topbar-social { display: none; }
	.kg-cols-5, .kg-cols-4, .kg-cols-3, .kg-blog-grid, .kg-articles-grid, .kg-shop-content ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.related.products ul.products li.product,
	.up-sells.products ul.products li.product,
	.upsells.products ul.products li.product { flex-basis: calc((100% - 28px) / 2); }
	.single-product div.product > .kg-single-trust { grid-template-columns: 1fr; }
	.single-product form.cart .single_add_to_cart_button,
	.single-product form.cart .kg-buy-now { flex: 1 1 100% !important; }
	/* Story on mobile: highlights + FDA stack into one column, image above the text */
	.kg-story-grid { grid-template-columns: 1fr; }
	.kg-story-main { grid-template-columns: 1fr; }
	.kg-story-media img { max-height: 260px; min-height: 0; }
	.kg-need-card { flex-basis: calc(50% - 8px); }
	.kg-features-grid { grid-template-columns: 1fr 1fr; }
	.kg-trust-grid { grid-template-columns: 1fr 1fr; }
	.kg-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.kg-testi-grid { grid-template-columns: 1fr; }
	.kg-about-features-grid { grid-template-columns: 1fr 1fr; }
	.kg-footer-top { grid-template-columns: 1fr 1fr; }
	.kg-footer-widgets { grid-template-columns: 1fr; }
	.kg-page-hero-title { font-size: 28px; }
	.kg-hero-title { font-size: 28px; }
	.kg-section-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
	.kg-newsletter-form { flex-direction: column; }
	.kg-newsletter-form input[type="email"] { min-width: 0; width: 100%; }
	.kg-post-nav { grid-template-columns: 1fr; }
	.kg-features-strip { margin-top: -24px; }
}

@media (max-width: 420px) {
	.kg-cols-5, .kg-cols-4, .kg-cols-3, .kg-blog-grid, .kg-shop-content ul.products { grid-template-columns: 1fr; }
	.kg-product-card:hover .kg-quickbuy { opacity: 1; }
}

/* ============================================================
   22. Sidebar - redesigned for both shop and blog
   ============================================================ */
.kg-shop-widget, .kg-sidebar .widget {
	background: #fff; border: 1px solid var(--kg-border); border-radius: 16px;
	padding: 22px; box-shadow: 0 4px 16px rgba(31,58,22,.04);
}
.kg-shop-widget-title, .kg-sidebar .widget-title {
	display: flex; align-items: center; gap: 8px;
	font-size: 16px; margin: 0 0 16px; padding-bottom: 14px;
	border-bottom: 2px solid var(--kg-light); color: var(--kg-dark);
}
.kg-shop-widget-title .kg-icon, .kg-sidebar .widget-title .kg-icon { color: var(--kg-primary); flex-shrink: 0; }

/* ---- Product categories (tree + accordion) ---- */
.kg-cat-all { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 600; color: var(--kg-dark); background: var(--kg-light); margin-bottom: 6px; }
.kg-cat-all.is-current, .kg-cat-all:hover { background: var(--kg-primary); color: #fff; }
.kg-cat-tree, .kg-cat-tree .kg-cat-sub { list-style: none; margin: 0; padding: 0; }
.kg-cat-item { border-bottom: 1px solid #f1f3ec; }
.kg-cat-item:last-child { border-bottom: none; }
.kg-cat-row { display: flex; align-items: center; }
.kg-cat-row > a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--kg-text); font-size: 14.5px; }
.kg-cat-row > a:hover { background: var(--kg-light); color: var(--kg-primary); }
.kg-cat-item.is-current > .kg-cat-row > a { color: var(--kg-primary); font-weight: 600; }
.kg-cat-count { font-size: 12px; color: var(--kg-muted); background: var(--kg-light); border-radius: 20px; padding: 1px 9px; flex-shrink: 0; }
.kg-cat-toggle { flex-shrink: 0; width: 30px; height: 36px; border: none; background: transparent; cursor: pointer; position: relative; }
.kg-cat-toggle::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-right: 2px solid var(--kg-muted); border-bottom: 2px solid var(--kg-muted); transform: translate(-50%,-65%) rotate(45deg); transition: transform .2s; }
.kg-cat-item.is-open > .kg-cat-row > .kg-cat-toggle::before { transform: translate(-50%,-35%) rotate(-135deg); }
.kg-cat-sub { margin-left: 10px !important; padding-left: 10px !important; border-left: 1px dashed var(--kg-border); max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.kg-cat-item.is-open > .kg-cat-sub { max-height: 1600px; }
.kg-cat-sub .kg-cat-item { border-bottom: none; }
.kg-cat-sub .kg-cat-row > a { font-size: 13.5px; padding: 7px 10px; }

/* ---- Shop by need ---- */
.kg-side-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kg-side-needs a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--kg-text); }
.kg-side-needs a:hover { background: var(--kg-light); }
.kg-side-need-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--kg-light); color: var(--kg-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.kg-side-needs a:hover .kg-side-need-icon { background: var(--kg-primary); color: #fff; }
.kg-side-need-text strong { display: block; font-size: 14px; color: var(--kg-dark); }
.kg-side-need-text small { color: var(--kg-muted); font-size: 12px; }

/* ---- Price range ---- */
.kg-price-filter { display: flex; flex-direction: column; gap: 14px; }
.kg-price-inputs { display: flex; align-items: center; gap: 6px; }
.kg-price-inputs input { width: 100%; min-width: 0; padding: 10px 8px; border: 1px solid var(--kg-border); border-radius: 9px; text-align: center; font-family: inherit; }
.kg-price-cur { color: var(--kg-muted); font-size: 13px; }
.kg-price-sep { color: var(--kg-muted); font-size: 12px; white-space: nowrap; }
.kg-price-btn { justify-content: center; width: 100%; }

/* ---- Best sellers (compact) ---- */
.kg-side-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.kg-side-products > li > a { display: flex; gap: 12px; align-items: center; }
.kg-side-prod-thumb img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; background: var(--kg-light); }
.kg-side-prod-info { min-width: 0; }
.kg-side-prod-info strong { display: block; font-size: 13.5px; color: var(--kg-dark); line-height: 1.4; }
.kg-side-products a:hover .kg-side-prod-info strong { color: var(--kg-primary); }
.kg-side-prod-price { font-size: 14px; font-weight: 700; color: var(--kg-dark); }
.kg-side-prod-price del { color: var(--kg-muted); font-weight: 400; font-size: 12px; }
.kg-side-prod-info .kg-stars { display: block; margin-top: 3px; }
.kg-side-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 13px; font-weight: 500; }

/* ---- 1:1 banner ---- */
.kg-widget-banner { padding: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; overflow: hidden; border-radius: 16px; }
.kg-widget-banner img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 16px; }

/* ---- Follow us ---- */
.kg-widget-follow p { font-size: 13.5px; color: var(--kg-muted); margin: 0 0 14px; }
.kg-widget-follow .kg-socials { display: flex; gap: 8px; }
.kg-widget-follow .kg-social { background: var(--kg-light); color: var(--kg-primary); }
.kg-widget-follow .kg-social:hover { background: var(--kg-primary); color: #fff; }

/* ---- Popular tags ---- */
.kg-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-tag-cloud a { background: var(--kg-light); color: var(--kg-text); font-size: 13px; padding: 6px 13px; border-radius: 20px; transition: all .15s; }
.kg-tag-cloud a:hover { background: var(--kg-primary); color: #fff; }

/* View count in the popular articles list */
.kg-post-views { display: inline-flex; align-items: center; gap: 4px; }
.kg-post-views .kg-icon { width: 13px; height: 13px; color: var(--kg-primary); }

/* Customer-uploaded product photos in the review showcase */
.kg-review-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.kg-review-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; background: var(--kg-light); }
.kg-review-avatar .avatar { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
