:root {
    --hr_primary: #43a047;
    --hr_primary_dark: #2e7d32;
    --hr_secondary: #d5573b;
    --hr_dark: #1a1a1a;
    --hr_text: #666;
    --hr_light: #f8f9fa;
    --hr_white: #ffffff;
    --hr_border: rgba(0, 0, 0, 0.06);
    --hr_shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    --hr_radius: 18px;
}

/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-size: 14px;
    font-weight: 600;
    font-family: "Segoe UI", sans-serif;
    background: #fafafa;
    color: var(--hr_dark);
    line-height: 1.6;
}

/* =========================
   TOPBAR
========================= */

.hr_topbar {
    background: linear-gradient(90deg,
            var(--hr_primary),
            var(--hr_primary_dark));
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.hr_topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.08),
            transparent);
}

.hr_topbar .container {
    position: relative;
    z-index: 2;
    gap: 10px;
}

/* =========================
   HEADER
========================= */

.hr_header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--hr_border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.hr_header .container {
    gap: 14px;
}

/* =========================
   LOGO
========================= */

.hr_logo {
    flex-shrink: 0;
}

.hr_logo img {
    max-height: 52px;
    width: auto;
    transition: 0.35s ease;
}

.hr_logo img:hover {
    transform: scale(1.03);
}

/* =========================
   NAVIGATION
========================= */

.hr_nav_menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 0;
    padding-left: 0;
}

.hr_nav_menu li {
    position: relative;
}

.hr_nav_menu a {
    text-decoration: none;
    color: var(--hr_dark);
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.hr_nav_menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--hr_primary);
    transition: 0.3s ease;
}

.hr_nav_menu a:hover {
    color: var(--hr_primary);
}

.hr_nav_menu a:hover::after {
    width: 100%;
}

/* =========================
   DROPDOWN
========================= */

.hr_dropdown {
    position: relative;
}

.hr_dropdown_menu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 230px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 999;
}

.hr_dropdown:hover .hr_dropdown_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hr_dropdown_menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #444;
    font-size: 13px;
}

.hr_dropdown_menu a::after {
    display: none;
}

.hr_dropdown_menu a:hover {
    background: #edf7ee;
    color: var(--hr_primary);
    transform: translateX(4px);
}

/* =========================
   ACTIONS
========================= */

.hr_actions {
    gap: 10px;
    flex-shrink: 0;
}

.hr_icon,
.hr_profile_icon,
.hr_menu_btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(245, 245, 245, 0.95);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hr_icon:hover,
.hr_profile_icon:hover,
.hr_menu_btn:hover {
    background: #edf7ee;
    color: var(--hr_primary);
    border-color: rgba(67, 160, 71, 0.15);
    transform: translateY(-2px);
}

.hr_icon i,
.hr_profile_icon i {
    font-size: 15px;
}

/* =========================
   CART COUNT
========================= */

.hr_cart_count {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    border-radius: 50px;
    background: var(--hr_secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 5px 12px rgba(213, 87, 59, 0.35);
}

/* =========================
   REMOVE PROFILE IMAGE
========================= */

.hr_avatar img,
.hr_online_dot {
    display: none;
}

.hr_avatar {
    width: auto;
    height: auto;
}

/* =========================
   PREMIUM PROFILE DROPDOWN
========================= */

.hr_profile_dropdown {
    width: 320px;
    padding: 12px;
    margin-top: 14px;
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    animation: hrDropdown 0.25s ease;
}

@keyframes hrDropdown {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* USER BOX */

.hr_user_box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg,
            rgba(67, 160, 71, 0.10),
            rgba(67, 160, 71, 0.04));
    margin-bottom: 10px;
}

.hr_user_icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg,
            var(--hr_primary),
            var(--hr_primary_dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(67, 160, 71, 0.35);
}

.hr_user_info h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.hr_user_info span {
    font-size: 12px;
    color: #777;
}

/* DROPDOWN ITEM */

.hr_dropdown_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    transition: 0.3s ease;
    text-decoration: none;
    margin-bottom: 6px;
}

.hr_dropdown_item:hover {
    background: #f3faf4;
    transform: translateX(4px);
}

.hr_item_icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hr_primary);
    flex-shrink: 0;
    font-size: 15px;
}

.hr_dropdown_item strong {
    display: block;
    font-size: 14px;
    color: #222;
}

.hr_dropdown_item small {
    color: #888;
    font-size: 11px;
}

.hr_logout_btn:hover {
    background: #fff3f3;
}

.hr_logout_btn .hr_item_icon {
    color: #dc3545;
}

.hr_profile_dropdown .dropdown-divider {
    margin: 10px 0;
    opacity: 0.08;
}

/* =========================
   MENU BUTTON
========================= */

.hr_menu_btn {
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.hr_menu_btn span {
    width: 100%;
    height: 2px;
    background: #222;
    border-radius: 10px;
}

/* =========================
   MOBILE MENU
========================= */

.hr_mobile_menu {
    position: fixed;
    left: -320px;
    top: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    z-index: 9999;
    transition: 0.35s ease;
    overflow-y: auto;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.15);
}

.hr_mobile_menu.active {
    left: 0;
}

.hr_mobile_header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 16px;
}

.hr_mobile_menu ul {
    list-style: none;
    padding: 18px;
}

.hr_mobile_menu ul li {
    margin-bottom: 10px;
}

.hr_mobile_menu ul li a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    transition: 0.3s ease;
    font-size: 14px;
}

.hr_mobile_menu ul li a:hover {
    background: #edf7ee;
    color: var(--hr_primary);
    padding-left: 22px;
}

/* =========================
   OVERLAY
========================= */

.hr_mobile_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.hr_mobile_overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   SEARCH POPUP
========================= */

.hr_search_popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.hr_search_popup.active {
    display: flex;
}

.hr_search_box {
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 22px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    animation: hrFade 0.3s ease;
}

.hr_search_box input {
    height: 54px;
    border-radius: 16px;
    border: 1px solid #ddd;
    padding: 0 18px;
    font-size: 14px;
}

.hr_search_box input:focus {
    border-color: var(--hr_primary);
    box-shadow: none;
}

#hrSearchClose {
    position: absolute;
    top: 10px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

@keyframes hrFade {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PREMIUM FOOTER
========================= */

.hr_footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,
            #181818 0%,
            #0b0b0b 100%);
    color: #fff;
    margin-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* GLOW EFFECTS */

.hr_footer::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    top: -120px;
    left: -120px;
    border-radius: 50%;
    background: rgba(67, 160, 71, 0.08);
    filter: blur(90px);
}

.hr_footer::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(213, 87, 59, 0.05);
    filter: blur(90px);
}

.hr_footer .container {
    position: relative;
    z-index: 2;
}

/* FOOTER TITLES */

.hr_footer h6 {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.hr_footer h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 42px;
    height: 3px;
    border-radius: 10px;
    background: var(--hr_primary);
}

/* FOOTER TEXT */

.hr_footer p {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.9;
}

/* FOOTER LINKS */

.hr_footer ul {
    list-style: none;
    padding-left: 0;
}

.hr_footer li {
    margin-bottom: 12px;
}

.hr_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    transition: 0.3s ease;
}

.hr_link::before {
    content: "›";
    color: var(--hr_primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: 0.3s ease;
}

.hr_link:hover {
    color: #fff;
    transform: translateX(6px);
}

.hr_link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* TRUST BOX */

.hr_trust {
    margin-top: 20px;
}

.hr_trust div {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

/* SOCIAL */

.hr_social {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: 0.35s ease;
}

.hr_social:hover {
    background: var(--hr_primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(67, 160, 71, 0.35);
}

/* FOOTER BOTTOM */

.hr_footer_bottom {
    margin-top: 35px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.hr_footer_bottom small {
    color: #999;
    font-size: 13px;
}

.hr_bottom_links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hr_bottom_links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s ease;
}

.hr_bottom_links a:hover {
    color: var(--hr_primary);
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .hr_header {
        padding: 10px 0;
    }

    .hr_logo img {
        max-height: 45px;
    }

    .hr_nav_menu {
        gap: 18px;
    }

    .hr_actions {
        gap: 8px;
    }

    .hr_icon,
    .hr_profile_icon,
    .hr_menu_btn {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .hr_footer .row>div {
        margin-bottom: 35px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .hr_topbar {
        text-align: center;
        font-size: 12px;
    }

    .hr_topbar .container {
        flex-direction: column;
        gap: 2px;
    }

    .hr_header .container {
        gap: 8px;
    }

    .hr_logo img {
        max-height: 40px;
    }

    .hr_mobile_menu {
        width: 280px;
    }

    .hr_actions {
        gap: 6px;
    }

    /* FOOTER */

    .hr_footer {
        text-align: center;
        margin-top: 55px;
    }

    .hr_footer .row>div {
        margin-bottom: 35px;
    }

    .hr_footer h6::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hr_footer .d-flex {
        justify-content: center !important;
    }

    .hr_footer .hr_link {
        justify-content: center;
    }

    .hr_trust {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hr_trust div {
        width: 100%;
        max-width: 290px;
        justify-content: center;
    }

    .hr_footer_bottom {
        text-align: center;
    }

    .hr_footer_bottom .container {
        flex-direction: column;
        gap: 12px;
    }

    .hr_bottom_links {
        justify-content: center;
    }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 480px) {

    .hr_icon,
    .hr_profile_icon,
    .hr_menu_btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .hr_icon i,
    .hr_profile_icon i {
        font-size: 14px;
    }

    .hr_profile_dropdown {
        width: 290px;
        border-radius: 20px;
        padding: 10px;
    }

    .hr_user_icon {
        width: 50px;
        height: 50px;
    }

    .hr_item_icon {
        width: 38px;
        height: 38px;
    }

    .hr_search_box {
        padding: 16px;
        border-radius: 20px;
    }

    .hr_search_box input {
        height: 48px;
    }

    .hr_footer h6 {
        font-size: 16px;
    }

    .hr_social {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .hr_bottom_links {
        gap: 12px;
    }
}