.info-boxes-container {
    background-color: #4db7b3 !important;

    .info-box {
        color: white;

        .text-body {
            color: #fff !important;
        }
    }
}


.header-middle .fixed-header-middle {
    background: #ffffff;
}

.user-pic {
    display: flex;
    margin-right: 1.5rem !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 25px;
    border-radius: 50%;
    /* border: 1px solid #282828; */
    transition: all 0.3s;
}

.user-pic:hover {
    cursor: pointer;
    /* create a outline */
    outline: 4px solid #00000045;
}

.category-content h3 {
    color: #a1a1a1;
}

.call-section>.left {
    width: 750px;
    position: absolute;
    left: -570px;
    top: -409px;
    transform: scaleX(-1) rotate(181deg);
}

.category-section svg {
    width: 750px;
    position: absolute;
    right: -570px;
    top: 1475px;
    transform: scaleX(-1);
}

.logo {
    max-width: 170px;
}

.header {
    position: relative;
    z-index: 1001;
    border: none;
}

.header-left {
    padding: 10px;
    background: #ffffff96;
    backdrop-filter: blur(2px);
    border-radius: 5px;
}

.header-search-category .form-control {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    background-color: transparent !important;
    color: #000 !important;
}

.header-search-category .btn {
    min-width: 57px;
    background-color: transparent;
    color: #000;
}

.header-right {
    background: #ffffff96;
    /* backdrop-filter: blur(3px); */
    padding-right: 20px;
    border-radius: 5px;
}

.cart-opened .cart-overlay {
    background: #4db7b366;
}

.header-search {
    padding: 10px;
    border-radius: 10px;
}

.sticky-header.fixed {
    display: flex !important;
}

@media (max-width: 767px) {
    /* .main {
        margin-top: -102px;
    } */

    .logo {
        max-width: 100px !important;
    }

    .home-slide-1 .parallax-background {
        background-image: url('assets/images/mobile banner.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }

    .testimonials-section {
        background-image: none !important;
        background-color: #f4f4f4;
        padding-left: 3rem;
        padding-right: 3rem;

        h2 {
            display: block !important;
            font-size: 2rem !important;
        }
    }
}

.home-slider-container .parallax-background {
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.product-section2 .row .col-3 {
    padding: 5px;
    margin: 5px 0px;
}

.product-section2 .product-details {
    margin: 1.5rem 2rem;
}

.product-section2 .inner-icon:not(.product-widget):hover {
    box-shadow: 0px 0px 10px 10px #8080802b;
}

.product-section2 .product-default {
    background-color: #f4f4f4;
}

.product-section3 .row .col-3 {
    padding: 5px;
    margin: 5px 0px;
}

.product-section3 .product-details {
    margin: 1.5rem 2rem;
}

.product-section3 .inner-icon:not(.product-widget):hover {
    box-shadow: 0px 0px 10px 10px #8080802b;
}

.product-section3 .product-default {
    background-color: #f4f4f4;
}

.explore-section {
    min-height: 200px;
}

.explore-section:before {
    content: "";
    padding-top: 30.2083%;
}

.testimonials-section figure {
    min-width: 75px;

    img {
        min-width: 75px;
    }
}

.info-boxes-container {
    margin-bottom: 0;
    /* border: 1px solid #e7e7e7; */
}

.row-joined {
    margin-left: 0;
    margin-right: 0;
}

.info-boxes-container .info-box {
    margin: 2.2rem 0 2.4rem;
    padding: 1.1rem 0;
}

.info-boxes-container .info-box:not(:last-child) {
    border-right: 1px solid #e7e7e7;
}

.product-section2,
.product-section3 {

    .product-category {
        color: #1d2127;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }

    .product-category .category-content.content-right {
        left: 58%;
        width: 40%;
    }

    .product-category .category-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .category-content {
        padding: 2rem;
        display: flex;
        display: -ms-flex-box;
        flex-direction: column;
        -ms-flex-direction: column;
        align-items: center;
        -ms-flex-align: center;
    }

    .product-category .category-content h3 {
        width: 100%;
        font: 700 6rem/1.2 "Emilys Candy";
        text-transform: none;
        margin-bottom: 0;
        letter-spacing: normal;
    }

    .product-category:hover figure img {
        transform: scale(1.2);
    }

    .product-category img {
        border-radius: 0;
        transition: all 0.25s;
        width: 100%;
    }
}

.product-section3 {
    padding-top: 5.7rem;
    padding-bottom: 3.7rem;

    .product-category .category-content.content-right {
        left: 10%;
        width: 40%;
    }
}

.blog-section {
    padding-top: 5.7rem;
    padding-bottom: 3.7rem;
}

.info-boxes-container {
    background-color: #4db7b34d;
    margin-bottom: 0;
}

.info-boxes-container .info-box {
    margin: 0.2rem 0 0.4rem;
}

.instagram-carousel .owl-item {
    filter: grayscale(1);
    opacity: 0.2;
    transition: filter 0.3s, opacity 0.3s;
}

.instagram-carousel .owl-item:hover {
    filter: none;
    opacity: 1;
}

.footer-top {
    border-top: 1px solid #e7e7e7;
    padding-top: inherit;
}

.footer-middle {
    border-top: none !important;
}

.footer .info-box p {
    color: #4db7b3;
}

.header-bottom.fixed {
    padding-top: 0px;
    height: 40px;
    visibility: visible !important;
}

.decimal-digit {
    font-size: 3.7rem;
    color: #4db7b3;
}

#right-sidebar-div {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    padding-left: 60px;
    padding-right: 0;
}

#side-content-box {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    margin-top: auto;
    padding-top: 30px;
}

.sidebar-header {
    position: absolute;
    right: 25px;
    top: 0px;
}

.contain-content {
    height: 100vh;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.close {
    position: relative;
    background: #ff9c00;
    color: white !important;
    height: 50px;
    width: 50px;
    padding: 10px 20px;
    z-index: 1;
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    #right-sidebar-div {
        width: 105%;
    }
}

/* Category Toggle Icon Styles */
.cat-list>li {
    position: relative;
}

.cat-list>li>a {
    padding-right: 35px;
    /* Add space for the arrow icon */
}

.cat-list>li>.toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    z-index: 1;
}

.cat-list>li>.toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 1.4rem;
    color: #777;
    cursor: pointer;
}

.cat-list>li>.toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cat-list>li>.toggle-btn:hover i {
    color: #000;
    cursor: pointer;
}

.cat-sublist {
    margin-left: 15px;
    margin-top: 5px;
}

.cat-sublist li {
    list-style: circle;
    font-size: 1.2rem;
}

/* Product Thumbnail Gallery Fix for Mobile */
.prod-thumbnail.owl-dots {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 10px;
}

.prod-thumbnail .owl-dot {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.prod-thumbnail .owl-dot img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile specific fixes */
@media only screen and (max-width: 767px) {
    .prod-thumbnail.owl-dots {
        display: none !important;
    }
}

/* Strong override to prevent category slider hover clipping (loaded late) */
.categories-slider .owl-item>.product-category {
    overflow: visible !important;
}

.categories-slider .product-category:hover {
    z-index: 9999 !important;
}

/* Responsive Global Spacing: Using Percentage for perfect scaling */
@media (min-width: 1200px) {

    .container,
    .container-fluid {
        max-width: 100% !important;
        padding-left: 6% !important;
        /* Scales with screen width */
        padding-right: 6% !important;
    }
}

/* Tablet view adjustments */
@media (min-width: 768px) and (max-width: 1199px) {

    .container,
    .container-fluid {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
}

/* Mobile view adjustments */
@media (max-width: 767px) {

    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Navigation Font Fix Beds Mattress */
.header-bottom .menu>li>a {
    font-family: 'Jost', sans-serif !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    justify-content: space-between;
    font-size: 1.6rem !important;
}

/* --- Navigation Layout Fix (Flexbox) --- */
.header-bottom .menu {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.header-bottom .menu>li {
    float: none !important;
    /* Removes old floats */
    margin-right: 2.5rem;
    /* Space between items */
}

.header-bottom .menu>li.track-order-item {
    margin-left: auto;
    /* Pushes "Track Your Order" to the far right */
    margin-right: 0;
    color: #4db7b3 !important;
    /* Notworking "Track Your Order" to the far right */
}

/* -------------------------------------- */

/* ============================= */
/* MAIN SUBMENU (LEVEL 2) */
/* ============================= */

.menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    min-width: 240px;
    padding: 0;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top: 2px solid #4db7b3;
    z-index: 1000;
}

/* Show submenu */
.menu li:hover>.submenu {
    display: block;
}

/* ============================= */
/* LEVEL 3 (SIDE FLYOUT) */
/* ============================= */

.menu .submenu .submenu {
    top: 0;
    left: 100%;
    margin: 0;
    /* removed wrong negative margin */
    border-top: none;
    /* remove duplicate top border */
    border-left: 1px solid #eee;
}

/* Remove extra spacing */
.menu .submenu li {
    position: relative;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* SUBMENU LINKS */
/* ============================= */

.menu .submenu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 1.3rem;
    font-family: 'Jost', sans-serif;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.25s ease;
}

/* Remove border on last item */
.menu .submenu li:last-child>a {
    border-bottom: none;
}

/* Hover Effect */
.menu .submenu li a:hover {
    background: #f8f9fa;
    color: #4db7b3;
    padding-left: 26px;
    /* slight move to right */
}

/* ============================= */
/* SMOOTH ANIMATION */
/* ============================= */

.menu .submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.menu li:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================= */
/* ACCOUNT PAGES (Dashboard, Wishlist, etc) */
/* ============================= */

/* Page Titles */
.account-container h2,
.wishlist-title h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Page Paragraphs/Descriptions */
.account-container p,
.order-content p,
.account-content p {
    font-size: 1.8rem;
    color: #666;
    width: 100% !important;
    max-width: none !important;
    line-height: 1.2;
    text-align: justify !important;
}

/* Links in Descriptions */
.account-container p a.btn-link,
.account-container p a:not(.btn) {
    color: #4db7b3;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
}

.account-container p a.btn-link:hover,
.account-container p a:not(.btn):hover {
    color: #3ea09d;
}

/* Sidebar Navigation Items - Arrows Removal */
.sidebar.widget-dashboard .nav-item::before,
.sidebar.widget-dashboard .nav-item::after,
.sidebar.widget-dashboard .nav-link::before,
.sidebar.widget-dashboard .nav-link::after,
.sidebar.widget-dashboard li::before,
.sidebar.widget-dashboard li::after,
.sidebar.widget-dashboard a::before,
.sidebar.widget-dashboard a::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Sidebar Navigation Items - Single Border Fix */
.sidebar.widget-dashboard .nav-tabs,
.sidebar.widget-dashboard .nav-tabs .nav.list {
    border: none !important;
    margin-bottom: 0 !important;
}

.sidebar.widget-dashboard .nav-tabs .nav-item {
    border: none !important;
    /* REMOVED completely to prevent double lines (including border-top from .list) */
    margin-bottom: 0 !important;
    position: relative;
}

.sidebar.widget-dashboard .nav-tabs .nav-link {
    display: block !important;
    width: 100% !important;
    font-size: 1.4rem;
    color: #333 !important;
    font-weight: 700;
    padding: 15px 0 !important;
    border: none !important;
    border-bottom: 1px solid #e1e7ec !important;
    /* ONLY line: default 1px grey */
    border-radius: 0;
    margin-bottom: 0 !important;
    position: relative;
    background: transparent !important;
    transition: all 0.2s ease;
}

.sidebar.widget-dashboard .nav-tabs .nav-link.active,
.sidebar.widget-dashboard .nav-tabs .nav-link:hover {
    color: #4db7b3 !important;
    border-bottom: 2px solid #4db7b3 !important;
    /* Swap to teal 2px */
    padding-bottom: 14px !important;
    /* Reduce padding by 1px so it doesn't jump when border grows 1px */
    background-color: transparent !important;
}

/* Feature Box Dashboard Icons */
.feature-box i {
    color: #4db7b3;
    font-size: 5rem;
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-top: 15px;
    letter-spacing: normal;
}

/* Base Teal Buttons for Account & Wishlist */
.account-container .btn-dark,
.wishlist-table-container .btn-dark,
.wishlist-table-container .btn-primary {
    background-color: #4db7b3 !important;
    border-color: #4db7b3 !important;
    color: #fff !important;
}

.account-container .btn-dark:hover,
.wishlist-table-container .btn-dark:hover,
.wishlist-table-container .btn-primary:hover {
    background-color: #3ea09d !important;
    border-color: #3ea09d !important;
    color: #fff !important;
}

/* Input Focus (Teal Box Outline) */
.account-container .form-control,
.wishlist-table-container .form-control {
    background-color: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1.4rem;
    padding: 12px 15px;
    color: #333;
    height: auto;
    margin-bottom: 5px;
}

.account-container .form-control:focus,
.wishlist-table-container .form-control:focus {
    background-color: #fff !important;
    border-color: #4db7b3 !important;
    box-shadow: 0 0 0 2px rgba(77, 183, 179, 0.2) !important;
    outline: none !important;
}

/* Label Styles Matching Login Page */
.account-container label {
    font-size: 1.9rem;
    color: #333;
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 400;
}

/* Fix for Mobile Search Bar Layout */
@media (max-width: 991px) {
    .header-search.header-search-inline .search-toggle {
        display: inline-block !important;
        font-size: 2.2rem;
        color: #333;
        margin-right: 0.5rem;
        /* Adjusting gap before wishlist */
    }

    .header-search.header-search-inline .header-search-wrapper {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
        min-width: 300px;
        background-color: #fff;
        padding: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #e1e7ec;
        border-radius: 5px;
        z-index: 1005;
        display: none !important;
    }

    .header-search.header-search-inline.show .header-search-wrapper {
        display: flex !important;
    }

    .header-search-inline .btn {
        min-width: 45px;
        padding: 0;
    }

    .header-search-inline .form-control {
        border-radius: 5px 0 0 5px !important;
        height: 40px;
        min-width: 0;
    }

    .header-search-wrapper #ajax-search-results {
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 5px;
    }

    .header-search-wrapper .search-loader {
        right: 55px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

@media (max-width: 767px) {
    .header-search.header-search-inline .search-toggle {
        margin-right: 0.5rem;
        font-size: 2rem;
    }
}