﻿/*  CSS of Shop Page */

/* Sections  */


/* Section Banner */
#banner-section {
    /*height: 80px;*/
    background-image: url(../../images/shop/shop-section-upper-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}


    #banner-section .hdg-2 {
        bottom: 56px;
        right: 75px;
    }


/* Cagtegory Links */
.category-links:hover {
    font-weight: 500;
    color: #fd7f2f;
}


.category-links:active {
    font-weight: 400;
    color: #c23535;
}


#filterBtnBlock {
    z-index: 99999;
    position: fixed;
    left: -29px;
}



#shopFilterBtn {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    letter-spacing: 5px;
    color: #000000;
    font-size: 1.5rem;
    font-family: "Bebas Neue";
    font-weight: 400;
    border-radius: unset;
    background-color: #ffffff;
    border: solid 1px #000000;
}



    /* Inside the botton property */

    #shopFilterBtn:hover {
        color: #ffffff;
        background-color: #000000;
    }
/* applies to x-small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #shopFilterBtn {
        font-size: 1.5rem;
    }
}

/* Filter btn function*/
.accordion-body .form-check:hover {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

/* End Of Sections  */



/*SEARCH PAGE CSS*/

.truncate-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 1.3em;
    height: 2.6em;
}

.top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 10;
    font-weight: bold;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.nav-link-icon {
    width: 20px;
    height: 20px;
}

.product-list-name {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
}

.card-body {
    padding: 15px 15px 10px 15px;
}

.card {
    border-radius: 6px;
    padding: 0;
    border: 1px solid #ddd;
    transition-duration: 0.4s;
}

    .card:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.card-title a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.item-price-text {
    font-size: 16px;
    color: black;
}

.item-discount-text {
    font-size: 14px;
}

.row .col-md-3, .row .col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
}


/* Filter sidebar base */
#filterSidebar {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
}

/* Mobile behavior */
@media (max-width: 991.98px) {
    #filterSidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        z-index: 1050;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        overflow: auto;
    }

        #filterSidebar.show {
            transform: translateX(0);
            display: block !important;
        }
}


/* Navigation */

/* Hide dropdown arrows */
.nav-link.dropdown-toggle::after,
.dropdown-item.dropdown-toggle::after {
    display: none !important;
}

/* Show submenu on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}
#dropdown-categories .nav-link:hover {
    color: orange ;
}

/* Submenu positioning */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Header styles */
.dropdown-header {
/*    font-weight: 700 !important;*/
    padding: 10px 20px;
    margin: 0;
    font-size: 1rem;
    color: #000;
    text-decoration: none !important;
    background-color: transparent !important;
}

.dropdown-header.category-header,
.dropdown-header.subsub-header {
    border-bottom: 1px solid #bbb;
}
.hdg-6 {
    color: #000000;
    font-family: "Bebas Neue";
    font-size: 1.5rem;
    font-weight: 400;
}

.hdg-16 {
    color: #000000;
    font-family: "Bebas Neue";
    font-size: 1.2rem;
    font-weight: 400;
}
/* Link styling */
.nav-link,
.dropdown-item {
    cursor: pointer;
    text-decoration: none !important;
}

/* Minimum width for dropdowns */
.dropdown-menu {
    min-width: 240px;
}

/* Icon spacing */
.fa-angle-down,
.fa-angle-right {
    margin-left: 5px;
}

/* Submenu item layout */
.submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
}

/* ✅ Mobile styles */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #fff;
        border: none;
        box-shadow: none;
    }

    .dropdown-submenu > .dropdown-menu {
        display: none;
        margin-left: 1rem;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    .dropdown-item.dropdown-toggle::after {
        content: '\f105'; /* FontAwesome right arrow */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
    }

    .dropdown-item {
        padding-left: 1.5rem;
    }

    .submenu-trigger {
        padding: .5rem 1.5rem;
    }

    /* Prevent submenu from going off screen */
    .dropdown-submenu {
        position: relative;
    }
}