/* The product navigation and category switcher share native category URLs. */
.woocommerce-active .site-header .storefront-primary-navigation .main-navigation { width:100%; min-width:0; max-width:100%; float:none; margin-right:0; }
@media (min-width:768px) {
  .main-navigation .primary-navigation { overflow-x:auto; scrollbar-width:none; }
  .main-navigation .primary-navigation::-webkit-scrollbar { display:none; }
  .main-navigation .primary-navigation > ul.menu { display:flex; flex-wrap:nowrap; align-items:center; width:max-content; min-width:100%; }
  .main-navigation .primary-navigation > ul.menu > li { float:none; flex:0 0 auto; }
  .km-mall-layout.has-selected-department { height:var(--km-canvas-height,auto); grid-template-rows:minmax(0,1fr) 0; row-gap:0; }
}
.main-navigation ul.menu > li > a { height:34px; padding:0 20px; font-size:14px; font-weight:700; line-height:34px; border-radius:8px 8px 0 0; }
.main-navigation ul.menu > li:first-child > a { padding:0 20px; }
.main-navigation ul.menu > li.current-menu-item > a { background:var(--km-red); color:#fff; }
.main-navigation .primary-navigation > ul.menu { height:38px; align-items:flex-end; }
.km-mall-layout [hidden] { display:none!important; }
.km-department-list > a.km-department-recommend:not(.is-active) { background:transparent; color:#43434b; font-weight:400; }
.km-department-list > a.km-department-recommend:not(.is-active) > .km-icon { color:var(--km-red); }
.km-department-sidebar .km-department-list > a.is-active { background:var(--km-red); color:#fff; font-weight:700; }
.km-department-sidebar .km-department-list > a:not(.is-active):hover { background:#e600271a; color:#1a1a1a; }
.km-department-sidebar .km-department-list > a.is-active > .km-icon,
.km-department-sidebar .km-department-list > a.is-active:hover > .km-icon { color:#fff; }
.km-department-panel { grid-column:2 / -1; grid-row:1 / span 2; min-width:0; min-height:0; overflow-y:auto; }
.km-department-panel:not([hidden]) { animation:km-category-reveal .12s ease-out; }
@keyframes km-category-reveal { from { opacity:.7; } to { opacity:1; } }
.km-department-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); max-width:1080px; gap:20px 13px; }
.km-brand-card { display:block; min-width:0; overflow:hidden; border-radius:10px; background:#fff; box-shadow:0 3px 9px #22222e06; color:#fff; }
.km-brand-card-top { display:flex; align-items:center; gap:12px; min-height:116px; padding:18px 17px; background:linear-gradient(120deg,#647385,#344357); }
.km-brand-symbol { display:grid; place-items:center; flex:0 0 auto; width:48px; height:48px; background:#ffffff24; border:1px solid #ffffff30; border-radius:12px; }
.km-brand-symbol .km-icon { width:27px; height:27px; }
.km-brand-card strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.km-brand-tone-1 .km-brand-card-top { background:linear-gradient(120deg,#236baa,#048caa); }
.km-brand-tone-2 .km-brand-card-top { background:linear-gradient(120deg,#45454c,#1c1c21); }
.km-brand-tone-3 .km-brand-card-top { background:linear-gradient(120deg,#bd7955,#a75e3c); }
.km-brand-tone-4 .km-brand-card-top { background:linear-gradient(120deg,#596da4,#373b7c); }
.km-brand-tone-5 .km-brand-card-top { background:linear-gradient(120deg,#338c7c,#176658); }
.km-brand-card-bottom { display:flex; align-items:center; justify-content:space-between; padding:9px 15px; font-size:11px; color:#8b8b95; }
.km-brand-card-bottom .km-icon { width:15px; height:15px; }
.km-brand-card:hover .km-brand-card-bottom { color:var(--km-red); }
.km-department-more { display:flex; align-items:center; justify-content:center; gap:7px; padding:12px; font-size:12px; color:#7e7e88; }
.km-department-more .km-icon { width:15px; height:15px; }
.km-category-directory { margin:0 0 32px; }
.km-category-directory > h2 { font-size:20px; margin-bottom:18px; }
.tax-product_cat .storefront-breadcrumb { margin:0; padding:16px 0; }
.tax-product_cat .woocommerce-breadcrumb { margin:0; padding:0; color:#1a1a1a; font-size:14px; line-height:22px; }
.tax-product_cat .woocommerce-breadcrumb a { color:inherit; text-decoration:none; }
.tax-product_cat .woocommerce-breadcrumb a:first-of-type::before { display:none; }
.tax-product_cat .site-content { padding-top:24px; }
.km-category-layout { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; gap:30px; margin:4px 0 44px; }
.km-category-layout .km-category-sidebar { grid-column:1; grid-row:1; }
.km-category-layout .km-category-directory { min-width:0; margin:0; }
.km-category-layout .woocommerce-pagination { margin-top:32px; }
@media (min-width:768px) and (max-width:1399px) {
  .km-department-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:806px; }
  .km-brand-card-top { min-height:108px; padding:16px 12px; gap:9px; }
  .km-brand-symbol { width:40px; height:40px; }
  .km-brand-card strong { font-size:12px; }
}
@media (min-width:768px) and (max-width:1100px) {
  .km-department-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:533px; }
  .km-category-layout { grid-template-columns:200px minmax(0,1fr); gap:18px; }
}
@media (max-width:767px) {
  .tax-product_cat .site-content { padding-top:16px; }
  .km-department-sidebar-catalog .km-department-list > a { padding:8px 11px; font-size:11px; }
  .km-mall-layout.has-selected-department { grid-template-rows:auto auto; }
  .km-department-panel { grid-column:1; grid-row:2; overflow:visible; }
  .km-department-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .km-brand-card-top { min-height:102px; padding:14px 11px; gap:9px; }
  .km-brand-card strong { font-size:12px; }
  .km-brand-symbol { width:36px; height:36px; border-radius:9px; }
  .km-brand-symbol .km-icon { width:22px; height:22px; }
  .km-brand-card-bottom { padding:8px 11px; font-size:10px; }
  .km-category-layout { grid-template-columns:1fr; gap:16px; }
  .km-category-layout .km-category-sidebar { grid-row:1; }
}

/* The retained catalog uses product cards instead of promotional artwork. */
.km-mall-layout.km-catalog-only,
.km-mall-layout.km-catalog-only.has-selected-department { grid-template-columns:240px minmax(0,1fr); grid-template-rows:minmax(0,1fr); height:580px; min-height:0; align-items:start; margin-bottom:24px; scroll-margin-top:calc(var(--km-sticky-header-height,150px) + 16px); }
.km-catalog-only .km-department-sidebar { grid-column:1; grid-row:1; max-height:100%; overflow-y:auto; }
.km-catalog-only .km-department-panel { grid-column:2; grid-row:1; height:100%; overflow-y:auto; scrollbar-width:thin; scrollbar-gutter:stable; scrollbar-color:#9696a0 transparent; }
@media (min-width:768px) and (max-width:1100px) {
  .km-mall-layout.km-catalog-only,
  .km-mall-layout.km-catalog-only.has-selected-department { grid-template-columns:200px minmax(0,1fr); }
}
@media (max-width:767px) {
  .km-mall-layout.km-catalog-only,
  .km-mall-layout.km-catalog-only.has-selected-department { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); height:500px; height:clamp(420px,65svh,540px); margin-bottom:20px; scroll-margin-top:16px; }
  .km-catalog-only .km-department-panel { grid-column:1; grid-row:2; }
}
