/*
Theme Name: Karur Mart
Theme URI: https://karurmart.in
Author: Karur Mart
Description: Mobile-first WooCommerce storefront theme inspired by the supplied Karur Mart UI reference.
Version: 1.3.4
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: karur-mart
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
:root{--km-purple:#6d20d8;--km-purple-dark:#5112b5;--km-lilac:#f5efff;--km-ink:#17152a;--km-muted:#6b6878;--km-border:#e9e5ef;--km-green:#16823b;--km-radius:16px;--km-shadow:0 4px 18px rgba(32,17,63,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--km-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit}button,.button,input[type=submit],.wp-element-button{border-radius:10px}button,.button,input[type=submit]{cursor:pointer}.km-container{width:min(1200px,100% - 32px);margin-inline:auto}.km-topbar{background:var(--km-lilac);color:var(--km-purple-dark);font-size:12px;text-align:center;padding:7px 12px}.km-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--km-border)}.km-header-main{min-height:72px;display:flex;align-items:center;gap:14px}.km-icon-button{width:40px;height:40px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;color:var(--km-ink);font-size:22px;position:relative}.km-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.km-brand img{max-height:48px;width:auto;max-width:180px}.km-brand-text{font-size:21px;font-weight:850;letter-spacing:-.7px;color:#1233a5}.km-brand-text span{color:var(--km-purple)}.km-actions{display:flex;align-items:center;gap:3px}.km-count{position:absolute;top:0;right:-1px;background:var(--km-purple);color:white;border-radius:20px;min-width:18px;height:18px;font-size:11px;display:grid;place-items:center;padding:0 4px}.km-search-panel{display:none;padding:0 0 12px}.km-search-panel.is-open{display:block}.km-search-form{display:flex;background:#f7f5fb;border:1px solid var(--km-border);border-radius:24px;padding:5px 10px;gap:8px;align-items:center}.km-search-form input{border:0;outline:0;background:transparent;width:100%;min-width:0;padding:7px}.km-search-form button{border:0;background:transparent;font-size:19px}.km-promo-strip{margin:12px auto;background:#f8f3ff;color:var(--km-purple-dark);border-radius:10px;padding:10px 12px;text-align:center;font-size:13px}.km-hero{position:relative;overflow:hidden;border-radius:18px;background:linear-gradient(115deg,#ffe9ec,#f6d9cc 55%,#e9c5a5);min-height:210px;display:flex;align-items:center;margin:16px 0 22px}.km-hero-copy{position:relative;z-index:1;padding:24px;max-width:58%}.km-hero h1{font-size:clamp(24px,4vw,42px);line-height:1.08;margin:0 0 8px;font-weight:850;letter-spacing:-.8px}.km-hero p{margin:0 0 16px;font-weight:600}.km-hero-media{position:absolute;inset:0 0 0 42%;background-size:cover;background-position:center}.km-btn,.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--km-purple);color:#fff!important;border:0;border-radius:10px;padding:12px 18px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .2s,transform .2s}.km-btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--km-purple-dark);color:#fff!important}.km-section{margin:24px 0}.km-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.km-section-head h2,.km-section h2{font-size:21px;letter-spacing:-.4px;margin:0}.km-link{color:var(--km-purple);font-size:13px;font-weight:750}.km-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.km-category-card{border:1px solid var(--km-border);border-radius:15px;padding:10px 8px;text-align:center;min-width:0;transition:box-shadow .2s,transform .2s;background:#fff}.km-category-card:hover{box-shadow:var(--km-shadow);transform:translateY(-2px)}.km-category-card img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:11px;background:#faf8fc}.km-category-card span{display:block;font-size:13px;font-weight:700;margin-top:8px;line-height:1.25}.km-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.km-product-card{position:relative;border:1px solid var(--km-border);border-radius:16px;padding:9px;background:#fff;min-width:0;display:flex;flex-direction:column}.km-product-card .km-product-image{display:block;position:relative;border-radius:12px;overflow:hidden;background:#faf8fc}.km-product-card .km-product-image img{width:100%;aspect-ratio:1/1;object-fit:contain;mix-blend-mode:multiply}.km-product-card h3{font-size:14px;font-weight:650;line-height:1.35;margin:10px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.km-price{color:var(--km-purple);font-size:16px;font-weight:850}.km-price del{color:#888;font-size:12px;font-weight:500}.km-price ins{text-decoration:none}.km-card-bottom{margin-top:auto;padding-top:10px}.km-card-bottom .button{width:100%;font-size:13px;padding:10px 8px}.km-wishlist{position:absolute;top:7px;right:7px;width:32px;height:32px;border:1px solid #eee;background:#fff;border-radius:50%;display:grid;place-items:center;font-size:18px;z-index:2}.km-sale{position:absolute;left:7px;top:7px;background:var(--km-purple);color:#fff;border-radius:6px;padding:4px 7px;font-size:10px;font-weight:800;z-index:2}.km-breadcrumb{font-size:12px;color:var(--km-muted);margin:14px 0}.km-breadcrumb a{color:#555}.km-page-title{font-size:27px;line-height:1.2;margin:0 0 6px;font-weight:850;letter-spacing:-.6px}.km-description-intro{color:#575364;margin-bottom:18px}.km-category-chips{display:flex;gap:10px;overflow:auto;padding:3px 0 10px;scrollbar-width:thin}.km-category-chip{flex:0 0 82px;text-align:center;font-size:12px}.km-category-chip img{width:70px;height:70px;object-fit:cover;border-radius:50%;border:2px solid #eee;padding:3px;margin:0 auto 6px}.km-category-chip.is-active img{border-color:var(--km-purple)}.km-shop-controls{display:flex;gap:10px;align-items:center;margin:12px 0}.km-shop-controls .woocommerce-ordering{margin:0;flex:1}.km-shop-controls select{width:100%;padding:10px;border:1px solid var(--km-border);border-radius:9px;background:#fff}.km-filter-toggle{border:1px solid var(--km-border);background:#fff;border-radius:9px;padding:10px 15px;font-weight:700}.km-filter-panel{display:none;border:1px solid var(--km-border);padding:14px;border-radius:12px;margin-bottom:15px}.km-filter-panel.is-open{display:block}.km-filter-panel select,.km-filter-panel input{max-width:100%;padding:8px;border:1px solid var(--km-border);border-radius:8px}.km-content-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px}.km-sidebar{border:1px solid var(--km-border);border-radius:14px;padding:16px;align-self:start}.km-sidebar h3{margin:0 0 10px;font-size:15px}.km-sidebar ul{list-style:none;margin:0;padding:0}.km-sidebar li{padding:7px 0;border-bottom:1px solid #f1eef5;font-size:13px}.km-single-product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px;margin:20px 0}.km-gallery{min-width:0}.km-main-image{position:relative;border-radius:16px;overflow:hidden;background:#faf8fc}.km-main-image img{width:100%;aspect-ratio:1/1;object-fit:contain}.km-gallery-thumbs{display:flex;gap:9px;margin-top:10px;overflow:auto}.km-gallery-thumbs img{width:74px;height:74px;object-fit:contain;border:1px solid var(--km-border);border-radius:10px;padding:4px;cursor:pointer}.km-gallery-thumbs img.is-active{border-color:var(--km-purple)}.km-single-summary .product_title{font-size:26px;line-height:1.2;margin:0 0 12px;font-weight:850}.km-single-summary .price{color:var(--km-purple);font-size:23px;font-weight:850}.km-stock{color:var(--km-green);font-size:13px;margin:10px 0}.km-quantity-row{display:flex;align-items:center;gap:10px;margin:16px 0}.km-quantity-row .quantity{display:flex;align-items:center;border:1px solid var(--km-border);border-radius:10px;overflow:hidden}.km-quantity-row .quantity input{width:44px;border:0;text-align:center;padding:10px 0}.km-quantity-row .quantity button{border:0;background:#fff;padding:9px 12px;font-size:17px}.km-single-summary form.cart{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.km-single-summary form.cart .quantity{margin:0!important}.km-single-summary form.cart .single_add_to_cart_button{flex:1;min-width:160px;min-height:44px}.km-delivery-note{background:#f8f3ff;color:var(--km-purple-dark);padding:13px;border-radius:12px;margin:16px 0;font-size:13px}.km-trust-list{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--km-muted)}.km-tab-panel{border:1px solid var(--km-border);border-radius:14px;padding:18px;margin:18px 0}.km-tab-panel h2{font-size:19px;margin:0 0 10px}.km-free-shipping{background:#f8f3ff;border-radius:12px;padding:13px;margin:14px 0;color:var(--km-purple-dark);font-size:13px}.km-progress{height:7px;background:#e5d8fa;border-radius:20px;overflow:hidden;margin-top:9px}.km-progress span{display:block;height:100%;background:var(--km-purple);width:0;transition:width .25s}.km-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.km-cart-box,.km-checkout-box,.km-order-summary{border:1px solid var(--km-border);border-radius:16px;padding:18px;background:#fff}.km-cart-row{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:13px;padding:13px 0;border-bottom:1px solid var(--km-border);align-items:center}.km-cart-row img{width:86px;height:86px;object-fit:contain;border-radius:10px;background:#faf8fc}.km-cart-row h3{font-size:14px;margin:0 0 5px}.km-cart-row .price{color:var(--km-purple);font-weight:800}.km-cart-row .quantity input{width:45px;padding:6px}.km-cart-row .remove{color:#8c8597;font-size:18px}.km-cart-totals{position:sticky;top:95px}.km-cart-totals h2{font-size:19px;margin:0 0 14px}.km-total-line{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:14px}.km-total-line.total{font-weight:850;font-size:18px;border-top:1px solid var(--km-border);margin-top:8px;padding-top:14px}.km-cart-totals .button{width:100%;margin-top:12px}.km-checkout-steps{display:grid;gap:13px}.km-checkout-step{border:1px solid var(--km-border);border-radius:14px;overflow:hidden}.km-checkout-step summary{padding:14px 16px;background:#faf8fc;font-weight:800;cursor:pointer}.km-checkout-step .km-step-content{padding:16px}.km-checkout-step .form-row input,.km-checkout-step .form-row select,.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid var(--km-border);border-radius:9px;padding:12px;min-height:43px}.km-checkout-step .form-row{margin-bottom:12px}.km-order-summary{margin-top:16px}.km-order-summary h3{margin-top:0}.km-bottom-nav{display:none}.km-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;color:#403d4b;min-height:58px;position:relative}.km-bottom-nav a .km-nav-icon{font-size:21px;line-height:1.1}.km-bottom-nav a.is-active{color:var(--km-purple)}.km-bottom-nav a.is-active:before{content:"";position:absolute;inset:4px 10px;background:var(--km-lilac);border-radius:12px;z-index:-1}.km-footer{background:#faf8fc;border-top:1px solid var(--km-border);margin-top:36px;padding:28px 0 90px}.km-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}.km-footer h3{font-size:15px}.km-footer p,.km-footer li{font-size:13px;color:var(--km-muted)}.km-footer ul{padding-left:17px}.km-empty{padding:45px 15px;text-align:center;background:#faf8fc;border-radius:14px}.km-pagination{margin:24px 0}.km-pagination .page-numbers{display:inline-flex;padding:9px 12px;border:1px solid var(--km-border);border-radius:8px;margin:2px}.km-pagination .current{background:var(--km-purple);color:#fff}.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--km-purple);border-radius:10px}.woocommerce-message:before,.woocommerce-info:before{color:var(--km-purple)}.woocommerce table.shop_table{border-radius:12px;border-color:var(--km-border)}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:12px}.woocommerce .col2-set,.woocommerce-page .col2-set{width:100%}.woocommerce #payment{border-radius:12px;background:#faf8fc}.km-widget-area{margin:15px 0}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
@media(max-width:900px){.km-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.km-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.km-content-layout{grid-template-columns:1fr}.km-sidebar{display:none}.km-single-product{gap:18px}.km-cart-layout{grid-template-columns:1fr 280px}.km-hero{min-height:190px}}
@media(max-width:640px){body{font-size:14px;padding-bottom:64px}.km-container{width:calc(100% - 24px)}.km-topbar{font-size:11px;padding:6px 8px}.km-header-main{min-height:62px;gap:5px}.km-brand{gap:5px}.km-brand img{max-width:142px;max-height:40px}.km-brand-text{font-size:18px}.km-icon-button{width:34px;height:38px;font-size:20px}.km-actions{gap:0}.km-hero{min-height:160px;margin:12px 0 18px}.km-hero-copy{padding:16px;max-width:65%}.km-hero h1{font-size:24px}.km-hero p{font-size:12px}.km-hero-media{left:38%;background-position:center}.km-section{margin:20px 0}.km-section-head h2,.km-section h2{font-size:19px}.km-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.km-category-card{padding:7px 6px;border-radius:13px}.km-category-card span{font-size:11px;margin-top:6px}.km-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.km-product-card{padding:7px;border-radius:13px}.km-product-card h3{font-size:12px;min-height:33px;margin:8px 0 4px}.km-price{font-size:14px}.km-card-bottom .button{font-size:12px;padding:9px 5px}.km-wishlist{width:28px;height:28px;font-size:16px}.km-page-title{font-size:24px}.km-breadcrumb{margin:10px 0}.km-shop-controls{gap:7px}.km-shop-controls select,.km-filter-toggle{font-size:12px;padding:9px}.km-single-product{grid-template-columns:1fr;gap:15px;margin-top:12px}.km-single-summary .product_title{font-size:23px}.km-single-summary .price{font-size:22px}.km-main-image img{max-height:440px}.km-gallery-thumbs img{width:62px;height:62px}.km-cart-layout{grid-template-columns:1fr}.km-cart-totals{position:static}.km-cart-box,.km-checkout-box,.km-order-summary{padding:13px}.km-cart-row{grid-template-columns:70px minmax(0,1fr) 22px;gap:9px}.km-cart-row img{width:70px;height:70px}.km-cart-row h3{font-size:12px}.km-footer{padding:24px 0 24px}.km-footer-grid{grid-template-columns:1fr 1fr;gap:15px}.km-footer-grid>div:first-child{grid-column:1/-1}.km-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:80;background:rgba(255,255,255,.98);border-top:1px solid var(--km-border);padding:3px 5px max(3px,env(safe-area-inset-bottom));box-shadow:0 -3px 15px rgba(26,13,50,.07)}.km-bottom-nav a{min-height:53px}.km-bottom-nav a .km-nav-icon{font-size:20px}.km-bottom-nav a span:last-child{font-size:10px}.km-promo-strip{font-size:12px;margin:10px auto}.km-checkout-step .km-step-content{padding:12px}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:8px;font-size:12px}.woocommerce .woocommerce-ordering{float:none;width:100%}.woocommerce-result-count{font-size:12px}.km-order-summary{margin-top:12px}}
/* WooCommerce loop and checkout compatibility */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0!important;padding:0!important;list-style:none!important;width:100%}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:0!important}
.woocommerce ul.products li.product .km-product-card{height:100%}
.woocommerce ul.products li.product .km-product-card .km-product-image img{width:100%;margin:0}
.km-checkout-layout{display:block}.km-checkout-steps{display:grid;gap:13px}.km-checkout-step summary{display:flex;align-items:center;gap:10px}.km-step-number{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:50%;background:var(--km-purple);color:#fff;font-size:12px;flex:0 0 24px}.km-checkout-step .col2-set{float:none;width:100%}.km-checkout-step .col2-set .col-1,.km-checkout-step .col2-set .col-2{float:none;width:100%}.km-checkout-step #order_review table{width:100%}.km-checkout-step #payment{margin-top:15px}
@media(max-width:900px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}


/* === Karur Mart 1.0.1: product price, sorting, quantity and gallery refinements === */
:root{--km-sale:#e11d48;--km-price:#5b18c9;--km-price-soft:#f4eaff;--km-old-price:#88849a}
.woocommerce ul.products li.product .price,
.km-product-card .km-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;color:var(--km-price);font-size:17px;font-weight:900;line-height:1.3}
.woocommerce ul.products li.product .price del,
.km-product-card .km-price del{color:var(--km-old-price);font-size:12px;font-weight:600;opacity:.9}
.woocommerce ul.products li.product .price ins,
.km-product-card .km-price ins{text-decoration:none;background:transparent;color:var(--km-price);font-size:17px;font-weight:900}
.single-product div.product .summary .price{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 18px!important;color:var(--km-price);font-size:clamp(25px,5vw,32px);font-weight:900;line-height:1.2}
.single-product div.product .summary .price del{font-size:clamp(15px,3.4vw,19px);color:#9691a1;font-weight:600;opacity:1}
.single-product div.product .summary .price ins{text-decoration:none;background:var(--km-price-soft);color:var(--km-price);padding:5px 11px;border-radius:9px;font-size:clamp(25px,5vw,32px);font-weight:950;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.km-discount-pill{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ef4444,#be123c);color:#fff;border-radius:7px;padding:5px 9px;font-size:11px;line-height:1.2;font-weight:900;letter-spacing:.25px;vertical-align:middle;white-space:nowrap}
.km-product-card .km-discount-pill{font-size:10px;padding:4px 6px}
.woocommerce span.onsale{min-height:0;min-width:0;line-height:1.2;border-radius:8px;background:linear-gradient(135deg,#ef4444,#be123c);color:#fff;padding:8px 10px;font-size:12px;font-weight:900;top:12px;left:12px}
.km-shop-controls{align-items:center;flex-wrap:wrap}
.woocommerce .woocommerce-result-count{float:none;margin:0 auto 0 0;color:var(--km-muted);font-size:13px}
.woocommerce .woocommerce-ordering{float:none;margin:0;min-width:180px}
.woocommerce .woocommerce-ordering select,
.km-shop-controls select,
.woocommerce select.orderby{appearance:none;-webkit-appearance:none;width:100%;min-height:44px;padding:10px 38px 10px 13px;border:1px solid #ded6eb;border-radius:11px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d20d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;color:#29233a;font-size:13px;font-weight:650;box-shadow:0 2px 7px rgba(57,28,100,.04);outline:none}
.woocommerce .woocommerce-ordering select:focus,.km-shop-controls select:focus{border-color:var(--km-purple);box-shadow:0 0 0 3px rgba(109,32,216,.12)}
.woocommerce .quantity{display:inline-flex;align-items:center;gap:0;border:1px solid #dcd4e8;border-radius:12px;overflow:hidden;background:#fff;min-height:46px}
.woocommerce .quantity .qty{width:48px;min-width:48px;height:44px;padding:0 3px;border:0!important;border-radius:0!important;background:#fff;color:#211833;font-weight:800;text-align:center;box-shadow:none!important;appearance:textfield;-moz-appearance:textfield}
.woocommerce .quantity .qty::-webkit-outer-spin-button,.woocommerce .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.km-qty-minus,.km-qty-plus{width:39px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;background:#f8f4ff;color:var(--km-purple);font-size:21px;font-weight:700;line-height:1;cursor:pointer;flex:0 0 39px}
.km-qty-minus:hover,.km-qty-plus:hover{background:#ece0ff}
.woocommerce div.product form.cart{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.woocommerce div.product form.cart .quantity{margin:0!important}
.woocommerce div.product form.cart .single_add_to_cart_button{min-height:46px;padding:12px 20px;border-radius:12px;font-weight:850;box-shadow:0 5px 12px rgba(109,32,216,.15)}
.woocommerce div.product form.cart .single_add_to_cart_button:hover{transform:translateY(-1px)}
/* WooCommerce's native gallery is the markup used by the product template. */
.single-product div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px;align-items:start}
.single-product div.product .woocommerce-product-gallery{float:none!important;width:100%!important;max-width:100%;margin:0!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper{width:100%;margin:0 auto!important;display:flex;align-items:center;justify-content:center}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{width:100%;display:flex!important;align-items:center;justify-content:center;background:#fff;border-radius:16px;overflow:hidden}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a{width:100%;display:flex;align-items:center;justify-content:center}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%;height:auto;max-height:620px;aspect-ratio:1/1;object-fit:contain;object-position:center;margin:0 auto!important}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;margin:12px auto 0!important;padding:0;overflow-x:auto}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li{float:none!important;width:74px!important;flex:0 0 74px;max-width:74px}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img{width:74px;height:74px;object-fit:contain;border:1px solid var(--km-border);border-radius:10px;padding:4px;opacity:.72}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active{border-color:var(--km-purple);opacity:1}
.single-product div.product .summary{float:none!important;width:100%!important;margin:0!important;min-width:0}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{z-index:4;right:12px;top:12px}
@media(max-width:640px){
  body{padding-bottom:82px}
  .single-product div.product{display:flex;flex-direction:column;gap:16px}
  .single-product div.product .woocommerce-product-gallery{width:100%!important;max-width:100%;margin:0 auto!important}
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{width:100%;max-width:100%;margin-inline:auto!important}
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img{max-height:500px;aspect-ratio:1/1;object-fit:contain;object-position:center}
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs{gap:8px;justify-content:center;margin-top:10px!important}
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li,
  .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img{width:62px!important;height:62px;flex-basis:62px;max-width:62px}
  .single-product div.product .summary .price{margin:10px 0 15px!important}
  .woocommerce div.product form.cart{gap:8px}
  .woocommerce div.product form.cart .single_add_to_cart_button{flex:1;min-width:145px;padding:11px 12px}
  .woocommerce .woocommerce-result-count{width:100%;margin:0 0 2px}
  .woocommerce .woocommerce-ordering{width:100%;min-width:0}
  .woocommerce .woocommerce-ordering select{min-height:46px;font-size:14px}
  .km-qty-minus,.km-qty-plus{width:36px;flex-basis:36px}
  .woocommerce .quantity .qty{width:42px;min-width:42px}
}


/* === Karur Mart 1.0.2: cart rules and native WooCommerce carousel fix === */
.km-cart-rules{margin:14px 0}
.km-minimum-order-notice{padding:13px 14px;margin:10px 0;border:1px solid #f4b8c1;border-radius:12px;background:#fff3f4;color:#9f1239;font-size:13px;line-height:1.45}
.km-minimum-order-notice.km-minimum-met{border-color:#b9e6c8;background:#effbf2;color:#166534}
.km-free-shipping{margin:10px 0;background:#f8f3ff;border:1px solid #eadcff;color:#5120a8}
.km-free-shipping .km-progress{background:#e7d9ff}
.km-free-shipping .km-progress span{background:linear-gradient(90deg,#7c3aed,#5b18c9)}
/* Do not force gallery slides to flex: FlexSlider needs its own slide/block layout. */
.single-product div.product .woocommerce-product-gallery{float:none!important;width:100%!important;max-width:100%;margin:0!important;display:block!important;align-items:initial;justify-content:initial}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper{width:100%;margin:0!important;display:block!important;align-items:initial;justify-content:initial}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{width:100%;display:block!important;background:#fff;border-radius:16px;overflow:hidden}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a{width:100%;display:block!important}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:1/1;object-fit:contain;object-position:center;margin:0 auto!important}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs{display:flex!important;justify-content:center;align-items:center;gap:10px;width:100%;margin:12px auto 0!important;padding:0;overflow-x:auto;list-style:none}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li{float:none!important;width:74px!important;flex:0 0 74px;max-width:74px}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img{width:74px;height:74px;object-fit:contain;border:1px solid var(--km-border);border-radius:10px;padding:4px;opacity:.72}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active{border-color:var(--km-purple);opacity:1}
.single-product div.product .woocommerce-product-gallery .flex-viewport{width:100%;overflow:hidden!important}
.single-product div.product .woocommerce-product-gallery .flexslider{width:100%;margin:0!important;border:0!important;box-shadow:none!important}
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a{z-index:5}
@media(max-width:640px){
 .single-product div.product .woocommerce-product-gallery{width:100%!important;max-width:100%;margin:0 auto!important}
 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image,
 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a{width:100%;max-width:100%;margin-inline:auto!important}
 .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img{width:100%;max-height:none;aspect-ratio:1/1;object-fit:contain;object-position:center}
 .single-product div.product .woocommerce-product-gallery .flex-control-thumbs{gap:8px;justify-content:center;margin-top:10px!important}
 .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li,
 .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img{width:62px!important;height:62px;flex-basis:62px;max-width:62px}
}

/* Karur Mart v1.0.3 refinements */
.km-header .km-actions a.km-icon-button{position:relative;width:38px;min-width:38px;margin:0;padding:0;justify-content:center}
.km-header .km-actions a.km-icon-button .km-count{right:-1px;top:0;transform:translate(0,-2px)}
.km-bottom-nav .km-bottom-cart-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:26px}
.km-bottom-nav .km-bottom-cart-icon .km-cart-count{top:-7px;right:-11px;transform:none}
.km-bottom-nav .km-cart-count{pointer-events:none}
.km-free-shipping{margin:10px 0;background:#f8f3ff;border:1px solid #eadcff;color:#5120a8}
.km-free-shipping .km-progress{background:#e7d9ff}.km-free-shipping .km-progress span{background:linear-gradient(90deg,#7c3aed,#5b18c9)}
.woocommerce #reviews #comments h2,.woocommerce #review_form_wrapper #reply-title{font-size:22px;font-weight:850;letter-spacing:-.4px;color:var(--km-ink);margin:0 0 14px}
.woocommerce #reviews #comments ol.commentlist{padding:0;margin:18px 0;list-style:none}
.woocommerce #reviews #comments ol.commentlist li{padding:15px;margin:0 0 12px;border:1px solid var(--km-border);border-radius:14px;background:#fff}
.woocommerce #reviews #comments ol.commentlist li img.avatar{width:42px;height:42px;border:0;border-radius:50%;padding:0;background:#f2eaff}
.woocommerce #reviews #comments ol.commentlist li .comment-text{border:0;border-radius:0;margin:0 0 0 55px;padding:0}
.woocommerce #reviews #comments ol.commentlist li .meta{font-size:13px;color:var(--km-muted);margin-bottom:8px}
.woocommerce #reviews #comments ol.commentlist li .description{font-size:14px;line-height:1.65;color:#3f394d}
.woocommerce #review_form_wrapper{margin-top:22px;padding:18px;border:1px solid var(--km-border);border-radius:16px;background:#fcfaff}
.woocommerce #review_form #respond p{margin:0 0 13px}
.woocommerce #review_form #respond label{display:block;font-size:13px;font-weight:750;color:#3b3448;margin-bottom:6px}
.woocommerce #review_form #respond input[type=text],.woocommerce #review_form #respond input[type=email],.woocommerce #review_form #respond input[type=url],.woocommerce #review_form #respond textarea{width:100%;border:1px solid #ded6eb;border-radius:10px;background:#fff;padding:12px;min-height:44px;outline:0}
.woocommerce #review_form #respond textarea{min-height:125px;resize:vertical}
.woocommerce #review_form #respond input:focus,.woocommerce #review_form #respond textarea:focus{border-color:var(--km-purple);box-shadow:0 0 0 3px rgba(109,32,216,.1)}
.woocommerce p.stars a{color:#f59e0b;font-size:24px;margin-right:4px}
.woocommerce #review_form #respond .form-submit input{width:100%;min-height:46px;background:var(--km-purple);color:#fff;border:0;border-radius:11px;font-weight:850}
.woocommerce #review_form #respond .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--km-muted)}
.woocommerce #review_form #respond .comment-form-cookies-consent input{margin-top:4px}
.woocommerce #review_form #respond .comment-form-cookies-consent label{font-weight:500;font-size:12px}
.woocommerce .woocommerce-noreviews{padding:14px;border-radius:10px;background:#f8f3ff;color:#514166}
.woocommerce-checkout .woocommerce form.checkout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.75fr);gap:18px;align-items:start}
.woocommerce-checkout #customer_details{min-width:0}
.woocommerce-checkout #order_review_heading{margin:0;padding:16px 16px 0;border:1px solid var(--km-border);border-bottom:0;border-radius:14px 14px 0 0;background:#faf8fc;font-size:19px}
.woocommerce-checkout #order_review{padding:12px 16px 16px;border:1px solid var(--km-border);border-top:0;border-radius:0 0 14px 14px;background:#fff}
.woocommerce-checkout .woocommerce-billing-fields,.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout .woocommerce-additional-fields{padding:16px;border:1px solid var(--km-border);border-radius:14px;margin-bottom:14px;background:#fff}
.woocommerce-checkout .woocommerce-billing-fields h3,.woocommerce-checkout .woocommerce-shipping-fields h3,.woocommerce-checkout .woocommerce-additional-fields h3{font-size:18px;font-weight:850;margin:0 0 14px}
.woocommerce-checkout .form-row label{font-size:13px;font-weight:700;margin-bottom:6px}
.woocommerce-checkout .select2-container .select2-selection--single{height:44px;border:1px solid var(--km-border);border-radius:9px}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:42px;padding-left:12px}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{height:42px;right:8px}
.woocommerce-checkout #payment{border:1px solid var(--km-border);border-radius:12px;background:#faf8fc;padding:12px}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--km-border)}
.woocommerce-checkout #place_order{width:100%;min-height:48px;border-radius:11px;font-weight:850}
.woocommerce-checkout table.shop_table{font-size:13px}
.woocommerce-checkout table.shop_table th,.woocommerce-checkout table.shop_table td{padding:10px 6px}
@media(max-width:700px){.woocommerce-checkout .woocommerce form.checkout{display:block}.woocommerce-checkout #order_review_heading{margin-top:14px}.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review{width:100%}.woocommerce #review_form_wrapper{padding:13px}.woocommerce #reviews #comments ol.commentlist li{padding:12px}}

/* v1.0.5: free-delivery progress only */
.km-cart-progress{display:block!important;visibility:visible!important;opacity:1!important;clear:both;width:100%;margin:0 0 22px;padding:16px;border:1px solid #eadcff;border-radius:16px;background:#fbf8ff;color:#211a32;box-sizing:border-box}
.km-cart-progress-item{display:block!important;margin:0 0 16px}
.km-cart-progress-item:last-of-type{margin-bottom:10px}
.km-cart-progress-copy{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px 12px;margin-bottom:9px}
.km-cart-progress-copy strong{font-size:14px;font-weight:800;color:#4f16b8}
.km-cart-progress-copy span{font-size:13px;line-height:1.45;color:#4f465d}
.km-progress-track{display:block!important;width:100%;height:9px!important;overflow:hidden;border-radius:99px;background:#e8defa!important;box-shadow:inset 0 0 0 1px rgba(109,32,216,.06)}
.km-progress-track>span{display:block!important;height:100%!important;min-width:0;background:linear-gradient(90deg,#8b35ed,#5e17c8)!important;border-radius:99px;transition:width .25s ease}
.km-cart-progress-note{display:block;font-size:11px;line-height:1.45;color:#6d6479}

/* v1.0.6 postcode-first zone-aware free-delivery offer */
.km-topbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.km-topbar-offer{min-width:0}
.km-pincode-open{border:1px solid rgba(109,32,216,.25);border-radius:999px;padding:5px 12px;background:#fff;color:#5e17c8;font-size:12px;font-weight:800;cursor:pointer}
.km-pincode-modal{display:none;position:fixed;inset:0;z-index:100000;align-items:center;justify-content:center;padding:18px}
.km-pincode-modal.is-open{display:flex}
.km-pincode-backdrop{position:absolute;inset:0;background:rgba(21,13,35,.58);backdrop-filter:blur(3px)}
.km-pincode-dialog{position:relative;z-index:1;width:min(100%,430px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;border:1px solid #eadcff;border-radius:22px;padding:24px;box-shadow:0 22px 70px rgba(20,10,40,.25);color:#20172f}
.km-pincode-close{position:absolute;top:10px;right:12px;border:0;background:#f6f0ff;color:#3b2b52;width:34px;height:34px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
.km-pincode-icon{font-size:30px;margin-bottom:8px}
.km-pincode-dialog h2{font-size:23px;line-height:1.2;margin:0 35px 8px 0;font-weight:850}
.km-pincode-intro{font-size:14px;line-height:1.55;color:#6c6278;margin:0 0 18px}
.km-pincode-form label{display:block;font-size:13px;font-weight:800;margin:0 0 7px}
.km-pincode-entry{display:flex;gap:8px}
.km-pincode-entry input{min-width:0;flex:1;width:100%;height:48px;border:1px solid #ded2f0;border-radius:10px;padding:0 12px;font-size:17px;letter-spacing:1px}
.km-pincode-entry button,.km-pincode-confirm{border:0;border-radius:10px;background:linear-gradient(135deg,#7c2ce0,#5814bd);color:#fff;padding:0 14px;min-height:48px;font-weight:800;cursor:pointer}
.km-pincode-entry button:disabled{opacity:.65}
.km-pincode-error{padding:10px 12px;background:#fff0f0;border:1px solid #ffd0d0;border-radius:9px;color:#a31515;font-size:13px}
.km-pincode-result{margin-top:18px;padding:15px;border-radius:14px;background:#f8f3ff;border:1px solid #eadcff}
.km-pincode-result-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#71617f;font-weight:800}
.km-pincode-result-amount{font-size:21px;line-height:1.25;font-weight:900;color:#5e17c8;margin:5px 0}
.km-pincode-result-zone{font-size:12px;color:#6e637b}
.km-pincode-result-progress{height:9px;border-radius:99px;background:#e7dcf7;overflow:hidden;margin:13px 0 8px}
.km-pincode-result-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#9a4af3,#5b16c6);border-radius:99px;transition:width .25s ease}
.km-pincode-result-copy{font-size:13px;line-height:1.5;color:#40334f;margin:0 0 13px}
.km-pincode-confirm{width:100%}
.km-pincode-footnote{font-size:11px;line-height:1.45;color:#81778d;margin:16px 0 0}
body.km-modal-open{overflow:hidden}
.km-cart-progress-unavailable{padding:14px;background:#fbf8ff;border:1px solid #eadcff;border-radius:12px;color:#5e17c8;margin:12px 0}
@media(max-width:480px){.km-pincode-dialog{padding:20px 16px;border-radius:18px}.km-pincode-entry{flex-direction:column}.km-pincode-entry button{width:100%}.km-topbar{font-size:12px}}

/* v1.0.7: compact postcode bar and cart-block progress placement */
.km-topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;gap:8px;padding:9px 12px!important;min-height:42px;line-height:1.25}
.km-topbar-offer{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;flex:0 1 auto;text-align:center}
.km-topbar-offer-text{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.km-topbar .km-pincode-open{flex:0 0 auto;min-height:28px;padding:4px 10px;background:#fff;border:1px solid #d9c4ff;border-radius:999px;color:#5b16c6;font-size:11px;line-height:1;font-weight:850;white-space:nowrap}
.km-cart-progress{display:block!important;clear:both;position:relative;z-index:1}
.km-cart-progress-unavailable{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.km-cart-progress-unavailable .km-pincode-open{display:inline-flex;align-items:center;justify-content:center}
@media(max-width:420px){.km-topbar{gap:5px;padding:8px 8px!important}.km-topbar-offer-text{font-size:11px}.km-topbar .km-pincode-open{padding:4px 8px;font-size:10px}}

/* v1.0.8 live cart progress and under-₹20 suggestions */
.km-under-20-suggestions{margin:16px 0 22px;padding:16px;border:1px solid #e8dafa;border-radius:16px;background:#fcf9ff;clear:both}
.km-under-20-suggestions h3{margin:0 0 5px;font-size:18px;line-height:1.3;color:#241737}
.km-under-20-suggestions>p{margin:0 0 12px;font-size:12px;line-height:1.45;color:#746781}
.km-under-20-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.km-under-20-card{display:flex;min-width:0;flex-direction:column;gap:6px;padding:8px;border:1px solid #eee5f7;border-radius:12px;background:#fff;color:inherit;text-decoration:none}
.km-under-20-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:8px;background:#faf8fc}
.km-under-20-name{font-size:12px;line-height:1.3;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.km-under-20-card strong{font-size:13px;color:#681bd1}
@media(max-width:520px){.km-under-20-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.km-under-20-suggestions{padding:12px}}

/* v1.0.9 account sidebar links and low-price product suggestions */
.km-account-menu-links{display:grid;grid-template-columns:1fr;gap:0;margin:10px 0 6px;padding:8px 0;border-top:1px solid #eee4f8}
.km-account-menu-links a{display:flex;align-items:center;gap:10px;padding:13px 12px;border-radius:10px;color:#241735;text-decoration:none;font-weight:750;border-bottom:1px solid #f2edf8}
.km-account-menu-links a:hover,.km-account-menu-links a:focus{background:#f6efff;color:#651bd0}
.km-under-20-card{overflow:hidden}
.km-under-20-product-link{display:flex;min-width:0;flex-direction:column;gap:6px;color:inherit;text-decoration:none}
.km-under-20-add{display:block;text-align:center;margin-top:5px;padding:8px 6px;border-radius:8px;background:#6d20d8;color:#fff;text-decoration:none;font-size:12px;font-weight:800}
.km-under-20-add:hover,.km-under-20-add:focus{background:#5015ac;color:#fff}

/* v1.1.0: prevent mobile cart product image/title overlap */
@media(max-width:767px){
  body.woocommerce-cart .woocommerce-cart-form table.shop_table,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td{box-sizing:border-box}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table{width:100%;border:0!important;border-collapse:collapse}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead{display:none}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item{
    display:grid!important;grid-template-columns:92px minmax(0,1fr);column-gap:14px;row-gap:5px;
    padding:16px 0!important;border-bottom:1px solid #e8e2ef;align-items:start
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td{
    display:block!important;width:auto!important;max-width:100%;padding:0!important;border:0!important;
    text-align:left!important;min-width:0;overflow-wrap:anywhere
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-remove{grid-column:2;grid-row:1;justify-self:end;z-index:2}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail{grid-column:1;grid-row:1 / span 5;width:92px!important}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-thumbnail img{
    display:block;width:92px!important;height:92px!important;max-width:100%!important;object-fit:contain;
    margin:0!important;background:#faf8fc;border-radius:10px
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-name{grid-column:2;grid-row:1;font-size:14px;line-height:1.4;font-weight:650;padding-right:25px!important}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price{grid-column:2;grid-row:2;font-size:14px}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity{grid-column:2;grid-row:3}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal{grid-column:2;grid-row:4;font-weight:750}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody tr.cart_item td:before{display:none!important;content:none!important}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table .quantity{max-width:160px}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table .quantity input.qty{max-width:80px}
  body.woocommerce-cart .cart-collaterals,.woocommerce-cart .cart_totals{width:100%!important;float:none!important}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a{display:inline;overflow-wrap:anywhere}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail:empty{display:none!important}
}
.km-order-tracking-panel{margin:18px 0;padding:18px;border:1px solid #e8dafa;border-radius:16px;background:#fcf9ff}
.km-order-tracking-panel h3{margin:0 0 12px;color:#4f16b8}
.km-order-tracking-panel dl{display:grid;grid-template-columns:minmax(110px, .6fr) minmax(0,1fr);gap:8px 14px;margin:0}
.km-order-tracking-panel dt{font-weight:700}.km-order-tracking-panel dd{margin:0;overflow-wrap:anywhere}
.km-order-status-pill{display:inline-flex;padding:5px 10px;border-radius:999px;background:#f1e7ff;color:#5a16bf;font-size:12px;font-weight:800}

/* v1.2.0 merchandising home page */
.km-home-main{padding-bottom:28px}
.km-price-deals{margin-top:18px}
.km-deal-kicker{font-size:12px;color:var(--km-muted)}
.km-price-deal-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.km-price-deal-badge{position:relative;display:flex;min-height:142px;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center;border:3px solid #8d241b;border-radius:18px;background:radial-gradient(circle at 50% 28%,#fff5cf 0,#f6dca2 42%,#b43c2c 43%,#6b102c 100%);color:#fff;box-shadow:inset 0 0 0 3px #f6c75b,inset 0 0 0 7px rgba(255,255,255,.25),0 5px 12px rgba(67,18,33,.12);padding:10px 5px}
.km-price-deal-badge:before,.km-price-deal-badge:after{content:"✦";position:absolute;color:#ffd96a;font-size:17px;top:7px}.km-price-deal-badge:before{left:9px}.km-price-deal-badge:after{right:9px}
.km-deal-art{font-size:28px;line-height:1.1;filter:drop-shadow(0 2px 1px rgba(0,0,0,.15))}
.km-deal-label{font-size:11px;font-weight:900;letter-spacing:.8px;margin-top:3px;text-shadow:0 1px 2px #5c1020}
.km-price-deal-badge strong{font-size:clamp(20px,4vw,34px);font-weight:950;line-height:1.05;color:#fff8e5;-webkit-text-stroke:.5px #65122a;text-shadow:2px 2px 0 #5d0e28,-1px -1px 0 #5d0e28,0 3px 5px #4a0d20}
.km-price-deal-badge small{font-size:10px;color:#fff2d0;font-weight:700;margin-top:4px}
.km-under-49{background:radial-gradient(circle at 50% 28%,#fff2ce 0,#edc579 42%,#9f1e51 43%,#4f155f 100%)}
.km-under-99{background:radial-gradient(circle at 50% 28%,#fff5d4 0,#e9c88a 42%,#8c1947 43%,#3c164f 100%)}
.km-deal-section{scroll-margin-top:90px}
.km-deal-section .km-section-head{padding:12px 14px;border-radius:14px;background:linear-gradient(100deg,#fff0f2,#ffe0dc)}
.km-deal-section .km-section-head h2{font-size:20px}
.km-deal-section .km-section-head p,.km-trending-banner p,.km-video-products .km-section-head p{margin:2px 0 0;color:#6d4c64;font-size:12px}
.km-deal-icon{font-size:25px;color:#9d126f}
.km-category-grid-wide{grid-template-columns:repeat(6,minmax(0,1fr))}
.km-subcategory-group{margin:18px 0 24px}
.km-subcategory-group .km-section-head{margin-bottom:9px}
.km-subcategory-group h3{margin:0;font-size:17px}
.km-subcategory-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.km-subcategory-card{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:9px;border:1px solid var(--km-border);border-radius:13px;background:#fff;text-align:center;font-size:12px;font-weight:700;line-height:1.3}
.km-subcategory-card img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:9px;background:#faf8fc}
.km-trending-section{padding:15px;border-radius:18px;background:linear-gradient(120deg,#ffe0e6,#fff0e4);overflow:hidden}
.km-trending-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.km-trending-banner>div{display:flex;align-items:center;gap:10px}
.km-trending-banner h2{margin:0;font-size:22px;line-height:1.15}
.km-flame{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#fa2b88,#7217e8);font-size:29px;box-shadow:0 4px 12px rgba(106,25,160,.22)}
.km-trending-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.km-trending-grid .km-product-card{padding:7px;border-color:#f4d8e2}
.km-video-products{padding:14px;border:1px solid #eee7f5;border-radius:18px;background:#fff}
.km-video-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.km-video-product-card{min-width:0;padding:8px;border:1px solid var(--km-border);border-radius:14px;background:#fff}
.km-video-stage{position:relative;overflow:hidden;border-radius:10px;background:#f8f5fb;aspect-ratio:4/3}
.km-video-stage video,.km-video-stage iframe{width:100%;height:100%;display:block;object-fit:cover;border:0}
.km-video-embed{width:100%;height:100%;aspect-ratio:4/3}
.km-video-product-card h3{font-size:13px;line-height:1.3;margin:8px 0 4px}
.km-video-product-card .km-price{font-size:15px;margin-bottom:8px}
.km-video-product-card .km-btn{width:100%;font-size:12px;padding:8px}
.km-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
.km-bottom-nav>a{min-width:0;padding:7px 2px;font-size:10px;gap:3px}
.km-bottom-nav .km-nav-icon{font-size:20px;line-height:1.1}
.km-bottom-nav .km-trending-nav .km-nav-icon{display:grid;place-items:center;width:38px;height:30px;border-radius:16px;background:linear-gradient(135deg,#f72585,#6d20d8);color:#fff;font-size:21px}
.km-bottom-nav .km-trending-nav.is-active{background:#f5eaff;color:var(--km-purple);border-radius:16px}
@media(max-width:767px){
 .km-container{width:min(100% - 24px,1200px)}
 .km-price-deal-badges{gap:7px}
 .km-price-deal-badge{min-height:108px;border-width:2px;border-radius:13px;padding:7px 3px}
 .km-deal-art{font-size:23px}
 .km-price-deal-badge strong{font-size:clamp(18px,5vw,28px)}
 .km-price-deal-badge small{font-size:9px}
 .km-category-grid-wide{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .km-subcategory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .km-subcategory-card{padding:7px;font-size:11px}
 .km-trending-section{padding:10px;margin-inline:-1px}
 .km-trending-banner h2{font-size:19px}
 .km-flame{width:40px;height:40px;font-size:25px}
 .km-trending-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:9px;padding-bottom:5px}
 .km-trending-grid .km-product-card{flex:0 0 43%;scroll-snap-align:start}
 .km-product-grid.km-deal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .km-video-product-grid{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x mandatory;padding-bottom:4px}
 .km-video-product-card{flex:0 0 44%;scroll-snap-align:start}
 .km-bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr));padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 .km-bottom-nav>a{font-size:9px}
 .km-bottom-nav .km-nav-icon{font-size:18px}
 .km-bottom-nav .km-trending-nav .km-nav-icon{width:30px;height:27px;font-size:18px}
}

/* v1.3.0 storefront refinements */
.km-topbar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:9px 12px;font-size:13px}
.km-topbar-offer{font-weight:650}
.km-pincode-open{border:1px solid #ddc9ff;background:#fff;color:var(--km-purple-dark);border-radius:22px;padding:6px 12px;font-weight:750;font-size:12px}
.km-pincode-result-title{font-size:12px;letter-spacing:.7px;text-transform:uppercase;color:var(--km-muted);font-weight:800}
.km-pincode-result-amount{font-size:clamp(22px,5vw,30px);font-weight:900;line-height:1.2;color:var(--km-purple-dark);margin:8px 0 10px}
.km-pincode-result-zone{display:none!important}
.km-pincode-result-copy{font-size:13px;line-height:1.55}
.km-price-deal-badge strong{font-size:clamp(17px,4.5vw,27px);letter-spacing:-.5px;white-space:nowrap}
.km-price-deal-badge .km-deal-label{font-size:10px}
.km-featured-products .km-section-head{background:linear-gradient(110deg,#fff3d6,#fff8ed);border:1px solid #f5e1b5;border-radius:14px;padding:12px 14px}
.km-featured-products .km-section-head h2{font-size:21px}
.km-featured-products .km-section-head p{margin:2px 0 0;color:#7c6644;font-size:12px}
.km-featured-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff0c5;color:#a86c00;font-size:24px}
.km-category-recommendations{margin-top:26px;padding:14px;border:1px solid var(--km-border);border-radius:18px;background:#fff}
.km-category-recommendations .km-section-head h2{font-size:21px}
.km-category-recommendations .km-section-head p{margin:2px 0 0;color:var(--km-muted);font-size:12px}
.km-category-recommendation-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.km-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:767px){
 .km-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
 .km-price-deal-badge strong{font-size:clamp(14px,3.8vw,22px)}
 .km-price-deal-badge .km-deal-label{font-size:9px;letter-spacing:.4px}
 .km-featured-grid,.km-category-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .km-featured-products .km-section-head h2{font-size:19px}
}

/* Category listing page only: added to the v1.3.0 base without changing other storefront templates. */
.km-categories-page{padding-bottom:24px}
.km-categories-page-header{margin:14px 0 24px}
.km-categories-page-header .km-page-title{margin:0 0 5px}
.km-categories-page-header p{margin:0;color:var(--km-muted);font-size:14px}
.km-categories-section-title{font-size:20px;line-height:1.3;margin:0 0 14px;letter-spacing:-.3px}
.km-categories-main-section,.km-categories-sub-section{margin:24px 0}
.km-categories-page-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.km-categories-page-card{padding:10px;display:flex;flex-direction:column;align-items:stretch;height:100%}
.km-categories-page-card img,.km-categories-page-card .km-categories-page-image{width:100%;aspect-ratio:1/1;object-fit:contain;background:#faf8fc;border-radius:11px}
.km-categories-page-card>span{font-size:13px;line-height:1.3;margin-top:9px}
.km-categories-page-card small,.km-categories-page-subcard small{display:block;color:var(--km-muted);font-size:11px;font-weight:500;margin-top:4px}
.km-categories-sub-group{margin:20px 0 26px;padding:15px;border:1px solid var(--km-border);border-radius:16px;background:#fff}
.km-categories-sub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.km-categories-sub-heading h3{font-size:16px;line-height:1.3;margin:0}
.km-categories-sub-heading>a{font-size:12px;font-weight:750;color:var(--km-purple);white-space:nowrap}
.km-categories-page-subgrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.km-categories-page-subcard{height:100%;padding:8px;align-items:stretch}
.km-categories-page-subcard img,.km-categories-page-subcard .km-categories-page-image{width:100%;aspect-ratio:1/1;object-fit:contain;background:#faf8fc;border-radius:9px}
.km-categories-page-subcard>span{font-size:12px;line-height:1.3}
.km-categories-page-placeholder{display:grid;place-items:center;aspect-ratio:1/1;border-radius:10px;background:#faf8fc;color:var(--km-muted);font-size:28px}
@media(max-width:900px){.km-categories-page-grid,.km-categories-page-subgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}}
@media(max-width:640px){.km-categories-page-header{margin:10px 0 20px}.km-categories-section-title{font-size:18px;margin-bottom:11px}.km-categories-main-section,.km-categories-sub-section{margin:20px 0}.km-categories-page-grid,.km-categories-page-subgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.km-categories-page-card{padding:7px 6px;border-radius:12px}.km-categories-page-card>span{font-size:11px;margin-top:7px}.km-categories-page-card small,.km-categories-page-subcard small{font-size:10px}.km-categories-sub-group{padding:10px;margin:14px 0 18px;border-radius:13px}.km-categories-sub-heading h3{font-size:14px}.km-categories-page-subcard{padding:6px;font-size:11px}.km-categories-page-subcard>span{font-size:11px}}


/* Frequently Bought Together — curated via WooCommerce Linked Products. */
.km-frequently-bought-together{margin-top:24px;padding:15px;border:1px solid #e6d8ff;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#fcf9ff 100%)}
.km-frequently-bought-together .km-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.km-frequently-bought-together .km-section-head h2{font-size:21px;margin:0;letter-spacing:-.35px}
.km-frequently-bought-together .km-section-head p{font-size:12px;color:var(--km-muted);margin:3px 0 0}
.km-fbt-mark{width:38px;height:38px;flex:0 0 38px;border-radius:13px;background:#efe4ff;color:var(--km-purple);display:grid;place-items:center;font-size:25px;font-weight:800}
.km-fbt-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.km-frequently-bought-together .km-product-card{min-width:0;background:#fff}
@media(max-width:767px){.km-frequently-bought-together{padding:11px;margin-top:20px}.km-frequently-bought-together .km-section-head h2{font-size:18px}.km-fbt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}


/* v1.3.3 live search suggestion cleanup and mobile-safe sale prices */
.km-search-price-fixed{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 9px;margin-top:5px;line-height:1.35;white-space:normal!important;overflow-wrap:anywhere;font-size:14px}
.km-search-price-fixed .km-search-old-price{color:#8b8795;font-size:12px;font-weight:500;white-space:nowrap}
.km-search-price-fixed .km-search-current-price{color:var(--km-purple);font-size:15px;font-weight:850;white-space:nowrap}
.km-search-price-fixed .km-search-discount{display:inline-flex;align-items:center;border-radius:6px;background:#fff0f1;color:#c41f3a;padding:3px 6px;font-size:10px;font-weight:850;white-space:nowrap}
@media(max-width:640px){.km-search-price-fixed{gap:5px 7px;font-size:13px}.km-search-price-fixed .km-search-current-price{font-size:14px}}


/* v1.3.4 cautious accessibility and product-card fixes */
.km-skip-link{position:absolute;left:12px;top:-100px;z-index:9999;padding:10px 14px;background:#17152a;color:#fff;border-radius:8px}
.km-skip-link:focus{top:12px;color:#fff;outline:3px solid #6d20d8;outline-offset:2px}
.km-product-image-wrap{position:relative;min-width:0}
.km-product-image-wrap .km-product-image{display:block;position:relative}
.km-product-image-wrap .km-wishlist{position:absolute;z-index:3;top:8px;right:8px;border:1px solid var(--km-border);background:rgba(255,255,255,.96);color:#5b18c9;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;box-shadow:0 2px 8px rgba(23,21,42,.08)}
.km-product-image-wrap .km-wishlist.is-active{color:#e11d48;border-color:#f8b4c0}
.km-product-card{display:flex;flex-direction:column;min-width:0}
.km-product-card .km-card-bottom{margin-top:auto;padding-top:8px}
.km-product-card h3 a{overflow-wrap:anywhere}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #6d20d8;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
