@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --bgColor: #000;
    --txtColor: #fff;
    --headingColor: #3BB534;
    --bodyFont: 'Poppins';
    --green: #3BB534;
    --border: #ddd;
    --text: #333;
    --muted: #888;
    --bg: #fff;
    --shadow: rgba(0, 0, 0, 0.12);
    --footer-bg: #000;
    --footer-text: #e0e0e0;
    --footer-heading: #3BB534;
}

body {
    margin: 0;
    font-family: var(--bodyFont);
}

a {
    all: unset;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bgColor);
    color: var(--txtColor);
    height: 4rem;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.navMenu {
    display: flex;
    gap: 1.5rem;
}

.navItems {
    cursor: pointer;
    background-color: #fff;
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 500;
}

.search-bar {
    position: relative;
    background-color: #fff;
    border-radius: 2rem;
    width: 16rem;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: #333;
    font-family: var(--bodyFont);
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    width: 2rem;
    height: 1.3rem;
    cursor: pointer;
}

.rightSide {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rightSide .icon {
    cursor: pointer;
    padding: 0.5rem;
}

.rightSide img {
    width: 2rem;
    height: 2rem;
}

.logo img {
    height: 2rem;
    width: auto;
}

div img {
    width: 2rem;
    height: 2rem;
}

.herosection img {
    width: 100%;
    height: 18.75rem;
}

.cardSection {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6rem;
    gap: 5rem;
}

.card {
    box-shadow: rgba(0, 0, 0, 0.35) 0 0.3125rem 0.9375rem;
    border-radius: 0.375rem;
    padding: 1rem;
    width: 10rem;
}

.card img {
    width: 3rem;
    height: 3rem;
}

.card h3 {
    color: var(--headingColor);
}

.trending-section {
    margin-top: 4rem;
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-section {
    margin-top: 4rem;
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    width: 16.25rem;
    border: 0.0625rem solid var(--border);
    border-radius: 0.375rem;
    background: var(--bg);
    box-shadow: 0 0.1875rem 0.5rem var(--shadow);
    padding: 0.75rem;
}

.product-badges {
    display: flex;
    justify-content: space-between;
}

.badge {
    padding: 0.1875rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    color: #fff;
}

.discount {
    background: var(--green);
}

.stock {
    color: var(--green);
    font-weight: bold;
}

.product-img img {
    width: 100%;
    border-radius: 0.25rem;
    margin-top: 0.625rem;
    min-height: 12rem;
}

.price {
    color: var(--green);
    font-size: 1.125rem;
    margin: 0.625rem 0 0.3125rem 0;
    font-weight: bold;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.8125rem;
    margin-left: 0.25rem;
}

.title {
    font-size: 0.8125rem;
    color: var(--green);
    min-height: 4rem;
}

.add-btn {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    background: var(--green);
    border: none;
    color: #fff;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
}

.reviews-Section {
    width: 90%;
    margin: 3.75rem auto;
    box-shadow: 0 0.1875rem 0.5rem var(--shadow);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #999;
    padding: 1.25rem;
}

.reviews-header .left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.google-logo {
    width: 2.8125rem;
    height: 2.8125rem;
}

.stars {
    color: #fbbc05;
    font-size: 1.25rem;
}

.stars.small {
    font-size: 1rem;
}

.review-btn {
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    font-weight: bold;
    border-radius: 0.25rem;
    cursor: pointer;
}

.reviews-grid {
    display: flex;
    gap: 1.25rem;
    margin: 2rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 2rem;
}

.review-card {
    width: 10rem;
    background: var(--bg);
    padding: 1.125rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.1875rem 0.5rem var(--shadow);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 3rem;
}

.avatar {
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
}

.verified {
    color: var(--green);
    font-size: 0.8125rem;
}

.comment {
    margin-top: 0.5rem;
    color: var(--text);
}

.footer {
    background: var(--footer-bg);
    padding: 2.5rem 0;
}

.footer-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

.footer-col h4 {
    color: var(--footer-heading);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--footer-text);
    font-size: 0.875rem;
    margin: 0.375rem 0;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--footer-heading);
    cursor: pointer;
}

.aboutus-card {
    gap: 5rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0 0.3125rem 0.9375rem;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 50rem;
    margin: 5rem auto;
}

h2 {
    color: var(--headingColor);
    text-align: center;
}

.aboutus-card p {
    line-height: 2.2rem;
}

.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.trust-title {
    color: var(--green);
    font-weight: 600;
}

.trust-desc {
    color: #555;
}

.reviewBanner {
    background-color: #000;
    color: #fff;
    padding: 40px 20px;
    display: block;
    text-align: center;
}

.button {
    background-color: var(--green);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 4rem;
    font-size: 1rem;
    font-weight: 600;
    width: 15rem;
    margin: 2rem auto;
    cursor: pointer;
}

.button .bStar {
    color: #ffc107;
    margin-right: 8px;
    font-size: 16px;
}

.rTitle {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.rSubtitle {
    font-size: 1rem;
}

.trending {
    margin-top: 5rem;
    font-weight: 800;
    font-size: 3rem;
}



@media (max-width: 1024px) {

    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .navMenu {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .navItems {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .search-bar {
        width: 100%;
        order: 3;
    }

    .rightSide {
        gap: 1rem;
        order: 1;
    }


    .herosection img {
        height: 12rem;
    }

    .cardSection {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }

    .card {
        width: 60%;
        max-width: 350px;
    }

    .product-section,
    .trending-section {
        gap: 1rem;
        padding: 1rem;
    }



    .product-img img {
        min-height: 8rem;
    }

    .title {
        font-size: 0.7rem;
        min-height: 3rem;
    }

    .price {
        font-size: 0.9rem;
    }


    .trust-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;

    }

    .trust-item {
        width: 100%;
        max-width: 400px;
    }


    .reviews-grid {
        gap: 1rem;
        margin: 1rem;
    }

    .review-card {
        width: calc(50% - 0.5rem);
        min-width: 140px;
        padding: 0.8rem;
    }

    .reviews-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .reviews-header .left {
        flex-direction: column;
    }


    .aboutus-card {
        width: 90%;
        margin: 2rem auto;
        padding: 1.5rem;
    }

    .aboutus-card p {
        line-height: 1.8rem;
        font-size: 0.9rem;
    }


    .trending {
        font-size: 2rem;
        margin-top: 3rem;
        text-align: center;
    }


    .rTitle {
        font-size: 1.5rem;
    }

    .rSubtitle {
        font-size: 0.9rem;
    }

    .button {
        width: 90%;
        max-width: 300px;
    }

}
