/* Reference storefront proportions, with native WordPress shopping controls. */
:root { --km-paper:#f1f1f2; --km-red:#e60027; --km-red-dark:#cc0023; --km-ink:#1a1a1a; }
/* Style only the viewport scrollbar; inner category panels keep native scrolling. */
html { scrollbar-width:thin; scrollbar-color:#9696a0 var(--km-paper); scrollbar-gutter:stable; }
body { scrollbar-color:auto; }
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-width:auto; scrollbar-color:auto; }
  html::-webkit-scrollbar { width:8px; height:8px; }
  html::-webkit-scrollbar-track,html::-webkit-scrollbar-corner { background:var(--km-paper); }
  html::-webkit-scrollbar-thumb { background:#9696a0; border:1px solid var(--km-paper); border-radius:999px; }
  html::-webkit-scrollbar-thumb:hover { background:#747480; }
  html::-webkit-scrollbar-button { display:none; }
}
body { font-family:var(--km-font-ui); font-size:14px; line-height:1.57143; overflow-x:clip; }
/* Pointer focus never adds a ring; keyboard feedback does not change layout. */
:focus,:focus-visible,:focus-within { outline:none!important; outline-offset:0!important; }
input:focus,select:focus,textarea:focus,button:focus,.widget_product_search form:focus-within { box-shadow:none!important; }
html.km-keyboard-navigation :is(a,button,summary,input,select,textarea,[tabindex],[contenteditable]):focus { box-shadow:0 0 0 2px #fff,0 0 0 4px var(--km-red)!important; }
.col-full { max-width:1404px; box-sizing:border-box; }
.storefront-breadcrumb,.woocommerce-breadcrumb { display:none; }
.site-header,.storefront-primary-navigation { background:#050505; }
.home { --km-home-top-gap:20px; }
.home .site-content { padding-top:0; }
.home .site-header { box-shadow:none; }
/* Reserve actual space after navigation; never paint over the first row. */
.home .site-header::after { content:""; display:block; height:var(--km-home-top-gap); background:var(--km-paper); }
.storefront-primary-navigation { border-top:0; }
.site-header > .col-full { min-height:72px; grid-template-columns:182px minmax(240px,485px) minmax(0,1fr); gap:0; }
.site-search .widget_product_search .search-field { height:40px; border-radius:5px; font-size:14px; padding:8px 60px 8px 20px; }
.site-search .widget_product_search form { margin-bottom:0; }
.site-search .widget_product_search form::before { display:none; }
.site-search .widget_product_search form button[type=submit] { top:0!important; right:0!important; height:40px!important; width:44px!important; font-size:0; border-radius:0 5px 5px 0; }
.site-search .widget_product_search form button[type=submit]::after { content:""; display:block; width:26px; height:26px; margin:auto; background:url('assets/reference-ui/search.svg') center / contain no-repeat; filter:brightness(0) invert(1); }
.km-header-tools { gap:8px; padding-left:25px; }
.km-header-tools > a { flex-direction:row; gap:6px; color:#fff; font-size:14px; line-height:20px; }
.km-header-tools .km-icon { width:18px; height:18px; }
.km-header-locale { margin-left:auto; margin-right:12px; color:#fff; font-size:13px; white-space:nowrap; }
.km-header-locale > span { color:#777; margin:0 5px; }
.km-header-order,.km-header-cart { height:36px; border:1px solid #ffffff66; padding:7px 12px; border-radius:8px; }
.km-header-tools .km-header-cart { color:#fff; }
.km-header-account { justify-content:center; width:35px; height:35px; border-radius:50%; background:#242429; }
.km-account-menu { position:relative; flex:none; margin:0; padding:0; border:0; z-index:115; }
.site-header .km-header-tools .km-header-account { display:flex; align-items:center; justify-content:center; flex:none; margin:0; padding:0; border:0; color:#fff; cursor:pointer; list-style:none; }
.km-header-account::-webkit-details-marker { display:none; }
.site-header .km-account-avatar { display:block; width:100%; height:100%; border-radius:50%; }
.km-account-menu[open] > .km-header-account,.site-header .km-header-account:hover { background:#38383e; }
.site-header .km-account-panel { position:absolute; top:calc(100% + 12px); left:50%; width:230px; max-width:calc(100vw - 32px); margin:0; padding:10px; border:1px solid #ededf0; border-radius:9px; background:#fff; box-shadow:0 6px 24px #0002; transform:translateX(calc(-50% + var(--km-account-shift,0px))); text-align:left; }
.site-header .km-account-panel::before { content:""; position:absolute; top:-13px; right:0; left:0; height:13px; }
.km-account-menu:not([open]) > .km-account-panel { display:none; }
.site-header .km-account-panel > a { display:flex; flex-direction:row; justify-content:flex-start; gap:12px; padding:11px 12px; border-radius:6px; color:#222; font-size:14px; font-weight:400; line-height:22px; text-decoration:none; }
.site-header .km-account-panel > a:hover { background:#fff0f3; color:var(--km-red); }
.site-header .km-account-panel > a .km-icon { flex:none; width:19px; height:19px; }
.storefront-primary-navigation > .col-full { min-height:38px; }
.km-mall-services > .col-full { padding-top:16px; padding-bottom:16px; }
.km-mall-services .col-full > div { justify-content:flex-start; }
.km-mall-services .km-icon { color:#33343a; width:35px; height:35px; }
.km-mall-services strong { font-size:14px; }
.km-mall-services small { font-size:13px; color:#37373d; }
.km-wide-promo.km-image-promo { display:block; padding:0; min-height:0; height:auto; aspect-ratio:1340/70; margin-bottom:20px; background:#12238a; }
.km-wide-promo.km-image-promo::after { display:none; }
.km-wide-promo.km-image-promo > a { display:block; width:100%; padding:0; border:0; border-radius:0; height:100%; background:none; }
.km-image-promo img { display:block; width:100%; height:100%; margin:0; object-fit:contain; border-radius:0; }
.km-mall-layout { grid-template-columns:240px minmax(0,700fr) minmax(0,335fr); grid-template-rows:auto auto; gap:20px 30px; margin-bottom:44px; }
.km-mall-hero.km-image-promo { aspect-ratio:700/376; }
.km-mini-product.km-image-promo { aspect-ratio:335/178; }
.km-department-sidebar { padding:18px 20px; border:0; border-radius:14px; box-shadow:2px 2px 8px #2b4a811a; }
.km-department-sidebar-catalog .km-department-list { gap:3px; }
.km-department-sidebar-catalog .km-department-list > a { height:46px; flex-shrink:0; gap:8px; padding:12px 16px; font-size:14px; line-height:22px; border-radius:10px; color:#1a1a1a; }
.km-department-icon { position:relative; display:block; flex:0 0 24px; width:24px; height:24px; }
.km-department-icon img { position:absolute; inset:0; display:block; width:24px; height:24px; margin:0; border-radius:0; object-fit:contain; }
.km-department-icon .km-icon-active { visibility:hidden; }
.km-department-list > a.is-active .km-icon-normal { visibility:hidden; }
.km-department-list > a.is-active .km-icon-active { visibility:visible; }
.km-department-list > a > span:not(.km-department-icon) { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-right:10px; }
.km-department-list > a > .km-icon:first-child { width:24px; height:24px; }
.km-department-list > a > .km-icon:last-child { color:inherit; }
.km-mall-side { gap:20px; }
.km-mall-mini { gap:30px; }
.km-mall-hero.km-image-promo,.km-side-promo.km-image-promo,.km-mini-product.km-image-promo { display:block; padding:0; background:#e4eaf6; border-radius:12px; box-shadow:2px 2px 8px #2b4a811a; }
.km-mini-product.km-image-promo::after { display:none; }
.km-mini-product.km-image-promo > img { position:static; width:100%; height:100%; max-width:100%; transform:none; opacity:1; }
@media (min-width:768px) and (max-width:1400px) {
  .site-header > .col-full { grid-template-columns:182px minmax(240px,485px) minmax(0,1fr); }
  .km-header-tools { padding-left:22px; }
  .km-header-locale { display:none; }
  .km-mall-layout { grid-template-columns:240px minmax(0,700fr) minmax(0,335fr); grid-template-rows:auto auto; gap:20px 30px; }
  .km-mall-mini { gap:18px; }
  .km-mall-services small { font-size:11px; }
}
@media (min-width:768px) and (max-width:950px) {
  .site-header > .col-full { grid-template-columns:160px minmax(160px,1fr) auto; }
  .km-header-tools { padding-left:16px; }
  .km-header-order,.km-header-cart { padding:7px; }
  .km-header-tools .km-header-cart > span { display:none; }
  .km-header-tools .km-header-account { display:none; }
  .km-mall-layout { grid-template-columns:180px minmax(0,1fr) 25%; grid-template-rows:auto auto; gap:14px; }
  .km-department-sidebar { padding:14px 12px; }
  .km-department-sidebar-catalog .km-department-list > a { font-size:13px; padding:8px 11px; line-height:22px; }
  .km-department-list > a > .km-icon:first-child { width:20px; height:20px; }
}
@media (max-width:767px) {
  .home { --km-home-top-gap:16px; }
  .site-header > .col-full { grid-template-columns:1fr auto; gap:14px 8px; padding:15px 16px 14px; }
  .km-header-tools { padding-left:0; }
  .km-header-locale,.km-header-tools .km-header-account { display:none; }
  .km-header-tools > a { font-size:11px; padding:6px 8px; }
  .km-header-tools .km-icon { width:16px; height:16px; }
  .site-header .col-full .site-search { grid-column:1/-1; }
  .km-mall-services > .col-full { padding-top:13px; padding-bottom:13px; }
  .km-mall-services strong { font-size:11px; }
  .km-mall-services small { font-size:9px; }
  .km-mall-services .km-icon { width:25px; height:25px; }
  .km-wide-promo.km-image-promo { height:auto; aspect-ratio:1340/100; margin-bottom:16px; border-radius:7px; }
  .km-wide-promo.km-image-promo > a { height:100%; }
  .km-mall-layout { grid-template-columns:1fr; grid-template-rows:auto auto auto auto; gap:14px; margin-bottom:28px; }
  .km-department-sidebar { padding:11px; }
  .km-department-sidebar-catalog .km-department-list { gap:7px; }
  .km-department-sidebar-catalog .km-department-list > a { height:36px; font-size:11px; line-height:20px; padding:7px 10px; border-radius:6px; }
  .km-department-icon,.km-department-icon img { width:18px; height:18px; flex-basis:18px; }
  .km-department-list > a > span:not(.km-department-icon) { margin-right:0; }
  .km-department-list > a > .km-icon:first-child { width:16px; height:16px; }
  .km-mall-hero.km-image-promo { aspect-ratio:700/376; }
  .km-mall-side { grid-template-columns:1fr 1fr; grid-template-rows:auto; gap:12px; }
  .km-side-promo.km-image-promo { aspect-ratio:335/178; }
  .km-mall-mini { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .km-mini-product.km-image-promo { min-height:0; aspect-ratio:335/178; border-radius:7px; }
}
@media (min-width:1200px) { .km-header-locale { display:inline; } }
@media (min-width:768px) {
  .site-header { position:sticky; top:var(--wp-admin--admin-bar--height,0px); z-index:100; }
}
@media (min-width:951px) and (max-width:1199px) {
  .site-header > .col-full { grid-template-columns:170px minmax(200px,1fr) auto; }
  .km-header-tools { padding-left:16px; }
  .km-mall-layout { grid-template-columns:220px minmax(0,700fr) minmax(0,335fr); gap:18px; }
  .km-department-sidebar { padding-left:14px; padding-right:14px; }
}
