.header-15 .header {
    background-color: white;
    padding: 15px 5px;
}

.header-15 .header .logo img {
    min-height: 25px;
    max-height: 50px;
}

.header-15 .dropdown1 {
    padding-left: 100px;
}

.header-15 .header ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inherit;
    align-items: center;
    gap: 20px !important;
    top: 30px;
}

/* .header-15 .header ul li {
    display: flex;
    align-items: center;
} */


/* --- Header Icons (Wishlist, Cart, etc.) --- */
.header-15 .icon-btn {
    position: relative;
    color: black;
    font-size: 18px;
    text-decoration: none;
}

.header-15 .icon-btn i {
    font-size: 20px;
    /* icon size */
}

.header-15 .icon-btn .count {
    position: absolute;
    top: 13px;
    right: -10px;
    background: #f44336;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
}

/* --- Store Locations Button --- */
.header-15 .store-locations {
    background: #000;
    color: #ffffff !important;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 20px;
    margin-right: 10px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-15 .store-locations i {
    font-size: 14px;
    /* FA map marker */
}

.header-15 .store-locations:hover {
    background: #222;
    /* hover effect */
}

/* Mega Menu */
.header-15 .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* directly below SHOP */
    left: 0;
    width: 700px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* max-width: 100% !important; */
}

.header-15 .mega-menu h6 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.header-15 .mega-menu a {
    display: block;
    padding: 1px 1px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.header-15 .mega-menu a:hover {
    color: #f44336;
    /* red hover */
}

/* Show mega menu on hover (desktop) */
.header-15 .dropdown1:hover .mega-menu {
    display: block;
}


.header-15 .text-black {
    text-decoration: none;
    font-size: 14px;
}

.header-15 .fw-bold {
    font-weight: 700 !important;
    text-decoration: none;
}

.header-15.sticky-top {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .4);
    z-index: 1030;
    /* keep it above content */
}


.header-15 .custom-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-15 .custom-select-wrapper select {
    appearance: none;
    /* removes default arrow (Chrome, Safari, etc.) */
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Firefox */
    padding-right: 30px;
    /* give space for icon */
    border: none;
    outline: none;
}

.header-15 .custom-select-wrapper .material-icons {
    position: absolute;
    right: 10px;
    pointer-events: none;
    /* icon won’t block select clicks */
    font-size: 20px;
    color: black;
    top: 10px;
}

.header-15 #shopDropdown .material-symbols-outlined {
    font-variation-settings: 'wght' 500;
    /* 100 → 700 */
    font-size: 22px;
    /* adjust size */
    vertical-align: middle;
}

.header-15 #shopDropdown {
    color: black;
    text-decoration: none;
}

.header-15 #shopDropdown:hover {
    color: var(--link-hover-color);
}

.header-15 .row1 {
    flex-shrink: 0;
    max-width: 16% !important;
    display: flex;
    column-gap: 70px;
}


/* ------------------------------
   Mobile Layout (only specific devices)
-------------------------------*/
@media (max-width: 1280px) {

    /* restructure header for mobiles */
    .header-15 .header .row {
        flex-direction: column;
    }

    /* Search bar full width at top */
    .header-15 .header .search-wrapper {
        order: 2;
        width: 100%;
        margin-top: 10px;
    }

    /* Bottom row: logo left + icons right */
    .header-15 .header .bottom-row {
        order: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-15 .header .bottom-row .left {
        flex: 1;
    }

    .header-15 .header .bottom-row .right {
        display: flex;
        gap: 15px;
    }

    .header-15 .header ul {
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .header-15 .col-md-2 {
        flex: 0 0 auto;
        width: 40.666667%;
    }
}

/* Mobile View: Adjust Logo Size */
@media (max-width: 767px) {
    .header-15 .header .logo img {
        /* max-height: 40px; */
        max-width: 140px;
        width: auto;
    }
}

@media (min-width: 768px) and (max-width: 1281px) {

    /* Hide desktop-only elements */
    .header-15 .d-md-flex {
        display: none !important;
    }

    .header-15 .d-none.d-md-flex {
        display: none !important;
    }

    /* Show mobile-only layout */
    .header-15 .d-md-none {
        display: block !important;
    }

    .header-15 .bottom-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    /* Header layout stacked like mobile */
    .header-15 .header .row {
        flex-direction: column;
    }

    /* Adjust logo size */
    .header-15 .header .logo img {
        max-height: 40px;
        width: auto;
    }

    /* Search bar full width */
    .header-15 .search-bar {
        width: 100%;
        margin: 10px auto;
    }

    .header-15 .search-bar input {
        padding: 8px 12px;
        font-size: 14px;
    }

    .header-15 .search-bar button {
        padding: 8px 12px;
    }

    /* Dropdown & mega menu behavior */
    .header-15 .mega-menu {
        display: none !important;
    }

    .header-15 .dropdown1:hover .mega-menu {
        display: none !important;
    }

    /* Top bar icons and store buttons styling */
    .header-15 .icon-btn i {
        font-size: 18px;
    }

    .header-15 .store-locations {
        font-size: 13px;
        padding: 5px 8px;
    }
}

.header-15 .mobile-menu-toggler,.header-15 .mobile-menu-toggler:hover {
    border: 0;
    background: transparent;
    color: #282828;
    padding: 1rem 0.5rem;
    margin-right: 0.5rem;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
}

/*///////////////////////////// Offcanvas Container ////////////////////////////////*/
.header-15 .offcanvas-start {
    width: 70% !important;
    /* Adjust width as needed */
    background-color: #111 !important;
    /* Dark background */
    color: white;
    padding: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Offcanvas Header */
.header-15 .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.header-15 .offcanvas-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

/* Close Button */
.header-15 .offcanvas .btn-close {
    filter: invert(1);
    /* Make close button white */
}
.header-15 .offcanvas .btn-close:hover {
    background-color: transparent !important;
}



/* Nav Links */
.header-15 .offcanvas .nav-link {
    color: #fff;
    padding: 0.5rem 0;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.header-15 .offcanvas .nav-link:hover {
    color: #f44336;
    /* Red hover */
}

/* Dropdown Arrows */
.header-15 .offcanvas .fa-chevron-down {
    font-size: 12px;
    margin-left: 0.5rem;
}

/* Collapse Menus (submenus) */
.header-15 .offcanvas .collapse .nav-link {
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

/* Search Bar Inside Offcanvas */
.header-15 .offcanvas .input-group {
    margin-top: 1rem;
}

.header-15 .offcanvas .form-control {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: white;
}

.header-15 .offcanvas .form-control::placeholder {
    color: #aaa;
}

.header-15 .offcanvas .input-group-text {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: white;
}

/* Social Icons */
.header-15 .offcanvas .btn-sm {
    border: none;
    color: white;
    padding: 6px 10px;
}

.header-15 .offcanvas .btn-primary {
    background-color: #3b5998;
}

.header-15 .offcanvas .btn-info {
    background-color: #1da1f2;
}

.header-15 .offcanvas .btn-warning {
    background-color: #e1306c;
    /* Instagram pinkish */
}

/* Scrollbar Customization (Optional) */
.header-15 .offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.header-15 .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 3px;
}

/* Responsive Adjustment */
@media (max-width: 576px) {
    .header-15 .offcanvas-start {
        width: 90% !important;
    }
}

/* searchbar css */
.header-bottom .col-search {
    flex: 1 1 auto;
    position: relative;
    z-index: 10;
}

#search-by-category .search-button {
    display: none;
    color: #253237;
}

.search-content {
    padding: 0;
    border: 0;
    margin: 0;
    box-shadow: none;
    right: 0;
    width: auto;
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
    display: block;
    float: none;
    background: transparent;
}

#search-by-category {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#search-by-category .search-container {
    position: relative;
}

#search-by-category .search-container #text-search {
    padding: 0.8rem 1.2rem;
    /* padding-left: 3rem; */
    /* height: 42px; */
    /* width: calc(100% - 15rem); */
    width: 100%;
    font-size: 1.2rem;
    border: 0;
    z-index: 1;
    background: #ffffff00;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

#search-by-category .search-container .categories-container {
    position: absolute;
    right: 40px;
    top: 0;
    height: 100%;
    display: none;
}

#search-by-category .search-container .categories-container .hover-cate {
    height: 100%;
}

#search-by-category .search-container .categories-container .hover-cate .text-selected {
    overflow: hidden;
    height: 100%;
}

#search-by-category .search-container .categories-container .hover-cate .cate-selected {
    position: relative;
    height: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: #253237;
    cursor: pointer;
}

#search-by-category .search-container .categories-container .hover-cate .cate-selected span {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 90px;
    overflow: hidden;
    font-size: 11px;
    line-height: 36px;
    letter-spacing: 0.005em;
}

#search-by-category .search-container .categories-container .hover-cate .cate-selected>* {
    position: relative;
}

#search-by-category .search-container .categories-container .hover-cate .text-selected i {
    display: inline-block;
    vertical-align: top;
    line-height: inherit;
    font-size: 1.2rem;
}

#search-by-category .search-container .categories-container .hover-cate .cate-items {
    z-index: 9999 !important;
    position: absolute;
    display: none;
    max-height: 30rem;
    background: #fff;
    overflow: auto;
    margin-top: 0px;
    border: 1px solid #ddd;
    padding: 0.5rem;
    width: 100%;
    cursor: pointer;
    top: 100%;
    text-align: left;
}

.cate-items li {
    text-transform: capitalize;
    font-size: 1.2rem;
    list-style: none;
    line-height: 2rem;
}

#search-by-category #sp-btn-search {
    position: absolute;
    right: 0px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

#btn-search-category {
    border: none !important;
    box-shadow: none;
    text-shadow: none;
    height: 100%;
    color: black;
    font-size: 1.8rem;
    letter-spacing: 0;
    font-weight: 700;
    text-transform: capitalize;
    padding: 0px 15px;
    background: transparent;
}

#btn-search-category:before {
    vertical-align: top;
    display: inline-block;
    line-height: inherit;
    font-family: "Ionicons";
    content: "\f4a4";
}

#btn-search-category span {
    display: none;
}

#search-by-category .search-ajax {
    position: absolute;
    z-index: 9999 !important;
    background: none repeat scroll 0% 0% #fff;
    left: 0px;
    top: 100%;
    width: 88%;
    min-width: 25rem;
    max-width: 600px;
}

#search-by-category .search-ajax .ajax-result-container {
    box-shadow: 0px 0px 0.5rem rgba(0, 0, 0, 0.1);
}

#search-by-category .search-ajax .ajax-result-container .ajax-result-list {
    display: block;
    border: 1px solid #ddd;
    max-height: 30rem;
    overflow: auto;
    margin: 0;
    padding: 10px;
}

#search-by-category .search-ajax li {
    list-style: none;
    margin-bottom: 2rem;
}

/* searchbar css ends */

/* Common Menu Css */
#wishlist-total,
.compare-header {
    display: inline-block;
    vertical-align: top;
    color: black;
    position: relative;
    text-transform: capitalize;
    line-height: 40px;
}

#wishlist-total:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f004";
    font-size: 20px;
    display: inline-block;
    vertical-align: top;
    color: black;
}

#wishlist-total .text-wishlist {
    color: #727272;
    vertical-align: bottom;
    display: inline-block;
    line-height: 1;
    text-transform: capitalize;
    margin-left: 3px;
    font-size: 1.3rem;
    display: none;
}

#header .header-bottom {
    background: transparent !important;
}

/* common menu css ends */

/* Cart design */
#cart.open:before {
    content: "";
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    left: 0;
    top: 0;
}

#cart>.btn:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f290";
    font-size: 20px;
    position: relative;
    color: black;
}

#cart .txt-count,
#wishlist-total .txt-count {
    width: 17px;
    height: 17px;
    line-height: 17px;
    font-size: 11px;
    background: var(--link-hover-color);
    color: #fff;
    position: absolute;
    text-align: center;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    font-weight: 700;
    top: 20px;
    right: -8px;
}

#wishlist-total .txt-count {
    top: 20px;
    right: -8px;
}

/* Cart design ends */

/* dropdown basic css starts */
.horizontal-menu .ul-top-items .li-top-item.right{float:right;position:relative;text-align:right;}
.horizontal-menu .ul-top-items .li-top-item.mega-right{float:right;text-align:right;}
.horizontal-menu .sub-menu-container,.horizontal-menu .flyout-third-items{position:absolute;top:100%;-webkit-box-shadow: none;box-shadow: none;border: 0;background: #fff;border-radius: 0;-webkit-border-radius: 0;-webkit-box-shadow: 0 0 4px 0 rgba(0,0,0,0.15);box-shadow: 0 0 4px 0 rgba(0,0,0,0.15);}
.horizontal-menu .flyout-menu-container{width:20rem;}
.horizontal-menu .flyout-menu-container.left .a-item .fa{float:right;line-height:inherit;}
.horizontal-menu .flyout-menu-container.left{float:left;}
.horizontal-menu .flyout-menu-container.right{float:right;right:0;}
.horizontal-menu .flyout-menu-container.right .a-item .fa{float:left;line-height:inherit;}
.horizontal-menu .flyout-menu-container.right .li-second-items{position:relative;}
.horizontal-menu .ul-second-items .li-second-items{position:relative;background: transparent !important;}
.horizontal-menu .ul-second-items .li-second-items .a-second-link{padding:1rem 1.5rem !important;}
.horizontal-menu .ul-second-items .li-second-items .a-second-link i{font-size: 1.2rem;margin: 0;}
.horizontal-menu .flyout-menu-container{width:20rem;}
.horizontal-menu .flyout-menu-container.left .a-item .fa{float:right;line-height:inherit;}
.horizontal-menu .flyout-menu-container.left{float:left;}
.horizontal-menu .flyout-menu-container.right{float:right;right:0;}
.horizontal-menu .flyout-menu-container.right .a-item .fa{float:left;line-height:inherit;}
.horizontal-menu .flyout-menu-container.right .li-second-items{position:relative;}
.sub-menu-container {
    z-index: 100;
    display: none;
}
.horizontal-menu .ul-top-items .li-top-item .left {
    text-align: left;
}
.horizontal-menu .flyout-menu-container.left {
    float: left;
}
.horizontal-menu .ul-top-items .li-top-item > a > i{
    background: transparent !important;
}
.horizontal-menu .ul-top-items .li-top-item > a > i {
    font-size: 1.2rem;
    display: inline-block;
    vertical-align: top;
    color: inherit;
    font-weight: normal !important;
}
#accountMenu.dropdown-menu li>a {
    font-size: 1.2rem;
}
/* dropdown basic css end */

.fabrilife-theme .horizontal-menu .mega-menu-container{
    margin-left: 0 !important;
}

/* Header login and wishlist fixes */
.header-15 .header .dropdown-menu li {
    padding: 0 2rem;
}

.header-15 .header :not(#cart) > .dropdown-menu li a{
    line-height: 3rem;
    color: #2b2d2f;
    text-align: left;
    /* padding: 0.9rem 0; */
    background: none;
    font-size: 1.3rem;
    font-weight: normal;
    text-transform: capitalize;
    /* display: block; */
    border-bottom: 1px solid #eee;
}