/* Text-only category navigation, isolated from the legacy dropdown styles. */
.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; flex: 0 0 auto; }
.shop-category-menu__trigger { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 9px; background: transparent; color: #334155; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 12px 16px; min-height: 46px; transition: background-color .18s; }
.shop-category-menu__trigger > .fa-chevron-down { font-size: 9px; color: #7c8796; 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: 2px solid var(--primary-color, #ef394e); outline-offset: -2px; border-radius: 7px; }
.category-mega { display: none; position: absolute; top: 100%; right: max(20px, calc((100% - 1400px) / 2)); width: min(1040px, calc(100% - 40px)); grid-template-columns: 220px minmax(0, 1fr); background: #fff; color: #334155; border: 1px solid #e5eaf0; border-radius: 14px; box-shadow: 0 16px 40px rgba(20, 32, 47, .12); 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(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; background: #fafbfd; padding: 8px; border-left: 1px solid #edf0f4; scrollbar-width: thin; }
.category-mega .category-mega__root { display: flex; align-items: center; gap: 10px; padding: 11px 12px; min-height: 44px; margin-bottom: 3px; font-size: 12px; font-weight: 600; line-height: 1.8; color: #475569; text-decoration: none; border: 0; border-right: 3px solid transparent; border-radius: 8px; transition: background-color .15s, border-color .15s; }
.category-mega__root span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.category-mega__root > .fa-chevron-left { font-size: 9px; color: #94a3b8; }
.category-mega .category-mega__root.is-active { background: #eef2f6; background: color-mix(in srgb, var(--primary-color, #ef394e) 7%, #fff); border-right-color: var(--primary-color, #ef394e); color: #25313e; }
.category-mega__panels { min-width: 0; max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.category-mega__panel { padding: 20px; }
.category-mega__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 13px; margin-bottom: 18px; border-bottom: 1px solid #edf0f4; }
.category-mega__heading strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.category-mega .category-mega__heading a { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 11px; color: var(--primary-color, #ef394e); text-decoration: none; }
.category-mega__body { min-width: 0; }
.category-mega__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 22px 20px; min-width: 0; }
.category-mega__group { min-width: 0; }
.category-mega .category-mega__group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 0 8px; border-bottom: 1px solid #edf0f4; font-size: 12px; font-weight: 700; color: #334155; text-decoration: none; line-height: 1.9; overflow-wrap: anywhere; }
.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: #64748b; font-size: 12px; font-weight: 400; padding: 5px 0; 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); }
.category-mega__links .category-mega__links { border-right: 1px solid #e7ebee; padding-right: 12px !important; margin-top: 0 !important; }
.category-mega__empty { grid-column: 1 / -1; padding: 8px 0; color: #64748b; font-size: 12px; line-height: 1.9; }
.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: 12px 10px; font-size: 13px; font-weight: 600; line-height: 1.8; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; }
.shop-mobile-categories summary::-webkit-details-marker { display: none; }
.shop-mobile-categories summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 7px; background: #f1f4f7; font: 17px sans-serif; color: #64748b; }
.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: 200px minmax(0, 1fr); } .category-mega__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .shop-category-menu *, .category-mega * { transition: none !important; } }
.shop-category-menu__trigger:hover, .shop-category-menu.is-open .shop-category-menu__trigger { background: #f1f4f7; }
.category-mega .category-mega__root:hover:not(.is-active) { background: #f0f3f6; color: #25313e; }
.category-mega__group-title i { color: #94a3b8; font-size: 10px; }
.category-mega__empty p { margin: 0 0 10px; }
.category-mega .category-mega__empty a { color: var(--primary-color, #ef394e); text-decoration: none; font-weight: 600; }
.shop-mobile-categories summary:hover, .shop-mobile-categories .shop-category-tree a:hover { background: #f7f9fb; }
