/* Kaukaz Bazar storefront stabilization — 0.11.0 */

body.kbh-global-shell,
body.kbh-global-shell #main-container,
body.kbh-global-shell #main-container :where(h1,h2,h3,h4,h5,h6,p,a,li,button,input,select,textarea,option,label,table,caption,thead,tbody,tfoot,tr,th,td,small,strong,em),
body.kbh-global-shell .woocommerce,
body.kbh-global-shell .select2-container,
.kbh-site-header,
.kbh-footer,
.kbh-checkout-header,
.kbh-checkout-footer{font-family:var(--kbh-font)!important}
#cmplz-manage-consent .cmplz-manage-consent{font-family:var(--kbh-font)!important}

/* Header: 84 + 56 normally, 64 + 44 after scroll. */
@media(min-width:1181px){
	.kbh-site-header__top{min-height:84px;grid-template-columns:minmax(150px,190px) minmax(280px,500px) minmax(0,1fr)}
	.kbh-brand{height:84px}.kbh-brand__image{max-height:80px}
	.kbh-search,.kbh-search input[type="search"]{height:48px}
	.kbh-site-header.is-stuck .kbh-site-header__top{min-height:64px}
	.kbh-site-header.is-stuck .kbh-brand{height:64px}
	.kbh-site-header.is-stuck .kbh-brand__image{max-height:60px}
	.kbh-site-header.is-stuck .kbh-nav,.kbh-site-header.is-stuck .kbh-nav__item-row{min-height:44px}
	.kbh-account .kbh-action-icon svg{width:31px;height:31px}
}

.kbh-cart-count{min-width:20px;height:20px;background:#f3a51b!important;color:#111!important;font-size:11px;font-weight:800}
.kbh-wishlist-count{min-width:20px;height:20px;background:var(--kbh-red)!important;color:#fff!important;font-size:11px;font-weight:800}

/* Catalogue typography: calm hierarchy matching the product page. */
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .woocommerce-loop-product__title,
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .woocommerce-loop-product__title a{font-size:18px!important;font-weight:500!important;line-height:1.28!important;text-transform:none!important;letter-spacing:-.01em!important}
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .price{font-size:18px!important;font-weight:600!important;line-height:1.3!important}
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .entry-meta{display:none!important}
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .button{font-size:15px!important;font-weight:700!important;letter-spacing:0!important}
body.single-product.kbh-global-shell .entry-summary .product_title{font-weight:600!important;letter-spacing:-.02em!important}

body.kbh-global-shell :where(.kbh-site-header,.kbh-footer,#main-container,.woocommerce,.select2-container,input,select,textarea,button){font-family:var(--kbh-font)!important}
.kbh-footer__column h2{font-weight:700!important}

/* EN/PL and secondary actions use one optical type scale. */
@media(min-width:1181px){.kbh-languages a,.kbh-wishlist-link,.kbh-account,.kbh-cart{font-size:14px!important;font-weight:700!important}}

/* Tablet and narrow desktop use the tested two-row header and drawer. */
@media(max-width:1180px){
	.kbh-site-header .kbh-container{width:min(100% - 28px,1080px)}
	.kbh-site-header__top,.kbh-site-header.is-stuck .kbh-site-header__top{min-height:0;display:grid;grid-template-columns:120px minmax(0,1fr);gap:6px 12px;padding:6px 0 8px}
	.kbh-brand,.kbh-site-header.is-stuck .kbh-brand{height:52px}
	.kbh-brand__image,.kbh-site-header.is-stuck .kbh-brand__image{max-width:120px;max-height:52px}
	.kbh-search{grid-column:1/-1;grid-row:2;height:42px}
	.kbh-search input[type="search"]{height:42px;font-size:15px!important}
	.kbh-header-actions{min-width:0;gap:7px}
	.kbh-languages{gap:6px}.kbh-languages a{gap:4px;font-size:12px}
	.kbh-flag,.kbh-flag svg{width:23px;height:23px}
	.kbh-account{display:none}.kbh-action-label{display:none!important}
	.kbh-wishlist-link,.kbh-cart{display:flex;min-width:44px;justify-content:center}
	.kbh-cart>span:not(.kbh-action-icon):not(.kbh-cart-count){display:none}
	.kbh-menu-toggle{display:block}
	.kbh-site-header__nav-row{border-top:0}
	.kbh-nav{display:none;min-height:0;padding-bottom:14px}
	.kbh-site-header.is-menu-open .kbh-nav{display:block}
	.kbh-nav__list{width:100%;display:grid;gap:0}
	.kbh-nav__item-row{min-height:48px;border-bottom:1px solid #eee}
	.kbh-nav__item-row>a{min-height:48px;display:flex;align-items:center;flex:1;font-size:15px}
	.kbh-submenu-toggle{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important}
	.kbh-nav__list .sub-menu{position:static;display:none;box-shadow:none;border:0;padding:4px 0 10px 14px}
	.kbh-nav__list li.is-submenu-open>.sub-menu{display:block}
	.kbh-nav__list li:hover>.sub-menu{display:none}
	.kbh-nav__list li.is-submenu-open:hover>.sub-menu{display:block}
	.kbh-nav__list .sub-menu a{min-height:44px;display:flex;align-items:center;white-space:normal}
	.kbh-mobile-account,.kbh-mobile-wishlist{min-height:48px;display:flex!important;align-items:center;gap:10px;padding:0 2px;border-bottom:1px solid #eee;color:#111;font-size:14px;font-weight:750}
}

@media(max-width:420px){
	.kbh-site-header__top,.kbh-site-header.is-stuck .kbh-site-header__top{grid-template-columns:86px minmax(0,1fr);gap:6px}
	.kbh-brand,.kbh-site-header.is-stuck .kbh-brand{height:50px}
	.kbh-brand__image,.kbh-site-header.is-stuck .kbh-brand__image{max-width:86px;max-height:50px}
	.kbh-header-actions{gap:2px}
	.kbh-languages{gap:2px}.kbh-languages a{min-width:37px;gap:2px;font-size:10px}
	.kbh-flag,.kbh-flag svg{width:18px;height:18px}
	.kbh-wishlist-link,.kbh-cart,.kbh-menu-toggle{min-width:40px;width:40px;padding-inline:0}
	.kbh-action-icon,.kbh-action-icon svg{width:27px;height:27px}
}

/* Truthful, quiet payment message instead of unverified brand badges. */
.kbh-footer__payment-note{grid-column:1/-1;display:flex;align-items:center;gap:11px;padding-top:16px;border-top:1px solid #dedede}
.kbh-footer__payment-note>span{width:36px;height:36px;display:grid;place-items:center;color:var(--kbh-green)}
.kbh-footer__payment-note svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kbh-footer__payment-note div{display:grid;gap:1px}.kbh-footer__payment-note strong{font-size:14px}.kbh-footer__payment-note small{color:var(--kbh-muted);font-size:13px}

/* Compact category listing. */
body.tax-product_cat.kbh-global-shell #main{padding-top:0!important}
body.tax-product_cat.kbh-global-shell #main>.hero-section{min-height:0!important;padding-block:8px!important}
body.tax-product_cat.kbh-global-shell #main>.hero-section .entry-header{min-height:54px!important;padding-block:6px!important}
body.tax-product_cat.kbh-global-shell #main>.hero-section .page-title{font-size:clamp(28px,2.4vw,36px)!important;line-height:1.08!important}
body.tax-product_cat.kbh-global-shell #main>.ct-container{padding-top:16px!important;padding-bottom:38px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav{margin-bottom:12px!important;padding:10px 12px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__title{margin-bottom:6px!important;font-size:13px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__list{gap:7px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__list a{min-height:42px!important;padding:5px 9px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__list a>span{width:30px!important;height:30px!important;flex-basis:30px!important}
body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__list strong{font-size:13px!important}
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell .products .product .ct-media-container{aspect-ratio:1/1;max-height:300px}
body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell .products .product .ct-media-container img{width:100%;height:100%;object-fit:contain}

/* Product first screen. */
body.single-product.kbh-global-shell #main>.ct-container-full{padding-top:20px!important;padding-bottom:38px!important}
body.single-product.kbh-global-shell .product-entry-wrapper{align-items:flex-start!important}
body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view,
body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view .flexy-items,
body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view .flexy-item,
body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view figure.ct-media-container{height:clamp(360px,36vw,480px)!important;min-height:0!important}
body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view figure.ct-media-container img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center top!important}
body.single-product.kbh-global-shell .entry-summary>:where(.price,.woocommerce-product-details__short-description,.ct-product-divider,.ct-product-add-to-cart){margin-bottom:16px!important}
body.single-product.kbh-global-shell table.variations{margin-bottom:14px!important}

/* Cart density without changing WooCommerce form behaviour. */
body.woocommerce-cart.kbh-global-shell #main>.ct-container{padding-top:28px!important;padding-bottom:36px!important}
body.woocommerce-cart.kbh-global-shell .woocommerce-cart-form .shop_table td{padding-block:14px!important}
body.woocommerce-cart.kbh-global-shell .product-thumbnail img{width:auto!important;max-width:108px!important;max-height:108px!important;object-fit:contain!important}
body.woocommerce-cart.kbh-global-shell .cart-collaterals .cart_totals{padding:22px!important}

/* Product hearts retain a transparent surface; selection fills the heart. */
body.kbh-global-shell .products .kbh-wishlist-button,
body.kbh-global-shell .kbh-product .kbh-wishlist-button,
body.kbh-global-shell .kbh-wishlist-card .kbh-wishlist-button{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:#202020!important}
body.kbh-global-shell .products .kbh-wishlist-button svg,
body.kbh-global-shell .kbh-product .kbh-wishlist-button svg,
body.kbh-global-shell .kbh-wishlist-card .kbh-wishlist-button svg{fill:transparent!important;stroke:currentColor!important;stroke-width:2.2!important}
body.kbh-global-shell .products .kbh-wishlist-button[aria-pressed="true"],
body.kbh-global-shell .kbh-product .kbh-wishlist-button[aria-pressed="true"],
body.kbh-global-shell .kbh-wishlist-card .kbh-wishlist-button[aria-pressed="true"]{color:var(--kbh-red)!important}
body.kbh-global-shell .products .kbh-wishlist-button[aria-pressed="true"] svg,
body.kbh-global-shell .kbh-product .kbh-wishlist-button[aria-pressed="true"] svg,
body.kbh-global-shell .kbh-wishlist-card .kbh-wishlist-button[aria-pressed="true"] svg{fill:var(--kbh-red)!important;stroke:var(--kbh-red)!important}

/* Checkout: no overflow at 320 px and no consent overlap with the CTA. */
body.kbh-shell--checkout #cmplz-manage-consent .cmplz-manage-consent{left:12px!important;right:auto!important;bottom:12px!important}
@media(max-width:760px){
	.kbh-checkout-header__inner{min-height:68px;grid-template-columns:94px 28px minmax(0,1fr);gap:8px}
	.kbh-checkout-header .kbh-brand{height:60px}.kbh-checkout-header .kbh-brand__image{max-width:94px;max-height:58px}
	.kbh-checkout-trust{justify-content:center}.kbh-checkout-trust strong{display:none}.kbh-checkout-trust>span{width:26px;height:26px}
	.kbh-checkout-support{justify-self:end;min-width:0}.kbh-checkout-support strong{font-size:11px}
	body.kbh-shell--checkout #main-container{padding-bottom:76px!important}
	body.kbh-shell--checkout #cmplz-manage-consent .cmplz-manage-consent{max-width:150px!important;min-height:38px!important;padding:8px 10px!important;font-size:11px!important;white-space:normal!important}
	body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view,
	body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view .flexy-items,
	body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view .flexy-item,
	body.single-product.kbh-global-shell .woocommerce-product-gallery .flexy-view figure.ct-media-container{height:min(86vw,340px)!important}
	body.woocommerce-cart.kbh-global-shell .product-thumbnail img{max-width:84px!important;max-height:84px!important}
}

@media(max-width:560px){
	.kbh-products{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
	.kbh-product{min-width:74vw;scroll-snap-align:start}
	.kbh-product__body{padding:14px}.kbh-product h3{font-size:16px;line-height:1.3}.kbh-price{font-size:19px}
	.kbh-wishlist-card{min-width:74vw}
}

@media(prefers-reduced-motion:reduce){.kbh-wishlist-button.is-loading svg{animation:none}}
