/* Shared site header: catalog mega-menu and floating mini-cart. */
.vf-header-cart-shell { position: fixed; z-index: 100060; right: 95px; bottom: 25px; width: 54px; height: 54px; color: #17213d; }
.vf-header-cart__toggle { position: relative; display: grid; width: 54px; height: 54px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #4b5eaa; color: #fff; box-shadow: 0 7px 24px rgba(27, 45, 99, .28); font: inherit; cursor: pointer; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.vf-header-cart__toggle:hover, .vf-header-cart__toggle:focus-visible { background: #315cc9; outline: 3px solid rgba(75, 94, 170, .2); box-shadow: 0 10px 28px rgba(27, 45, 99, .34); transform: translateY(-2px); }
.vf-header-cart__icon { display: grid; width: 25px; height: 25px; place-items: center; }
.vf-header-cart__icon svg { width: 25px; height: 25px; }
.vf-header-cart__label, .vf-header-cart__total { display: none; }
.vf-header-cart__count { position: absolute; top: -5px; right: -5px; display: grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: #ff6b35; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }
.vf-header-cart__backdrop { position: fixed; z-index: 100070; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(12, 22, 47, .48); cursor: default; }
.vf-header-cart__backdrop[hidden], .vf-header-mini-cart[hidden] { display: none !important; }
.vf-header-mini-cart { position: fixed; z-index: 100071; top: 0; right: 0; bottom: 0; display: flex; width: min(440px, 100vw); height: 100dvh; padding: 22px; flex-direction: column; border: 0; border-left: 1px solid #e1e7f1; background: #fff; box-shadow: -22px 0 60px rgba(19, 34, 72, .22); box-sizing: border-box; }
.vf-header-mini-cart__heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #17213d; font-size: 20px; }
.vf-header-mini-cart__close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f3f6fc; color: #17213d; font-size: 28px; line-height: 1; cursor: pointer; }
.vf-header-mini-cart .widget_shopping_cart_content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
.vf-header-mini-cart .woocommerce-mini-cart { display: grid; min-height: 0; margin: 0; padding: 0; gap: 0; overflow: auto; list-style: none; scrollbar-width: thin; flex: 1 1 auto; align-content: start; }
.vf-header-mini-cart .woocommerce-mini-cart-item { position: relative; display: grid; min-height: 70px; margin: 0; padding: 10px 28px 10px 0; grid-template-columns: 54px minmax(0, 1fr); column-gap: 12px; align-items: start; border-bottom: 1px solid #edf0f5; color: #17213d; font-size: 13px; line-height: 1.35; }
.vf-header-mini-cart .woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: #17213d; font-weight: 700; }
.vf-header-mini-cart .woocommerce-mini-cart-item img { position: static; grid-column: 1; grid-row: 1 / 5; width: 54px; height: 54px; margin: 0; border-radius: 8px; object-fit: contain; }
.vf-header-mini-cart .remove_from_cart_button { position: absolute; top: 8px; right: 1px; color: #a44; font-size: 20px; text-decoration: none; }
.vf-header-mini-cart .variation, .vf-header-mini-cart .quantity { grid-column: 2; margin: 5px 0 0; }
.vf-header-mini-cart .variation { display: grid; min-width: 0; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 2px 6px; color: #66728c; }
.vf-header-mini-cart .woocommerce-mini-cart-item > .variation { margin-top: 8px; padding: 9px 10px; border-radius: 9px; background: #f5f8fd; }
.vf-header-mini-cart .woocommerce-mini-cart-item > .variation dt { color: #344363; font-weight: 800; }
.vf-header-mini-cart .variation dt, .vf-header-mini-cart .variation dd, .vf-header-mini-cart .variation p { min-width: 0; margin: 0; padding: 0; float: none; overflow-wrap: anywhere; }
.vf-header-mini-cart .quantity { display: block; margin-top: 5px; color: #74809a; font-size: 12px; }
.vf-header-mini-cart__heading + .widget_shopping_cart_content > .woocommerce-mini-cart__empty-message { margin: auto 0; color: #74809a; text-align: center; }
.vf-header-mini-cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 14px 0; color: #17213d; }
.vf-header-mini-cart .woocommerce-mini-cart__buttons { display: grid; margin: 0; gap: 9px; grid-template-columns: 1fr 1fr; }
.vf-header-mini-cart .woocommerce-mini-cart__buttons .button { display: inline-flex; min-height: 46px; padding: 10px 13px; align-items: center; justify-content: center; border-radius: 10px; background: #4b5eaa; color: #fff; font-size: 13px; font-weight: 750; text-align: center; text-decoration: none; }
.vf-header-mini-cart .woocommerce-mini-cart__buttons .checkout { background: #315cc9; }
body.vf-cart-drawer-open { overflow: hidden; }
body.woocommerce-cart .vf-header-cart-shell, body.woocommerce-checkout .vf-header-cart-shell { position: absolute; }

@media (min-width: 1200px) {
    .header-main #mobile-menu > ul:has(> .vf-catalog-menu) > li { margin-right: 12px; }
    .header-main #mobile-menu > ul:has(> .vf-catalog-menu) > li:last-child { margin-right: 0; }
    .header-main #mobile-menu .vf-catalog-menu > .vf-catalog-mega, .header-section #primary-menu .vf-catalog-menu > .vf-catalog-mega { right: max(0px, calc(50% - 840px)); bottom: auto; left: max(0px, calc(50% - 840px)); width: auto; max-width: none; padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .vf-catalog-mega__layout { display: grid; width: 100%; min-height: 430px; max-height: calc(100dvh - 150px); margin: 0; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden; border: 1px solid #e1e7f1; border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgba(28, 43, 82, .12); }
    .vf-catalog-mega__roots { padding: 12px; overflow-y: auto; border-right: 1px solid #e7ebf3; background: #f7f9fd; scrollbar-width: thin; }
    .vf-catalog-mega__all, .vf-catalog-mega__root { min-height: 39px; }
    .vf-catalog-mega__all { display: flex !important; align-items: center; padding: 8px 10px !important; border-radius: 9px; color: var(--vf-primary, #4b5eaa) !important; font-size: 14px !important; font-weight: 800 !important; }
    .vf-catalog-mega__root { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; border-radius: 9px; }
    .vf-catalog-mega__root > a { display: flex !important; min-width: 0; min-height: 39px; align-items: center; padding: 7px 6px 7px 10px !important; color: #334260 !important; font-size: 13px !important; font-weight: 650 !important; line-height: 1.25 !important; white-space: normal !important; }
    .vf-catalog-mega__root > button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #75809a; cursor: pointer; }
    .vf-catalog-mega__root:is(:hover, :focus-within, .is-active), .vf-catalog-mega__all:is(:hover, :focus-visible) { background: #fff; box-shadow: 0 2px 10px rgba(34, 50, 92, .07); }
    .vf-catalog-mega__root:is(:hover, :focus-within, .is-active) > a, .vf-catalog-mega__root:is(:hover, :focus-within, .is-active) > button { color: var(--vf-primary, #4b5eaa) !important; }
    .vf-catalog-mega__panels { min-width: 0; padding: 20px 24px; overflow-y: auto; scrollbar-width: thin; }
    .vf-catalog-mega__panel[hidden] { display: none !important; }
    .vf-catalog-mega__panel-heading { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid #e7ebf3; }
    .vf-catalog-mega__panel-heading strong { color: #17213d; font-size: 20px; }
    .vf-catalog-mega__panel-heading a { color: var(--vf-primary, #4b5eaa) !important; font-size: 13px !important; font-weight: 750 !important; white-space: nowrap; }
    .vf-catalog-mega__second { display: grid !important; margin: 0 !important; padding: 0 !important; gap: 18px 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
    .vf-catalog-mega__second > li { min-width: 0; }
    .vf-catalog-mega__second > li > a { display: block !important; padding: 0 0 6px !important; color: #263657 !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.3 !important; white-space: normal !important; }
    .vf-catalog-mega__second > li.is-active > a, .vf-catalog-mega__second a[aria-current="page"] { color: var(--vf-primary, #4b5eaa) !important; }
    .vf-catalog-mega__second ul { display: grid !important; margin: 0 !important; padding: 0 !important; gap: 3px; list-style: none; }
    .vf-catalog-mega__second ul a { display: block !important; padding: 2px 0 !important; color: #68748c !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.35 !important; white-space: normal !important; }
    .vf-catalog-mega__second a:is(:hover, :focus-visible) { color: var(--vf-primary, #4b5eaa) !important; }
}

@media (max-width: 1199px) {
    .vf-catalog-menu .vf-catalog-mega__layout { display: block; }
    .vf-catalog-menu .vf-catalog-mega__roots { display: grid; gap: 2px; }
    .vf-catalog-menu .vf-catalog-mega__all { display: block; padding: 10px 14px; color: #4b5eaa; font-weight: 800; }
    .vf-catalog-menu .vf-catalog-mega__root { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; border-top: 1px solid #edf0f5; }
    .vf-catalog-menu .vf-catalog-mega__root > a { padding: 10px 14px !important; white-space: normal !important; }
    .vf-catalog-menu .vf-catalog-mega__root > button { width: 46px; height: 42px; padding: 0; border: 0; background: transparent; color: #4b5eaa; font-size: 20px; }
    .vf-catalog-menu .vf-catalog-mega__root.is-active > a { color: #4b5eaa !important; font-weight: 800 !important; }
    .vf-catalog-menu .vf-catalog-mega__panels { padding: 0 14px 12px; }
    .vf-catalog-menu .vf-catalog-mega__panel { padding: 12px; border-radius: 10px; background: #f7f9fd; }
    .vf-catalog-menu .vf-catalog-mega__panel[hidden] { display: none !important; }
    .vf-catalog-menu .vf-catalog-mega__panel-heading { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
    .vf-catalog-menu .vf-catalog-mega__panel-heading a { color: #4b5eaa !important; font-size: 12px !important; }
    .vf-catalog-menu .vf-catalog-mega__second, .vf-catalog-menu .vf-catalog-mega__second ul { display: grid !important; margin: 0 !important; padding: 0 !important; gap: 3px; list-style: none; }
    .vf-catalog-menu .vf-catalog-mega__second > li { padding: 6px 0; }
    .vf-catalog-menu .vf-catalog-mega__second > li > a { font-weight: 750 !important; }
    .vf-catalog-menu .vf-catalog-mega__second ul { padding: 5px 0 0 14px !important; }
}

@media (max-width: 599px) {
    .vf-header-mini-cart { width: min(400px, 100vw); padding: 18px; }
    .vf-header-mini-cart .woocommerce-mini-cart__buttons { grid-template-columns: 1fr; }
}
@media (max-width: 575px) { .vf-header-cart-shell { right: 91px; bottom: 25px; } }
@media (max-width: 420px) { .vf-header-mini-cart .variation { grid-template-columns: 1fr; } }
