:root {
    --hf-brand-blue: #0058b0;
    --hf-brand-blue-dark: #004188;
    --hf-brand-yellow: #f1ed00;
    --hf-brand-yellow-dark: #d8d200;
    --hf-brand-soft: #fffde6;
    --hf-ali-red: var(--hf-brand-blue);
    --hf-ali-red-2: var(--hf-brand-blue-dark);
    --hf-ali-soft: var(--hf-brand-soft);
    --hf-ali-border: #d7e3f5;
    --hf-ali-text: #143c71;
    --hf-ali-muted: #557096;
}

/* Header: AliExpress-inspired top utility bar + bold search row */
#header {
    box-shadow: 0 4px 18px rgba(20, 26, 44, 0.08);
    border-bottom: 1px solid #edf0f6;
}

#header .top-bar {
    border-bottom: 0;
    background: linear-gradient(90deg, var(--hf-brand-blue-dark) 0%, var(--hf-brand-blue) 100%);
}

#header .top-bar .navbar-nav {
    padding: 7px 0;
}

#header .top-bar .navbar-nav .nav-item .nav-link,
#header .top-bar .navbar-nav .nav-item .nav-link i,
#header .top-bar .navbar-nav .nav-item .auth-sep {
    color: rgba(255, 255, 255, 0.94);
}

#header .top-bar .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
}

#header .top-bar .profile-dropdown .a-profile img {
    border: 2px solid rgba(255, 255, 255, 0.65);
}

#header .top-bar .profile-dropdown .dropdown-menu li a {
    color: #2f3548 !important;
}

#header .top-bar .btn-modal-location-header,
#header .top-bar .btn-reset-location {
    display: none !important;
}

#header .nav-top {
    padding: 15px 0 11px;
}

#header .nav-top .logo {
    margin-right: 16px;
    flex-shrink: 0;
}

#header .hf-header-location {
    flex-shrink: 0;
    margin-right: 14px;
}

#header .hf-header-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #cdddf3;
    background-color: var(--hf-brand-soft);
    border-radius: 12px;
    padding: 7px 12px;
    color: #134d95;
    min-width: 170px;
    text-align: left;
}

#header .hf-header-location-btn:hover {
    border-color: #9fbce3;
    background-color: #f8f37a;
}

#header .hf-header-location-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fffcd1;
    color: var(--hf-brand-blue);
    flex-shrink: 0;
}

#header .hf-header-location-content {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
}

#header .hf-header-location-label {
    display: block;
    font-size: 11px;
    line-height: 12px;
    color: #36629a;
}

#header .hf-header-location-value {
    display: block;
    font-size: 13px;
    line-height: 16px;
    color: #0d468b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    font-weight: 600;
}

#header .nav-top-left .top-search-bar {
    flex: 1;
    min-width: 0;
}

#header .top-search-bar .form_search_main {
    position: relative;
}

#header .top-search-bar .input-search {
    border: 2px solid var(--hf-ali-red) !important;
    border-radius: 999px !important;
    background: #fff !important;
    height: 48px;
    padding-right: 58px !important;
    box-shadow: 0 5px 16px rgba(255, 87, 40, 0.12);
}

#header .top-search-bar .btn-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0 !important;
    color: var(--hf-brand-blue);
    background: linear-gradient(90deg, var(--hf-brand-yellow), var(--hf-brand-yellow-dark));
    position: absolute;
    top: 4px;
    right: 4px;
}

#header .top-search-bar .btn-search i {
    color: var(--hf-brand-blue);
}

#header .nav-top-right .nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 10px;
    padding: 8px 10px;
    color: #3d455c;
}

#header .nav-top-right .nav-item > a:hover {
    background-color: var(--hf-ali-soft);
    color: #d4542a !important;
}

#header .btn-sell-now {
    border-radius: 999px;
    border: 0 !important;
    background: linear-gradient(90deg, var(--hf-ali-red), var(--hf-ali-red-2)) !important;
    box-shadow: 0 8px 18px rgba(255, 96, 37, 0.22);
}

#header .nav-main {
    border-top: 1px solid #f1f3f8;
}

#header .mega-menu > .nav-item > .nav-link {
    color: #313a50;
    font-weight: 600;
    border-radius: 999px;
    padding: 11px 14px;
}

#header .mega-menu > .nav-item > .nav-link:hover {
    color: #c5491f;
    background-color: #fff3ed;
}

#header .hf-mobile-header-location-wrap {
    padding: 0 10px 10px;
}

#header .hf-mobile-header-location {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--hf-ali-red), var(--hf-ali-red-2));
}

#header .hf-mobile-header-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75vw;
}

/* Footer: dark AliExpress-style information block */
#footer {
    margin-top: 70px;
    color: #d8e7fb;
    background: linear-gradient(180deg, var(--hf-brand-blue) 0%, var(--hf-brand-blue-dark) 100%);
}

#footer .footer-top {
    padding: 52px 0;
}

#footer .hf-footer-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 34px;
}

#footer .hf-footer-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
}

#footer .hf-footer-benefit svg {
    color: #ffb798;
    flex-shrink: 0;
    margin-top: 1px;
}

#footer .hf-footer-benefit-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 3px;
}

#footer .hf-footer-benefit-text span {
    display: block;
    color: #d4d9e6;
    font-size: 12px;
    line-height: 1.4;
}

#footer .footer-title {
    color: var(--hf-brand-yellow);
    letter-spacing: 0.02em;
}

#footer .footer-about,
#footer .newsletter-footer .title-desc,
#footer .footer-bottom .copyright,
#footer .nav-footer ul li a,
#footer .nav-footer-bottom li a {
    color: #c7cfdf;
}

#footer .nav-footer ul li a:hover,
#footer .nav-footer-bottom li a:hover {
    color: #fff;
    border-color: #fff;
}

#footer .footer-social-links ul li a {
    border-color: rgba(255, 255, 255, 0.25);
    color: #e8ecf7;
    background-color: rgba(255, 255, 255, 0.04);
}

#footer .footer-social-links ul li a:hover {
    color: var(--hf-brand-blue) !important;
    border-color: var(--hf-brand-yellow) !important;
    background-color: var(--hf-brand-yellow);
}

#footer .form-newsletter-footer input {
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#footer .form-newsletter-footer input::placeholder {
    color: #c0c8db;
}

#footer .form-newsletter-footer .btn-custom {
    border-radius: 10px;
    border: 0 !important;
    color: var(--hf-brand-blue) !important;
    background: linear-gradient(90deg, var(--hf-brand-yellow), var(--hf-brand-yellow-dark)) !important;
}

#footer .footer-payment-icons img {
    opacity: 0.9;
}

#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Product detail page refresh */
.hf-product-page {
    background: linear-gradient(180deg, #f4f6fa 0, #ffffff 250px);
}

.hf-product-page .nav-breadcrumb {
    margin-bottom: 14px;
}

.hf-product-page .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
}

.hf-product-page .breadcrumb-item + .breadcrumb-item::before {
    color: #a6adbd;
}

.hf-product-page .breadcrumb-item a {
    color: #6c7488;
}

.hf-product-page .breadcrumb-item.active {
    color: #323b50;
}

.hf-product-page .hf-product-service-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hf-product-page .hf-product-service-strip span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #be4f29;
    background: #fff2ec;
    border: 1px solid #ffd2c2;
}

.hf-product-page .hf-product-details-shell {
    min-height: 0;
    margin-bottom: 22px;
}

.hf-product-page .col-product-details-left #product_slider_container,
.hf-product-page .col-product-details-right #response_product_details {
    background-color: #fff;
    border: 1px solid var(--hf-ali-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(20, 26, 44, 0.06);
}

.hf-product-page .product-slider-wrapper .slider-for-container {
    border: 0;
    border-radius: 12px;
    background: #f8f9fd;
}

.hf-product-page .product-slider-wrapper .thumb-slider .swiper-slide-thumb-active img {
    border-color: var(--hf-ali-red);
}

.hf-product-page .product-title {
    color: var(--hf-ali-text);
    font-size: 1.65rem;
    line-height: 1.32;
}

.hf-product-page .product-content-details .meta {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ebeef5;
    background: #f8f9fd;
}

.hf-product-page .product-price-container .final-price {
    color: #ff3b2f;
    font-size: 2.3rem;
    letter-spacing: -0.02em;
}

.hf-product-page .product-price-container .original-price {
    font-size: 1.15rem;
    color: #8e97ab;
}

.hf-product-page .product-price-container .original-price::after {
    background-color: #aeb5c4;
    height: 1px;
}

.hf-product-page .product-price-container .discount-rate {
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--hf-ali-red), var(--hf-ali-red-2));
}

.hf-product-page .btn-contact-seller {
    border-radius: 999px;
    border: 1px solid #ffb89e;
    background-color: #fff2ec;
    color: #ce4b1f;
    font-weight: 600;
    padding: 9px 18px;
}

.hf-product-page .btn-contact-seller:hover {
    color: #b23f17;
    background-color: #ffe6dc;
}

.hf-product-page .product-content-details .details {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed #dfe4ef;
}

.hf-product-page .product-content-details .details .item-details {
    margin-bottom: 10px;
}

.hf-product-page .product-content-details .details .item-details .left {
    width: 140px;
}

.hf-product-page .product-content-details .details span {
    color: #25304a;
}

.hf-product-page .product-add-to-cart-container {
    margin-top: 4px;
    gap: 12px;
}

.hf-product-page .product-add-to-cart-container .button-container {
    min-width: 205px;
}

.hf-product-page .product-add-to-cart-container .button-container .btn-product-cart {
    height: 50px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, var(--hf-ali-red), var(--hf-ali-red-2)) !important;
    box-shadow: 0 8px 18px rgba(255, 96, 37, 0.3);
}

.hf-product-page .product-add-to-cart-container .button-container .btn-product-cart:disabled {
    color: #747d90 !important;
    background: #d8dde8 !important;
    box-shadow: none;
}

.hf-product-page .number-spinner {
    border-radius: 999px !important;
    border: 1px solid #e1e6f1;
}

.hf-product-page .number-spinner input {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.hf-product-page .number-spinner .btn-spinner-minus {
    border-right: 1px solid #e1e6f1 !important;
}

.hf-product-page .number-spinner .btn-spinner-plus {
    border-left: 1px solid #e1e6f1 !important;
}

.hf-product-page .button-container-wishlist .btn-wishlist {
    display: inline-flex;
    align-items: center;
    height: 50px;
    border: 1px solid #e2e6f1;
    border-radius: 999px;
    line-height: normal !important;
    padding: 0 18px;
    color: #353f59;
    font-weight: 600;
}

.hf-product-page .button-container-wishlist .btn-wishlist i {
    font-size: 20px;
}

.hf-product-page .button-container-wishlist .btn-wishlist span {
    top: 0;
}

.hf-product-page .button-container-wishlist .btn-wishlist:hover {
    border-color: #ffb89e;
    color: #ce4b1f;
}

.hf-product-page .product-delivery-est {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #dfe4ef;
}

.hf-product-page .product-delivery-est .item {
    color: #4e5871;
    margin-bottom: 11px;
}

.hf-product-page .product-delivery-est .badge-info-light {
    border-radius: 999px;
    border: 1px solid #ffd2c2;
    background-color: #fff2ec;
    color: #c75023;
    padding: 7px 11px;
}

.hf-product-page .product-description {
    margin-bottom: 58px;
    padding: 24px;
    border: 1px solid var(--hf-ali-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 26, 44, 0.06);
}

.hf-product-page .nav-tabs-horizontal {
    border-bottom: 1px solid #e8ecf4 !important;
}

.hf-product-page .nav-tabs-horizontal .nav-item .nav-link {
    padding: 14px 20px;
    margin-right: 0;
    color: #5e677e !important;
    border-bottom: 3px solid transparent !important;
}

.hf-product-page .nav-tabs-horizontal .nav-item .active,
.hf-product-page .nav-tabs-horizontal .nav-item .nav-link:hover {
    color: var(--hf-ali-red) !important;
    border-bottom-color: var(--hf-ali-red) !important;
}

.hf-product-page .product-description .tab-content .tab-pane {
    padding-top: 20px;
    min-height: 180px;
}

.hf-product-page .product-description .description {
    color: #2d3751;
    font-size: 15px;
    line-height: 1.8;
}

.hf-product-page .table-product-shipping .td-left,
.hf-product-page .table-product-additional-information .td-left {
    color: #2f3850;
}

.hf-product-page .section-related-products .title {
    color: #25304a;
    font-size: 22px;
}

@media (min-width: 992px) {
    .hf-product-page .col-product-details-right #response_product_details {
        position: sticky;
        top: 14px;
    }
}

@media (max-width: 1399px) {
    #header .hf-header-location-label {
        display: none;
    }

    #header .hf-header-location-value {
        max-width: 92px;
    }
}

@media (max-width: 1199px) {
    #footer .hf-footer-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #footer {
        margin-top: 44px;
    }

    .hf-product-page .product-title {
        font-size: 1.4rem;
    }

    .hf-product-page .col-product-details-left #product_slider_container,
    .hf-product-page .col-product-details-right #response_product_details {
        border-radius: 12px;
        padding: 14px;
    }

    .hf-product-page .product-price-container .final-price {
        font-size: 1.9rem;
    }

    .hf-product-page .product-description {
        padding: 14px;
        border-radius: 12px;
    }

    .hf-product-page .product-add-to-cart-container .button-container {
        min-width: 100%;
        width: 100%;
    }

    .hf-product-page .product-add-to-cart-container .button-container .btn-product-cart {
        width: 100%;
    }

    .hf-product-page .product-add-to-cart-container .button-container-wishlist {
        width: 100% !important;
    }

    .hf-product-page .button-container-wishlist .btn-wishlist {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575px) {
    #footer .hf-footer-benefits {
        grid-template-columns: 1fr;
    }

    .hf-product-page .hf-product-service-strip span {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Amazon-style cleanup for header and search */
:root {
    --hf-amz-navy: var(--hf-brand-blue-dark);
    --hf-amz-blue: var(--hf-brand-blue);
    --hf-amz-blue-2: #004a98;
    --hf-amz-accent: var(--hf-brand-yellow);
    --hf-amz-text-light: #f2f8ff;
}

#header .top-bar {
    background: var(--hf-amz-navy);
}

#header .top-bar .navbar-nav .nav-item .nav-link,
#header .top-bar .navbar-nav .nav-item .nav-link i,
#header .top-bar .navbar-nav .nav-item .auth-sep {
    color: #e5edf8;
}

#header .nav-top {
    background: var(--hf-amz-blue);
    padding: 12px 0;
}

#header .hf-header-location-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(19, 25, 33, 0.26);
    color: var(--hf-amz-text-light);
    min-width: 172px;
}

#header .hf-header-location-btn:hover {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(19, 25, 33, 0.38);
}

#header .hf-header-location-icon {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.14);
}

#header .hf-header-location-label {
    color: #d3dcea;
}

#header .hf-header-location-value {
    color: #fff;
}

#header .top-search-bar .input-search {
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #101418 !important;
    height: 44px;
    box-shadow: none;
    padding-right: 56px !important;
}

#header .top-search-bar .btn-search {
    width: 50px;
    height: 44px;
    border-radius: 0 10px 10px 0;
    border: 0 !important;
    top: 0;
    right: 0;
    background: var(--hf-amz-accent);
}

#header .top-search-bar .btn-search i {
    color: #11171d;
}

#header .nav-top-right .nav-item > a,
#header .nav-top-right .nav-item > button {
    color: #f4f7fc;
    border-radius: 10px;
    border: 1px solid transparent;
}

#header .nav-top-right .nav-item > a:hover,
#header .nav-top-right .nav-item > button:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

#header .hf-account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    line-height: 1.2;
}

#header .hf-account-link i {
    font-size: 18px;
}

#header .nav-main {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 0;
    background: var(--hf-amz-blue);
}

#header .mega-menu > .nav-item > .nav-link {
    color: #f2f5fb;
    font-weight: 500;
}

#header .mega-menu > .nav-item > .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    #header .mobile-nav-container {
        min-height: 206px;
    }

    #header .nav-mobile-header {
        padding: 0;
        background: var(--hf-amz-blue);
        box-shadow: none;
    }

    #header .nav-mobile-header .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    #header .nav-mobile-header .row {
        margin-left: 0;
        margin-right: 0;
    }

    #header .nav-mobile-header-container {
        min-height: 50px;
        padding: 0 6px;
    }

    #header .nav-mobile-header-container .flex-item {
        height: 50px;
    }

    #header .nav-mobile-header .flex-item-left {
        width: 44px;
    }

    #header .nav-mobile-header .flex-item-mid {
        width: calc(100% - 188px);
    }

    #header .nav-mobile-header .flex-item-right {
        width: 144px;
    }

    #header .nav-mobile-header-container .item-menu-icon button {
        color: #fff !important;
        font-size: 26px;
        padding: 4px !important;
    }

    #header .nav-mobile-header-container .mobile-logo {
        width: auto;
        height: 34px;
    }

    #header .nav-mobile-header-container .mobile-logo a img {
        width: auto;
        max-width: 142px;
        height: 34px;
    }

    #header .hf-mobile-header-actions {
        gap: 6px;
    }

    #header .hf-mobile-signin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #fff !important;
        background: transparent !important;
        border: 0;
        padding: 0 2px;
        line-height: 1;
        text-decoration: none;
    }

    #header .hf-mobile-signin .icon-user {
        font-size: 34px !important;
    }

    #header .hf-mobile-signin-text {
        font-size: 13px;
        font-weight: 600;
        color: #f0f4fb;
        white-space: nowrap;
    }

    #header .hf-mobile-signin-arrow {
        font-size: 15px;
        position: relative;
        top: 1px;
    }

    #header .a-mobile-account {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 999px;
        border: 2px solid #fff;
        background: linear-gradient(180deg, var(--hf-brand-yellow), var(--hf-brand-yellow-dark)) !important;
        color: var(--hf-brand-blue) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    }

    #header .a-mobile-account i {
        font-size: 18px !important;
        color: var(--hf-brand-blue) !important;
    }

    #header .a-mobile-account:hover {
        opacity: 0.96;
        text-decoration: none;
    }

    #header .a-mobile-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        padding: 0 2px;
        line-height: 1;
    }

    #header .a-mobile-cart i {
        font-size: 30px !important;
    }

    #header .a-mobile-cart .notification {
        top: -1px;
        right: -1px;
        width: auto;
        height: auto;
        background: transparent;
        border-radius: 0;
        color: #f7a300;
        font-size: 13px;
        line-height: 1;
        font-weight: 700;
    }

    #header .mobile-search-form {
        display: block !important;
        padding: 6px 8px;
        background: var(--hf-amz-blue);
    }

    #header .mobile-search-form .input-search {
        height: 42px;
        border: 0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #161b21 !important;
        box-shadow: none !important;
        outline: none !important;
        font-size: 15px;
        padding: 0 62px 0 14px !important;
    }

    #header .mobile-search-form .btn-search {
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 42px;
        border: 0 !important;
        border-radius: 0 12px 12px 0;
        background: #f3b356 !important;
        color: #11171d;
        box-shadow: none !important;
    }

    #header .mobile-search-form .btn-search i {
        color: #11171d;
        font-size: 24px;
    }

    #header .hf-mobile-quick-links {
        display: flex;
        align-items: center;
        gap: 24px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 4px 12px 12px;
        background: var(--hf-amz-blue);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    #header .hf-mobile-quick-links::-webkit-scrollbar {
        display: none;
    }

    #header .hf-mobile-quick-link {
        font-size: 16px;
        color: #f2f6fc;
        line-height: 1.2;
        text-decoration: none;
        padding: 2px 0;
    }

    #header .hf-mobile-quick-link:hover {
        color: #fff;
        text-decoration: none;
    }

    #header .hf-mobile-header-location-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 6px 8px;
        background: var(--hf-amz-blue-2);
    }

    #header .hf-mobile-header-location {
        flex: 1;
        justify-content: space-between;
        border-radius: 6px;
        border: 0;
        padding: 6px 8px;
        background: transparent;
        color: #fff;
    }

    #header .hf-mobile-header-location-left {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    #header .hf-mobile-header-location-text {
        display: inline-flex;
        flex-direction: column;
        min-width: 0;
        text-align: left;
        line-height: 1.15;
    }

    #header .hf-mobile-header-location-label {
        font-size: 11px;
        color: #d7e1ef;
        text-transform: none;
        letter-spacing: 0;
    }

    #header .hf-mobile-header-location-value {
        font-size: 12px;
        color: #fff;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52vw;
    }

    #header .hf-mobile-header-location-arrow {
        color: #d9e1ed;
        font-size: 14px;
        margin-left: 8px;
    }

    #header .hf-mobile-header-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        padding: 0 18px;
        border-radius: 999px;
        background: #0d73d8;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-decoration: none;
    }

    #header .hf-mobile-header-cta:hover {
        color: #fff;
        text-decoration: none;
        opacity: 0.95;
    }

    #navMobile.nav-mobile {
        top: 182px;
    }
}

@media (min-width: 993px) {
    #header .top-bar {
        display: block !important;
    }

    #header .nav-top {
        background: #131921;
        padding: 6px 0;
    }

    #header .nav-top .logo {
        margin-right: 14px;
    }

    #header .nav-top .logo img {
        width: 116px;
        height: auto;
    }

    #header .hf-header-location {
        margin-right: 12px;
    }

    #header .hf-header-location-btn {
        min-width: 114px;
        border-radius: 6px;
        border: 1px solid transparent;
        background: transparent;
        padding: 6px 8px;
    }

    #header .hf-header-location-btn:hover {
        border-color: #fff;
        background: transparent;
    }

    #header .hf-header-location-icon {
        width: 20px;
        height: 20px;
        background: transparent;
    }

    #header .hf-header-location-label {
        font-size: 11px;
        color: #c8d3de;
        line-height: 1;
    }

    #header .hf-header-location-value {
        font-size: 13px;
        color: #fff;
        line-height: 1.1;
        max-width: 90px;
    }

    #header .hf-desktop-search-form {
        position: relative;
        display: flex;
        align-items: center;
    }

    #header .hf-search-select {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 14px;
        color: #4b5662;
        background: #e6e6e6;
        border-radius: 8px 0 0 8px;
        border-right: 1px solid #d0d4d8;
        z-index: 3;
    }

    #header .hf-search-select i {
        font-size: 11px;
        color: #58616d;
    }

    #header .top-search-bar .input-search {
        height: 42px;
        border-radius: 8px !important;
        padding-left: 70px !important;
        padding-right: 58px !important;
    }

    #header .top-search-bar .btn-search {
        width: 50px;
        border-radius: 0 8px 8px 0;
        background: #f3a847;
    }

    #header .nav-top-right .nav {
        float: none;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 2px;
    }

    #header .nav-top-right .nav-item {
        margin-right: 0;
    }

    #header .nav-top-right .nav-item > a,
    #header .nav-top-right .nav-item > button {
        color: #fff;
        border-radius: 4px;
        padding: 6px 8px;
        border: 1px solid transparent;
        text-decoration: none;
        background: transparent;
    }

    #header .nav-top-right .nav-item > a:hover,
    #header .nav-top-right .nav-item > button:hover {
        border-color: #fff;
        background: transparent;
    }

    #header .hf-nav-lang .hf-lang-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 14px;
    }

    #header .hf-account-link {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 6px 8px;
        line-height: 1.08;
    }

    #header .hf-nav-line1 {
        font-size: 12px;
        color: #d8e0eb;
    }

    #header .hf-nav-line2 {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        white-space: nowrap;
    }

    #header .hf-nav-orders a,
    #header .hf-nav-orders button {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1.08;
    }

    #header .hf-nav-wishlist,
    #header .hf-nav-sell {
        display: none !important;
    }

    #header .nav-item-cart a {
        display: inline-flex;
        align-items: flex-end;
        gap: 4px;
        padding: 6px 8px;
    }

    #header .nav-item-cart a i {
        font-size: 31px;
    }

    #header .nav-item-cart a .notification {
        top: 1px;
        left: 21px;
        background: transparent;
        color: #ffb84c;
        font-size: 16px;
        width: auto;
        height: auto;
        line-height: 1;
    }

    #header .nav-item-cart .label-nav-icon {
        top: -2px;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
    }

    #header .nav-main {
        background: var(--hf-brand-blue);
        border-top: 0;
        border-bottom: 0;
        padding: 0;
    }

    #header .nav-main .navbar {
        background: transparent !important;
        border: 0 !important;
    }

    #header .nav-main .navbar ul {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        width: 100%;
        padding: 0 10px;
    }

    #header .nav-main .navbar ul::-webkit-scrollbar {
        display: none;
    }

    #header .nav-main .navbar ul .nav-item {
        padding: 0 !important;
    }

    #header .nav-main .navbar ul .nav-item .nav-link {
        display: inline-flex !important;
        align-items: center !important;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        padding: 6px 8px;
        border: 1px solid transparent;
        border-radius: 3px;
        text-decoration: none;
        line-height: 1.1;
        margin-right: 0;
    }

    #header .nav-main .navbar ul .nav-item .nav-link:hover {
        color: #fff;
        border-color: #fff;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
    }

    #header .nav-main .navbar > .navbar-nav > .nav-item:hover .nav-link:before {
        display: none;
    }
}

/* Desktop fallback: keep menu row text visible even with theme overrides */
@media (min-width: 993px) {
    #header .nav-main,
    #header .nav-main .navbar {
        background: var(--hf-brand-blue) !important;
    }

    #header .nav-main .navbar ul .nav-item .nav-link,
    #header .mega-menu > .nav-item > .nav-link,
    #header .mega-menu .nav-link {
        color: #ffffff !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }

    #header .nav-main .navbar ul .nav-item .nav-link:hover,
    #header .mega-menu > .nav-item > .nav-link:hover,
    #header .mega-menu .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }
}



/* Header AJAX Search Positioning */
#header .top-search-bar .form_search_main {
    position: relative;
}

#header .top-search-bar #response_search_results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1200;
}

@media (max-width: 992px) {
    #header .mobile-search-form form {
        position: relative;
    }

    #header .mobile-search-form #response_search_results_mobile {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 1200;
        max-height: 65vh;
        overflow-y: auto;
    }
}

/* Compact AJAX Product Results */
#response_search_results .search-item-left,
#response_search_results_mobile .search-item-left,
#global_search_results_desktop .search-item-left,
#search_portal .search-item-left {
    gap: 8px !important;
}

#response_search_results .search-item-image,
#response_search_results_mobile .search-item-image,
#global_search_results_desktop .search-item-image,
#search_portal .search-item-image {
    width: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
    overflow: hidden;
    flex-shrink: 0;
}

#response_search_results .search-item-image img,
#response_search_results_mobile .search-item-image img,
#global_search_results_desktop .search-item-image img,
#search_portal .search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#response_search_results .search-item-icon,
#response_search_results_mobile .search-item-icon,
#global_search_results_desktop .search-item-icon,
#search_portal .search-item-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
}

#response_search_results li a,
#response_search_results_mobile li a,
#global_search_results_desktop li a,
#search_portal .search-results ul li a {
    padding: 7px 10px !important;
    gap: 8px !important;
}

#response_search_results .search-item-title,
#response_search_results_mobile .search-item-title,
#global_search_results_desktop .search-item-title,
#search_portal .search-item-title {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
}

#response_search_results .search-item-meta,
#response_search_results_mobile .search-item-meta,
#global_search_results_desktop .search-item-meta,
#search_portal .search-item-meta {
    font-size: 10px !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}

#response_search_results .search-item-right .badge,
#response_search_results_mobile .search-item-right .badge,
#global_search_results_desktop .search-item-right .badge,
#search_portal .search-item-right .badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
}

#response_search_results .search-results-footer,
#response_search_results_mobile .search-results-footer,
#global_search_results_desktop .search-results-footer,
#search_portal .search-results-footer {
    padding: 8px 10px !important;
}

#response_search_results .btn-view-all,
#response_search_results_mobile .btn-view-all,
#global_search_results_desktop .btn-view-all,
#search_portal .btn-view-all {
    font-size: 12px !important;
}

/* Non-Fixed Header Override */
#header {
    position: relative !important;
    top: auto !important;
}

#header .main-menu,
#header .nav-top,
#header .nav-main {
    position: static !important;
}

@media (max-width: 992px) {
    #header .mobile-nav-container {
        min-height: 0 !important;
    }

    #header .nav-mobile-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
    }
}

/* Header Search Results Compact Fix */
#search_portal .search-results ul,
#response_search_results .search-results ul,
#response_search_results_mobile .search-results ul,
#global_search_results_desktop .search-results ul {
    margin: 0 !important;
    padding: 2px 0 !important;
    list-style: none !important;
}

#search_portal .search-results ul li a,
#response_search_results .search-results ul li a,
#response_search_results_mobile .search-results ul li a,
#global_search_results_desktop .search-results ul li a {
    display: block !important;
    padding: 6px 10px !important;
    text-decoration: none !important;
}

#search_portal .search-results ul li a .d-flex,
#response_search_results .search-results ul li a .d-flex,
#response_search_results_mobile .search-results ul li a .d-flex,
#global_search_results_desktop .search-results ul li a .d-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

#search_portal .search-item-left,
#response_search_results .search-item-left,
#response_search_results_mobile .search-item-left,
#global_search_results_desktop .search-item-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
}

#search_portal .search-item-image,
#response_search_results .search-item-image,
#response_search_results_mobile .search-item-image,
#global_search_results_desktop .search-item-image {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f3f5f7 !important;
}

#search_portal .search-item-image img,
#response_search_results .search-item-image img,
#response_search_results_mobile .search-item-image img,
#global_search_results_desktop .search-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#search_portal .search-item-icon,
#response_search_results .search-item-icon,
#response_search_results_mobile .search-item-icon,
#global_search_results_desktop .search-item-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
}

#search_portal .search-item-info,
#response_search_results .search-item-info,
#response_search_results_mobile .search-item-info,
#global_search_results_desktop .search-item-info {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    line-height: 1.2 !important;
}

#search_portal .search-item-title,
#response_search_results .search-item-title,
#response_search_results_mobile .search-item-title,
#global_search_results_desktop .search-item-title {
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#search_portal .search-item-meta,
#response_search_results .search-item-meta,
#response_search_results_mobile .search-item-meta,
#global_search_results_desktop .search-item-meta {
    font-size: 10px !important;
    line-height: 1.15 !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#search_portal .search-item-right .badge,
#response_search_results .search-item-right .badge,
#response_search_results_mobile .search-item-right .badge,
#global_search_results_desktop .search-item-right .badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
}
