/* Hierarchical navigation, intentionally isolated from the legacy dropdowns. */
.site-header--desktop .nav_header { position: relative; overflow: visible; }
.shop-category-menu { position: static; list-style: none; display: flex; align-self: stretch; align-items: stretch; }
.shop-category-menu__trigger { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 18px 22px; min-height: 54px; }
.shop-category-menu__trigger > .fa-chevron-down { font-size: 10px; transition: transform .18s; }
.shop-category-menu.is-open .shop-category-menu__trigger > .fa-chevron-down { transform: rotate(180deg); }
.shop-category-menu__trigger:focus-visible, .category-mega a:focus-visible, .shop-mobile-categories summary:focus-visible, .shop-category-tree a:focus-visible { outline: 3px solid var(--primary-color, #ef394e); outline-offset: -3px; border-radius: 5px; }
.category-mega { display: none; position: absolute; top: 100%; right: 20px; width: min(1240px, calc(100% - 40px)); grid-template-columns: 250px minmax(0, 1fr); background: #fff; color: #25313e; border: 1px solid #e7ebee; border-radius: 0 0 18px 18px; box-shadow: 0 22px 45px #14202f25; z-index: 1100; text-align: right; overflow: hidden; }
.shop-category-menu.is-open .category-mega { display: grid; }
.category-mega [hidden] { display: none !important; }
.category-mega__roots { max-height: min(70vh, 650px); overflow-y: auto; overscroll-behavior: contain; background: #f6f8fa; border-left: 1px solid #e7ebee; padding: 8px; }
.category-mega .category-mega__root { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 58px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #344050; text-decoration: none; border: 0; transition: background .15s, color .15s; }
.category-mega__root img { flex: 0 0 34px; width: 34px; height: 34px; padding: 3px; border: 1px solid #e7ebee; border-radius: 8px; background: #fff; object-fit: contain; }
.category-mega__root > i:first-child { width: 28px; font-size: 19px; text-align: center; }
.category-mega__root span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.category-mega__root > .fa-chevron-left { font-size: 11px; }
.category-mega .category-mega__root.is-active { background: #fff; color: #25313e; box-shadow: inset -3px 0 var(--primary-color, #ef394e); }
.category-mega .category-mega__root:hover { background: #fff; }
.category-mega__panels { min-width: 0; max-height: min(70vh, 650px); overflow-y: auto; overscroll-behavior: contain; }
.category-mega__panel { padding: 24px; }
.category-mega__body { display: grid; align-items: start; min-width: 0; gap: 24px; }
.category-mega__body--with-image { grid-template-columns: minmax(0, 1fr) minmax(180px, 32%); }
.category-mega__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 22px 20px; min-width: 0; }
.category-mega__group { min-width: 0; padding-top: 2px; }
.category-mega .category-mega__group-title { display: flex; align-items: baseline; gap: 8px; border-right: 3px solid var(--primary-color, #ef394e); padding: 3px 10px 3px 0; font-size: 14px; font-weight: 800; color: #25313e; text-decoration: none; line-height: 1.8; }
.category-mega ul.category-mega__links { display: block; list-style: none; margin: 9px 0 0; padding: 0; position: static; width: auto; background: transparent; box-shadow: none; }
.category-mega__links li { display: block; float: none; }
.category-mega .category-mega__links a { display: block; color: #697381; font-size: 13px; font-weight: 400; padding: 6px 8px; border-radius: 6px; line-height: 1.9; overflow-wrap: anywhere; text-decoration: none; }
.category-mega .category-mega__links a:hover, .category-mega .category-mega__group-title:hover { color: var(--primary-color, #ef394e); background: #f6f8fa; }
.category-mega .category-mega__all-link { display: inline-flex; align-items: center; justify-self: start; gap: 8px; grid-column: 1 / -1; min-height: 28px; padding: 4px 0; border: 0; border-radius: 4px; color: var(--primary-color, #ef394e); font-size: 12px; text-decoration: none; }
.category-mega .category-mega__all-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.category-mega__links .category-mega__links { border-right: 1px solid #e7ebee; padding-right: 12px !important; margin-top: 0 !important; }
.category-mega .category-mega__feature { display: flex; flex-direction: column; gap: 9px; justify-content: center; align-items: center; align-self: start; padding: 12px; border: 1px solid #e7ebee; border-radius: 12px; background: #f5f7f9; color: #25313e; text-align: center; text-decoration: none; }
.category-mega__feature img { width: 100%; height: 180px; object-fit: contain; border-radius: 10px; }
.category-mega__feature span { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.category-mega__feature small { color: var(--primary-color, #ef394e); }
.category-mega__empty { padding: 22px; color: #697381; }
.category-mega__fallback { grid-column: 1 / -1; padding: 16px; }
.category-mega__fallback a { color: #25313e; }
.shop-mobile-categories { width: 100%; }
.shop-mobile-categories summary { cursor: pointer; padding: 13px 10px; font-weight: 700; line-height: 1.8; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-mobile-categories summary::-webkit-details-marker { display: none; }
.shop-mobile-categories summary::after { content: '+'; font: 20px sans-serif; color: var(--primary-color, #ef394e); }
.shop-mobile-categories details[open] > summary::after { content: '−'; }
.shop-mobile-categories .shop-mobile-categories__body { max-height: 65vh; overflow-y: auto; padding-bottom: 10px; }
.shop-mobile-categories ul.shop-category-tree { display: block !important; position: static !important; list-style: none; margin: 0 !important; padding: 0 !important; width: 100%; height: auto; box-shadow: none; background: transparent; visibility: visible; opacity: 1; }
.shop-mobile-categories .shop-category-tree li { display: block; width: 100%; border: 0; float: none; }
.shop-mobile-categories .shop-category-tree a { display: block; padding: 11px 10px; line-height: 1.8; color: #344050; text-decoration: none; overflow-wrap: anywhere; }
.shop-mobile-categories .shop-category-tree__branch { margin-right: 12px; padding-right: 12px; border-right: 1px solid #e3e7eb; }
.shop-mobile-categories a.shop-category-tree__all { color: var(--primary-color, #ef394e); font-size: 12px; font-weight: 700; }
@media (min-width: 1078px) { .shop-category-menu:not(.is-enhanced):hover .category-mega { display: grid; } }
@media (max-width: 1200px) {
    .category-mega { grid-template-columns: 220px minmax(0, 1fr); }
    .category-mega__panel { padding: 18px; }
    .category-mega__body--with-image { grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; }
    .category-mega__feature img { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .shop-category-menu *, .category-mega * { transition: none !important; } }
