/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra – The South Indian Herb
Author: Your Name
Author URI: https://thesouthindianherb.com
Template: astra
Version: 1.0.0
*/

/* Custom styles will go here */
/* ===============================
   HERO SLIDER – ASTRA CHILD (FINAL)
   =============================== */

/* Full-width wrapper */
.home-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

/* ===============================
   SLIDE BASE (DESKTOP)
   =============================== */
.hero-slide {
    width: 100%;
    min-height: 85vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* ===============================
   REMOVE OVERLAY COMPLETELY
   =============================== */
.hero-slide::before {
    display: none !important;
    content: none !important;
}

/* ===============================
   REMOVE HERO CONTENT COMPLETELY
   =============================== */
.hero-content {
    display: none !important;
}

/* ===============================
   SWIPER CONTROLS
   =============================== */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2F7D32;
}

/* ===============================
   MOBILE FIX – SINGLE IMAGE (KEY)
   =============================== */
@media (max-width: 768px) {
    /* Ensure Swiper's JS/CSS cannot force large heights on mobile */
    .home-hero,
    .home-hero .home-hero-swiper,
    .home-hero .swiper-wrapper,
    .home-hero .swiper-slide,
    .home-hero .hero-slide {
        min-height: 0 !important;   /* remove any forced minimums */
        height: auto !important;    /* allow natural height calculation */
        max-height: 70vh !important;/* cap height to view */
    }

    .home-hero .hero-slide {
        aspect-ratio: unset;       /* allow image to determine height */
        height: auto !important;
        min-height: 40vh !important; /* prevent collapse on mobile */
        max-height: 70vh !important; /* keep a reasonable cap */
        background-size: cover !important; /* fill width, maintain coverage */
        background-repeat: no-repeat;
        background-position: center center; /* center focal area */
        background-color: #f5f1e8;  /* fallback bg */
        display: block;             /* ensure aspect-ratio applies consistently */
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .home-hero .hero-slide {
        aspect-ratio: unset;
        min-height: 50vh !important; /* a touch taller on very small screens */
        background-size: cover !important;
        max-height: 60vh !important;
    }
}

/* ===============================
   REMOVE ASTRA HOME PAGE SPACING
   =============================== */
@media (min-width: 1200px) {
    .home.ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}



/* ===== Header WhatsApp + Social Icons ===== */

.header-social-wrapper {
    display: flex;
    align-items: center;       /* PERFECT vertical alignment */
    gap: 12px;
    height: 100%;
}

/* WhatsApp link */
.header-whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #668341;
    text-decoration: none;
}

/* WhatsApp icon */
.header-whatsapp img {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* Divider */
.header-divider {
    line-height: 1;
    color: #ccc;
}

/* Social icons container */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Social icons */
.header-social-icons img {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.header-social-icons img:hover {
    transform: scale(1.15);
}


/* ===============================
   HOME – CATEGORY HIGHLIGHTS
   =============================== */

.home-categories {
    padding: 60px 20px;
    background: #fff;
}

.home-categories-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Section header that sits above the grid */
.home-categories-header {
    grid-column: 1 / -1;      /* span full width of the grid */
    text-align: center;
    margin-bottom: 20px;
}

.home-categories-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Global section heading color */
section h2,
section h3,
.section-title,
.home-categories-title {
    color: var(--section-color); /* Primary section heading color */
}

/* Category card */
.category-card {
    text-align: center;
    text-decoration: none;
    color: #222;
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
}

/* Hover effect */
.category-card:hover img {
    transform: scale(1.08);
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 1024px) {
    .home-categories-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .home-categories-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card h3 {
        font-size: 14px;
    }
}


/* ===============================
   HOME – POPULAR PRODUCTS
   =============================== */
:root {
    --section-color: #3c4e1e; /* updated primary section color */
    --product-accent: #668341; /* product title & offered price color */
    --rating-color: #f4c150; /* recommended gold for ratings */
    --rating-muted: #e6e6e9; /* muted star for empty */
}

.home-popular-products {
    padding: 60px 20px;
    background: #fff;
}

.home-popular-products .container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-popular-products .section-title {
    text-align: center;
    margin-bottom: 6px;
}

.home-popular-products .section-subtitle {
    text-align: center;
    margin-bottom: 24px;
    color: #666;
}

.products-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.product-card h3 {
    color: var(--product-accent);
    font-size: 16px;
    margin: 0 0 10px 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    margin-bottom: 12px;
    font-size: 16px;
    display: inline-block;
}

/* Original price (strike-through) — muted */
.product-card .price del {
    color: #9aa0a6; /* muted grey */
    font-weight: 600;
    opacity: 0.9;
    text-decoration: line-through;
    margin-right: 8px;
}

/* Current price — product accent color */
.product-card .price ins {
    color: var(--product-accent);
    font-weight: 700;
}

/* Fallback for nested amount spans */
.product-card .price del .woocommerce-Price-amount,
.product-card .price del .amount {
    color: inherit;
}
.product-card .price ins .woocommerce-Price-amount,
.product-card .price ins .amount {
    color: inherit;
}

.product-card .button,
.product-card .added_to_cart,
.product-card .add_to_cart_button {
    display: inline-block;
    padding: 10px 14px;
    background: var(--section-color);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card img {
        height: 160px;
    }
}

@media (max-width: 420px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card img {
        height: 220px;
    }
    .product-card .button {
        width: 100%;
    }
}

/* Latest Products section title centering */
.home-latest-products {
    padding: 60px 20px;
    background: #fff;
}

.home-latest-products .container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-latest-products .section-title {
    text-align: center;
    margin-bottom: 6px;
}

.home-latest-products .section-subtitle {
    text-align: center;
    margin-bottom: 24px;
    color: #666;
}

/* ===============================
   SITE FOOTER (full-width band)
   =============================== */
.site-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 48px 20px 24px;
    background-color: #3c4e1e; /* primary footer background */
    color: #f5f6f4; /* readable light text */
}

.site-footer .footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: start;
}

.site-footer .footer-col h3,
.site-footer .footer-col h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

/* Remove default bullets and spacing in footer lists */
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Contact list with icons */
.site-footer .contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer .contact-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.site-footer .contact-icon svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.site-footer .contact-list a {
    color: #dbe6cf;
    text-decoration: none;
}

.site-footer .contact-list a:hover,
.site-footer .contact-list a:focus {
    color: var(--product-accent);
    text-decoration: underline;
}

.site-footer p,
.site-footer li,
.site-footer .contact-list li {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.site-footer a {
    color: #dbe6cf; /* soft link color */
    text-decoration: none;
    transition: color .15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--product-accent);
}

.site-footer .fssai strong {
    color: #fff;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0 6px 0;
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-top: 20px;
}

/* Footer social icons */
.footer-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.footer-socials a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: #fff;
    transition: background .15s ease, color .15s ease, transform .12s ease;
}

.footer-socials a svg { width: 18px; height: 18px; display: block; fill: currentColor; }

.footer-socials a:hover,
.footer-socials a:focus {
    background: var(--product-accent);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .site-footer {
        width: 100%;
        margin-left: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ===============================
   HOME – WHY CHOOSE US / TRUST
   =============================== */
.home-why-choose-us {
    padding: 64px 20px;
    background: linear-gradient(180deg, #fbfdf9 0%, #f4f7f2 100%);
    margin-bottom:30px;
}

.home-why-choose-us .container {
    max-width: 1100px;
    margin: 0 auto;
}

.home-why-choose-us .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.home-why-choose-us .section-subtitle {
    text-align: center;
    margin: 0 auto 30px auto;
    color: #666;
    max-width: 720px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.trust-item {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(12,12,12,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--product-accent) 0%, var(--section-color) 100%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

/* Ensure inline SVGs size and inherit color */
.trust-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

.trust-item h3 {
    margin: 0;
    color: var(--section-color);
    font-size: 18px;
    font-weight: 700;
}

.trust-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(12,12,12,0.12);
}

.trust-item:hover .trust-icon {
    transform: scale(1.06) rotate(-3deg);
}

/* Accessibility: highlight when focused via keyboard */
.trust-item:focus-within,
.trust-item:focus {
    outline: 3px solid rgba(102,131,65,0.12);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-item {
        padding: 18px;
    }
}

/* ===============================
   HOME – TESTIMONIALS
   =============================== */
.home-testimonials {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 20px; /* a bit taller for emphasis */
    background-color: #f4f7f2; /* fallback color */
    background-image: linear-gradient(180deg, rgba(251,253,249,0.85) 0%, rgba(244,247,242,0.85) 100%), url('assets/images/testimonial-bg-min.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax-like on desktop */
    overflow: hidden;
    min-height: 60vh; /* ensure image is visible */
}

@media (max-width: 768px) {
    .home-testimonials {
        background-attachment: scroll;
        min-height: auto;
    }
}

.home-testimonials .container {
    max-width: 1100px;
    margin: 0 auto;
}

.home-testimonials .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.home-testimonials .section-subtitle {
    text-align: center;
    margin: 0 auto 32px auto;
    color: #666;
    max-width: 760px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(14,14,14,0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
    overflow: visible;
}

.testimonial-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.testimonial-avatar {
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    background: #e9e9e9; /* neutral grey background */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--product-accent); /* icon uses accent so it stands out on grey */
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Restore brand gradient and white icon on hover/focus for emphasis */
.testimonial-card:hover .testimonial-avatar,
.testimonial-card:focus-within .testimonial-avatar {
    background: linear-gradient(135deg, var(--product-accent) 0%, var(--section-color) 100%);
    color: #fff;
}

.testimonial-avatar svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

.testimonial-content {
    flex: 1 1 auto;
}

.testimonial-rating { 
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.testimonial-rating .star {
    color: var(--rating-muted); /* empty / default star */
}

.testimonial-rating .star.filled {
    color: var(--rating-color); /* filled star (gold) */
}

.testimonial-rating .star { width: 18px; height: 18px; }
.testimonial-rating .star svg { width: 18px; height: 18px; display: block; }
.testimonial-text {
    position: relative;
    font-style: normal;
    color: #333;
    margin: 0 0 12px 0;
    padding-left: 20px; /* reserve space for decorative quote */
}

/*.testimonial-text:before {
    content: '\201C';
    font-size: 40px;
    color: rgba(102,131,65,0.12);
    position: absolute;
    left: 0;
    top: -6px; // slight lift so quote doesn't affect line-height 
    line-height: 1;
    margin: 0;
    pointer-events: none;
}*/

.testimonial-author {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(12,12,12,0.12);
}

@media (max-width: 600px) {
    .testimonial-text { padding-left: 30px; }
    .testimonial-text:before { font-size: 32px; top: -4px; }
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-body { 
        gap: 12px;
    }
    .testimonial-avatar { min-width: 54px; min-height: 54px; font-size: 16px; }
}

/* ===============================
   WHATSAPP FLOATING CHAT BUTTON
   =============================== */
.whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 70px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp green */
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.whatsapp-chat svg { width: 22px; height: 22px; display: block; fill: currentColor; }

.whatsapp-chat:hover,
.whatsapp-chat:focus {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.22);
    opacity: 0.98;
}

@media (max-width: 480px) {
    .whatsapp-chat { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
