

body {
    font-family: 'YourFontName', sans-serif;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
}

header {
    background-color: #fff;
    color: #000;
    padding: 40px;
    text-align: center;
    height: 120px;
    border-radius: 0px 0px 20px 20px;
}

.container {
    padding: 20px;
}


.product-list {
    display: flex;
    justify-content: flex-start; /* Start from the beginning of the container */
    flex-wrap: nowrap; /* Allow products to wrap to the next line */
    gap: 20px; /* Add a small space between products */
    overflow-x: auto;
    padding: 20px;
}
.product-list1 {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    width: 25%; /* Calculate width to fit 4 products per row with gap */
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0px 2px 20px 0px rgb(0 0 0 / 18%);
    background-color: #fff;
    text-align: center; 
    box-sizing: border-box; /* Include padding in the width calculation */
}

.product-card img {
    width: 150px;
}

.zoom-icon, .favorite-icon {
    position: absolute;
    background-color: rgb(224 139 14);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.zoom-icon {
    top: 10px;
    right: 10px;
}

.favorite-icon {
    top: 10px;
    left: 10px;
}

.zoom-icon i, .favorite-icon i {
    color: white;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popup-close i {
    color: black;
}

.card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    /* width: 250px; */
    margin: auto;
    text-align: center;
    margin-top: 100px;
    transition: transform 0.3s ease-in-out; /* Add transition here */
}

.card:hover {
    transform: scale(1.05); /* Slightly scale up the card on hover */
}

.card img {
    min-width: 200px;
    max-height: 100px;
    margin-top: -130px;
    object-fit: contain;
}

.card h2 {
    font-size: 18px;
    color: #555;
    margin: 15px 0;
}

.card .stars {
    color: #ffbc00;
    margin: 10px 0;
}

.card .price {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.card .old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 16px;
    margin-bottom: 5px;
}

.card .discount {
    background-color: #ff6961;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    width: fit-content;
    text-align: center;
}
.discount {
    display: inline-block; /* Allows the div to be sized according to its content */
    padding: 5px 10px;
    margin-bottom: 10px;
    background-color: #ff6961;
    width: fit-content;
    border-radius: 10px;
    color: white;
    font-size: 14px;
}

.button {
    background-color: #d1a85f;
    border: none;
    border-radius: 25px;
    padding: 5px 20px;
    text-decoration: none; /* Remove the underline */
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: 'YourFontName';
    transition: transform 0.3s ease-in-out; /* Add transition here */
}

.button:hover {
    background-color: #b78940;
    transform: scale(1.05); /* Slightly scale up the card on hover */
}

.footer-links {
    margin-top: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #fff;
}

.footer-links ul li a:hover {
    color: #ccc;
}

footer {
    margin-top: 20px;
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 20px 20px 0px 0px;
    box-shadow: 1px 2px 20px 0px rgb(0 0 0 / 12%);
}

/* Define the animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* CSS for the side menu */
#side-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #000;
    z-index: 999;
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 20px 0px 0px 20px;
    animation: slideIn 0.5s forwards; /* Apply the animation */
}

/* Show the side menu when the "show" class is added */
#side-menu.show {
    display: block;
}

/* Style for menu items */
#side-menu ul {
    list-style: none;
    padding: 0;
}

#side-menu ul li {
    margin-bottom: 10px;
}

#side-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 10px;
}

#side-menu ul li a:hover {
    background-color: #cc9383;
    border-radius: 5px;
}

.navbar-menu {
    text-align: center;
    list-style: none;
    padding: 20px;
}

.navbar-menu li {
    display: inline-block;
    margin-right: 10px;
}

.navbar-menu li:last-child {
    margin-right: 0;
}

.navbar-menu li a {
    color: black;
    text-decoration: none;
}

@media (max-width: 767px) {
    .product-card {
        width: calc(70%); /* Calculate width to fit 2 products per row with gap */
    }
    
    /* CSS for the loading animation */
    #loading-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
                background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
        z-index: 9999; /* Ensure it's above other content */
    }

    #loading-spinner {
        border: 16px solid #000; /* Light grey */
        border-top: 16px solid #cba45d; /* Color for spinner */
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 5s linear infinite; /* Apply rotation animation */
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* CSS for the logo */
    #logo {
        width: 100px; /* Adjust the maximum width as needed */
    }
