.modal {
    display: none;
    position: fixed;
    /* z-index: 1000; */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    text-align: left;
}

.close {
    color: #aaa;
    float: right;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.order-now {
    background-color: #bd3127;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    /* Centers the button horizontally */
    align-items: center;
    /* Centers vertically if needed */
}

.order-now:hover {
    background-color: #bd3127;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-img-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.detail-box {
    margin-top: 10px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.order a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #bd3127;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.order a:hover {
    background-color: #bd3127;
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
}

.view-more-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #bd3127;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.view-more-button:hover {
    background-color: #bd3127;
    transform: translateY(-3px);
}

@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
        /* 1 column on small screens */
    }
}

@media (max-width: 1025px) {
    .modal-content {
        background-color: #fefefe;
        margin: 30% 15% 0% 15%;
        /* padding: 20px; */
        border: 1px solid #888;
        width: 70%;
        border-radius: 10px;
        text-align: left;
    }
}   

@media (min-width: 768px) {
    .container {
        width: 100%;
    }
}

/* General Container Styling */
.container {
    max-width: 1200px; /* Restrict the width for larger screens */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* Product List Styling */


/* Individual Product Card */
.product {
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row with space */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.product:hover {
    transform: scale(1.03); /* Slight zoom effect on hover */
}

/* Image Styling */
.product .product-img-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on tablets */
    }
}

@media (max-width: 480px) {
    .product {
        flex: 1 1 100%; /* 1 item per row on small screens */
    }
}
.view-more-btn {
    text-decoration: none !important;
}

.view-more-btn:hover {
    text-decoration: none !important;
}

