/* =========================================================
   1) ROOT VARIABLES
========================================================= */
:root {
    --ab-orange: #FFA100;
    --ab-black: #000000;
    --ab-dark-gray: #222222;
    --ab-white: #FFFFFF;
    --ab-green: #006514;
    --ab-light-gray: #D9D9D9;
    --ab-deep-gray: #79747E;
    --ab-blue: #4969E4;
    --mobile-header-offset: 136px;
    --tablet-header-offset: 144px;
    --desktop-header-offset: 160px;
}

/* =========================================================
   2) BASE / GLOBAL
========================================================= */
.message {
    white-space: nowrap;
}

.separator {
    color: var(--ab-orange);
    font-weight: 700;
    padding: 0 5px;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    transform: rotate(0deg);
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* =========================================================
   3) CONTENT OFFSET / HEADER POSITIONING
========================================================= */
/* Mobile first */
header {
    position: fixed !important;
}

#content {
    padding-top: var(--mobile-header-offset) !important;
}

/* Small mobile tweak */
@media (min-width: 326px) and (max-width: 565px) {
    #content {
        padding-top: 143px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    #content {
        padding-top: var(--tablet-header-offset) !important;
    }
}

/* Desktop */
@media (min-width: 992px) {
    #content {
        padding-top: var(--desktop-header-offset)!important;
    }
}
@media (max-width: 680px) {
    .cart-badge {
        top:58% !important;
    }
}

/* =========================================================
   4) TOP BAR
========================================================= */
.top-bar {
    height: 26px;
    font-weight: 500;
    line-height: 1;
}

.ship-to,
.currency {
    gap: 8px;
    font-size: 15px;
}

.messages-small {
    gap: 5px;
    line-height: 1;
}

.messages-tablet {
    padding: 0 20px;
    line-height: 20px;
}

.messages-left {
    gap: 10px;
    font-size: 15px;
    line-height: 1;
}

.user-options {
    gap: 25px;
}

/* =========================================================
   5) HEADER MAIN AREA
========================================================= */
.orange-header {
    background-color: var(--ab-orange);
    color: var(--ab-black);
}

.flex-header {
    padding-top: 10px;
    padding-bottom: 13px;
}

.mobile-tablet-layout {
    padding-left: 12px;
    padding-right: 12px;
}

.left-group {
    gap: 10px;
}

.logo-wrapper svg {
    height: 34px;
    width: auto;
}

/* =========================================================
   6) SEARCH / BUTTONS / ICONS
========================================================= */
.search-bar-wrapper {
    gap: 4px;
    padding: 10px 15px;
    min-width: 0;
    width: 100%;
    max-width: 720px;
}

.right-buttons-section {
    gap: 10px;
}

.account-icons {
    gap: 5px;
}

.account-icons .icon-link {
    text-decoration: none;
    color: inherit;
}

.account-icons .icon-link:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-icons .icon-text {
    display: none;
    margin-top: 3px;
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.help-icon {
    display: none;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    color: var(--ab-white);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
}

/* =========================================================
   7) NAVIGATION
========================================================= */
.desktop-main-row {
    background-color: var(--ab-orange);
}

.desktop-nav-row {
    height: 45px;
    background-color: var(--ab-green);
}

.desktop-nav-menu {
    color: var(--ab-white);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.5px;
}

.nav-item {
    padding: 11px 5px 10px !important;
    white-space: nowrap;
    color: var(--ab-white);
}

.desktop-nav-menu .d-flex > .dropdown:first-child .nav-item {
    padding-left: 0 !important;
}

.nav-item.dropdown-toggle::after {
    margin-left: 6px;
    font-size: 0.8em;
    vertical-align: middle;
    color: var(--ab-white);
}

.nav-item:hover {
    background: var(--ab-light-gray);
    color: var(--ab-dark-gray);
}

.nav-item:hover svg {
    color: var(--ab-dark-gray) !important;
}

.trustpilot-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 191px;
    height: 23px;
    padding: 2px 8px;
    overflow: hidden;
    background: var(--ab-white);
    border-radius: 16px;
}

/* =========================================================
   8) GENERIC DROPDOWN
========================================================= */
.dropdown-menu {
    /* max-height: 350px; */
    overflow-y: auto;
    border: 1px solid var(--ab-deep-gray) !important;
    border-radius: 0 0 8px 8px !important;
}
.user-options .dropdown-menu {
    max-height: 350px;
}

.sub-menu-columns {
    column-count: 2;
    column-gap: 5px;
}

.sub-menu-columns li {
    break-inside: avoid;
    margin-bottom: 0;
}

#header .dropdown-item {
    padding: 8px;
    color: var(--ab-dark-gray);
    border-bottom: 1px solid var(--ab-deep-gray);
}

#header .dropdown-item.active {
    color: var(--ab-black);
    background-color: #f0f0f0;
}

#header .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

/* =========================================================
   9) DESKTOP MEGA MENU
========================================================= */
.desktop-nav-menu .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 20px 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background-color: #F4F4F4 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.desktop-nav-menu .dropdown:hover > .dropdown-menu {
    display: block !important;
}

.desktop-nav-menu .dropdown-menu h6 {
    padding: 10px;
    overflow: hidden;
    color: var(--ab-black) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 8px;
}

.desktop-nav-menu .dropdown-menu h6:hover,
.desktop-nav-menu .dropdown-menu a.text-muted:hover,
.desktop-nav-menu .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.desktop-nav-menu .dropdown-menu a.text-muted,
.desktop-nav-menu .dropdown-menu .dropdown-item {
    padding: 10px !important;
    color: var(--ab-black) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: background 0.2s;
}

.desktop-nav-menu .dropdown-menu .row > .col-6 {
    padding: 0 15px;
}

.desktop-nav-menu .dropdown-menu .row > .col-md-4:not(:last-child),
.mega-col.with-border {
    border-right: 1px solid var(--ab-orange);
}

.mega-item {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.mega-link {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 5px 0 5px 10px;
    color: var(--ab-black) !important;
    font-size: 16px;
    font-weight: 400 !important;
    text-decoration: none;
    text-overflow: ellipsis;
    border-radius: 8px;
}

.mega-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================================
   10) MOBILE MENU
========================================================= */
#mobileMenu {
    position: fixed;
    top: 142px;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 142px);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

#mobile-menu-toggle:checked ~ #mobileMenu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu-toggle:checked ~ .main-content {
    filter: blur(4px);
    pointer-events: none;
}

.hamburger {
    display: inline-block;
}

.mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    background: #F3F3F3;
}

.mobile-menu-overlay > .py-3 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#mobileMenu .close-btn svg {
    color: var(--ab-black);
}

#mobileMenu .catgories-part {
    gap: 25px !important;
    align-items: flex-start;
}

#mobileMenu .list-unstyled {
    width: 227px;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#mobileMenu .mainTitles .list-unstyled li a,
.mobile-menu-item {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 10px 10px 10px 15px;
    color: var(--ab-black);
    background: var(--ab-white);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: var(--ab-orange);
}

#mobileMenu .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 36px;
    padding: 3px 10px;
    background: var(--ab-white);
    border-radius: 8px;
    transition: background 0.2s;
}

#mobileMenu .close-btn span {
    color: var(--ab-black);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 25px;
}

.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

input[type="checkbox"]:checked ~ .sub-menu {
    max-height: 2000px;
}

.arrow-toggle {
    transition: transform 0.3s ease;
}

input[type="checkbox"]:checked + label .arrow-toggle {
    transform: rotate(180deg);
}

.view-all-link {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px 0 20px;
    color: var(--ab-black);
    background: #f3f3f3 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.categories-link {
    font-weight: 400 !important;
}

/* =========================================================
   11) MOBILE FOOTER
========================================================= */
.mobile-footer-row {
    display: flex;
    gap: 10px;
    height: 44px;
    background-color: var(--ab-green);
}

.mobile-menu-footer {
    flex-shrink: 0;
    width: 100%;
}

.footer-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
}

.footer-scroll-part {
    color: var(--ab-black);
    background-color: var(--ab-light-gray);
}

.footer-part--black {
    color: var(--ab-white);
    background-color: var(--ab-black);
}

.footer-part--orange {
    background-color: var(--ab-orange);
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 19.5px;
}

.footer-part--orange a {
    color: var(--ab-dark-gray) !important;
    text-decoration: none;
}

.footer-part--green {
    color: var(--ab-white);
    background-color: var(--ab-green);
}

/* =========================================================
   12) RESPONSIVE - TABLET
========================================================= */
@media (min-width: 768px) {
    .mobile-tablet-layout {
        padding-left: 15px;
        padding-right: 15px;
    }

    .left-group {
        gap: 20px;
    }

    .logo-wrapper svg {
        height: 42px;
    }

    .account-icons {
        gap: 15px;
    }

    .account-icons .icon-link {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .account-icons .icon-text {
        display: block;
    }
}

/* =========================================================
   13) RESPONSIVE - DESKTOP
========================================================= */
@media (min-width: 992px) {
    .top-bar {
        height: 36px;
    }

    .flex-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-wrapper svg {
        height: 50px;
    }

    .search-bar-wrapper {
        min-width: 360px;
        width: 45%;
    }

    .account-icons .icon-text {
        font-size: 13px;
    }
}

/* =========================================================
   14) RESPONSIVE - LARGE DESKTOP
========================================================= */
@media (min-width: 1200px) {
    .messages-left {
        gap: 20px;
    }

    .desktop-nav-menu {
        font-size: 18px;
    }

    .nav-item {
        padding: 11px 15px 10px !important;
    }

    .flex-header {
        padding-left: 40px;
        padding-right: 40px;
        padding-bottom: 10px;
    }

    .logo-wrapper svg {
        height: 63px;
    }
}

/* =========================================================
   15) RESPONSIVE - SMALL DEVICES ONLY
========================================================= */
@media (max-width: 534px) {
    .messages-small {
        gap: 5px;
        line-height: 1;
    }

    .view-all-link {
        height: auto;
        padding: 10px 10px 0 20px;
    }

    .categories-link {
        line-height: 1.2;
    }

    #mobileMenu .list-unstyled {
        width: 250px;
    }
}

@media (min-width: 535px) and (max-width: 1023px) {
    .messages-tablet {
        padding: 0 20px;
        line-height: 20px;
    }

    .view-all-link {
        height: auto;
        padding: 10px 10px 0 20px;
    }

    .categories-link {
        line-height: 1.2;
    }
    #mobileMenu .list-unstyled {
        width: auto;
    }
}
