*{
    padding: 0;
    margin: 0;
}
html,body{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.product-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 20px;
}
.product-heading {
    padding: 3vw 0 1vw 0;
    text-align: center;
}
.product-heading h1{
    text-transform: uppercase;
    padding-bottom: 6px;
    color: #03320f;
}
.product-heading a{
    text-decoration: none;
}
.product {
    margin: 5vw 2vw;
    border-radius: 1px;
    padding: 1.5vw 0 ;
    text-align: center;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    /* height: 400px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease-in;
}
.product:hover img{
    transform: scale(1.1);
}
.product-name {
    font-size: 18px;
    margin: 10px 0;
}

.product-rating {
    color: #FFD700; /* Gold color for the stars */
}

.product:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.597);
}

.product a {
    text-decoration: none;
    color: inherit;
}

/* =================== product Details ========================= */
/* =================== product Details ========================= */


.product-detail {
    display: flex;
    flex-direction: column; /* Align children in a column */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    padding: 60px; /* Add some padding */
}
.product-detail h1{
    font-size: 2.5vw;
    padding-bottom: 3vw;
}
.product-main-image {
    width: 250px;
    height: auto;
}

.product-description {
    margin-top: 20px;
}

.reviews-section {
    margin-top: 40px;
}

.review-form {
    margin-top: 20px;
}

.related-products {
    margin-top: 50px;
}


.product-grid {
    display: flex;
    justify-content: space-around;
    padding: 10vw 0;
    align-items: flex-end;
}

.related-product {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.related-product img {
    width: 200px;
    height: auto;
    padding-bottom: 2vw;
}

.product-rating span {
    color: gold;
}
/*  */




.related-products {
    width: 100%; /* Make related products section full width */
}


/*  */

 /* Review Section Styles */
.review-section {
    max-width: 60vw;
    margin: 8vw auto;
    font-family: Arial, sans-serif;
    padding: 20px;
}

h2 {
    text-align: center;
    font-size: 1.5em;
    color: #24c486;
    text-transform: uppercase;
}

.divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
}

.no-reviews {
    text-align: center;
    margin-bottom: 20px;
}

.no-reviews p {
    font-size: 1em;
    color: #555;
}

.no-reviews h3 {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
}

.review-form label {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.stars {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #ffd700;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
}

.user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-details {
    width: 48%;
}

.user-details label {
    font-size: 1em;
    font-weight: normal;
    color: #333;
}

.user-details input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
}

.save-info {
    margin-bottom: 20px;
}

.save-info input[type="checkbox"] {
    margin-right: 10px;
}

.submit-btn {
    background-color: #24c486;
    color: #fff;
    width: 10VW;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-transform: uppercase;

}

.submit-btn:hover {
    background-color: #1fb774;
}

@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
        gap: 20vw;
    }
    .product-section{
        flex-direction: column;
    }

    .related-product {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* General styles for mobile view */
@media only screen and (max-width: 760px) {
    .product-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        padding-top: 14vw;
    }
    .product-heading {
        padding: 28vw 0  0 0;
    }
    .product-heading h1{
        padding: 0;
    }
    .product-heading a {
      
        font-size: 3.2vw;
    }
    /* Make the product divs stack vertically */
    .product {
        width: 90%;
        margin-bottom: 20px;
        padding: 15px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    /* Ensure the product image is responsive */
    .product-image {
        width: 80%;
        height: auto;
        max-width: 200px; /* Limit the max width of images */
        margin: 0 auto;
        display: block;
    }

    /* Center-align the product name */
    .product-name {
        font-size: 1.1em;
        margin-top: 10px;
    }

    /* Make the rating stars responsive and center-aligned */
    .product-rating {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .product-rating span {
        font-size: 1.2em;
        margin: 0 2px;
    }

    /* ======product details================ */
    .product-main-image {
        width: 46vw;
        height: auto;
        padding: 6vw 0;
    }
    .product-detail h1 {
        margin-top: 25vw;
        font-size: 5.5vw;
    }
    h2{
        font-size: 4vw;

    }
    p , .user-details label , .user-details input{
        font-size: 4vw;
        padding: 1vw 0;
    }
    .no-reviews p,.stars ,.review-form label {
        font-size: 3vw;
    }
    .no-reviews h3 {
        font-size: 3.4vw;
    }
    .review-section {
        max-width: 92vw;
    }
    .submit-btn{
        width: 27vw;
    }
    .review-section{
        margin: 0;
    }
}
