/* Compact category navigation in the store header. */
header .store-header {
  display: grid;
  grid-template-columns: 160px auto minmax(180px, 1fr) 190px;
  gap: 20px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 20px;
}
header .store-header > * { min-width: 0; }
header .store-header #logo { margin: 0; text-align: left; }
header .store-header #logo img { width: auto; max-width: 160px; max-height: 44px; }
header .store-header #logo h1 { margin: 0; font-size: 24px; }
header .store-header .header-search form { margin-bottom: 0 !important; }
header .store-header .header-search .form-control,
header .store-header .header-search .btn { height: 44px; }
header .store-header .header-search .form-control { border-radius: 12px 0 0 12px; font-size: 14px; }
header .store-header .header-search .btn { border-radius: 0 12px 12px 0; }
header .store-header #cart { margin: 0; }
header .store-header #cart > .dropdown > button { min-height: 44px; border-radius: 12px; }
.catalog-dropdown { position: relative; color: #18221f; z-index: 1050; }
.catalog-trigger {
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 44px; padding: 10px 20px; cursor: pointer;
  border: 1px solid #dfe4dd; border-radius: 12px; background: #fff;
  font-size: 14px; line-height: 22px; white-space: nowrap;
}
.catalog-dropdown summary::-webkit-details-marker { display: none; }
.catalog-trigger i, .catalog-branch summary i { font-size: 10px; transition: transform .15s ease; }
.catalog-dropdown[open] > .catalog-trigger i,
.catalog-branch[open] > summary i { transform: rotate(180deg); }
.catalog-trigger:hover { background: #f8faf7; }
.catalog-dropdown summary:focus-visible, .catalog-panel a:focus-visible {
  outline: 2px solid #229ac8; outline-offset: 3px;
}
.catalog-panel {
  position: absolute; top: calc(100% + 10px); left: 0; width: 240px;
  max-width: calc(100vw - 32px); max-height: min(520px, calc(100dvh - 130px));
  overflow-y: auto; padding: 10px 0; background: #fff;
  border: 1px solid #e2e6df; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(24, 34, 31, .12);
}
.catalog-list, .catalog-children { list-style: none; padding: 0; margin: 0; }
.catalog-link, .catalog-branch > summary, .catalog-children a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; color: #18221f; text-decoration: none;
  font-size: 14px; line-height: 20px; cursor: pointer; list-style: none;
}
.catalog-link:hover, .catalog-branch > summary:hover, .catalog-children a:hover {
  color: #18221f; background: #f1f5ee;
}
.catalog-children { padding: 0 0 6px 12px; background: #f8faf7; }
.catalog-children a { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 991.98px) and (min-width: 768px) {
  header .store-header { grid-template-columns: 125px auto minmax(150px, 1fr) 150px; gap: 12px; }
  header .store-header #logo img { max-width: 125px; }
  .catalog-trigger { padding-left: 14px; padding-right: 14px; gap: 12px; }
  header .store-header #cart > .dropdown > button { font-size: 12px; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 767.98px) {
  header .store-header { grid-template-columns: minmax(100px, 1fr) auto 44px; gap: 12px; }
  header .store-header #logo img { max-width: min(130px, 100%); }
  header .store-header .header-search { grid-row: 2; grid-column: 1 / -1; }
  header .store-header #cart { grid-row: 1; grid-column: 3; }
  header .store-header #cart > .dropdown > button { width: 44px; padding: 0; font-size: 0; }
  header .store-header #cart > .dropdown > button > i { font-size: 16px; }
  header .store-header #cart > .dropdown > button::after { display: none; }
  header .store-header #cart .dropdown-menu { min-width: min(360px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
  .catalog-trigger { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .catalog-panel { left: auto; right: 0; width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-trigger i, .catalog-branch summary i { transition: none; }
}
@media (max-width: 399.98px) {
  .catalog-panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; max-width: none; margin-top: 10px; }
}


/* Header account, comparison and cart icons. */
header .store-header{grid-template-columns:160px auto minmax(120px,1fr) 156px}
.header-actions{display:flex;align-items:center;gap:8px;background:#fff}
.header-icon,header .store-header #cart>.dropdown>button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:8px;border:0;border-radius:8px;background:#fff;color:#263329;text-decoration:none;cursor:pointer;font-size:14px}
.header-icon:hover,header .store-header #cart>.dropdown>button:hover{background:#eef4df;color:#263329}
.header-icon:focus-visible{outline:2px solid #6d8b3d;outline-offset:2px}
.header-cart-count{position:absolute;top:0;right:0;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:#00a650;color:#fff;font-size:11px;line-height:18px;text-align:center}
header .store-header #cart>.dropdown>button::after{display:none}
@media(max-width:991.98px) and (min-width:768px){header .store-header{grid-template-columns:125px auto minmax(120px,1fr) 156px;gap:12px}}
@media(max-width:767.98px){header .store-header{grid-template-columns:minmax(100px,1fr) auto;gap:12px}.header-actions{grid-row:2;grid-column:2}.header-search{grid-row:2!important;grid-column:1!important}.header-actions #cart{grid-row:auto;grid-column:auto}}
@media(max-width:399.98px){header .store-header{grid-template-columns:minmax(100px,1fr) auto}.header-search{grid-row:3!important;grid-column:1 / -1!important}.header-actions{grid-row:2;grid-column:1 / -1;justify-content:flex-end}}

header .store-header{grid-template-columns:280px auto minmax(120px,1fr) 156px}
header .store-header #logo img{max-width:280px;max-height:48px;width:100%}
@media(max-width:991.98px) and (min-width:768px){header .store-header{grid-template-columns:210px auto minmax(100px,1fr) 156px;gap:12px}}
@media(max-width:767.98px){header .store-header{grid-template-columns:minmax(140px,1fr) auto;gap:12px}header .store-header #logo img{max-width:280px;max-height:48px}}
