html{
    overflow-x:hidden;
}
.slider-area {
    width: 100%; /* Make sure the slider is full width */
}

.main img {
    width: 100%; /* Ensure the image covers the full width */
    height: auto; /* Keep the image's aspect ratio */
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* Loader Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #0062d1;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.product-decs h2 {
    display: -webkit-box;           /* Create a flexible container */
    -webkit-box-orient: vertical;   /* Set the box orientation to vertical */
    overflow: hidden;               /* Hide overflowed content */
    text-overflow: ellipsis;        /* Show "..." when text overflows */
    -webkit-line-clamp: 2;          /* Limit to 2 lines of text */
    line-height: 1.2em;             /* Adjust line height for better readability */
    max-height: 2.4em;              /* Ensure the height doesn't exceed 2 lines */
}

.list-product {
    display: flex;
    flex-direction: column;
    height: 385px;   /* Fixed height for each product card */
}

.product-decs {
    flex-grow: 1;    /* Allows the product description to expand */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.oldPrice{
    text-decoration: line-through;
    font-size: 13px;
}

@media print{
    .mainBody{
        display:none;
    }
    .facture-card{
        display:block!important;
    }
}

.custom-prev, .custom-next {
position: absolute;
top: 50%; /* Center the arrows vertically */
transform: translateY(-50%); /* Adjust to center */
z-index: 10; /* Ensure arrows are above the slider */
background: rgba(0, 0, 0, 0.5); /* Optional: Background for better visibility */
color: #fff; /* Arrow color */
border: none;
font-size: 20px; /* Arrow size */
width: 40px;
height: 40px;
border-radius: 50%; /* Rounded arrows */
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}

.custom-prev {
left: 10px; /* Adjust as needed */
}

.custom-next {
right: 10px; /* Adjust as needed */
}

.header-menu .header-menu-vertical .menu-content li .sub-menu li{
width:50%;
}

.popular-categories-area .category-slider .category-discript h4 {
    font-size: 16px!important;
    font-weight: 600;
    text-transform: capitalize;
    color: #47494a;
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.search-bar {
    background: white;
    width: 100%;
    height: 80px;
    position: absolute;
    opacity: 0; /* Initially hidden */
    transform: translateY(-10px); /* Slight upward offset */
    pointer-events: none; /* Prevent interaction when hidden */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
    z-index: 1;
    padding: 20px 30px;
}

.search-bar.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset offset */
    pointer-events: auto; /* Allow interaction */
}

.search-bar form{
    height: 100%;
    position: relative;
}

.search-bar form button{
    position: absolute;
    left: 2px;
    top: 12px;
}

.search-bar form button svg{
    color: #515151;
    width: 18px;
    height: 18px;
}

.search-bar form input{
    margin: auto;
    width: 100%;
    height: 45px;
    border-bottom: 1px solid #b6b6b6;
    padding-left: 35px;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 16px;
}