/* ================================================
   style1.css – Shree Varsha Organics
   Shared styles: Header, Footer, WhatsApp Float,
   Common base, Cart badge, Animations
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600&display=swap');

/* ---- RESET & BASE ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #eff6f1;
    color: #2d2d2d;
}

/* ---- HEADER ---- */
.header {
    background: linear-gradient(135deg, #1a3c2e 0%, #2d5a3d 60%, #3a7a52 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.header .logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    object-fit: cover;
    flex-shrink: 0;
}

.header .brand-text {
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.header .brand-text span {
    display: block;
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a8d5b5;
}

/* ---- HEADER NAV ---- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.header-nav li a {
    display: block;
    padding: 8px 18px;
    color: #e8f5ec;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-nav li a:hover,
.header-nav li a.active {
    background: rgba(168, 213, 181, 0.18);
    color: #a8d5b5;
}

/* Cart badge in nav */
.cart-nav-link { position: relative; }
.cart-badge {
    position: absolute;
    top: 2px; right: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ---- FOOTER ---- */
.footer {
    background: linear-gradient(160deg, #0f2419 0%, #1a3c2e 60%, #0d2018 100%);
    padding: 60px 0 0;
    color: #e8f5ec;
    position: relative;
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: #a8c8b0;
    margin-top: 14px;
    margin-bottom: 0;
}

.footer-brand .brand-tagline {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a9e72;
    margin-top: 6px;
    border-top: 1px solid rgba(168,213,181,0.2);
    padding-top: 10px;
    width: 100%;
}

.footer h2 {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: #a8d5b5;
    margin-bottom: 16px;
}

.footer h3 {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: #a8d5b5;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168,213,181,0.15);
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: #3a7a52;
    border-radius: 2px;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #c5dfc9;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: #b8d9c0;
    line-height: 1.6;
}

.footer-contact-item i {
    color: #5a9e72;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.footer-contact-item a {
    color: #a8d5b5;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover { color: #fff; }

.footer .social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(168,213,181,0.25);
    background: rgba(255,255,255,0.04);
    color: #a8d5b5;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social a:hover {
    background: #2d5a3d;
    border-color: #a8d5b5;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(45,90,61,0.4);
}

.footer-divider {
    border-top: 1px solid rgba(168,213,181,0.12);
    margin-top: 48px;
    padding: 18px 0;
    text-align: center;
    color: #4d7a5c;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.15);
}

.footer-divider span { color: #5a9e72; }


/* ---- FLOATING WHATSAPP ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    width: 58px; height: 58px;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: all 0.3s ease;
    animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float i { font-size: 1.9rem; }

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.07);
    box-shadow: 0 10px 32px rgba(37,211,102,0.6);
    animation: none;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 6px 32px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ---- PRODUCT CARD (shared) ---- */
.product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(45,90,61,0.1);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(45,90,61,0.18);
}

.product img {
    width: 100%;
    height: 280px;
    /* object-fit: contain;
    padding: 24px; */
    flex-shrink: 0;
    background: #fff;
}

.product-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid rgba(168,213,181,0.2);
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 90, 61, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-img-wrap:hover .product-overlay {
    opacity: 1;
}

.product-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border: 2px solid #fff;
    border-radius: 50px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-img-wrap:hover .product-overlay span {
    transform: translateY(0);
}

.product h2 {
    font-size: 1rem;
    color: #1a3c2e;
    padding: 10px 16px 4px;
    text-align: center;
    margin: 0;
}

.product h4 {
    font-size: 1.1rem;
    color: #2d5a3d;
    font-weight: 700;
    text-align: center;
    padding: 4px 16px 12px;
}

.product .product-footer {
    margin-top: auto;
    padding-bottom: 4px;
}

/* ---- SHARED BUTTON ---- */
.btn-custom {
    background: linear-gradient(135deg, #2d5a3d, #3a7a52);
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #1a3c2e, #2d5a3d);
    transform: scale(1.04);
    color: #fff;
}

.btn-custom i { font-size: 1rem; }

.btn-custom img {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ---- SCROLL REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- RESPONSIVE / MOBILE MENU ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(168,213,181,0.45);
    border-radius: 10px;
    padding: 8px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hamburger:hover {
    background: rgba(168,213,181,0.22);
    border-color: rgba(168,213,181,0.75);
}

.hamburger.active {
    background: rgba(168,213,181,0.2);
    border-color: #a8d5b5;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.active { opacity: 1; }

/* Mobile nav drawer */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 285px;
    height: 100%;
    background: linear-gradient(160deg, #1a3c2e 0%, #0d2018 100%);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    overflow-y: auto;
}

.mobile-nav.active { transform: translateX(0); }

/* Mobile nav header branding */
.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(168,213,181,0.15);
    margin-bottom: 10px;
}

.mobile-nav-header img {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(168,213,181,0.4);
}

.mobile-nav-header-text {
    font-family: 'Lora', serif;
    font-size: 0.87rem;
    color: #e8f5ec;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-nav-header-text small {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    color: #7aad8a;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    flex: 1;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: #c5dfc9;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 10px;
    transition: all 0.22s ease;
    border-left: 3px solid transparent;
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #7aad8a;
    transition: color 0.22s ease;
}

.mobile-nav a:hover {
    background: rgba(168,213,181,0.1);
    color: #fff;
    border-left-color: rgba(168,213,181,0.5);
    padding-left: 20px;
}

.mobile-nav a:hover i { color: #a8d5b5; }

.mobile-nav a.active {
    background: rgba(168,213,181,0.16);
    color: #a8d5b5;
    border-left-color: #a8d5b5;
    font-weight: 600;
}

.mobile-nav a.active i { color: #a8d5b5; }

.mobile-nav .mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 13px 16px;
    background: rgba(168,213,181,0.08);
    border-radius: 10px;
    color: #e8f5ec;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(168,213,181,0.2);
    position: relative;
    transition: all 0.22s ease;
}

.mobile-nav .mobile-cart-link:hover {
    background: rgba(168,213,181,0.18);
    border-color: rgba(168,213,181,0.45);
}

.mobile-nav .mobile-cart-link i {
    color: #a8d5b5;
    width: 20px;
    text-align: center;
}

.mobile-nav .mobile-cart-link .cart-badge {
    position: static;
    display: inline-flex;
    margin-left: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(168,213,181,0.25);
    color: #a8d5b5;
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mobile-nav-close:hover {
    background: rgba(255,255,255,0.15);
    border-color: #a8d5b5;
    color: #fff;
}

@media (max-width: 768px) {
    .header { padding: 10px 16px; gap: 10px; }
    .header .brand-text { font-size: 0.92rem; }
    .header .brand-text span { font-size: 0.62rem; letter-spacing: 2px; }
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav-overlay { display: block; pointer-events: none; }
    .mobile-nav-overlay.active { pointer-events: all; }
}

@media (min-width: 769px) {
    .hamburger { display: none !important; }
    .mobile-nav { display: none !important; }
    .mobile-nav-overlay { display: none !important; }
}

/* ---- Phone input with +91 prefix ---- */
.phone-input-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
    margin-bottom: 25px;
}
.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #5cba51;
    border-right: none;
    padding: 0 14px;
    border-radius: 0;
    font-weight: 600;
    color: #2d5a3d;
    white-space: nowrap;
}
.shipping .phone-input.form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 1px solid #5cba51 !important;
    border-left: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    height: 48px !important;
}