/* Ported Classic Header Styles */

.topbar {
    border-bottom: 1px solid rgb(0 0 0 / 7%);
    padding: 10px 0px;
    font-size: 14px;
}

#header.topper-white {
    background: #ffffff;
    z-index: 990;
    padding: 0px;
    margin: 0px;
    position: relative;
    width: 100%;
    color: rgb(2, 0, 0);
}

#header.topper-white .topbar {
    color: var(--primary-color);
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}

#header.topper-white .topbar a {
    color: var(--primary-color);
}

#cart-count {
    font-size: 12px;
    background: #ff0000;
    color: #fff;
    padding: 3px 5px;
    bottom: 19px;
    margin-left: -6px;
    position: relative;
}

.badge-sm {
    padding-left: 9px;
    padding-right: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}

/* Mega Menu */
.cd-morph-dropdown {
    position: relative;
    height: 35px;
    background-color: #FFFFFF;
}

.cd-morph-dropdown .nav-trigger {
    position: absolute;
    top: 0;
    right: 0;
    height: 60px;
    width: 60px;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: transparent;
}

.cd-morph-dropdown .nav-trigger span,
.cd-morph-dropdown .nav-trigger span::after,
.cd-morph-dropdown .nav-trigger span::before {
    position: absolute;
    background-color: #1A1A1A;
    height: 3px;
    width: 26px;
}

.cd-morph-dropdown .nav-trigger span {
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: background-color .3s;
}

.cd-morph-dropdown .nav-trigger span::before {
    content: '';
    left: 0;
    transform: translateY(-9px);
    transition: transform .3s;
}

.cd-morph-dropdown .nav-trigger span::after {
    content: '';
    left: 0;
    transform: translateY(9px);
    transition: transform .3s;
}

.cd-morph-dropdown.nav-open .nav-trigger span {
    background-color: transparent;
}

.cd-morph-dropdown.nav-open .nav-trigger span::before {
    transform: rotate(45deg);
}

.cd-morph-dropdown.nav-open .nav-trigger span::after {
    transform: rotate(-45deg);
}

.cd-morph-dropdown .morph-dropdown-wrapper {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1.2em 5%;
    box-shadow: inset 0 1px 0 #e6e6e6;
    background-color: #FFFFFF;
}

.cd-morph-dropdown.nav-open .morph-dropdown-wrapper {
    display: block;
}

/* Sidebar & Nav */
.sidenav,
.shopping-cart-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    background-color: rgb(255, 255, 255);
    overflow-y: scroll;
    overflow-x: hidden;
    transition: 150ms;
    visibility: hidden;
    /* Ensure they don't block interaction when width is 0 */
}

.sidenav {
    left: 0;
    max-width: 100%;
}

.shopping-cart-sidebar {
    right: 0px;
    max-width: 100%;
}

/* Sidenav/Cart Open state */
#mySidenav:not(.is-closed-left),
.shopping-cart-sidebar:not(.is-closed-right) {
    width: 400px;
    visibility: visible;
}

.is-closed-right {
    transform: translateX(400px);
}

.is-closed-left {
    transform: translateX(-400px);
}

.block-div {
    width: 0px;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    opacity: 0.7;
    background-color: rgb(26, 26, 27);
    z-index: 1000;
    text-align: center;
    transition: width 150ms;
}

.see-all-category {
    font-weight: bolder !important;
    padding: 8px 18px !important;
}

/* Search Bar Placeholder styling */
.search-size::placeholder {
    font-size: 0.85em;
    color: #999;
}

.search-size::-webkit-input-placeholder {
    font-size: 0.85em;
}

.search-size:-moz-placeholder {
    font-size: 0.85em;
}

.search-size::-moz-placeholder {
    font-size: 0.85em;
}

.search-size:-ms-input-placeholder {
    font-size: 0.85em;
}

/* Desktop Navigation Fixes */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
    }

    .navbar-nav .nav-item {
        /* margin-right: 15px; */
    }
}

/* Search Bar (extracted from common patterns if not in style.css directly) */
.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.header-varient {
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    z-index: 100 !important;
    position: fixed;
    top: 0;
    width: 100%;
}

/* Ensure all modals appear above header */
.modal,
.iziModal {
    z-index: 99999 !important;
}

.topbar {
    border-bottom: 1px solid rgb(0 0 0 / 7%);
    padding: 10px 0px;
    font-size: 14px;
    width: 100%;
}

#header.topper-white {
    width: 100%;
    background: #fff;
    z-index: 1100;
}

#header.topper-white .topbar {
    height: 40px;
    line-height: 40px;
}

.topbar-text-color {
    background: #fff !important;
    border-bottom: 1px solid #eee;
}

.list-inline {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.list-inline>li {
    display: inline-block;

    white-space: nowrap;
    vertical-align: middle;
}

.topbar-left ul li:first-child {
    padding-left: 0;
}

.topbar-right ul li:last-child {
    padding-right: 0;
}

.topbar-right {
    text-align: right;
}

.topbar-right ul.list-inline {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    list-style: none;
    padding: 0;
}

.topbar a i {
    margin-right: 5px;
    vertical-align: middle;
}

.topbar a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.link-color {
    color: #f25d00 !important;
}

.navbar-brand img {
    max-width: 200px;
    height: auto;
}

.header-icon {
    color: #f25d00 !important;
    position: relative;
    font-size: 20px;
}

.badge-danger {
    background-color: #f25d00 !important;
    font-size: 10px !important;
    position: absolute;
    top: 0;
    right: 0;
}

.nav-link {
    padding: 1rem 1.2rem !important;
    font-size: 16px !important;
    color: #333 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #f25d00 !important;
}

.search-size {
    font-size: 14px !important;
    height: 40px !important;
    border-radius: 5px !important;
    max-width: 500px;
    margin: 0 auto;
}

.has-search .form-control-feedback {
    height: 40px !important;
    line-height: 40px !important;
}


.cat-list {
    color: #000000;
    text-decoration: none;
    display: block;
    padding: 10px 0 10px 25px;
    font-size: 16px;
    outline: 0;
    transition: all 200ms ease-in;
}

.cat-list a {
    color: #000 !important;
    display: flex;
    align-items: center;
}

.cat-list a img {
    margin-right: 10px;
}

.cat-list:hover {
    background: #f8f9fa;
}

/* Sidebar navigation from classic */
#leftside-navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

#leftside-navigation ul li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

#leftside-navigation ul li a i {
    margin-right: 10px;
    width: 20px;
}

#leftside-navigation ul li.sub-menu>a::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
}


@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden !important;
        position: relative;
    }

    /* Restored Mobile Topbar/Navbar Styles */
    .brand-logo-link {
        max-width: 150px;
        max-height: 60px;
    }

    .header-varient {
        padding-bottom: 0 !important;
    }

    .topbar {
        display: block !important;
        padding: 5px 10px !important;
        background: #000 !important;
    }

    .topbar-left {
        display: none !important;
    }

    .topbar-right {
        width: 100% !important;
    }

    .topbar-right ul {
        display: flex !important;
        justify-content: center !important;
        /* Centered in responsive */
        /* gap: 15px; */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .topbar-right ul li {
        padding: 0 5px !important;
    }

    .topbar-right ul li a {
        color: #e0cb0c !important;
        /* Gold/Yellow */
        font-size: 12px !important;
    }

    .topbar-right ul li a i {
        color: #e0cb0c !important;
    }

    .topbar-right ul li.social-icon-item {
        display: inline-block !important;
    }

    .topbar-right ul li.link-item+.link-item {
        margin-left: 10px;
    }

    .navbar-brand img {
        max-height: 54px !important;
    }

    .navbar {
        padding-left: 10px !important;
        padding-right: 10px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
        min-height: 50px !important;
    }

    /* Mobile layout positioning v5 */
    .navbar-top-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 60px !important;
        height: 60px !important;
        position: relative !important;
    }

    .navbar-top-row .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar-top-row .navbar-toggler {
        padding: 0 !important;
        border: none !important;
        z-index: 11 !important;
        position: relative !important;
    }

    .navbar-top-row .mobile-cart-icon {
        z-index: 11 !important;
        position: relative !important;
    }

    .mobile-search-container {
        width: 100% !important;
        margin-top: 5px !important;
        padding: 0 5px !important;
    }

    /* Mobile Search Select2 Overrides (V6 Screenshot Sync) */
    .mobile-search-container {
        background: #fff;
        padding-top: 5px;
        border-top: 1px solid #eee;
        overflow-x: hidden !important;
    }

    .select2-container--bootstrap-5.select2-container--open {
        z-index: 100001 !important;
    }

    /* Fixed Dropdown Styling to prevent horizontal scroll and width overflow */
    .select2-container--bootstrap-5 .select2-dropdown {
        border: 1px solid #ced4da !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border-radius: 12px !important;
        padding: 5px;
        margin-top: -1px !important;
        background-color: #fff !important;
        box-sizing: border-box !important;
        /* width: 92vw !important; */
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        top: var(--header-height, 60px) !important;
        z-index: 100005 !important;
        overflow: hidden !important;
    }

    /* Search Result Repository Styles */
    .select2-result-repository {
        padding: 12px 8px;
        border-bottom: 1px solid #f1f1f1;
        cursor: pointer;
        display: block;
        width: 100%;
    }

    .select2-result-repository:last-child {
        border-bottom: none;
    }

    .select2-result-repository__avatar {
        float: left;
        width: 50px;
        height: 50px;
        margin-right: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .select2-result-repository__avatar img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
        object-fit: contain;
    }

    .select2-result-repository__meta {
        overflow: hidden;
    }

    .select2-result-repository__title {
        color: #2c2c2c;
        font-weight: 600;
        font-size: 14px;
        line-height: normal;
        margin-bottom: 2px;
    }

    .select2-result-repository__description {
        font-size: 12px;
        color: #777;
    }

    .select2-result-repository__meta_icon {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Arrow Button Styling - Modern and Clean */
    .search_btn_custom {
        background: #f8f9fa !important;
        border: 1px solid #eee !important;
        border-radius: 6px !important;
        padding: 4px 8px !important;
        color: #f25d00 !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 10px;
    }

    .search_btn_custom i {
        font-size: 18px !important;
        font-weight: bold;
    }

    .search_btn_custom:active {
        background: #e9ecef !important;
    }

    .select2-container--bootstrap-5 .select2-search--dropdown {
        padding: 8px 5px !important;
        display: block !important;
    }

    .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
        border: 1px solid #ced4da !important;
        border-radius: 4px !important;
        padding: 8px 12px !important;
        height: 40px !important;
        font-size: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-color: #fff !important;
        /* Ensure white background */
    }

    .select2-results__message {
        font-size: 13px !important;
        color: #999 !important;
        padding: 10px 0 !important;
    }

    .mobile-search .select2-container {
        width: 100% !important;
        display: block !important;
        border: 2px solid rgba(185, 185, 185, .2) !important;
        border-radius: 4px !important;
        background-color: #fff !important;
    }

    .mobile-search .select2-container--bootstrap-5 .select2-selection {
        border-radius: 4px !important;
        height: 40px !important;
        background-color: #fff !important;
        border: none !important;
        display: flex !important;
        align-items: center;
        padding-left: 10px !important;
    }

    .mobile-search .select2-container--bootstrap-5 .select2-selection__rendered {
        padding-left: 0 !important;
        line-height: normal !important;
    }

    .mobile-search .select2-container--bootstrap-5 .select2-selection .select2-selection__rendered {
        padding-left: 0 !important;
        color: #888 !important;
    }

    .mobile-search .select2-container--bootstrap-5 .select2-selection .select2-selection__placeholder {
        color: #aaa !important;
    }

    /* Horizontal Scroll Fix - Ensure row width doesn't exceed 100% */
    .navbar-top-row {
        margin: 0 !important;
        padding: 10px 10px !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }


}

/* Classic Footer Styles Ported to Modern Theme */
.footer-section-footer {
    background: #151414;
    position: relative;
}

.footer-cta {
    border-bottom: 1px solid #373636;
}

.single-cta i {
    color: #e0cb0c;
    font-size: 30px;
    float: left;
    margin-top: 8px;
}

.cta-text {
    padding-left: 15px;
    display: flow-root;
    text-align: left;
}

.cta-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cta-text p {
    color: #757575;
    font-size: 16px;
    margin: 0;
}

.footer-content-footer {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.footer-logo-footer {
    margin-bottom: 30px;
}

.footer-logo-footer img {
    max-width: 200px !important;
}

.footer-text p {
    margin-bottom: 14px;
    font-size: 15px;
    color: #7e7e7e;
}

.footer-social-icon h4 {
    color: #fff;
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    margin-bottom: 20px;
    text-align: left;
}

.footer-social-icon a {
    color: #fff;
    font-size: 16px;
    margin-right: 15px;
}

.footer-social-icon i {
    height: 44px;
    width: 44px;
    text-align: center;
    line-height: 44px;
    border-radius: 50%;
    background: #3B5998;
}

.footer-social-icon i.clr-twitter {
    background: #55ACEE;
}

.footer-social-icon i.clr-insta {
    background: #e1306c;
}

.footer-social-icon i.clr-youtube {
    background: #DD4B39;
}

.footer-widget-heading h4 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    text-align: left;
}

.footer-widget-heading h4::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    height: 2px;
    width: 50px;
    background: #000000;
}

.footer-widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
}

.footer-widget ul li {
    display: inline-block;
    float: left;
    width: 50%;
    margin-bottom: 6px;
    text-align: left;
}

.footer-widget ul li a {
    color: #878787;
    text-transform: capitalize;
    font-size: 15px;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: #e0cb0c;
}

.copyright-area {
    background: #202020;
    padding: 25px 0;
    border-top: 1px solid #373636;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
    color: #878787;
}

.copyright-text p a {
    color: #0cb0c;
}

.main-content.footer-con {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Freedel Section Modern */
.freedel-sec-modern {
    background-color: #000;
    color: #e0cb0c;
    padding: 0;
    border-top: 1px solid #373636;
}

.freedel-sec-modern .col-md-4 {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    padding-bottom: 30px;
}

.freedel-sec-modern .col-md-4:last-child {
    border-right: none;
}

.freedel-sec-modern .info-box-wrapper {
    display: flex;
    align-items: center;
    justify-content: center !important;
    height: 100%;
    padding: 0 15px;
}

.freedel-sec-modern .info-box-icon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    min-width: 140px;
}

.freedel-sec-modern .info-box-icon {
    margin-bottom: 10px;
}

.freedel-sec-modern .info-box-icon svg {
    fill: #e0cb0c;
    max-height: 50px;
}

.freedel-sec-modern .info-box-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    margin: 0;
    text-align: center;
    color: #e0cb0c;
    white-space: nowrap;
}

.freedel-sec-modern .info-box-content p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    text-align: left;
    max-width: 250px;
}

@media(max-width: 768px) {
    .freedel-sec-modern .col-md-4 {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 20px 0;
    }

    .freedel-sec-modern .col-md-4:last-child {
        border-bottom: none;
    }
}