/* ==========================================================
   Herbal 3D — মূল স্টাইলশিট
   Palette: Deep green #1F4D2C, Leaf #3E7C3F, Sage bg #F3F7EE,
            Gold accent #C9973B, Cream #FFFDF8, Text #1B2E1D
   ========================================================== */

:root {
    --herbal-dark:    #1F4D2C;
    --herbal-leaf:    #3E7C3F;
    --herbal-sage:    #F3F7EE;
    --herbal-gold:    #C9973B;
    --herbal-cream:   #FFFDF8;
    --herbal-text:    #1B2E1D;
    --herbal-muted:   #5C6E5E;
    --herbal-border:  #DCE7D5;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31,77,44,.10);
    --font-heading: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
    --font-body: 'Hind Siliguri', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--herbal-text);
    background: var(--herbal-cream);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, .logo-text { font-family: var(--font-heading); color: var(--herbal-dark); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--herbal-gold);
    outline-offset: 2px;
}

/* ---------------- BUTTONS ---------------- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--herbal-dark); color: #fff; box-shadow: 0 8px 20px rgba(31,77,44,.25); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31,77,44,.32); }
.btn-outline { background: transparent; color: var(--herbal-dark); border: 2px solid var(--herbal-dark); }
.btn-outline:hover { background: var(--herbal-dark); color: #fff; }

/* ---------------- HEADER ---------------- */
.site-header {
    background: var(--herbal-cream);
    border-bottom: 1px solid var(--herbal-border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo-text { font-size: 22px; font-weight: 700; }
.primary-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.primary-menu a { font-weight: 600; }
.primary-menu a:hover { color: var(--herbal-leaf); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; }
.cart-count {
    position: absolute; top: -8px; right: -10px;
    background: var(--herbal-gold); color: #fff;
    font-size: 11px; border-radius: 50%;
    width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--herbal-dark); }

/* ---------------- HERO / SIGNATURE 3D STAGE ---------------- */
.hero-section {
    background: radial-gradient(circle at 80% 20%, #E7F1DE 0%, var(--herbal-sage) 55%, var(--herbal-cream) 100%);
    padding: 70px 0 60px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-heading { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; margin: 0 0 18px; }
.hero-desc { font-size: 17px; color: var(--herbal-muted); margin-bottom: 30px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-3d-stage {
    position: relative;
    height: 420px;
    perspective: 1000px;
}
.bottle-group {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center; gap: 26px;
    transform-style: preserve-3d;
}
.bottle { animation: bottle-float 6s ease-in-out infinite; transform-style: preserve-3d; }
.bottle-shampoo { animation-delay: -3s; }
.bottle-cap { width: 34px; height: 20px; background: var(--herbal-gold); border-radius: 6px 6px 2px 2px; margin: 0 auto; }
.bottle-body {
    width: 110px; height: 220px; border-radius: 20px 20px 34px 34px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.25);
    color: #fff; font-weight: 700; text-align: center; font-size: 14px;
}
.bottle-oil .bottle-body { background: linear-gradient(160deg, var(--herbal-leaf), var(--herbal-dark)); }
.bottle-shampoo .bottle-body { background: linear-gradient(160deg, #6FAE58, var(--herbal-leaf)); }
@keyframes bottle-float {
    0%, 100% { transform: translateY(0) rotateY(-8deg); }
    50%      { transform: translateY(-18px) rotateY(8deg); }
}

.orbit-leaf {
    position: absolute; font-size: 28px;
    animation: orbit-float 8s ease-in-out infinite;
}
.leaf-1 { top: 6%;  left: 8%;  animation-delay: 0s; }
.leaf-2 { top: 14%; right: 4%; animation-delay: -2s; font-size: 34px; }
.leaf-3 { bottom: 18%; left: 2%; animation-delay: -4s; }
.leaf-4 { bottom: 8%; right: 10%; animation-delay: -6s; font-size: 22px; }
@keyframes orbit-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-22px) rotate(10deg); }
}

.herb-chip {
    position: absolute;
    background: #fff; color: var(--herbal-dark);
    font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 50px;
    box-shadow: var(--shadow);
    animation: chip-float 7s ease-in-out infinite;
}
.chip-1 { top: 20%; left: 0; animation-delay: -1s; }
.chip-2 { top: 46%; right: -6px; animation-delay: -3s; }
.chip-3 { bottom: 26%; left: -6px; animation-delay: -5s; }
.chip-4 { bottom: 4%; right: 22%; animation-delay: -2s; }
@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-3d-stage { height: 320px; margin-top: 20px; }
    .primary-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    body.menu-open .primary-nav {
        display: block; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--herbal-cream); padding: 16px 20px; box-shadow: var(--shadow);
    }
    body.menu-open .primary-menu { flex-direction: column; gap: 14px; }
}

/* ---------------- SECTIONS ---------------- */
.section { padding: 64px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--herbal-muted); margin-bottom: 40px; }
.section-cta { text-align: center; margin-top: 30px; }

.features-section { background: var(--herbal-sage); }
.features-grid, .ingredients-grid, .reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .features-grid, .ingredients-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid, .ingredients-grid, .reviews-grid { grid-template-columns: 1fr; } }

.feature-card, .ingredient-card, .review-card {
    background: #fff; border-radius: var(--radius); padding: 28px 22px;
    box-shadow: var(--shadow); text-align: center;
    transition: transform .25s ease;
}
.feature-card:hover, .ingredient-card:hover { transform: translateY(-6px); }
.feature-icon, .ingredient-icon { font-size: 40px; margin-bottom: 14px; }
.feature-card h3, .ingredient-card h4 { margin: 6px 0 10px; }
.feature-card p, .ingredient-card p { color: var(--herbal-muted); font-size: 14.5px; margin: 0; }

.review-card { text-align: left; border-top: 4px solid var(--herbal-gold); }
.review-stars { margin-bottom: 10px; }
.review-text { font-style: italic; color: var(--herbal-text); }
.review-author { font-weight: 700; color: var(--herbal-dark); margin-top: 10px; }

.about-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.about-section .section-title { text-align: center !important; }

/* ---------------- PRODUCTS (WooCommerce loop override) ---------------- */
ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0 !important; }
@media (max-width: 900px) { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 500px) { ul.products { grid-template-columns: 1fr !important; } }

ul.products li.product {
    background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    transition: transform .25s ease;
}
ul.products li.product:hover { transform: translateY(-6px); }
ul.products li.product img { border-radius: 12px; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); font-size: 17px; color: var(--herbal-dark); margin: 12px 0 4px; }
ul.products li.product .price { color: var(--herbal-gold); font-weight: 700; }
ul.products li.product .price del { color: var(--herbal-muted); opacity: .6; }
ul.products li.product a.button, ul.products li.product a.add_to_cart_button {
    background: var(--herbal-dark) !important; color: #fff !important; border-radius: 50px !important;
    padding: 10px 20px !important; font-weight: 600; margin-top: 10px; display: inline-block;
}
ul.products li.product a.button:hover { background: var(--herbal-leaf) !important; }

/* ---------------- CHECKOUT CUSTOMIZATION ---------------- */
.herbal-hidden-field { display: none !important; }
.herbal-address-field textarea { min-height: 100px; }
.woocommerce-checkout #payment { background: var(--herbal-sage); border-radius: var(--radius); }
.bkash-payment-box { background: #fff; border: 1px dashed var(--herbal-gold); border-radius: 12px; padding: 16px; margin-top: 10px; }
.bkash-instruction .bkash-number { font-weight: 800; color: var(--herbal-dark); font-size: 18px; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea { border-radius: 10px; border: 1px solid var(--herbal-border); padding: 10px 14px; }
.woocommerce #order_review { border-radius: var(--radius); background: #fff; padding: 20px; box-shadow: var(--shadow); }

/* ---------------- WHATSAPP FLOAT BUTTON ---------------- */
.wa-float-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(37,211,102,.45);
    animation: wa-pulse 2.4s ease-in-out infinite;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(37,211,102,.45); }
    50%      { box-shadow: 0 10px 34px rgba(37,211,102,.7); }
}

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--herbal-dark); color: #E9F2E4; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer-contact-list { list-style: none; padding: 0; margin: 0 0 14px; }
.footer-contact-list li { margin-bottom: 8px; color: #CFE2C8; }
.footer-whatsapp { display: inline-block; background: #25D366; color: #fff; padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 14px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #CFE2C8; }
.footer-menu a:hover { color: var(--herbal-gold); }
.social-link { color: var(--herbal-gold); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13.5px; color: #B9CFB2; }

/* ---------------- GENERIC PAGE / BLOG ---------------- */
.page-content { padding: 60px 0; }
.page-title { font-size: 30px; margin-bottom: 20px; }
.blog-card { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--herbal-border); }
.herbal-breadcrumb { padding: 16px 0; color: var(--herbal-muted); font-size: 14px; }
