* {
    font-family: "Nunito Sans", serif;
}

.nav-link {
    font-size: 20px;
}

.search-input {
    width: 800px;
    height: 45px;
}

section {
    margin: 80px 0;
}

.section-title {
    background-color: #040263;
    color: white;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.navbar {
    border-bottom: 1px solid #ddd;
}

.navbar-categories {
    background-color: #f8f9fa;
}

.navbar-categories a {
    font-size: 14px;
    font-weight: 500;
}

.menu-link {
    text-decoration: none;
    color: black;
    font-weight: 800;
}

.menu-link:hover {
    color: #040263;
}

.navbar-socials img {
    height: 25px;
}

.navbar-socials {
    height: 35px;
    display: flex;
    align-items: center;
    background-color: #1d1d1d;
}

.navbar-socials .menu-link {
    color: white;
}

.btn-search {
    color: white !important;
    background-color: #040263;
}

.btn-search:hover {
    background-color: #facb0f;
}

.btn-tags {
    background-color: #040263;
}

.btn-tags .dropdown-toggle {
    color: white;
    text-decoration: none;
}

/* menu dropdown */
.dropdown-menu li {
    position: relative;
}

.dropdown-btn {
    border-radius: 0;
    color: white !important;
    font-size: 15px !important;
    font-weight: bold !important;
    /* line-height: 1.5; */
    text-decoration: none;
    text-transform: uppercase;
}

.dropdown-menu {
    border-radius: 0;
    padding: 0;
}

.dropdown-sub-category {
    position: absolute;
    right: -162px;
    top: 5px;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.product-titles {
    text-transform: capitalize;
}

/* Main category item */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

/* Expand the clickable area */
.category-link {
    flex-grow: 1;
    text-decoration: none;
    padding: 10px 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}

.subcategory-list {
    list-style: none;
    padding-left: 20px;
}

.subcategory-list li {
    padding: 8px 0;
}

/* Style the chevron icon */
.toggle-btn i {
    transition: transform 0.3s ease;
}

/* Rotate chevron when open */
button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Hover effect */
.category-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Subcategory styling */
.subcategory-link {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #555;
    transition: background 0.3s ease;
}

.subcategory-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.category-link:hover {
    color: #333;
    background-color: #facb0f;
}

.child-menu .category-link {
    font-size: 13px !important;
    text-transform: capitalize;
}

.child-menu .category-link:hover {
    background-color: #afafaf80;
}

/* @media (min-width: 576px) {
    .dd-menu:hover>.dropdown-menu {
        top: 106%;
        left: 0;
        display: block;
    }

    .dd-menu>.dropdown-toggle:active {
        pointer-events: none;
    }

    .btn-tags:hover>.dropdown-menu {
        top: 106%;
        left: 0;
        display: block;
    }

    .btn-tags>.dropdown-toggle:active {
        pointer-events: none;
    }
} */

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
    display: block;
}

#bannerCarousel .carousel-inner .carousel-item img {
    height: 280px;
}

.banner-promo-img {
    height: 140px;
}

/* PRODUCT CSS */
.product-card {
    margin-bottom: 30px;
    height: 410px;
    width: 100%;
    border: 0 !important;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.p-title {
    color: black;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;

    /* have text cut off aka ellipsis after 2 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-price {
    color: #212121;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.p-pricediscount {
    font-size: 0.714286rem;
    color: #AAB4C8;
    font-weight: 400;
    letter-spacing: 0.1px;
    text-decoration: line-through;
    margin-right: 8px;
}

.p-price,
.p-title {
    word-break: break-all;
}

.p-price .p-pricediscount {
    text-decoration: line-through;
    color: gray;
    font-size: 14px;
}

.p-pricediscounttag {
    background-color: #6cbbffd3;
    /* background-color: #0e60a9; */
    color: #0e60a9;
    padding: 2px 4px;
    font-size: 10px;
    border-radius: 3px;
    font-weight: bolder;
}

.btn-addtocart {
    font-size: 0.6rem;
    padding: 8px 10px;
    color: white !important;
    border: 1px solid black;
    background-color: #333;
    border-radius: 8px;
}


.btn-addtocart:hover {
    border: 1px solid #facb0f;
    background-color: #facb0f;
}

.contact-btn {
    background-color: #040263;
    color: white;
    border-radius: 0;
    padding: 10px;
    width: 12rem;
}

.contact-btn:hover {
    background-color: #facb0f;
    color: black;
}

/* MEDIA QUERIES */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .navbar-brand {
        width: 70%;
    }

    .search-input {
        width: 100%;
    }

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-btn {
        color: black !important;
    }

    .secondary-menu {
        position: fixed;
        z-index: 9998;
        top: 0;
        width: 85%;
        height: 100%;
    }

    .secondary-header {
        background-color: #040263;
        color: white;
        text-transform: uppercase;
        font-weight: bold;
    }

    .secondary-menu {
        width: 70% !important;
    }

    .offcanvas-header {
        background-color: #040263;
        color: white;
        text-transform: uppercase;
    }

    #bannerCarousel .carousel-inner .carousel-item img {
        height: 160px;
    }

    .banner-promo-img {
        height: 100px;
    }

    .product-card.pc-carousel {
        height: 350px;
    }

    .product-card {
        height: 340px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .search-input {
        width: 100%;
    }

    .product-card.pc-carousel {
        height: 360px;
    }

    .product-card {
        height: 360px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .banner-promo-img {
        width: 100% !important;
    }

    .search-input {
        width: 300px;
    }

    .product-card.pc-carousel {
        height: 380px;
    }

    .product-card {
        height: 320px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .search-input {
        width: 400px;
    }

    .product-card.pc-carousel {
        height: 350px;
    }

    .product-card {
        height: 375px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .search-input {
        width: 600px;
    }

    .product-card.pc-carousel {
        height: 400px;
    }

    .product-card {
        height: 460px;
    }
}

.category-selector {
    border-radius: 15px;
    border: 2px solid gray;
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 22px 3px #a9a9a9;
    z-index: 99;
}

/* FOOTER CSS */
footer {
    background-color: #040263;
    color: white;
    padding: 40px 0;
}

footer h3 {
    text-transform: capitalize;
    font-weight: 900;
}

.secondary-footer {
    background-color: #2d2fb9;
    color: white;
    padding: 20px 0;
}

.secondary-footer p {
    margin: 0;
}


h4.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li a {
    font-size: 14px;
    color: rgba(238, 238, 238, 1) !important;
    text-decoration: none !important;
}

.add-to-liked.liked .heart-icon {
    color: red;
}

.btn-addtocart-single {
    font-size: 0.8rem;
}

/* product display out of stock styling */
.out-of-stock {
    position: relative;
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: red;
    opacity: 0.7;
    color: white;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-weight: bold;
    z-index: 10;
}

.out-of-stock img {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Styling for Promo / Tags Dropdown */
.tags-li {
    font-size: 20px;
}

.tags-li a {
    font-weight: bold !important;
    color: red !important;
}

.tags-li:hover a {
    color: black;
}