*{
    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 {
    max-width: 1200px;
    margin: 6vw auto;
    padding: 3.5rem 2rem;
    background: #f7fbff;
    border-radius: 2rem;
    box-shadow: 0 22px 60px rgba(8, 35, 88, 0.08);
    display: grid;
    gap: 3rem;
}
.product-detail h1{
    font-size: clamp(2.4rem, 2.2vw, 3.4rem);
    color: #0d2e53;
    letter-spacing: 0.03em;
    margin-bottom: 0;
    text-align: center;
}
.product-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}
.product-main-image {
    width: 100%;
    max-width: 520px;
    border-radius: 1.5rem;
    box-shadow: 0 24px 70px rgba(15, 34, 66, 0.12);
    justify-self: center;
}
.product-description {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(13, 50, 86, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-description p {
    font-size: 1rem;
    line-height: 1.85;
    color: #374154;
    margin: 0;
}

.related-products {
    margin-top: 0;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-product {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 14px 35px rgba(15, 34, 66, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 34, 66, 0.12);
}

.related-product img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.related-product h4 {
    margin-top: 1rem;
    font-size: 1rem;
    color: #0f2e54;
}

.product-rating span {
    color: gold;
}

/*  */

 /* Review Section Styles */
.review-section {
    max-width: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    padding: 2.2rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(13, 50, 86, 0.08);
    box-shadow: 0 16px 40px rgba(15, 34, 66, 0.05);
}

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: auto;
    min-width: 180px;
    padding: 12px 24px;
    border: none;
    border-radius: 0.95rem;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.submit-btn:hover {
    background-color: #1fb774;
}

@media (max-width: 992px) {
    .product-top {
        grid-template-columns: 1fr;
    }
    .product-main-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 2rem 1.2rem;
    }
    .product-detail h1 {
        text-align: left;
        font-size: 2.6rem;
    }
    .product-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-description {
        padding: 1.5rem;
    }
    .review-section {
        padding: 1.5rem;
    }
    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .related-product {
        width: 100%;
        margin-bottom: 0;
    }
    .user-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .submit-btn {
        width: 100%;
    }
}

/* General styles for mobile view */
@media only screen and (max-width: 760px) {
    .product-detail {
        margin: 4vw auto;
    }
    .product-detail h1 {
        font-size: 2.2rem;
    }
    .product-description p,
    .review-form label,
    .user-details label,
    .user-details input,
    .save-info {
        font-size: 0.95rem;
    }
    .stars {
        font-size: 1.4rem;
    }
}
