/*
Theme Name: Astra Child KineFeli
Template: astra
Description: KineFeli ShopMop-style storefront design (blue + lavender). All rules are scoped under body.kf-on.
Version: 1.0.0
Text Domain: astra-child-kinefeli
*/

.kf-on{--kf-bg:#EEF0FB;--kf-surface:#fff;--kf-ink:#14172B;--kf-accent:#2F6FDB;--kf-accent-d:#1F55B8;--kf-muted:#6B7190;--kf-line:#DDE1F3;--kf-sale:#E5484D;--kf-r:20px;--kf-r-sm:12px;--kf-shadow:0 8px 24px rgba(47,111,219,.08);--kf-font:"Plus Jakarta Sans","Hind Siliguri",sans-serif}
body.kf-on,body.kf-on .site,body.kf-on .site-content,body.kf-on .ast-container,body.kf-on .content-area,body.kf-on #primary{background:var(--kf-bg)!important;color:var(--kf-ink);font-family:var(--kf-font)}
body.kf-on{background:linear-gradient(180deg,#DCE3FA 0,var(--kf-bg) 320px)!important}
body.kf-on h1,body.kf-on h2,body.kf-on h3,body.kf-on h4,body.kf-on h5,body.kf-on button,body.kf-on input,body.kf-on select,body.kf-on textarea,body.kf-on .site-title,body.kf-on .main-header-menu a{font-family:var(--kf-font);color:var(--kf-ink)}
body.kf-on h1,body.kf-on h2,body.kf-on h3{line-height:1.2;font-weight:700}
body.kf-on a{color:var(--kf-accent)}

/* Header */
body.kf-on .main-header-bar,body.kf-on .ast-primary-header-bar,body.kf-on .site-header{background:rgba(255,255,255,.92)!important;box-shadow:0 4px 18px rgba(47,111,219,.07);border:0}
body.kf-on .main-header-menu a,body.kf-on .ast-header-woo-cart a{color:var(--kf-ink)!important;font-weight:600}
body.kf-on .main-header-menu a:hover{color:var(--kf-accent)!important}

/* Buttons */
body.kf-on .woocommerce a.button,body.kf-on .woocommerce button.button,body.kf-on .woocommerce input.button,body.kf-on .woocommerce #respond input#submit,body.kf-on .wp-block-button__link,body.kf-on .wc-block-components-button:not(.is-link),body.kf-on .single_add_to_cart_button,body.kf-on #place_order,body.kf-on .button.alt{background:var(--kf-accent)!important;color:#fff!important;border:0!important;border-radius:999px!important;font-weight:700;padding:12px 22px;box-shadow:0 8px 18px rgba(47,111,219,.25);transition:background .15s}
body.kf-on .woocommerce a.button:hover,body.kf-on .woocommerce button.button:hover,body.kf-on .single_add_to_cart_button:hover,body.kf-on #place_order:hover,body.kf-on .wc-block-components-button:not(.is-link):hover{background:var(--kf-accent-d)!important;color:#fff!important}

/* Search pill (home) */
body.kf-on .kf-search{margin:14px 0}
body.kf-on .kf-search .wp-block-search__inside-wrapper{background:#fff;border:1px solid var(--kf-line)!important;border-radius:999px;padding:4px 6px 4px 18px;box-shadow:var(--kf-shadow)}
body.kf-on .kf-search input[type=search]{border:0!important;background:transparent;box-shadow:none;min-height:44px;font-size:15px}
body.kf-on .kf-search .wp-block-search__button{background:var(--kf-accent)!important;color:#fff!important;border-radius:999px!important;min-width:44px;min-height:44px;padding:0 12px;box-shadow:none}

/* Home layout */
body.kf-on.home .site-content .ast-container,body.kf-on.page-template-default.home .ast-container{max-width:1200px;padding-left:16px;padding-right:16px}
body.kf-on.home .entry-header{display:none}
body.kf-on.home .entry-content>*{max-width:100%}
body.kf-on .kf-section-title{font-size:20px;margin:26px 0 12px}
body.kf-on .kf-see-all{margin:-38px 0 12px;text-align:right;font-weight:600}
body.kf-on .kf-see-all a{text-decoration:none}

/* Hero slider */
.kf-on .kf-hero{position:relative;border-radius:var(--kf-r);overflow:hidden;margin:12px 0 8px;box-shadow:var(--kf-shadow)}
.kf-on .kf-hero__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth}
.kf-on .kf-hero__track::-webkit-scrollbar{display:none}
.kf-on .kf-slide{flex:0 0 100%;scroll-snap-align:start;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 20px 34px;min-height:210px;background:linear-gradient(135deg,#1F3FA8 0,#3B6FE0 58%,#7E8FEA 100%);color:#fff}
.kf-on .kf-slide__text{flex:1 1 56%;min-width:0}
.kf-on .kf-slide h2{color:#fff;font-size:22px;line-height:1.15;margin:0 0 6px}
.kf-on .kf-slide p{margin:0 0 14px;color:rgba(255,255,255,.92);font-size:14px}
.kf-on a.kf-slide__btn{display:inline-block;background:#fff;color:var(--kf-ink);padding:10px 18px;border-radius:12px;font-weight:700;text-decoration:none;font-size:14px}
.kf-on .kf-slide__img{flex:0 0 38%;max-width:190px}
.kf-on .kf-slide__img img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;display:block;background:#fff}
.kf-on .kf-dots{position:absolute;left:20px;bottom:12px;display:flex;gap:6px}
.kf-on .kf-dots span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.45);transition:all .2s}
.kf-on .kf-dots span.is-on{background:#fff;width:18px;border-radius:6px}

/* Categories */
.kf-on .kf-cats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.kf-on a.kf-cat{background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:14px 10px;text-align:center;text-decoration:none;color:var(--kf-ink);font-weight:600;font-size:14px;display:flex;flex-direction:column;align-items:center;gap:8px}
.kf-on .kf-cat img{width:72px;height:72px;object-fit:cover;border-radius:16px;background:#F4F6FE}

/* Product grid + cards */
body.kf-on ul.products{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:12px!important;margin:0!important;padding:0!important}
body.kf-on ul.products::before,body.kf-on ul.products::after{display:none!important}
body.kf-on ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:10px 10px 14px!important;overflow:hidden;display:flex;flex-direction:column}
body.kf-on ul.products li.product img{border-radius:14px;margin-bottom:8px!important;aspect-ratio:1/1;object-fit:cover;width:100%;height:auto}
body.kf-on ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:600;line-height:1.35;padding:0!important;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.kf-on .price,body.kf-on ul.products li.product .price{color:var(--kf-accent)!important;font-weight:800;font-size:16px}
body.kf-on .price del{color:var(--kf-muted)!important;font-weight:500;font-size:13px;opacity:1}
body.kf-on .price ins{text-decoration:none}
body.kf-on ul.products li.product .button{margin-top:auto;font-size:13px;padding:10px 14px;text-align:center;width:100%}
body.kf-on span.onsale{background:var(--kf-sale)!important;color:#fff;border-radius:999px;min-height:0;min-width:0;line-height:1;padding:7px 10px;top:12px;left:12px}

/* Single product */
body.kf-on.single-product div.product .woocommerce-product-gallery{background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:12px;overflow:hidden}
body.kf-on.single-product div.product .woocommerce-product-gallery img{border-radius:14px}
body.kf-on.single-product .product_title{font-size:24px;margin:14px 0 6px}
body.kf-on.single-product p.price{font-size:26px!important}
body.kf-on.single-product div.product .summary{background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:18px;margin-top:14px}
body.kf-on.single-product .quantity .qty{border:1px solid var(--kf-line);border-radius:999px;min-height:46px;width:78px;text-align:center;background:#fff}
body.kf-on.single-product .woocommerce-tabs{background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:16px;margin-top:18px}
body.kf-on.single-product .related.products>h2,body.kf-on.single-product .up-sells>h2{font-size:20px;margin:26px 0 12px}

/* Cart + checkout */
body.kf-on .wp-block-woocommerce-cart .wc-block-cart__main,body.kf-on .wp-block-woocommerce-cart .wc-block-cart__sidebar,body.kf-on form.woocommerce-checkout #order_review,body.kf-on form.woocommerce-checkout .woocommerce-billing-fields,body.kf-on .woocommerce-cart-form{background:var(--kf-surface);border-radius:var(--kf-r);box-shadow:var(--kf-shadow);padding:16px}
body.kf-on .wc-block-cart__submit-button,body.kf-on #place_order{width:100%;text-align:center;justify-content:center;min-height:52px;font-size:16px}
body.kf-on .woocommerce form .form-row input.input-text,body.kf-on .woocommerce form .form-row textarea,body.kf-on .woocommerce form .form-row select,body.kf-on .wc-block-components-text-input input{border:1px solid var(--kf-line);border-radius:var(--kf-r-sm);min-height:46px;background:#fff}
body.kf-on .wc-block-components-product-name{color:var(--kf-ink);font-weight:600}

/* Footer */
body.kf-on .site-footer,body.kf-on .site-below-footer-wrap{background:#fff!important;color:var(--kf-muted)}
body.kf-on .site-footer a{color:var(--kf-muted)}

/* Mobile bottom nav */
.kf-bottom-nav{display:none}
@media (max-width:767px){
 body.kf-on{padding-bottom:78px}
 body.kf-on .kf-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:999;background:#fff;box-shadow:0 -6px 24px rgba(47,111,219,.10);padding:8px 8px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}
 body.kf-on .kf-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--kf-muted);text-decoration:none;position:relative;min-height:44px;justify-content:center}
 body.kf-on .kf-bottom-nav a.is-on{color:var(--kf-accent)}
 body.kf-on .kf-bottom-nav svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body.kf-on .kf-bottom-nav .kf-cart-count{position:absolute;top:0;left:calc(50% + 6px);background:var(--kf-accent);color:#fff;border-radius:999px;font-size:10px;min-width:16px;height:16px;line-height:16px;text-align:center;padding:0 4px}
 body.kf-on .kf-bottom-nav .kf-cart-count:empty{display:none}
 /* product page: sticky buy bar instead of tab bar */
 body.kf-on.single-product .kf-bottom-nav{display:none}
 body.kf-on.single-product{padding-bottom:96px}
 body.kf-on.single-product form.cart:not(.variations_form){position:fixed;left:0;right:0;bottom:0;z-index:999;margin:0!important;background:#fff;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:10px;align-items:center;box-shadow:0 -6px 24px rgba(47,111,219,.12)}
 body.kf-on.single-product form.cart .quantity{margin:0!important;flex:0 0 auto}
 body.kf-on.single-product form.cart .single_add_to_cart_button{flex:1;margin:0!important;min-height:48px}
}

/* Tablet + desktop */
@media (min-width:768px){
 .kf-on .kf-cats{grid-template-columns:repeat(4,1fr);gap:18px}
 .kf-on .kf-cat img{width:96px;height:96px}
 body.kf-on ul.products{grid-template-columns:repeat(3,1fr)!important;gap:20px!important}
 .kf-on .kf-slide{min-height:320px;padding:40px 48px 48px;gap:40px}
 .kf-on .kf-slide h2{font-size:38px}
 .kf-on .kf-slide p{font-size:17px}
 .kf-on .kf-slide__img{max-width:300px;flex-basis:30%}
 .kf-on .kf-dots{left:48px;bottom:20px}
 body.kf-on .kf-section-title{font-size:26px}
 body.kf-on .kf-see-all{margin-top:-46px}
}
@media (min-width:1024px){
 body.kf-on ul.products{grid-template-columns:repeat(4,1fr)!important}
 body.kf-on.home .kf-search{max-width:640px;margin:18px auto}
 body.kf-on.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
 body.kf-on.single-product div.product .woocommerce-product-gallery,body.kf-on.single-product div.product .summary{width:100%!important;float:none!important;margin-top:0}
 body.kf-on.single-product div.product .woocommerce-tabs,body.kf-on.single-product div.product .related,body.kf-on.single-product div.product .up-sells{grid-column:1/-1}
}

/* ===== v1.1 refinements ===== */

/* Categories: compact horizontal row on mobile, 4 slim cards on desktop */
.kf-on .kf-cats{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 10px;margin:0 -2px;grid-template-columns:none}
.kf-on .kf-cats::-webkit-scrollbar{display:none}
.kf-on a.kf-cat{flex:0 0 auto;min-width:96px;flex-direction:column;padding:10px 12px;gap:6px;border-radius:16px;font-size:12.5px;white-space:nowrap}
.kf-on .kf-cat img{width:48px;height:48px;border-radius:12px}
@media (min-width:768px){
 .kf-on .kf-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;overflow:visible}
 .kf-on a.kf-cat{flex-direction:row;justify-content:flex-start;gap:14px;padding:12px 16px;font-size:15px;min-width:0;white-space:normal;text-align:left}
 .kf-on .kf-cat img{width:56px;height:56px}
}

/* Product cards: image fills the card, details below, round add-to-cart button on the image */
body.kf-on ul.products li.product{padding:0!important;position:relative;overflow:hidden}
body.kf-on ul.products li.product .astra-shop-thumbnail-wrap{position:relative;margin:0!important;padding:0!important}
body.kf-on ul.products li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link{display:block}
body.kf-on ul.products li.product .astra-shop-thumbnail-wrap img{border-radius:0!important;margin:0!important;width:100%!important;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
body.kf-on ul.products li.product .astra-shop-summary-wrap{padding:10px 12px 14px!important}
body.kf-on ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;margin:0 0 4px!important}
body.kf-on ul.products li.product .ast-woo-product-category{display:none}
body.kf-on ul.products li.product .price{font-size:15px;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
body.kf-on ul.products li.product .price del{order:2}
body.kf-on ul.products li.product .price ins{order:1}

/* Sale badge: small red pill, top-left of the image */
body.kf-on .ast-onsale-card,body.kf-on span.onsale.kf-sale{position:absolute!important;top:10px!important;left:10px!important;right:auto!important;bottom:auto!important;transform:none!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;background:var(--kf-sale)!important;color:#fff!important;border-radius:999px!important;padding:5px 9px!important;font-size:11px!important;font-weight:700!important;line-height:1!important;z-index:3;box-shadow:none}

/* Add to cart: round blue icon button, bottom-right of the image */
body.kf-on a.ast-on-card-button.add_to_cart_button,body.kf-on a.ast-on-card-button.ast-select-options-trigger,body.kf-on a.ast-on-card-button.product_type_variable{position:absolute!important;right:10px!important;bottom:10px!important;top:auto!important;left:auto!important;transform:none!important;width:40px!important;height:40px!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:var(--kf-accent)!important;color:#fff!important;display:flex!important;align-items:center;justify-content:center;opacity:1!important;visibility:visible!important;box-shadow:0 6px 14px rgba(47,111,219,.35);z-index:3}
body.kf-on .ast-card-action-tooltip{display:none!important}
body.kf-on a.ast-on-card-button .ast-icon svg,body.kf-on a.ast-on-card-button svg{width:18px!important;height:18px!important;fill:#fff!important}
body.kf-on a.added_to_cart{display:none}

/* Hero polish */
.kf-on .kf-slide__price,.kf-on .kf-slide__price *{color:#fff!important;font-weight:700;font-size:18px;background:none;text-decoration-color:rgba(255,255,255,.6)}
.kf-on .kf-slide__price del{opacity:.7;font-weight:500;font-size:14px;margin-right:6px}
.kf-on .kf-slide__price ins{text-decoration:none}
.kf-on .kf-off{display:inline-block;background:rgba(255,255,255,.22);color:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;margin-left:10px;vertical-align:middle}
.kf-on .kf-slide p{margin:0 0 16px}

/* Bottom nav: 5 tabs */
@media (max-width:767px){
 body.kf-on .kf-bottom-nav a{font-size:10.5px}
 body.kf-on .kf-bottom-nav .kf-cart-count{left:calc(50% + 4px)}
}

/* Order Now (TukiFlow) button + quantity stepper */
body.kf-on a.tfdc-buy-now-btn,body.kf-on a.tfdc-buy-now-btn:visited{background:var(--kf-accent)!important;color:#fff!important;border:0!important;border-radius:999px!important;font-weight:700!important;min-height:48px;display:inline-flex!important;align-items:center;justify-content:center;padding:0 28px!important;box-shadow:0 8px 18px rgba(47,111,219,.28);text-decoration:none;font-size:16px}
body.kf-on a.tfdc-buy-now-btn:hover{background:var(--kf-accent-d)!important;color:#fff!important}
body.kf-on.single-product form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.kf-on .quantity{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--kf-line);border-radius:999px;padding:2px 6px}
body.kf-on .quantity .qty{border:0!important;background:transparent!important;width:44px!important;min-height:42px!important;padding:0!important;box-shadow:none!important;font-weight:700}
body.kf-on .quantity .wbu-qty-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--kf-bg);color:var(--kf-accent)!important;font-weight:700;text-decoration:none}
@media (max-width:767px){
 body.kf-on.single-product form.cart .tfdc-buy-now-btn{flex:1;margin:0!important}
}

/* v1.3 categories: fuller, still compact (4 across on phones) */
@media (max-width:767px){
 .kf-on .kf-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;overflow:visible;padding:2px 0 6px;margin:0}
 .kf-on a.kf-cat{min-width:0;padding:10px 4px 8px;gap:6px;white-space:normal;font-size:11.5px;line-height:1.25;border-radius:16px;justify-content:flex-start}
 .kf-on .kf-cat img{width:100%;max-width:64px;height:auto;aspect-ratio:1/1;border-radius:14px}
}
@media (min-width:768px){
 .kf-on a.kf-cat{padding:14px 18px;font-size:16px}
 .kf-on .kf-cat img{width:72px;height:72px;border-radius:16px}
}

/* ===== v1.4: header, hero dots, clean product cards ===== */

/* Header: hamburger on the left, logo exactly centered and smaller (phone + tablet) */
@media (max-width:921px){
 body.kf-on #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row{display:flex!important;grid-template-columns:none!important;justify-content:center;align-items:center;position:relative;min-height:58px}
 body.kf-on #ast-mobile-header .site-header-primary-section-left{flex:0 0 auto;width:auto;justify-content:center}
 body.kf-on #ast-mobile-header .site-header-primary-section-right{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:auto;flex:0 0 auto;justify-content:flex-start}
 body.kf-on #ast-mobile-header .site-branding{justify-content:center;text-align:center;margin:0}
 body.kf-on #ast-mobile-header .ast-site-title-wrap{display:none}
 body.kf-on #ast-mobile-header .custom-logo-link img{max-width:118px!important;width:auto!important;height:auto!important}
}
/* Desktop: smaller logo */
@media (min-width:922px){
 body.kf-on #ast-desktop-header .custom-logo-link img{max-width:165px!important;width:auto!important;height:auto!important}
}

/* Hero dots: centered at the bottom */
.kf-on .kf-dots{left:0!important;right:0;justify-content:center;bottom:12px}
@media (min-width:768px){.kf-on .kf-dots{left:0!important;bottom:18px}}

/* Product cards: no duplicate Sale! text (only the -% badge), no quantity box, no text button (round + stays) */
body.kf-on .ast-onsale-card:not(.kf-sale){display:none!important}
body.kf-on ul.products li.product form.cart,
body.kf-on ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button,
body.kf-on ul.products li.product .astra-shop-summary-wrap .added_to_cart,
body.kf-on ul.products li.product .astra-shop-summary-wrap br{display:none!important}
body.kf-on ul.products li.product .astra-shop-summary-wrap p{margin:0}
body.kf-on ul.products li.product .astra-shop-summary-wrap p:empty{display:none}

/* ===== v1.5: add-to-cart back, tighter cards, slimmer search, 16:9 banner, bigger logo ===== */

/* Logo: a bit bigger than v1.4 */
@media (max-width:921px){ body.kf-on #ast-mobile-header .custom-logo-link img{max-width:150px!important} }
@media (min-width:922px){ body.kf-on #ast-desktop-header .custom-logo-link img{max-width:200px!important} }

/* Search bar: slimmer */
body.kf-on .kf-search{margin:10px 0}
body.kf-on .kf-search .wp-block-search__inside-wrapper{padding:2px 3px 2px 14px!important;min-height:0!important}
body.kf-on .kf-search input[type=search]{min-height:34px!important;height:34px!important;font-size:14px!important;padding:0 6px!important}
body.kf-on .kf-search .wp-block-search__button{min-width:34px!important;min-height:34px!important;width:34px;height:34px;padding:0!important;display:inline-flex;align-items:center;justify-content:center}
body.kf-on .kf-search .wp-block-search__button svg{width:20px;height:20px}

/* Banner: 16:9 on phones, wide but not too tall on larger screens */
.kf-on .kf-slide{aspect-ratio:16/9;min-height:0!important;padding:14px 16px 26px!important;gap:10px}
.kf-on .kf-slide h2{font-size:18px;line-height:1.2;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kf-on .kf-slide p{margin:0 0 10px!important}
.kf-on .kf-slide__price,.kf-on .kf-slide__price *{font-size:16px}
.kf-on a.kf-slide__btn{padding:8px 16px;font-size:13px}
.kf-on .kf-slide__img{flex:0 0 38%;max-width:170px;align-self:center}
.kf-on .kf-dots{bottom:9px}
@media (min-width:768px){
 .kf-on .kf-slide{aspect-ratio:auto;height:clamp(280px,30vw,360px);padding:32px 56px 40px!important;gap:40px}
 .kf-on .kf-slide h2{font-size:34px}
 .kf-on .kf-slide__price,.kf-on .kf-slide__price *{font-size:20px}
 .kf-on a.kf-slide__btn{padding:12px 24px;font-size:15px}
 .kf-on .kf-slide__img{flex:0 0 auto;max-width:none}
 .kf-on .kf-slide__img img{width:clamp(200px,20vw,260px);height:auto}
 .kf-on .kf-dots{bottom:14px}
}

/* Product cards: Add to cart button back, tight spacing */
body.kf-on ul.products li.product .astra-shop-summary-wrap{display:flex!important;flex-direction:column;gap:4px;padding:10px 12px 12px!important;flex:1}
body.kf-on ul.products li.product .woocommerce-loop-product__title{margin:0!important;padding:0!important;line-height:1.3}
body.kf-on ul.products li.product .price{margin:0!important;line-height:1.2}
body.kf-on ul.products li.product .astra-shop-summary-wrap p{margin:0!important;padding:0!important}
body.kf-on ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:38px;margin:8px 0 0!important;padding:0 12px!important;font-size:13px;line-height:1}
body.kf-on ul.products li.product .astra-shop-summary-wrap a.added_to_cart{display:none!important}
body.kf-on a.ast-on-card-button.add_to_cart_button{display:none!important}

/* ===== v1.6: match the reference proportions (header, search, banner, product cards) ===== */

/* Header: round hamburger, bigger logo */
@media (max-width:921px){
 body.kf-on #ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row{min-height:62px}
 body.kf-on #ast-mobile-header .custom-logo-link img{max-width:180px!important}
 body.kf-on #ast-mobile-header .site-header-primary-section-right{left:12px}
 body.kf-on #ast-mobile-header .menu-toggle{width:42px;height:42px;padding:0!important;border:1px solid var(--kf-line)!important;border-radius:50%!important;background:#fff!important;color:var(--kf-ink)!important;display:flex;align-items:center;justify-content:center;box-shadow:none}
}
@media (min-width:922px){ body.kf-on #ast-desktop-header .custom-logo-link img{max-width:220px!important} }

/* Search: light grey-blue pill, icon on the right */
body.kf-on .kf-search{margin:10px 0 12px}
body.kf-on .kf-search .wp-block-search__inside-wrapper{background:#EEF2FA!important;border:1px solid #DCE3F2!important;border-radius:999px;padding:0 6px 0 16px!important;min-height:0!important;height:40px;box-shadow:none!important;align-items:center}
body.kf-on .kf-search input[type=search]{height:38px!important;min-height:0!important;font-size:15px!important;background:transparent!important;color:var(--kf-ink)}
body.kf-on .kf-search input[type=search]::placeholder{color:#8A90A8}
body.kf-on .kf-search .wp-block-search__button{background:transparent!important;color:#6B7190!important;box-shadow:none!important;width:34px;height:34px;min-width:34px!important;min-height:34px!important}

/* Banner: 2:1 on phones, thin border, dark dot pill centered */
.kf-on .kf-hero{border:1px solid #D5E0F7;box-shadow:none;border-radius:20px}
@media (max-width:767px){ .kf-on .kf-slide{aspect-ratio:2/1} }
.kf-on .kf-dots{left:50%!important;right:auto!important;transform:translateX(-50%);background:rgba(20,23,43,.38);padding:5px 9px;border-radius:999px;gap:6px;bottom:10px;justify-content:center}
@media (min-width:768px){ .kf-on .kf-dots{left:50%!important;bottom:14px} }

/* Product cards: thin border, padded image, tidy rows, full-width Add To Cart */
body.kf-on ul.products li.product{padding:10px!important;box-shadow:none!important;border:1px solid #D5E0F7;border-radius:18px;background:#fff}
body.kf-on ul.products li.product .astra-shop-thumbnail-wrap{border-radius:14px;overflow:hidden}
body.kf-on ul.products li.product .astra-shop-summary-wrap{padding:10px 2px 2px!important;gap:8px}
body.kf-on ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:500}
body.kf-on ul.products li.product .price{display:flex;align-items:baseline;gap:6px;font-size:16px}
body.kf-on ul.products li.product .price del{order:1;font-size:13px;color:var(--kf-muted)!important}
body.kf-on ul.products li.product .price ins{order:2;font-size:17px;font-weight:800}
body.kf-on ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button{min-height:42px;margin:0!important;font-size:14px;text-transform:capitalize;border-radius:999px!important}
body.kf-on .ast-onsale-card.kf-sale,body.kf-on span.onsale.kf-sale{top:8px!important;left:8px!important;background:rgba(20,23,43,.88)!important;font-size:12px!important;padding:5px 10px!important}
@media (max-width:767px){
 body.kf-on .ast-container,body.kf-on.home .site-content .ast-container{padding-left:12px;padding-right:12px}
 body.kf-on ul.products{gap:11px!important}
}

/* ===== v1.7: red discount badge, tighter name/price spacing ===== */
body.kf-on .ast-onsale-card.kf-sale,body.kf-on span.onsale.kf-sale{background:var(--kf-sale)!important;color:#fff!important}
body.kf-on ul.products li.product .astra-shop-summary-wrap>*{margin-top:0!important;margin-bottom:0!important}
body.kf-on ul.products li.product .astra-shop-summary-wrap a.ast-loop-product__link{display:block;margin:0!important;padding:0!important}
body.kf-on ul.products li.product .astra-shop-summary-wrap{gap:6px}

/* ===== v1.8: stylish category tiles ===== */
.kf-on .kf-tiles{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 10px;margin:0 -2px;scrollbar-width:none}
.kf-on .kf-tiles::-webkit-scrollbar{display:none}
.kf-on a.kf-tile{position:relative;flex:0 0 112px;aspect-ratio:3/4;border-radius:20px;overflow:hidden;scroll-snap-align:start;display:block;background:#E3E8F8;box-shadow:var(--kf-shadow);text-decoration:none;color:#fff}
.kf-on a.kf-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.kf-on a.kf-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,23,43,0) 42%,rgba(20,23,43,.82) 100%);transition:opacity .3s}
.kf-on a.kf-tile:hover img{transform:scale(1.07)}
.kf-on .kf-tile__txt{position:absolute;left:10px;right:10px;bottom:10px;z-index:2;display:flex;flex-direction:column;gap:2px}
.kf-on .kf-tile__name{font-weight:700;font-size:13px;line-height:1.2;color:#fff}
.kf-on .kf-tile__count{font-size:11px;color:rgba(255,255,255,.82)}
@media (min-width:768px){
 .kf-on .kf-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;overflow:visible;padding:2px 0 10px;margin:0}
 .kf-on a.kf-tile{flex:none;aspect-ratio:4/5;border-radius:24px}
 .kf-on .kf-tile__txt{left:16px;right:16px;bottom:16px}
 .kf-on .kf-tile__name{font-size:18px}
 .kf-on .kf-tile__count{font-size:13px}
}

/* ===== v1.9: small premium category tiles + old-home heading style ===== */
.kf-on .kf-ctiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:4px 0 8px;justify-items:center}
.kf-on a.kf-ctile{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;width:100%}
.kf-on .kf-ctile__img{display:block;width:100%;max-width:84px;aspect-ratio:1/1;border-radius:24px;padding:3px;background:linear-gradient(135deg,#C7D6F6,#fff 55%,#B5C9F4);box-shadow:0 8px 20px rgba(47,111,219,.16);transition:transform .3s ease,box-shadow .3s ease}
.kf-on .kf-ctile__img img{display:block;width:100%;height:100%;object-fit:cover;border-radius:21px}
.kf-on a.kf-ctile:hover .kf-ctile__img{transform:translateY(-3px);box-shadow:0 14px 28px rgba(47,111,219,.24)}
.kf-on .kf-ctile__name{font-family:'DM Serif Display',serif;font-weight:600;font-size:14px;line-height:1.2;color:#1e293b;text-align:center}
@media (min-width:768px){
 .kf-on .kf-ctiles{max-width:760px;margin:0 auto;gap:24px}
 .kf-on .kf-ctile__img{max-width:132px;border-radius:34px;padding:4px}
 .kf-on .kf-ctile__img img{border-radius:30px}
 .kf-on .kf-ctile__name{font-size:19px}
}
body.kf-on h2.kf-section-title{font-family:'DM Serif Display',serif;font-weight:600;color:#1e3a8a}

/* ===== v2.0: header cart, slide-out menu, search sheet, 5-tab bottom bar, sign-in page ===== */
html.kf-lock{overflow:hidden}
.kf-on [hidden]{display:none!important}

/* Header cart (top right, next to the logo) */
body.kf-on a.kf-hcart{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--kf-line);border-radius:50%;background:#fff;color:var(--kf-ink);text-decoration:none;flex:none}
body.kf-on a.kf-hcart svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.kf-on a.kf-hcart .kf-cart-count{position:absolute;top:-5px;right:-5px;left:auto;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:999px;background:var(--kf-accent);color:#fff;font-size:11px;font-weight:700;text-align:center}
@media (max-width:921px){ body.kf-on #ast-mobile-header a.kf-hcart{position:absolute;right:12px;top:50%;transform:translateY(-50%)} }
@media (min-width:922px){ body.kf-on #ast-desktop-header a.kf-hcart{margin-left:18px} }

/* Overlay + slide-out menu */
.kf-ovl{position:fixed;inset:0;background:rgba(20,23,43,.55);z-index:1000}
.kf-x{position:fixed!important;top:14px;left:calc(min(84vw,360px) + 12px);width:40px;height:40px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;display:flex;align-items:center;justify-content:center;cursor:pointer}
.kf-x svg{width:30px;height:30px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round}
.kf-drawer{position:fixed;top:0;bottom:0;left:0;width:84%;max-width:360px;background:#fff;z-index:1001;transform:translateX(-102%);transition:transform .28s ease,visibility .28s;visibility:hidden;overflow-y:auto;padding:14px 14px calc(28px + env(safe-area-inset-bottom));font-family:var(--kf-font);overscroll-behavior:contain}
.kf-drawer.is-open{transform:none;visibility:visible}
.kf-drawer a.kf-drawer__hello{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:linear-gradient(135deg,#1F3FA8,#3B6FE0);color:#fff;text-decoration:none}
.kf-drawer__av{width:46px;height:46px;border-radius:50%;background:#CFE0FF;display:flex;align-items:center;justify-content:center;flex:none}
.kf-drawer__av svg{width:26px;height:26px;stroke:#2F6FDB;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kf-drawer__hello strong{display:block;font-size:18px;line-height:1.2;color:#fff}
.kf-drawer__hello small{font-size:14px;color:rgba(255,255,255,.9)}
.kf-drawer__list{margin:16px 0 0;background:#F4F6FC;border-radius:18px;padding:2px 16px}
.kf-drawer__list a{display:flex;align-items:center;justify-content:space-between;min-height:52px;color:#1e293b;text-decoration:none;font-size:16px;border-bottom:1px solid #DDE1F3}
.kf-drawer__list a:last-child{border-bottom:0}
.kf-drawer__list a:hover span{color:var(--kf-accent)}
.kf-drawer__list svg{width:18px;height:18px;stroke:#8A90A8;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
h3.kf-drawer__h{font-size:18px;font-weight:700;color:#6B7190;margin:22px 0 0}
h3.kf-drawer__h::after{content:"";display:block;width:44px;height:3px;border-radius:3px;background:var(--kf-accent);margin-top:6px}

/* Search sheet */
.kf-ss{position:fixed;top:0;left:0;right:0;background:#fff;z-index:1001;padding:calc(14px + env(safe-area-inset-top)) 12px 14px;transform:translateY(-105%);transition:transform .25s ease,visibility .25s;visibility:hidden;box-shadow:0 12px 30px rgba(20,23,43,.18)}
.kf-ss.is-open{transform:none;visibility:visible}
.kf-ss form{display:flex;align-items:center;gap:6px;background:#EEF2FA;border:1px solid #DCE3F2;border-radius:999px;padding:0 6px 0 16px;height:44px}
.kf-ss input[type=search]{flex:1;border:0!important;background:transparent!important;box-shadow:none!important;height:42px;font-size:15px;padding:0!important;outline:0}
.kf-ss button{width:36px;height:36px;padding:0!important;border:0!important;border-radius:50%!important;background:var(--kf-accent)!important;display:flex;align-items:center;justify-content:center;box-shadow:none!important}
.kf-ss button svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}

/* Bottom bar: Home, Menu, Cart, Search, Account */
@media (max-width:767px){
 body.kf-on .kf-bottom-nav a,body.kf-on .kf-bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;font-size:10.5px;font-weight:600;color:var(--kf-muted)!important;text-decoration:none;position:relative;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;font-family:var(--kf-font);cursor:pointer}
 body.kf-on .kf-bottom-nav a.is-on{color:var(--kf-accent)!important}
 body.kf-on .kf-bottom-nav .kf-cart-count{position:absolute;top:-2px;left:calc(50% + 3px);min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:999px;background:var(--kf-accent);color:#fff;font-size:10px;text-align:center}
}

/* Sign-in page */
body.kf-on.woocommerce-account:not(.logged-in) .entry-header,body.kf-on.woocommerce-account:not(.logged-in) .entry-content>.woocommerce>h2{display:none}
body.kf-on.woocommerce-account:not(.logged-in) .entry-content>.woocommerce{background:#fff;border-radius:26px;box-shadow:var(--kf-shadow);padding:18px;max-width:560px;margin:14px auto}
.kf-on .kf-login-head{display:flex;align-items:center;gap:14px;margin:2px 0 16px}
.kf-on .kf-login-head__ico{width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#3B6FE0,#2F6FDB);display:flex;align-items:center;justify-content:center;flex:none}
.kf-on .kf-login-head__ico svg{width:30px;height:30px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kf-on .kf-login-head strong{display:block;font-size:22px;line-height:1.2;color:#1e293b}
.kf-on .kf-login-head small{font-size:14px;color:var(--kf-muted)}
body.kf-on form.woocommerce-form-login{display:grid;grid-template-columns:1fr auto;gap:12px;background:#F4F6FC;border:0;border-radius:20px;padding:18px;margin:0}
body.kf-on form.woocommerce-form-login::before{content:"Login With Credentials";grid-column:1/-1;font-weight:700;font-size:17px;color:#1e293b}
body.kf-on form.woocommerce-form-login>p.form-row-wide{grid-column:1/-1;margin:0;padding:0}
body.kf-on form.woocommerce-form-login p.form-row:not(.form-row-wide){display:contents}
body.kf-on form.woocommerce-form-login label[for=username],body.kf-on form.woocommerce-form-login label[for=password]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.kf-on form.woocommerce-form-login input.input-text{width:100%;height:50px;border:0;border-radius:14px;background-color:#fff!important;padding:0 46px!important;font-size:15px;box-shadow:0 2px 8px rgba(47,111,219,.08)}
body.kf-on form.woocommerce-form-login #username{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6FDB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center;background-size:22px}
body.kf-on form.woocommerce-form-login #password{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6FDB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center;background-size:22px}
.kf-on .kf-pw{position:relative;display:block}
.kf-on button.kf-eye{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:34px;height:34px;padding:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7190' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center/22px!important;cursor:pointer}
body.kf-on form.woocommerce-form-login .woocommerce-form-login__rememberme{grid-column:1;order:3;display:flex;align-items:center;gap:8px;font-size:14px;margin:0}
body.kf-on form.woocommerce-form-login .lost_password{grid-column:2;order:4;margin:0;text-align:right;font-size:14px}
body.kf-on form.woocommerce-form-login button.woocommerce-form-login__submit{grid-column:1/-1;order:5;width:100%;min-height:50px;font-size:16px}

/* ===== v2.1: navy accent, wishlist hearts + page, search in the menu ===== */
body.kf-on,.kf-on{--kf-accent:#1E3A8A;--kf-accent-d:#172E6E}
body.kf-on .kf-login-head__ico{background:linear-gradient(135deg,#2B4FB0,#1E3A8A)}

/* Search field inside the slide-out menu */
.kf-drawer form.kf-drawer__search{display:flex;align-items:center;gap:6px;margin:12px 0 0;background:#EEF2FA;border:1px solid #DCE3F2;border-radius:999px;padding:0 6px 0 16px;height:44px}
.kf-drawer__search input[type=search]{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;height:42px;font-size:15px;padding:0!important;outline:0}
.kf-drawer__search button{width:34px;height:34px;padding:0!important;border:0!important;border-radius:50%!important;background:var(--kf-accent)!important;display:flex;align-items:center;justify-content:center;box-shadow:none!important;flex:none}
.kf-drawer__search button svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}

/* Heart button on product cards and product page */
body.kf-on button.kf-heart{position:absolute;top:8px;right:8px;z-index:4;width:34px;height:34px;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.93) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.1C1.6 8.2 3.4 5 6.6 5c2 0 3.7 1.1 5.4 3.2C13.7 6.1 15.4 5 17.4 5c3.2 0 5 3.2 3.8 6.4-1.7 4.5-9.2 9.1-9.2 9.1z'/%3E%3C/svg%3E") no-repeat center/19px!important;box-shadow:0 4px 12px rgba(20,23,43,.16)!important;cursor:pointer;transition:transform .15s}
body.kf-on button.kf-heart:active{transform:scale(.9)}
body.kf-on button.kf-heart.is-on{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E5484D' stroke='%23E5484D' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.1C1.6 8.2 3.4 5 6.6 5c2 0 3.7 1.1 5.4 3.2C13.7 6.1 15.4 5 17.4 5c3.2 0 5 3.2 3.8 6.4-1.7 4.5-9.2 9.1-9.2 9.1z'/%3E%3C/svg%3E")!important}
body.kf-on.single-product .woocommerce-product-gallery{position:relative}
body.kf-on.single-product .woocommerce-product-gallery button.kf-heart{top:14px;right:14px;width:40px;height:40px;background-size:22px!important}

/* Wishlist count on the bottom bar */
@media (max-width:767px){
 body.kf-on .kf-bottom-nav .kf-wl-count{position:absolute;top:-2px;left:calc(50% + 3px);min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:999px;background:var(--kf-sale);color:#fff;font-size:10px;text-align:center}
}

/* Wishlist page */
body.kf-on .kf-wl__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
body.kf-on .kf-wl__empty{text-align:center;color:var(--kf-muted);padding:40px 12px;font-size:15px;background:#fff;border-radius:20px}
body.kf-on .kf-wlcard{position:relative;background:#fff;border:1px solid #D5E0F7;border-radius:18px;padding:10px;display:flex;flex-direction:column;gap:8px}
body.kf-on .kf-wlcard__img{position:relative;display:block;border-radius:14px;overflow:hidden;aspect-ratio:1/1;background:#F4F6FC}
body.kf-on .kf-wlcard__img img{width:100%;height:100%;object-fit:cover;display:block}
body.kf-on .kf-wlcard__off{position:absolute;top:8px;left:8px;background:var(--kf-sale);color:#fff;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;line-height:1}
body.kf-on button.kf-wlcard__rm{position:absolute;top:18px;right:18px;width:32px;height:32px;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.93) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") no-repeat center/16px!important;box-shadow:0 4px 12px rgba(20,23,43,.16)!important;cursor:pointer}
body.kf-on a.kf-wlcard__name{font-size:14px;font-weight:500;color:var(--kf-ink);text-decoration:none;line-height:1.3}
body.kf-on .kf-wlcard__price{font-size:16px;font-weight:800;color:var(--kf-accent);display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
body.kf-on .kf-wlcard__price del{order:1;font-size:13px;font-weight:500;color:var(--kf-muted)}
body.kf-on .kf-wlcard__price ins{order:2;text-decoration:none}
body.kf-on a.kf-wlcard__btn{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;background:var(--kf-accent)!important;color:#fff!important;font-weight:700;font-size:14px;text-decoration:none;padding:0 12px;margin-top:auto;box-shadow:none;text-transform:capitalize}
body.kf-on a.kf-wlcard__btn.added{opacity:.75}
@media (min-width:768px){ body.kf-on .kf-wl__grid{grid-template-columns:repeat(4,1fr);gap:20px} }

/* ===== v2.2: back to bright blue, new logo size, WhatsApp, premium desktop ===== */
body.kf-on,.kf-on{--kf-accent:#2F6FDB;--kf-accent-d:#1F55B8}
body.kf-on .kf-login-head__ico{background:linear-gradient(135deg,#3B6FE0,#2F6FDB)}

/* Logo (icon + name) */
@media (max-width:921px){ body.kf-on #ast-mobile-header .custom-logo-link img{max-width:210px!important} }
@media (min-width:922px){ body.kf-on #ast-desktop-header .custom-logo-link img{max-width:250px!important} }

/* WhatsApp */
@media (max-width:767px){
 body.kf-on .kf-bottom-nav a.kf-wa{color:#1FA855!important}
 body.kf-on .kf-bottom-nav a.kf-wa svg{stroke:#1FA855}
}

/* Desktop: header with search, icons and a category bar (same feel as the phone) */
.kf-catbar{display:none}
@media (min-width:922px){
 body.kf-on #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row{display:grid!important;grid-template-columns:auto minmax(280px,560px) auto;justify-content:space-between;align-items:center;column-gap:36px;min-height:78px}
 body.kf-on #ast-desktop-header .ast-builder-menu-1{display:none!important}
 body.kf-on #ast-desktop-header .site-header-primary-section-right{display:flex;align-items:center;gap:12px;justify-content:flex-end}
 body.kf-on #ast-desktop-header a.kf-hcart{margin-left:0}
 body.kf-on form.kf-hsearch{display:flex;align-items:center;gap:6px;background:#EEF2FA;border:1px solid #DCE3F2;border-radius:999px;height:46px;padding:0 6px 0 20px;width:100%}
 body.kf-on .kf-hsearch input[type=search]{flex:1;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;height:44px;font-size:15px;padding:0!important;outline:0;color:var(--kf-ink)}
 body.kf-on .kf-hsearch button{width:36px;height:36px;padding:0!important;border:0!important;border-radius:50%!important;background:var(--kf-accent)!important;display:flex;align-items:center;justify-content:center;box-shadow:none!important;flex:none;cursor:pointer}
 body.kf-on .kf-hsearch button svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}
 body.kf-on .kf-hicons{display:flex;align-items:center;gap:12px}
 body.kf-on a.kf-hbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--kf-line);border-radius:50%;background:#fff;color:var(--kf-ink);text-decoration:none;transition:border-color .2s,transform .2s}
 body.kf-on a.kf-hbtn:hover{border-color:var(--kf-accent);transform:translateY(-1px)}
 body.kf-on a.kf-hbtn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body.kf-on a.kf-hbtn.kf-wa{color:#1FA855;border-color:#BFE8CE}

 body.kf-on nav.kf-catbar{display:block;background:#fff;border-top:1px solid #E6EAF7;border-bottom:1px solid #E6EAF7}
 .kf-catbar__in{max-width:1240px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}
 .kf-catbar__in::-webkit-scrollbar{display:none}
 body.kf-on .kf-catbar a{padding:14px 16px;font-size:15px;font-weight:600;color:#1e293b;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .2s,border-color .2s}
 body.kf-on .kf-catbar a:hover{color:var(--kf-accent);border-bottom-color:var(--kf-accent)}

 /* Home page on desktop */
 body.kf-on.home .kf-search{display:none}
 body.kf-on.home .site-content .ast-container,body.kf-on .ast-container{max-width:1240px;padding-left:20px;padding-right:20px}
 body.kf-on .kf-hero{margin-top:24px}
 body.kf-on h2.kf-section-title{font-size:30px;margin:44px 0 12px}
}
@media (hover:hover) and (min-width:922px){
 body.kf-on ul.products li.product{transition:transform .25s ease,box-shadow .25s ease}
 body.kf-on ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 18px 36px rgba(47,111,219,.14)!important}
}

/* ===== v3.0: cart drawer (opens when you add to cart) + simpler order form ===== */
.kf-mc{position:fixed;top:0;bottom:0;right:0;width:88%;max-width:400px;background:#fff;z-index:1001;transform:translateX(102%);transition:transform .28s ease,visibility .28s;visibility:hidden;display:flex;flex-direction:column;font-family:var(--kf-font);box-shadow:-12px 0 40px rgba(20,23,43,.18)}
.kf-mc.is-open{transform:none;visibility:visible}
.kf-mc__head{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #E6EAF7;flex:none}
.kf-mc__head strong{font-size:18px;color:#1e293b}
.kf-mc button.kf-mc__x{width:36px;height:36px;padding:0!important;border:0!important;border-radius:50%!important;background:#F4F6FC!important;display:flex;align-items:center;justify-content:center;box-shadow:none!important;cursor:pointer}
.kf-mc__x svg{width:18px;height:18px;stroke:#1e293b;fill:none;stroke-width:2;stroke-linecap:round}
.kf-mc__body{flex:1;overflow-y:auto;padding:4px 16px 20px;overscroll-behavior:contain}
.kf-mc ul.woocommerce-mini-cart{list-style:none;margin:0;padding:0}
.kf-mc li.woocommerce-mini-cart-item{position:relative;padding:14px 32px 14px 0;border-bottom:1px solid #EEF1FA;margin:0}
.kf-mc li.woocommerce-mini-cart-item>a:not(.remove){display:flex;align-items:center;gap:12px;color:#1e293b;font-weight:600;font-size:14px;line-height:1.3;text-decoration:none}
.kf-mc li.woocommerce-mini-cart-item img{width:64px!important;height:64px!important;object-fit:cover;border-radius:12px;float:none!important;margin:0!important;flex:none}
.kf-mc li.woocommerce-mini-cart-item .quantity{display:block!important;border:0!important;background:none!important;padding:4px 0 0 76px!important;color:var(--kf-muted);font-size:13px}
.kf-mc li.woocommerce-mini-cart-item .quantity .amount{color:var(--kf-accent);font-weight:700}
.kf-mc a.remove{position:absolute;right:0;top:16px;width:24px;height:24px;border-radius:50%;background:#F4F6FC;color:#6B7190!important;text-align:center;line-height:23px;font-size:17px;font-weight:700;text-decoration:none}
.kf-mc .woocommerce-mini-cart__total{display:flex;justify-content:space-between;align-items:center;margin:16px 0 12px;font-size:16px;color:#1e293b}
.kf-mc .woocommerce-mini-cart__total .amount{color:var(--kf-accent);font-weight:800}
.kf-mc .woocommerce-mini-cart__buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.kf-mc .woocommerce-mini-cart__buttons a.button{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:999px!important;font-weight:700;font-size:14px;text-decoration:none;box-shadow:none;margin:0;padding:0 10px;text-transform:capitalize}
.kf-mc .woocommerce-mini-cart__buttons a.button:not(.checkout){background:#fff!important;color:var(--kf-accent)!important;border:1.5px solid var(--kf-accent)!important}
.kf-mc .woocommerce-mini-cart__buttons a.checkout{background:var(--kf-accent)!important;color:#fff!important;border:0!important}
.kf-mc .woocommerce-mini-cart__empty-message{text-align:center;color:var(--kf-muted);padding:40px 0}

/* Order form: name, phone, district, area, address (country hidden, Bangladesh only) */
body.kf-on.woocommerce-checkout #billing_country_field{display:none!important}
body.kf-on.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{display:flex;flex-direction:column}
body.kf-on.woocommerce-checkout .woocommerce-billing-fields__field-wrapper>p.form-row{width:100%!important;float:none!important}
body.kf-on.woocommerce-checkout #billing_first_name_field{order:1}
body.kf-on.woocommerce-checkout #billing_customers_phone_field{order:2}
body.kf-on.woocommerce-checkout #billing_state_field{order:3}
body.kf-on.woocommerce-checkout #billing_thana_field{order:4}
body.kf-on.woocommerce-checkout #billing_customer_full_address_field{order:5}
body.kf-on.woocommerce-checkout #order_review_heading,body.kf-on.woocommerce-checkout .woocommerce-billing-fields>h3{font-family:'DM Serif Display',serif;font-weight:600;color:#1e3a8a}

/* ===== v4.0: hamburger a little to the left, cart a little to the right ===== */
@media (max-width:921px){
 body.kf-on #ast-mobile-header .site-header-primary-section-right{left:5px}
 body.kf-on #ast-mobile-header a.kf-hcart{right:5px}
}

/* ===== v5.0: full-slide banner image (16:9) ===== */
.kf-on .kf-slide{aspect-ratio:16/9}
.kf-on a.kf-slide--img{display:block;padding:0!important;gap:0;background:#fff;color:inherit;text-decoration:none;position:relative;overflow:hidden}
.kf-on a.kf-slide--img img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
@media (min-width:768px){
 .kf-on .kf-hero{max-width:1100px;margin-left:auto;margin-right:auto}
 .kf-on .kf-slide{aspect-ratio:16/9;height:auto}
}

/* ===== v6.0: card quantity stepper, smaller logo, header buttons nudged outward ===== */
.kf-step{display:none}
body.kf-on ul.products li.product.kf-in .astra-shop-summary-wrap a.add_to_cart_button{display:none!important}
body.kf-on ul.products li.product.kf-in .astra-shop-summary-wrap .kf-step{display:flex;align-items:stretch;width:100%;min-height:42px;margin:0;border-radius:999px;overflow:hidden;background:var(--kf-accent);box-shadow:0 8px 18px rgba(47,111,219,.25)}
body.kf-on .kf-step .kf-step__b{flex:0 0 46px;display:flex;align-items:center;justify-content:center;background:transparent!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:22px;font-weight:600;line-height:1;padding:0!important;margin:0;min-height:0;cursor:pointer}
body.kf-on .kf-step .kf-step__b:active{background:var(--kf-accent-d)!important}
body.kf-on .kf-step .kf-step__n{flex:1;display:flex;align-items:center;justify-content:center;margin:3px 0;background:#fff;color:var(--kf-ink);font-size:16px;font-weight:800}
body.kf-on .kf-step.is-busy{opacity:.7;pointer-events:none}

/* Logo a little smaller */
@media (max-width:921px){ body.kf-on #ast-mobile-header .custom-logo-link img{max-width:180px!important} }
@media (min-width:922px){ body.kf-on #ast-desktop-header .custom-logo-link img{max-width:215px!important} }

/* Header: hamburger a bit more to the left, cart a bit more to the right */
@media (max-width:921px){
 body.kf-on #ast-mobile-header .site-header-primary-section-right{left:2px}
 body.kf-on #ast-mobile-header a.kf-hcart{right:2px}
}
/* ===== v6.1: card Add to cart + stepper: compact rectangle with small rounded corners (colors unchanged) ===== */
body.kf-on ul.products li.product .astra-shop-summary-wrap a.add_to_cart_button{min-height:32px!important;height:32px;padding:0 10px!important;font-size:13px!important;line-height:1!important;border-radius:6px!important;box-shadow:none!important}
body.kf-on ul.products li.product.kf-in .astra-shop-summary-wrap .kf-step{min-height:32px;height:32px;border-radius:6px;box-shadow:none}
body.kf-on .kf-step .kf-step__b{flex:0 0 38px;font-size:20px}
body.kf-on .kf-step .kf-step__n{margin:0;border-radius:0;font-size:14px}

/* ===== v7.0: tablet + desktop responsive pass ===== */

/* Tablet (768-921px): same 5-tab bottom bar as phones (Home, Menu, Cart, WhatsApp, Account), centered */
@media (min-width:768px) and (max-width:921px){
 body.kf-on{padding-bottom:88px}
 body.kf-on .kf-bottom-nav{display:flex;position:fixed;left:50%;right:auto;bottom:0;transform:translateX(-50%);width:100%;max-width:640px;z-index:999;background:#fff;box-shadow:0 -6px 24px rgba(47,111,219,.10);border-radius:22px 22px 0 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));justify-content:space-around}
 body.kf-on .kf-bottom-nav a,body.kf-on .kf-bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;font-size:12px;font-weight:600;color:var(--kf-muted)!important;text-decoration:none;position:relative;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;font-family:var(--kf-font);cursor:pointer}
 body.kf-on .kf-bottom-nav a.is-on{color:var(--kf-accent)!important}
 body.kf-on .kf-bottom-nav a.kf-wa{color:#1FA855!important}
 body.kf-on .kf-bottom-nav svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body.kf-on .kf-bottom-nav a.kf-wa svg{stroke:#1FA855}
 body.kf-on .kf-bottom-nav .kf-cart-count{position:absolute;top:-2px;left:calc(50% + 4px);min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:999px;background:var(--kf-accent);color:#fff;font-size:10px;text-align:center}
 body.kf-on .kf-bottom-nav .kf-cart-count:empty{display:none}
}

/* Tablet (768-1023px): product page in two columns (photo left, details right) */
@media (min-width:768px) and (max-width:1023px){
 body.kf-on.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
 body.kf-on.single-product div.product .woocommerce-product-gallery,body.kf-on.single-product div.product .summary{width:100%!important;float:none!important;margin-top:0}
 body.kf-on.single-product div.product .woocommerce-tabs,body.kf-on.single-product div.product .related,body.kf-on.single-product div.product .up-sells{grid-column:1/-1}
}

/* Tablet + desktop (768px and up): roomier product page, cart and checkout cards */
@media (min-width:768px){
 body.kf-on.single-product .product_title{font-size:30px;margin-top:0}
 body.kf-on.single-product p.price{font-size:30px!important}
 body.kf-on.single-product div.product .summary{padding:24px;margin-top:0}
 body.kf-on.single-product .woocommerce-tabs{padding:24px}
 body.kf-on .wp-block-woocommerce-cart .wc-block-cart__main,body.kf-on .wp-block-woocommerce-cart .wc-block-cart__sidebar,body.kf-on form.woocommerce-checkout #order_review,body.kf-on form.woocommerce-checkout .woocommerce-billing-fields,body.kf-on .woocommerce-cart-form{padding:24px}
}