/* Kaukaz Bazar — mobile-first storefront layout. Desktop styles are untouched. */

/* The accordion markup remains a normal four-column footer on desktop. */
.kbh-footer__toggle{width:100%;display:flex;align-items:center;justify-content:space-between;margin:0;padding:0;border:0!important;border-radius:0!important;background:transparent!important;color:#111!important;box-shadow:none!important;font:inherit;text-align:left;text-transform:none!important;cursor:default}
.kbh-footer__toggle:hover,.kbh-footer__toggle:focus,.kbh-footer__toggle:active{border:0!important;background:transparent!important;color:#111!important;box-shadow:none!important;transform:none!important}
.kbh-footer__toggle i{display:none}
.kbh-footer__panel{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.kbh-footer__panel>a{min-height:27px;color:#4f4f4f;font-size:15px;line-height:1.3;text-decoration:underline;text-underline-offset:3px}

@media(max-width:760px){
	/* Compact two-row header: logo/actions, then full-width search. */
	.kbh-site-header .kbh-container{width:calc(100% - 20px)}
	.kbh-site-header__top,.kbh-site-header.is-stuck .kbh-site-header__top{grid-template-columns:minmax(112px,124px) minmax(0,1fr);gap:5px 6px;padding:5px 0 7px}
	.kbh-brand,.kbh-site-header.is-stuck .kbh-brand{height:48px}
	.kbh-brand__image,.kbh-site-header.is-stuck .kbh-brand__image{width:124px;max-width:124px;max-height:50px;object-fit:contain;object-position:left center}
	.kbh-header-actions{justify-content:flex-end;gap:2px}
	.kbh-search,.kbh-search input[type="search"]{height:42px}
	.kbh-search input[type="search"]{padding-inline:42px 12px!important;font-size:14px!important}
	.kbh-search__icon{left:14px;transform:scale(.88)}

	/* One language control: PL | EN. Flags remain available on desktop only. */
	.kbh-languages{display:flex;align-items:center;gap:0!important;min-width:55px}
	.kbh-languages::after{content:"|";order:2;color:#9a9a9a;font-size:12px;line-height:1}
	.kbh-languages a{min-width:25px!important;min-height:44px;padding:0 3px;justify-content:center;gap:0!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important}
	.kbh-languages a[data-kbh-event="language_pl"]{order:1}
	.kbh-languages a[data-kbh-event="language_en"]{order:3}
	.kbh-languages .kbh-flag{display:none!important}
	.kbh-wishlist-link,.kbh-cart,.kbh-menu-toggle{width:40px!important;min-width:40px!important;padding-inline:0!important}
	.kbh-action-icon,.kbh-action-icon svg{width:27px;height:27px}
	.kbh-menu-toggle{border:0!important;border-radius:0!important;background:transparent!important;color:#111!important;box-shadow:none!important}
	.kbh-menu-toggle i{background:#111!important}
	.kbh-menu-toggle span{color:#111!important;font-size:10px}

	/* Mobile homepage order: assortment first, products after one short promo. */
	.kbh-v2{display:flex;flex-direction:column}
	.kbh-v2>#kategorie{order:1}
	.kbh-v2>.kbh-hero{order:2}
	.kbh-v2>#bestsellery{order:3}
	.kbh-v2>.kbh-service{order:4}
	.kbh-v2>.kbh-intents{order:5}
	.kbh-v2>.kbh-new-products{order:6}
	.kbh-v2>.kbh-section:not(#kategorie):not(#bestsellery):not(.kbh-new-products){order:7}

	.kbh-v2 .kbh-container{width:calc(100% - 24px)}
	#kategorie.kbh-section{padding:18px 0 24px}
	.kbh-section{padding:30px 0}
	.kbh-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;margin-bottom:15px}
	.kbh-heading>div{min-width:0}
	.kbh-heading .kbh-eyebrow{margin-bottom:3px;font-size:10px}
	.kbh-v2 h2{font-size:22px!important;line-height:1.12!important}
	.kbh-heading>a{min-height:36px;align-self:end;font-size:12px;white-space:nowrap}

	/* Two readable main categories per row. */
	.kbh-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
	.kbh-category{min-height:80px;grid-template-columns:44px minmax(0,1fr);column-gap:8px;padding:8px;border-radius:10px}
	.kbh-category__image{width:44px;height:44px}
	.kbh-category__image svg{width:25px;height:25px}
	.kbh-category strong{font-size:13px;line-height:1.18;overflow-wrap:anywhere}
	.kbh-category__arrow{display:none}

	/* Short commercial hero instead of a full mobile screen. */
	.kbh-hero{padding:22px 0;background:var(--kbh-cream)}
	.kbh-hero__grid{grid-template-columns:minmax(0,1fr) 108px;gap:12px;align-items:center}
	.kbh-v2 .kbh-hero h1{font-size:25px!important;line-height:1.02!important}
	.kbh-hero .kbh-eyebrow{margin-bottom:5px;font-size:10px;line-height:1.3}
	.kbh-lead{display:block;overflow:visible;margin:9px 0 13px;font-size:14px;line-height:1.38}
	.kbh-hero__visual img{height:138px;aspect-ratio:auto;border-radius:11px;object-fit:cover;box-shadow:none}
	.kbh-hero .kbh-actions{gap:0}
	.kbh-hero .kbh-button{min-height:42px;padding:9px 13px;font-size:13px}
	.kbh-hero .kbh-button--ghost{display:none}

	/* Two products per row for comparison instead of one 74vw card. */
	.kbh-v2 .kbh-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow:visible;padding-bottom:0;scroll-snap-type:none}
	.kbh-v2 .kbh-product{min-width:0;scroll-snap-align:none;border-radius:9px}
	.kbh-v2 .kbh-product__image{aspect-ratio:1/1}
	.kbh-v2 .kbh-product__body{padding:10px}
	.kbh-v2 .kbh-product__meta{margin-bottom:3px;font-size:10px}
	.kbh-v2 .kbh-product h3{display:-webkit-box;min-height:36px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:7px;font-size:14px;line-height:1.28}
	.kbh-v2 .kbh-product__rating{display:none}
	.kbh-v2 .kbh-product__bottom{padding-top:7px}
	.kbh-v2 .kbh-price{margin-bottom:8px;font-size:16px;line-height:1.25}
	.kbh-v2 .kbh-button--small{width:100%;min-height:42px;padding:8px 6px;font-size:12px;text-align:center}

	/* Trust facts become a compact one-line shopping strip. */
	.kbh-service{margin-top:0;border-block:1px solid var(--kbh-line);box-shadow:none}
	.kbh-service .kbh-container{width:100%;padding-inline:12px}
	.kbh-service__grid{display:flex;gap:8px;overflow-x:auto;padding:10px 0;scroll-snap-type:x mandatory;scrollbar-width:none}
	.kbh-service__grid::-webkit-scrollbar{display:none}
	.kbh-service__grid>div{min-width:210px;min-height:64px;grid-template-columns:26px 1fr;padding:9px 11px;column-gap:9px;border:1px solid var(--kbh-line)!important;border-radius:9px;background:#fff;scroll-snap-align:start}
	.kbh-service__icon{width:25px;height:25px}
	.kbh-service strong{font-size:13px}
	.kbh-service small{font-size:11px}

	/* Intent links use horizontal space, not six stacked rows. */
	.kbh-intents{padding:24px 0 28px}
	.kbh-intents__heading{margin-bottom:13px}
	.kbh-intents__heading .kbh-eyebrow{font-size:10px}
	.kbh-intents__list{display:flex;gap:8px;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x mandatory;scrollbar-width:none}
	.kbh-intents__list::-webkit-scrollbar{display:none}
	.kbh-intents__list a{flex:0 0 148px;min-height:44px;padding:9px 11px;font-size:12px;scroll-snap-align:start}

	/* Brand proof is preserved but no longer creates a long empty block. */
	.kbh-story{gap:13px}
	.kbh-story__panel{padding:18px}
	.kbh-story__panel>p:not(.kbh-eyebrow){font-size:14px;line-height:1.48}
	.kbh-story__facts{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
	.kbh-story__facts::-webkit-scrollbar{display:none}
	.kbh-story__facts>div{flex:0 0 220px;padding:13px;border:1px solid var(--kbh-line);border-radius:9px;background:#fff;scroll-snap-align:start}
	.kbh-story__facts strong{font-size:16px}
	.kbh-story__facts span{font-size:13px}

	/* Category pages: compact subcategory rail and quicker access to products. */
	body.post-type-archive-product.kbh-global-shell #main>.hero-section{display:none!important;min-height:0!important;padding:0!important}
	body.post-type-archive-product.kbh-global-shell #main>.hero-section .entry-header{min-height:46px!important;padding-block:4px!important}
	body.post-type-archive-product.kbh-global-shell #main>.hero-section .page-title{font-size:28px!important;line-height:1.08!important}
	body.post-type-archive-product.kbh-global-shell #main>.ct-container{padding-top:10px!important}
	body.tax-product_cat.kbh-global-shell #main>.hero-section{padding-block:4px!important}
	body.tax-product_cat.kbh-global-shell #main>.hero-section .entry-header{min-height:46px!important}
	body.tax-product_cat.kbh-global-shell #main>.hero-section .page-title{font-size:28px!important}
	body.tax-product_cat.kbh-global-shell #main>.ct-container{padding-top:10px!important}
	body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav{margin-bottom:9px!important;padding:9px!important}
	body.tax-product_cat.kbh-global-shell .kbh-subcategory-nav__list a{flex:0 0 132px;min-width:132px!important;min-height:44px!important;padding:5px 7px!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:12px!important;white-space:normal}
	body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products{column-gap:9px!important;row-gap:22px!important}
	body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .ct-media-container{height:min(43vw,176px)!important;max-height:176px!important}
	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{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:15px!important;line-height:1.25!important}
	body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .price{font-size:16px!important}
	body:is(.tax-product_cat,.post-type-archive-product).kbh-global-shell ul.products li.product .button{min-height:42px;padding:8px 7px!important;font-size:12px!important}

	/* A genuinely compact mobile footer with visible support and closed groups. */
	.kbh-footer .kbh-container{width:calc(100% - 24px)}
	.kbh-footer__grid{display:flex;flex-direction:column;gap:0;padding-top:18px;padding-bottom:16px}
	.kbh-footer__contact{order:-1;gap:5px;padding-bottom:13px;border-bottom:1px solid #d9d9d9}
	.kbh-footer__contact h2{margin-bottom:3px;font-size:16px}
	.kbh-footer__contact-line{min-height:42px!important;font-size:14px!important}
	.kbh-footer__accordion{gap:0;border-bottom:1px solid #d9d9d9}
	.kbh-footer__accordion h2{width:100%;margin:0!important}
	.kbh-footer__toggle,.kbh-footer__toggle:hover,.kbh-footer__toggle:focus,.kbh-footer__toggle:focus-visible,.kbh-footer__toggle:active{min-height:48px;cursor:pointer;border:0!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;color:#111!important;box-shadow:none!important;transform:none!important;font-size:15px!important;font-weight:700!important;text-transform:none!important}
	.kbh-footer__toggle i{width:8px;height:8px;display:block;margin-right:4px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
	.kbh-footer__toggle[aria-expanded="true"] i{transform:translateY(2px) rotate(225deg)}
	.kbh-footer__panel{display:none;padding:0 0 10px}
	.kbh-footer__accordion.is-open .kbh-footer__panel{display:flex}
	.kbh-footer__panel>a{width:100%;min-height:44px;display:flex;align-items:center;font-size:14px}
	.kbh-footer__address .kbh-footer__panel p{padding:5px 0 10px;font-size:14px}
	.kbh-footer__payments{order:5;gap:5px;overflow-x:auto;padding-top:13px;border-top:0;scrollbar-width:none}
	.kbh-footer__payments::-webkit-scrollbar{display:none}
	.kbh-pay{width:58px;height:30px;flex:0 0 58px;font-size:11px;white-space:nowrap}
	.kbh-pay--blik{font-size:15px}.kbh-pay--visa{font-size:14px}
	.kbh-pay--p24{width:76px;flex-basis:76px;gap:3px;font-size:7px;letter-spacing:-.055em;overflow:hidden}
	.kbh-pay--p24 i{width:17px;height:17px;flex:0 0 17px;font-size:7px}
	.kbh-pay--p24>span{min-width:0;display:block;overflow:hidden;text-overflow:clip;white-space:nowrap}
	.kbh-footer__legal p{padding:11px 0;font-size:11px;line-height:1.45}
}

@media(max-width:374px){
	.kbh-site-header__top,.kbh-site-header.is-stuck .kbh-site-header__top{grid-template-columns:104px minmax(0,1fr);gap:4px}
	.kbh-brand__image,.kbh-site-header.is-stuck .kbh-brand__image{width:112px;max-width:112px}
	.kbh-languages{min-width:51px}.kbh-languages a{min-width:23px!important;padding-inline:2px}
	.kbh-wishlist-link,.kbh-cart,.kbh-menu-toggle{width:38px!important;min-width:38px!important}
	.kbh-hero__grid{grid-template-columns:minmax(0,1fr) 94px;gap:9px}
	.kbh-hero__visual img{height:124px}
	.kbh-v2 .kbh-hero h1{font-size:23px!important}
}

@media(prefers-reduced-motion:reduce){.kbh-footer__toggle i{transition:none}}
