* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'JameelNooriNastaleeq.ttf';
    src: url('../Jameel/JameelNooriNastaleeq.ttf') format('truetype');
}
h1 {
    font-family: 'JameelNooriNastaleeq.ttf', sans-serif;
    color: #0826ab;
    font-size: 30px;
    animation: forwards;
    text-align: center;
}
.pragraph{
    font-family: 'JameelNooriNastaleeq.ttf', sans-serif;
    font-size: 16px;
}
/* Content Container */
.content-container {
    display: flex;
    background-color: #ffffffff;
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    margin-bottom: 10px;
}

/* Text Section */
.text-section {
    flex: 0 0 40%;
    padding: 20px;
    /* display: flex; */
    align-items: center;
    align-content: center;
    justify-content: center;
    text-align: center;
    color: #333;
}

/* Slider Section */
.slider-section {
    flex: 0 0 60%;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 50px;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Add these styles for the search bar */
.search-bar {
    width: 100%;
    padding: 20px;
    background-color: #f7f7f7;
    text-align: center;
    /* margin-bottom: 20px; */
}

.search-bar input[type="text"] {
    width: 60%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-right: 10px;
}

.search-bar button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #e53935;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #c62828;
}

/* Container for all categories */
.categories-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px;
    gap: 10px;
    overflow-x: auto;
}

/* Individual category styling */
.category {
    border: 1px solid rgb(217, 217, 217);
    text-align: center;
    border-radius: 10px;
    flex: 0 0 calc(25% - 20px);
    /* Adjust based on how many categories you want in a row */
    max-width: 200px;
    /* margin: 5px; */
    margin-bottom: 10px;
}

.categoryname {
    text-align: center;
    font-size: 40px;
}

.category img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category button {
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 6px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category button:hover {
    background-color: #f62403;
    color: white;
}

/* Hover effect for images */
.category img:hover {
    transform: scale(1.1);
}

.container {
    width: 100%;
    height: auto;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    text-align: center;
}

.productprice {
    color: red;
    margin-bottom: 2px;
    font-size: 16px;
}

/* Product Card */
.product {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(25% - 20px);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: auto;
}

.productseeall {
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(25% - 20px);
    /* height: 100px; */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: auto;
}


.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 220px;
    margin-top: 10px;
    width: 100%;
    height: 60%;
    object-fit: fill;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 10px;
}

.product h2 {
    font-size: 20px;
    margin: 2px 10px;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #e53935;
    font-size: 16px;
}

.discounted-price {
    color: #43a047;
    font-weight: bold;
    font-size: 14px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53935;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.product:hover .view-icon {
    opacity: 1;
}

.heart-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #e0e0e0;
    /* Empty heart color */
    cursor: pointer;
    transition: color 0.3s ease;
}

.heart-icon.liked {
    color: #e53935;
    /* Red heart color */
}

.heart-icon .fa-heart {
    color: inherit;
    /* Ensure icon inherits the color */
}

/* Centering the Free Shipping Label */
.shipping {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 10px 0; */
    font-size: 14px;
    color: #555;
    margin-bottom: 1px;
}

.shipping img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.shipping p {
    margin: 0;
}

/* Button Styles */
button {
    margin-bottom: 10px;
    background-color: #05873d;
    border: none;
    color: white;
    padding: 6px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #c62828;
    transform: scale(1.05);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.php {
    margin: 50px;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .container {
        width: 100%;
        gap: 10px;
    }

    .product {
        width: calc(54% - 20px);
        height: auto;
        margin-bottom: 5px;
    }

    .productseeall {
        height: auto;
        font-size: 20px;
        width: calc(54% - 20px);
    }

    .product img {
        max-width: 150px;
        height: 50%;
    }

    .product h2 {
        margin-top: 3px;
        margin-bottom: 1px;
    }

    .productprice {
        font-size: 14px;
        margin-top: 0px;
        margin-bottom: 1px;
    }

    .original-price {
        font-size: 12px;
    }

    .discounted-price {
        font-size: 11px;
    }

    .discount-badge {
        position: absolute;
        top: 10px;
        right: 8px;
        background-color: #e53935;
        color: #fff;
        padding: 3px 6px;
        border-radius: 5px;
        font-size: 10px;
        font-weight: bold;
    }

    .price {
        font-size: 12px;
    }

    .shipping {
        font-size: 10px;
        margin-top: 0px;
        margin-bottom: 2px;
    }

    button {
        padding: 0px;
        font-size: 12px;
        width: 100px;
        height: 26px;
        margin-bottom: 10px;
        text-align: center;
    }

    body {
        margin: 0;
    }

    .php {
        margin: 0;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .categories-container {
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    .category {
        border: 1px solid rgb(188, 186, 186);
        border-radius: 10px;
        flex: 0 0 calc(30% - 20px);
        /* Adjust this value to control the size on mobile */
    }

    .category button {
        /* padding: 0px;*/
        width: 130px;
        height: 28px; 
        margin-top: 10px;
        padding: 5px 15px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
}

@media (max-width: 480px) {
    .category {
        flex: 0 0 calc(75% - 20px);
        /* Further adjust for smaller screens */
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    @font-face {
        font-family: 'JameelNooriNastaleeq';
        src: url('.../Jameel/JameelNooriNastaleeq.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
    }

    body {
        font-family: 'JameelNooriNastaleeq.ttf', sans-serif;
    }

    h1 {
        font-family: 'JameelNooriNastaleeq.ttf', sans-serif;
        font-size: 35px;
    }

    .content-container {
        flex-direction: column;
        /* margin: 20px; */
    }

    .text-section,
    .slider-section {
        flex: 1 1 100%;
        padding: 15px;
    }

    .text-section {
        order: 2;
    }

    .slider-section {
        order: 1;
    }

    .slides {
        margin: 0;
    }

    .search-bar button {
        width: 60px;
        padding: 0px;
        font-size: 14px;
        border: none;
        background-color: #e53935;
        color: white;
        border-radius: 5px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {}