/* =========================================================
   Header — layout shell
   ========================================================= */

.jag-header {
    position: relative;
    z-index: 1050;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 1px 2px rgba(43, 43, 43, 0.04);
}

.jag-header-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 68px;
    padding: 0 28px;
    gap: 20px;
}

.jag-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 20px;
}

.jag-header-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.jag-header-drawer {
    display: flex;
    flex: 1;
    min-width: 0;
    height: 100%;
}

.jag-header-drawer__scroll {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    gap: 8px;
}

/* =========================================================
   Nav menu
   ========================================================= */

.menu-main {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    height: 100%;
}

.menu-main-list {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-main-list li { display: flex; }

.menu-main-list > li > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 6px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.menu-main-list > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2.5px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.menu-main-list > li > a:hover { color: var(--primary); }
.menu-main-list > li > a:hover::after { transform: scaleX(1); }

.menu-main-list > li.active > a { color: var(--primary); font-weight: 600; }
.menu-main-list > li.active > a::after { transform: scaleX(1); }

.jag-nav-badge-new {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.5;
    transform: translate(50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================================
   Mega menu (Buy / Rent / Sell / Projects)
   ========================================================= */

.jag-mega-trigger { gap: 4px; }

.jag-mega-chev {
    font-size: 9px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.18s ease;
}

.menu-main-list > li > a:hover .jag-mega-chev { color: var(--primary); }

.jag-mega:hover .jag-mega-chev,
.jag-mega:focus-within .jag-mega-chev { transform: rotate(180deg); }

.jag-mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: flex;
    width: 720px;
    max-width: calc(100vw - 56px);
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 18px;
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 80;
}

.jag-mega-panel::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.jag-mega:hover .jag-mega-panel,
.jag-mega:focus-within .jag-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jag-mega-cols {
    display: flex;
    flex: 1;
    gap: 44px;
}

.jag-mega-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
}

.jag-mega-col h5 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.jag-mega-col a {
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.jag-mega-col a:hover { background: var(--on-hover); color: var(--primary); }

.jag-mega-promo {
    width: 220px;
    flex-shrink: 0;
    margin-left: 32px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(155deg, color-mix(in srgb, var(--primary) 9%, var(--white)), color-mix(in srgb, var(--primary) 3%, var(--white)));
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
}

.jag-mega-promo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 18px;
}

.jag-mega-promo h6 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.jag-mega-promo p { margin: 0 0 14px; font-size: 12px; line-height: 1.55; color: var(--text-secondary); }

.jag-mega-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.jag-mega-promo__btn:hover { text-decoration: underline; }

/* =========================================================
   Search box
   ========================================================= */

.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 430px;
    height: 48px;
    margin-left: auto;
    background: color-mix(in srgb, var(--text) 6%, var(--white));
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 5px 5px 5px 6px;
    transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search-box:hover {
    background: color-mix(in srgb, var(--text) 9%, var(--white));
}

.header-search-box:focus-within {
    width: 460px;
    background: var(--white);
    border-color: color-mix(in srgb, var(--text) 14%, transparent);
    box-shadow: 0 1px 2px rgba(20, 20, 24, 0.08), 0 4px 14px -6px rgba(20, 20, 24, 0.18);
}

.header-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    padding: 0 10px 0 12px;
}

.header-search-box input::placeholder { color: var(--text-secondary); }

.header-search-box select {
    flex-shrink: 0;
    align-self: stretch;
    border: none;
    border-radius: 999px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23757575' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    padding: 0 26px 0 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-search-box select:hover { color: var(--primary); }
.header-search-box select:focus { outline: none; }

.header-search-btn {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primarydark, #b10203));
    color: var(--white);
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(213, 0, 1, 0.25);
}

.header-search-btn:hover:not(:disabled) {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(213, 0, 1, 0.35);
}

.header-search-btn:disabled {
    background: color-mix(in srgb, var(--text) 10%, var(--white));
    color: color-mix(in srgb, var(--text) 45%, transparent);
    box-shadow: none;
    cursor: default;
}

.header-search-btn.mlk-loading {
    cursor: default;
    pointer-events: none;
}

.header-search-btn.mlk-loading i {
    visibility: hidden;
}

.header-search-btn.mlk-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: mlk-header-search-spin 0.7s linear infinite;
}

@keyframes mlk-header-search-spin {
    to { transform: rotate(360deg); }
}

.header-search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--outline);
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    z-index: 60;
    overflow: hidden;
}

.header-search-box.active { display: flex; }

.hdr-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease;
}

.hdr-suggest-item:hover { background: var(--on-hover); }

.hdr-suggest-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.hdr-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-background);
    color: var(--text-secondary);
}

.hdr-suggest-info { flex: 1; min-width: 0; }

.hdr-suggest-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-suggest-meta { display: block; font-size: 12px; color: var(--text-secondary); }

.hdr-suggest-price { font-weight: 600; font-size: 13px; color: var(--primary); white-space: nowrap; }

.hdr-suggest-empty { padding: 16px; text-align: center; color: var(--text-secondary); font-size: 13px; }

/* =========================================================
   Right-side actions (auth buttons / user block)
   ========================================================= */

.login-btn,
.login-user {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 16px;
}

.login-btn ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-btn ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.login-btn ul li a.jag-auth-register {
    padding: 0 20px;
    color: var(--white);
    background: var(--primary);
}

.login-btn ul li a.jag-auth-register:hover { background: var(--primarydark); }

.login-btn ul li a.jag-auth-login {
    padding: 0 20px;
    color: var(--text);
    border: 1.5px solid var(--outline);
}

.login-btn ul li a.jag-auth-login:hover { border-color: var(--primary); color: var(--primary); }

.login-user { gap: 12px; }

.login-user > ul { list-style: none; margin: 0; padding: 0; }

.login-user-mr {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.login-user-mr:hover { color: var(--primary); }

/* =========================================================
   User avatar / dropdown menu
   ========================================================= */

.user-details { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.user-btn:hover { border-color: var(--border2); background: var(--on-hover); }

.user-btn i {
    font-size: 11px;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.user-btn i.rotated { transform: rotate(180deg); }

.user-btn span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    max-width: 120px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn span small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-secondary) !important;
}

.user-menu-profile {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.user-menu-profile img { width: 100%; height: 100%; object-fit: cover; }

.user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 300px;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-2xl);
    z-index: 70;
}

.user-menu.visible { display: block; animation: jagUserMenuIn 0.2s ease both; }

@keyframes jagUserMenuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-top: 1px solid var(--light-border);
    border-left: 1px solid var(--light-border);
    transform: rotate(45deg);
}

.menu-header {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--light-border);
}

.user-profile {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.user-profile img { width: 100%; height: 100%; object-fit: cover; }

.rating-nav-menu { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }

.rating-nav-menu h1 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-header button {
    position: absolute;
    right: 0;
    top: 0;
    width: max-content;
    padding: 2px 9px;
    background: color-mix(in srgb, var(--blue) 10%, transparent);
    color: var(--blue);
    border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 700;
}

.rating-stars { display: flex; align-items: center; gap: 5px; }
.rating-nav-menu .rating-stars { margin-bottom: 2px; }
.rating-stars strong { font-size: 12.5px; line-height: 1; }
.rating-container { display: flex; align-items: center; }

.stars {
    display: flex;
    position: relative;
    font-size: 12px;
    color: var(--outline);
    background: linear-gradient(to right, #e8a22e calc(var(--rating) * 20%), var(--outline) calc(var(--rating) * 20%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-stars span { font-size: 11.5px; color: var(--text-secondary); }

.menu-header a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

.menu-header a i { font-size: 13px; color: var(--text-secondary); }

.user-menu-list,
.user-menu-list2 { list-style: none; margin: 0; padding: 0; }

.user-menu-list {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-border);
}

.user-menu-list li a,
.user-menu-list2 li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-menu-list li a:hover,
.user-menu-list2 li a:hover { background: var(--on-hover); color: var(--primary); }

.user-menu-list li a i,
.user-menu-list2 li a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

.user-menu-list li a:hover i,
.user-menu-list2 li a:hover i { color: var(--primary); }

.user-menu-list2 { padding: 10px 0 0; }

.user-menu-list2 .sign-out-btn {
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-list2 .sign-out-btn:hover { background: var(--primarydark); }

.user-menu-list2 .sign-out-btn i { margin-right: 8px; font-size: 15px; color: var(--white); }

/* =========================================================
   Header wishlist widget
   ========================================================= */

.header-wishlist-container-mlk { position: relative; display: flex; }

.header-wishlist-btn-mlk {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--outline);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-wishlist-btn-mlk:hover { background: var(--primary); border-color: var(--primary); }

.header-wishlist-btn-mlk i {
    font-size: 17px;
    color: var(--text);
    transition: color 0.2s ease;
}

.header-wishlist-btn-mlk:hover i { color: var(--white); }

.header-wishlist-count-badge-mlk {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 700;
    transform: scale(0);
    transition: transform 0.25s ease;
}

.header-wishlist-count-badge-mlk.badge-visible-mlk { transform: scale(1); }

.header-wishlist-dropdown-mlk {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 330px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-2xl);
    z-index: 70;
    overflow: hidden;
}

.header-wishlist-dropdown-mlk.dropdown-visible-mlk {
    display: block;
    animation: jagUserMenuIn 0.2s ease both;
}

.header-wishlist-dropdown-mlk::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-top: 1px solid var(--light-border);
    border-left: 1px solid var(--light-border);
    transform: rotate(45deg);
}

.header-wishlist-loading-mlk { padding: 34px 20px; text-align: center; color: var(--text-secondary); }

.header-wishlist-spinner-mlk {
    width: 24px;
    height: 24px;
    border: 3px solid var(--outline);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: jagSpin 0.8s linear infinite;
}

@keyframes jagSpin { to { transform: rotate(360deg); } }

.header-wishlist-loading-mlk span { font-size: 13.5px; font-weight: 500; }

.header-wishlist-header-mlk {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px 12px;
}

.header-wishlist-header-mlk h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text); }

.header-wishlist-total-count-mlk {
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
}

.header-wishlist-properties-mlk { max-height: 280px; overflow-y: auto; }

.header-wishlist-property-item-mlk {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-border);
    transition: background 0.15s ease;
    animation: jagWishlistItemIn 0.35s ease-out;
}

@keyframes jagWishlistItemIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-wishlist-property-item-mlk:hover { background: var(--on-hover); }
.header-wishlist-property-item-mlk:last-child { border-bottom: none; }

.header-wishlist-property-thumbnail-mlk {
    width: 62px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    background: var(--light-background);
}

.header-wishlist-property-thumbnail-mlk img { width: 100%; height: 100%; object-fit: cover; }

.header-wishlist-property-thumbnail-mlk.no-image-mlk {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 17px;
}

.header-wishlist-property-details-mlk { flex: 1; min-width: 0; }

.header-wishlist-property-title-mlk {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-wishlist-property-title-mlk a { color: inherit; text-decoration: none; }
.header-wishlist-property-title-mlk a:hover { color: var(--primary); }

.header-wishlist-property-meta-mlk { display: flex; justify-content: space-between; align-items: center; }

.header-wishlist-property-price-mlk { font-size: 12.5px; font-weight: 700; color: var(--primary); }

.header-wishlist-property-location-mlk {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.header-wishlist-remove-btn-mlk {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: var(--white);
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.header-wishlist-property-item-mlk:hover .header-wishlist-remove-btn-mlk { opacity: 1; }
.header-wishlist-remove-btn-mlk:hover { background: var(--primary); transform: scale(1.1); }
.header-wishlist-remove-btn-mlk.removing { pointer-events: none; opacity: 0.6; }

.header-wishlist-footer-mlk { border-top: 1px solid var(--light-border); background: var(--on-hover); }

.header-wishlist-view-all-btn-mlk {
    display: block;
    padding: 14px 10px;
    text-align: center;
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.header-wishlist-view-all-btn-mlk:hover { background: var(--light-background); }

.header-wishlist-empty-mlk { padding: 40px 22px; text-align: center; }

.header-wishlist-empty-mlk i {
    font-size: 34px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 12px;
}

.header-wishlist-empty-mlk h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.header-wishlist-empty-mlk p { margin: 0 0 16px; font-size: 13px; color: var(--text-secondary); }

.header-wishlist-browse-btn-mlk {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.header-wishlist-browse-btn-mlk:hover { background: var(--primarydark); }

.header-wishlist-content-mlk { transition: opacity 0.3s ease, transform 0.3s ease; }

/* =========================================================
   Hamburger + mobile drawer + overlay
   ========================================================= */

.jag-header-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--outline);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    margin-left: auto;
}

.jag-header-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.jag-header-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jag-header-burger.active span:nth-child(2) { opacity: 0; }
.jag-header-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jag-header-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(15, 15, 15, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.jag-header-overlay.active { opacity: 1; visibility: visible; }

body.jag-drawer-open { overflow: hidden; }

/* =========================================================
   Inactive-account verification banner
   ========================================================= */

.inactive-topbar-alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 44px;
    background: color-mix(in srgb, var(--warning) 12%, var(--white));
    border-bottom: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
    color: var(--warning-dark);
    font-size: 13.5px;
}

.inactive-alert-icon { font-size: 17px; color: var(--warning-dark); }

.inactive-alert-message {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.inactive-resend-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.inactive-resend-link:hover { text-decoration: underline; }
.inactive-resend-link.disabled { pointer-events: none; opacity: 0.65; }

.inactive-alert-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 6px;
    color: var(--warning-dark);
    font-size: 15px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.inactive-alert-close:hover { opacity: 1; }

@media (max-width: 768px) {
    .inactive-topbar-alert { padding: 10px 40px 10px 14px; font-size: 12.5px; }
    .inactive-alert-message { text-align: center; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media screen and (max-width: 1699px) {
    .header-search-box { width: 300px; }
    .header-search-box:focus-within { width: 340px; }
    .menu-main-list > li > a { padding: 0 12px; }
    .menu-main-list > li > a::after { left: 11px; right: 11px; }
}

@media screen and (min-width: 1031px) and (max-width: 1499px) {
    .header-search-box { display: none; }
    .login-btn,
    .login-user { margin-left: auto; }
}

@media screen and (max-width: 1240px) {
    .jag-header-bar { padding: 0 20px; }
    .jag-header-logo { margin-right: 12px; }
    .menu-main-list > li > a { padding: 0 10px; font-size: 13.5px; }
    .menu-main-list > li > a::after { left: 9px; right: 9px; }
    .header-search-box { width: 230px; }
    .header-search-box:focus-within { width: 280px; }
    .header-search-box select { display: none; }
    .login-user-mr { display: none; }
}

@media screen and (min-width: 1031px) and (max-width: 1140px) {
    .jag-header-bar { padding: 0 14px; gap: 12px; }
    .jag-header-logo { margin-right: 8px; }
    .jag-header-logo img { height: 32px; }
    .menu-main-list > li > a { padding: 0 7px; font-size: 13px; }
    .menu-main-list > li > a::after { left: 6px; right: 6px; }
}

@media screen and (max-width: 1030px) {
    .jag-header-bar { padding: 0 16px; gap: 12px; height: 64px; }
    .jag-header-burger { display: flex; }

    .jag-header-drawer {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1300;
        display: block;
        width: min(88vw, 360px);
        height: 100dvh;
        background: var(--white);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jag-header-drawer.active { transform: translateX(0); }

    .jag-header-drawer__scroll {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 100%;
        gap: 6px;
        padding: 20px 18px 28px;
    }

    .header-search-box {
        order: -1;
        width: 100%;
        height: 48px;
        margin-left: 0;
        border-color: color-mix(in srgb, var(--text) 12%, transparent);
    }

    .header-search-box:focus-within { width: 100%; }
    .header-search-box select { display: block; }

    .menu-main { width: 100%; height: auto; margin-top: 8px; }

    .menu-main-list {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 2px;
    }

    .menu-main-list li { display: block; }

    .menu-main-list > li > a {
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 10px;
        justify-content: space-between;
    }

    .menu-main-list > li > a::after { display: none; }
    .menu-main-list > li > a:hover { background: var(--on-hover); }
    .menu-main-list > li.active > a { background: color-mix(in srgb, var(--primary) 8%, transparent); }

    .jag-mega-panel { display: none !important; }

    .login-btn,
    .login-user {
        width: 100%;
        margin-left: 0;
        margin-top: 14px;
        padding-top: 16px;
        border-top: 1px solid var(--light-border);
    }

    .login-btn ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .login-btn ul li:first-child { display: block; }

    .login-btn ul li a { width: 100%; height: 46px; }

    .login-user {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .login-user > ul { order: 1; width: 100%; }
    .login-user-mr { display: block; order: 2; text-align: center; padding: 10px 0; }
    .header-wishlist-container-mlk { order: 3; align-self: center; }

    .user-details { width: 100%; }

    .user-btn {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 14px;
    }

    .user-btn span { max-width: none; flex: 1; text-align: left; }

    .user-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid var(--light-border);
    }

    .user-menu::before { display: none; }

    .header-wishlist-dropdown-mlk {
        position: fixed;
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    .header-wishlist-dropdown-mlk::before { display: none; }
}

@media screen and (max-width: 420px) {
    .jag-header-drawer { width: 100vw; }
}

