.border-red-500 {
    border-color: red;
}

.text-red-500 {
    color: red;
}

/* =============================================
   Mobile menu drawer (replaces meanmenu)
   ============================================= */
.gw-mobile-menu-area { display: none; }

@media (max-width: 991px) {
    .gw-mobile-menu-area { display: block; }
}

/* Hamburger toggle (inline in header-right-wrap on mobile) */
.gw-mobile-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    padding: 6px 4px;
    margin: 0 0 0 14px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
    vertical-align: middle;
    z-index: 1001;
}
.gw-mobile-toggle span {
    height: 2.5px;
    background: #1a1a1a;
    border-radius: 2px;
}
@media (max-width: 991px) {
    .gw-mobile-toggle { display: inline-flex; }

    /* Kill the legacy 50px reservation that meanmenu used */
    .header-right-wrap,
    .stick .header-right-wrap {
        margin-right: 0 !important;
        align-items: center;
    }

    /* Order on mobile: cart → search → hamburger (menu at end) */
    .header-right-wrap .header-search { order: 2; }
    .header-right-wrap .cart-wrap     { order: 1; }
    .header-right-wrap .gw-mobile-toggle { order: 3; }
}
.gw-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.gw-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.gw-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.gw-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Backdrop */
.gw-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 1099;
}
.gw-mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.gw-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 86%;
    max-width: 360px;
    background: #fff;
    box-shadow: 2px 0 24px rgba(0, 0, 0, .15);
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gw-mobile-drawer.is-open { transform: translateX(0); }

.gw-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.gw-mobile-drawer__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #222;
    text-transform: uppercase;
}
.gw-mobile-drawer__close {
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    padding: 0 6px;
}

/* Nav list */
.gw-mobile-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
}
.gw-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gw-mobile-item {
    border-bottom: 1px solid #f0f0f0;
}
.gw-mobile-link {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #2b2b2b;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gw-mobile-link:hover,
.gw-mobile-link:focus {
    background: #f6f7fb;
    color: #3f60cb;
    outline: none;
}
.gw-mobile-caret {
    font-size: 16px;
    color: #888;
    transition: transform .25s ease;
}
.gw-mobile-item.is-open > .gw-mobile-link .gw-mobile-caret {
    transform: rotate(180deg);
    color: #3f60cb;
}
.gw-mobile-item.is-open > .gw-mobile-link {
    color: #3f60cb;
    background: #f6f7fb;
}

/* Submenu (accordion) */
.gw-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #fbfbfd;
}
.gw-mobile-item.is-open > .gw-mobile-submenu {
    max-height: 1500px;
}
.gw-mobile-submenu li a {
    display: block;
    padding: 12px 22px 12px 38px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.gw-mobile-submenu li a:hover {
    color: #3f60cb;
    background: #f0f3ff;
    padding-left: 44px;
}

/* Lock body scroll when drawer open */
body.gw-menu-open {
    overflow: hidden;
}

/* Hide the legacy mobile menu container if it ever sneaks in */
.mobile-menu-area { display: none !important; }

/* =============================================
   Header search & cart icons (mobile + desktop)
   ============================================= */

/* Flat icon buttons — no card background */
.header-right-wrap .same-style.header-search > a,
.header-right-wrap .same-style.cart-wrap > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    color: #1a1a1a;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: color .2s ease, transform .2s ease;
}
.header-right-wrap .same-style.header-search > a:hover,
.header-right-wrap .same-style.cart-wrap > button:hover,
.header-right-wrap .same-style.header-search > a:focus-visible,
.header-right-wrap .same-style.cart-wrap > button:focus-visible {
    color: #3f60cb;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translateY(-1px);
    outline: none;
}
.header-right-wrap .same-style.header-search > a:active,
.header-right-wrap .same-style.cart-wrap > button:active {
    transform: translateY(0);
    box-shadow: none;
}
.header-right-wrap .same-style.cart-wrap > button {
    position: relative;
}

/* Cart count badge — pill, brand color, animated */
.header-right-wrap .same-style.cart-wrap button span.count-style {
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    width: auto;
    padding: 0 6px;
    line-height: 20px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, #3f60cb 0%, #5a7ee6 100%);
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(63, 96, 203, .35);
    letter-spacing: .2px;
}
/* Keep badge readable when the parent button flips to filled-blue on hover */
.header-right-wrap .same-style.cart-wrap > button:hover span.count-style {
    box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 991px) {
    .header-right-wrap .same-style.header-search > a,
    .header-right-wrap .same-style.cart-wrap > button {
        width: 38px;
        height: 38px;
        font-size: 19px;
        border-radius: 0;
    }
    .header-right-wrap .same-style {
        margin-left: 6px !important;
    }
}

/* =============================================
   Search modal (replaces inline dropdown)
   ============================================= */

/* Override the base style.css `display:none` so we can animate via classes */
.header-right-wrap .same-style.header-search .search-content {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    border-radius: 8px;
    border: 1px solid #ececec;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.header-right-wrap .same-style.header-search.is-open .search-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-content__close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.search-content__close:hover {
    background: #f0f0f0;
    color: #000;
}

/* Backdrop */
.search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 1098;
    display: none;
}

/* Mobile: full-width top sheet + backdrop */
@media (max-width: 991px) {
    .search-backdrop {
        display: block;
    }
    .header-search.is-open .search-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .header-right-wrap .same-style.header-search .search-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 22px 18px 22px;
        border-radius: 0 0 16px 16px;
        border: 0;
        box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
        transform: translateY(-100%);
        z-index: 1100;
    }
    .header-right-wrap .same-style.header-search.is-open .search-content {
        transform: translateY(0);
    }
    .header-right-wrap .same-style.header-search .search-content form {
        margin-top: 26px;
        margin-right: 4px;
    }
    .header-right-wrap .same-style.header-search .search-content form input {
        height: 50px;
        font-size: 16px;
        padding: 5px 64px 5px 18px;
        border-radius: 10px;
        border: 1px solid #e2e2e2;
        background: #f7f7fa;
    }
    .header-right-wrap .same-style.header-search .search-content form input:focus {
        border-color: #3f60cb;
        background: #fff;
    }
    .header-right-wrap .same-style.header-search .search-content form .button-search {
        border-radius: 0 10px 10px 0;
        font-size: 18px;
        padding: 5px 22px 2px;
    }
    .search-content__close {
        display: inline-flex;
    }
}

/* Lock body scroll while search modal open */
body.gw-search-open {
    overflow: hidden;
}

/* =============================================
   Footer social icons
   ============================================= */
.footer-social ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-social ul li {
    margin-bottom: 10px;
}
.footer-social ul li a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-social ul li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f3ff;
    color: #3f60cb;
    font-size: 16px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social ul li a:hover {
    color: #3f60cb;
}
.footer-social ul li a:hover i {
    background: #3f60cb;
    color: #fff;
    transform: translateY(-2px);
}

/* =============================================
   Desktop mega-menu polish
   ============================================= */
@media (min-width: 992px) {
    .main-menu nav ul li > a {
        cursor: pointer;
    }
    .main-menu nav ul li ul.mega-menu {
        border-radius: 6px;
        border-top: 3px solid #3f60cb;
    }
}
