﻿/* ==========================================
HIYASHRI NUTS & NATURALS
PRODUCTS PAGE
Version 1.0
========================================== */

/* ===============================
PRODUCT HERO
=============================== */

.products-hero {
    padding: 90px 0;
    background: linear-gradient( 135deg, #f7f8f3 0%, #ffffff 40%, #eef7eb 100% );
    overflow: hidden;
}

    .products-hero .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
    }

.hero-left h5 {
    color: #b58b19;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-left h1 {
    font-size: 58px;
    font-weight: 700;
    color: #1b4d2a;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-left p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-right {
    text-align: center;
}

    .hero-right img {
        width: 100%;
        max-width: 560px;
        animation: floatImage 5s ease-in-out infinite;
    }

@keyframes floatImage {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ===============================
SEARCH
=============================== */

.search-section {
    padding: 40px 0;
    background: #fff;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border-radius: 60px;
    overflow: hidden;
}

    .search-box input {
        flex: 1;
        padding: 18px 25px;
        border: none;
        font-size: 16px;
        outline: none;
    }

    .search-box button {
        width: 70px;
        background: #1b4d2a;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 20px;
        transition: .3s;
    }

        .search-box button:hover {
            background: #c79b24;
        }

/* ===============================
FILTER
=============================== */

.filter-section {
    padding-bottom: 50px;
    background: #fff;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .filter-wrapper select {
        padding: 15px 22px;
        border: 1px solid #ddd;
        border-radius: 40px;
        font-size: 15px;
        background: #fff;
        min-width: 220px;
        cursor: pointer;
        transition: .3s;
    }

        .filter-wrapper select:hover {
            border-color: #c79b24;
        }

/* ===============================
CATEGORY
=============================== */

.categories {
    padding: 80px 0;
    background: #fafaf6;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .35s;
    text-align: center;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

    .category-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

    .category-card h3 {
        font-size: 24px;
        margin: 20px 0 10px;
        color: #1b4d2a;
    }

    .category-card p {
        padding: 0 20px;
        font-size: 15px;
        line-height: 1.7;
        color: #666;
        min-height: 70px;
    }

    .category-card .btn {
        margin: 25px 0 30px;
    }

/* ===============================
PRODUCT SECTION
=============================== */

.products-page {
    padding: 100px 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
    margin-top: 50px;
}

/* Section Heading */

.products-page .section-title h2 {
    font-size: 44px;
    color: #1b4d2a;
    margin-bottom: 10px;
}

.products-page .section-title p {
    font-size: 18px;
    color: #777;
}

/* ===============================
RESPONSIVE
=============================== */

@media(max-width:1100px) {

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .products-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left p {
        margin: auto auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media(max-width:768px) {

    .hero-left h1 {
        font-size: 38px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }

        .search-box button {
            width: 100%;
            height: 55px;
        }

    .filter-wrapper {
        flex-direction: column;
        align-items: center;
    }

        .filter-wrapper select {
            width: 100%;
            max-width: 350px;
        }
}
/* ==========================================
PRODUCT CARDS
========================================== */

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 18px 40px rgba(0,0,0,.15);
    }

    .product-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .product-card:hover img {
        transform: scale(1.06);
    }

/* ==========================================
PRODUCT CONTENT
========================================== */

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .product-content h3 {
        font-size: 24px;
        color: #1b4d2a;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .product-content p {
        font-size: 15px;
        color: #666;
        line-height: 1.7;
        margin-bottom: 20px;
        flex: 1;
    }

/* ==========================================
PRICE & WEIGHT
========================================== */

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.weight {
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #c79b24;
}

/* ==========================================
RATINGS
========================================== */

.rating {
    margin-bottom: 20px;
    color: #f6b100;
    font-size: 17px;
}

    .rating span {
        color: #666;
        font-size: 14px;
        margin-left: 8px;
    }

/* ==========================================
BUTTON AREA
========================================== */

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

    .product-buttons .btn,
    .product-buttons .btn-light {
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 50px;
        font-weight: 600;
        transition: .3s;
    }

.cart-btn {
    border: none;
    cursor: pointer;
}

    .cart-btn i,
    .whatsapp-btn i {
        margin-right: 8px;
    }

/* ==========================================
WHATSAPP BUTTON
========================================== */

.whatsapp-btn {
    border: 2px solid #1b4d2a;
    color: #1b4d2a;
    background: #ffffff;
}

    .whatsapp-btn:hover {
        background: #25D366;
        color: #ffffff;
        border-color: #25D366;
    }

/* ==========================================
PRODUCT BADGES
========================================== */

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

    .product-badge.bestseller {
        background: #d62828;
    }

    .product-badge.new {
        background: #2a9d8f;
    }

    .product-badge.premium {
        background: #c79b24;
    }

    .product-badge.healthy {
        background: #1b7f3b;
    }

/* ==========================================
IMAGE OVERLAY
========================================== */

.product-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px;
    background: linear-gradient( to bottom, rgba(0,0,0,0), rgba(0,0,0,.06) );
    pointer-events: none;
}

/* ==========================================
CARD BORDER EFFECT
========================================== */

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 22px;
    transition: .35s;
}

.product-card:hover::before {
    border-color: #d8c07a;
}

/* ==========================================
HOVER ICON ANIMATION
========================================== */

.product-buttons .btn:hover i,
.product-buttons .btn-light:hover i {
    transform: translateX(3px);
    transition: .3s;
}

/* ==========================================
ENTRANCE ANIMATION
========================================== */

.product-card {
    animation: fadeProduct .8s ease both;
}

@keyframes fadeProduct {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
RESPONSIVE
========================================== */

@media(max-width:992px) {

    .product-content {
        padding: 20px;
    }

        .product-content h3 {
            font-size: 22px;
        }

    .price {
        font-size: 24px;
    }
}

@media(max-width:768px) {

    .product-card img {
        height: 240px;
    }

    .product-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .product-buttons {
        gap: 10px;
    }

    .product-content h3 {
        font-size: 20px;
    }
}
/* ==========================================
WHY CHOOSE US
========================================== */

.features {
    padding: 100px 0;
    background: #f8f9f5;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .35s;
}

    .feature-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

    .feature-box i {
        font-size: 48px;
        color: #c79b24;
        margin-bottom: 20px;
    }

    .feature-box h3 {
        font-size: 24px;
        color: #1b4d2a;
        margin-bottom: 15px;
    }

    .feature-box p {
        color: #666;
        line-height: 1.7;
    }

/* ==========================================
WHOLESALE CTA
========================================== */

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg,#1b4d2a,#2f6d40);
    text-align: center;
    color: #ffffff;
}

    .cta h2 {
        font-size: 46px;
        margin-bottom: 20px;
    }

    .cta p {
        font-size: 18px;
        color: #f2f2f2;
        margin-bottom: 35px;
    }

    .cta .btn {
        margin-right: 15px;
    }

    .cta .btn-light {
        background: #ffffff;
        color: #1b4d2a;
    }

/* ==========================================
TESTIMONIAL
========================================== */

.testimonial {
    padding: 100px 0;
    background: #ffffff;
}

.testimonial-box {
    max-width: 850px;
    margin: auto;
    background: #fff;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    text-align: center;
}

    .testimonial-box p:first-child {
        font-size: 28px;
        color: #f6b100;
    }

    .testimonial-box p {
        font-size: 18px;
        line-height: 1.8;
        color: #555;
    }

    .testimonial-box strong {
        display: block;
        margin-top: 20px;
        color: #1b4d2a;
        font-size: 18px;
    }

/* ==========================================
NEWSLETTER
========================================== */

.newsletter {
    padding: 90px 0;
    background: #f5f8f2;
}

.newsletter-box {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

    .newsletter-box h2 {
        font-size: 40px;
        color: #1b4d2a;
        margin-bottom: 15px;
    }

    .newsletter-box p {
        color: #666;
        margin-bottom: 35px;
    }

#newsletterForm {
    display: flex;
    max-width: 700px;
    margin: auto;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

    #newsletterForm input {
        flex: 1;
        padding: 18px 25px;
        border: none;
        outline: none;
        font-size: 16px;
    }

    #newsletterForm button {
        padding: 18px 35px;
        border: none;
        background: #1b4d2a;
        color: #fff;
        cursor: pointer;
        font-weight: 600;
        transition: .3s;
    }

        #newsletterForm button:hover {
            background: #c79b24;
        }

/* ==========================================
FOOTER IMPROVEMENTS
========================================== */

footer {
    background: #173717;
}

.footer-grid {
    gap: 50px;
}

    .footer-grid h4 {
        color: #ffffff;
    }

    .footer-grid ul {
        list-style: none;
        padding: 0;
    }

    .footer-grid li {
        margin-bottom: 12px;
    }

    .footer-grid a {
        color: #dddddd;
        transition: .3s;
    }

        .footer-grid a:hover {
            color: #c79b24;
            padding-left: 5px;
        }

.social-links {
    margin-top: 20px;
}

    .social-links a {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        margin-right: 10px;
        transition: .3s;
    }

        .social-links a:hover {
            background: #c79b24;
            color: #fff;
        }

/* ==========================================
WHATSAPP FLOATING BUTTON
========================================== */

.whatsapp {
    width: 65px;
    height: 65px;
    font-size: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,.6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37,211,102,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

/* ==========================================
SCROLL TO TOP BUTTON
========================================== */

#scrollTopBtn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #1b4d2a;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 20px;
    z-index: 999;
    transition: .3s;
}

    #scrollTopBtn:hover {
        background: #c79b24;
    }

/* ==========================================
SMOOTH ANIMATIONS
========================================== */

.fade-up {
    animation: fadeUp .8s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
RESPONSIVE
========================================== */

@media(max-width:992px) {

    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .cta h2 {
        font-size: 36px;
    }

    .newsletter-box h2 {
        font-size: 34px;
    }
}

@media(max-width:768px) {

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-box {
        padding: 35px 25px;
    }

    #newsletterForm {
        flex-direction: column;
        border-radius: 18px;
    }

        #newsletterForm input {
            width: 100%;
        }

        #newsletterForm button {
            width: 100%;
        }

    .cta .btn,
    .cta .btn-light {
        display: block;
        margin: 12px auto;
        width: 240px;
    }

    .social-links {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
