/* =============================================
   Panchrishi Herbals - Main Stylesheet
   Fully Responsive: Mobile, Tablet, Desktop
   Herbal Gradient Theme + BG Images
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --heading-font: 'Poppins', sans-serif;
    --green-dark: #1a4a2e;
    --green: #2d7a4f;
    --green-light: #4caf50;
    --green-muted: #3d6b4f;
    --gold: #c9a227;
    --gold-light: #f0c040;
    --cream: #fdf8f0;
    --cream-dark: #f5ede0;
    --text-dark: #1a1a1a;
    --text-mid: #444;
    --text-light: #777;
    --white: #ffffff;
    --red: #e53935;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;

    /* Herbal Gradients */
    --grad-forest:    linear-gradient(135deg, #1a4a2e 0%, #2d7a4f 40%, #4a9e6a 70%, #2d5a3a 100%);
    --grad-leaf:      linear-gradient(135deg, #2d7a4f 0%, #4caf50 50%, #81c784 100%);
    --grad-earth:     linear-gradient(135deg, #3b2e1e 0%, #6b4c2a 50%, #9a7040 100%);
    --grad-herbal:    linear-gradient(135deg, #1a4a2e 0%, #2d5a3a 30%, #4a7c3a 60%, #c9a227 100%);
    --grad-gold:      linear-gradient(135deg, #c9a227 0%, #e8c55a 50%, #a07c18 100%);
    --grad-section:   linear-gradient(135deg, #0d2b1a 0%, #1a4a2e 50%, #2d5a3a 100%);
    --grad-mint:      linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
}

/* ============ BASE RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: none; transition: var(--transition);
    font-family: 'Nunito', sans-serif; white-space: nowrap;
    position: relative; overflow: hidden;
}
/* Ripple on click */
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}
.btn:active::after {
    width: 200px; height: 200px; opacity: 0;
}
.btn-primary {
    background: var(--grad-forest);
    color: #fff;
}
.btn-primary:hover {
    background: var(--grad-leaf);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,122,79,0.45);
}
.btn-gold {
    background: var(--grad-gold);
    color: #fff;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-family: var(--heading-font);
    font-size: 38px; font-weight: 600;
    color: var(--green-dark); margin-bottom: 12px;
}
.section-title p { color: var(--text-light); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-title .divider {
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    margin: 15px auto; border-radius: 2px;
    transition: width 0.8s ease 0.3s;
}
.section-title.is-visible .divider { width: 80px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; animation: scaleIn 0.4s ease both; }
.badge-sale { background: var(--red); color: #fff; }
.badge-featured { background: var(--gold); color: #fff; }
.badge-new { background: var(--green); color: #fff; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-error { background: #ffebee; color: #c62828; border-left: 4px solid var(--red); }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* ============ TOPBAR ============ */
.topbar {
    background: var(--grad-section);
    color: #fff; padding: 8px 0; font-size: 13px;
    animation: fadeInDown 0.5s ease both;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.topbar span, .topbar a { color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.topbar a:hover { color: var(--gold-light); }
.topbar i { font-size: 12px; }

/* ============ HEADER ============ */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    display: flex; align-items: center;
    gap: 16px; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; animation: fadeInLeft 0.6s ease 0.1s both; }
.logo-img {
    width: 100px; height: 100px;
    object-fit: cover; border-radius: 50%;
    border: 3px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--green-dark); line-height: 1.2; }
.logo-tag { font-size: 10px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.header-search { flex: 1; min-width: 0; max-width: 460px; animation: fadeInDown 0.6s ease 0.2s both; }
.header-search form { display: flex; border: 2px solid var(--green); border-radius: 30px; overflow: hidden; background: var(--cream); }
.header-search input { flex: 1; min-width: 0; padding: 9px 16px; border: none; background: transparent; font-size: 14px; font-family: 'Nunito', sans-serif; outline: none; }
.header-search button { background: var(--grad-forest); color: #fff; border: none; padding: 9px 18px; cursor: pointer; font-size: 15px; transition: var(--transition); flex-shrink: 0; }
.header-search button:hover { background: var(--green-dark); }

.header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; animation: fadeInRight 0.6s ease 0.1s both; }
.action-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; color: var(--text-dark); font-size: 12px; font-weight: 600;
    position: relative; padding: 7px 10px;
    border-radius: var(--radius-sm); transition: var(--transition);
    cursor: pointer;
}
.action-btn i { font-size: 20px; color: var(--green); }
.action-btn:hover { background: var(--cream); color: var(--green); }
.cart-btn { position: relative; }
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--red); color: #fff; font-size: 10px;
    font-weight: 700; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.nav-toggle {
    display: none;
    background: transparent; border: none; color: #fff;
    font-size: 22px; cursor: pointer; padding: 10px 14px;
    line-height: 1;
}

/* ============ NAVIGATION ============ */
.main-nav {
    background: var(--grad-forest);
    position: relative; z-index: 999;
    animation: fadeInDown 0.5s ease 0.3s both;
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }

.nav-list { display: flex; align-items: center; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block; padding: 14px 16px;
    color: rgba(255,255,255,0.9); font-weight: 600; font-size: 14px;
    transition: var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--gold-light);
    background: rgba(255,255,255,0.12);
}

.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; box-shadow: var(--shadow-lg);
    min-width: 220px; border-radius: 0 0 var(--radius) var(--radius); z-index: 200;
}
.dropdown-menu li a {
    display: block; padding: 11px 20px;
    color: var(--text-dark); font-size: 14px;
    border-bottom: 1px solid #f0f0f0; transition: var(--transition);
}
.dropdown-menu li a:hover { background: var(--cream); color: var(--green); padding-left: 26px; }

/* ============ HERO SLIDER ============ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide:not([style*="background-image"]) {
    background: var(--grad-forest);
}

.hero-slide .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.52);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    max-width: 700px;
}

.hero-text { color: #fff; }

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(201,162,39,0.22);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: 65px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text h1 span { color: var(--gold-light); }

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.88);
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-buttons .btn { padding: 14px 28px; }

.hero-stats {
    display: flex; gap: 25px; margin-top: 35px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 26px; font-weight: 600; color: var(--gold-light); font-family: var(--heading-font); display: inline-block; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* Hero slide entry animations */
.hero-slide.active .hero-badge {
    animation: fadeInDown 0.7s ease 0.15s both;
}
.hero-slide.active .hero-text h1 {
    animation: fadeInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-slide.active .hero-text p {
    animation: fadeInUp 0.8s ease 0.55s both;
}
.hero-slide.active .hero-buttons {
    animation: fadeInUp 0.7s ease 0.75s both;
}
.hero-slide.active .hero-stats {
    animation: fadeInUp 0.7s ease 0.95s both;
}
.hero-slide.active .hero-stat:nth-child(1) .hero-stat-num { animation: countUp 0.6s ease 1.0s both; }
.hero-slide.active .hero-stat:nth-child(2) .hero-stat-num { animation: countUp 0.6s ease 1.15s both; }
.hero-slide.active .hero-stat:nth-child(3) .hero-stat-num { animation: countUp 0.6s ease 1.3s both; }

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.slider-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 10;
    display: flex; gap: 10px;
}
.slider-dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.slider-dot.active {
    background: var(--gold-light);
    width: 28px;
    border-radius: 5px;
}

/* ============ HERO STATIC (non-slider fallback) ============ */
.hero {
    background: var(--grad-forest);
    min-height: 520px; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 50px 0;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.18) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; width: 100%; }
.hero-image { text-align: center; position: relative; }
.hero-image img { max-height: 420px; width: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); animation: float 4s ease-in-out infinite; }

/* ============ FEATURES BAR ============ */
.features-bar {
    background: var(--cream);
    padding: 30px 0;
    border-bottom: 1px solid #e8d5b5;
    position: relative;
}
.features-bar::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 Q45 20 30 35 Q15 20 30 5Z' fill='%232d7a4f' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--grad-forest);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover .feature-icon {
    transform: scale(1.18) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(45,122,79,0.35);
}
.feature-text h4 { font-family: var(--heading-font); font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--text-light); }

/* ============ PRODUCT CARDS ============ */
.products-section { padding: 60px 0; background: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.6s ease;
    border: 1px solid #f0f0f0; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(45,122,79,0.22); }
.product-img-wrap { position: relative; overflow: hidden; height: 270px; background: var(--cream); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.product-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; }
.action-icon {
    width: 34px; height: 34px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer; border: none; font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.action-icon:hover { background: var(--green); color: #fff; transform: rotate(15deg) scale(1.15); }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 11px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.product-name { font-family: var(--heading-font); font-size: 16px; font-weight: 600; color: var(--green-dark); margin-bottom: 10px; line-height: 1.3; flex: 1; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.price-sale { font-size: 19px; font-weight: 700; color: var(--green-dark); }
.price-original { font-size: 14px; color: var(--text-light); text-decoration: line-through; }
.price-discount { background: #ffebee; color: var(--red); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.product-card-buttons { display: flex; gap: 8px; margin-top: auto; transform: translateY(6px); transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0.85; }
.product-card:hover .product-card-buttons { transform: translateY(0); opacity: 1; }
.product-card-buttons .btn { flex: 1; justify-content: center; padding: 9px 8px; font-size: 13px; }

/* Product Swiper */
.productSwiper { padding: 20px 0 50px; }
.productSwiper .swiper-slide { height: auto; }
.productSwiper .product-card { height: 100%; }
.productSwiper img { width: 100%; display: block; }

/* ============ CATEGORIES SECTION ============ */
.categories-section {
    padding: 60px 0;
    background: var(--cream);
    position: relative;
}
.categories-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cellipse cx='40' cy='40' rx='8' ry='20' fill='%232d7a4f' opacity='0.05' transform='rotate(30 40 40)'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}
.categories-section .section-title,
.categories-section .categories-grid { position: relative; z-index: 1; }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.category-card {
    background: #fff; border-radius: var(--radius); padding: 25px 15px;
    text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer; border: 2px solid transparent;
}
.category-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon {
    width: 64px; height: 64px;
    background: var(--grad-mint);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 26px; color: var(--green-dark);
    transition: transform 0.3s ease;
}
.category-card:hover .category-icon { transform: scale(1.18) rotate(-8deg); }
.category-card h3 { font-family: var(--heading-font); font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }
.category-card p { font-size: 12px; color: var(--text-light); }

/* ============ WHY CHOOSE US ============ */
.why-section {
    padding: 60px 0;
    background: var(--grad-section);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.why-section::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.why-section::after {
    content: '';
    position: absolute; bottom: -80px; left: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(76,175,80,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.why-section .section-title { position: relative; z-index: 1; }
.why-section .section-title h2 { color: #fff; }
.why-section .section-title p { color: rgba(255,255,255,0.8); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; position: relative; z-index: 1; }
.why-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); padding: 28px 22px; text-align: center;
    transition: background 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(4px);
}
.why-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-4px); }
.why-icon { font-size: 38px; color: var(--gold-light); margin-bottom: 16px; transition: transform 0.35s ease, color 0.3s ease; }
.why-card:hover .why-icon { transform: scale(1.25) rotate(-10deg); color: var(--gold-light); }
.why-card h3 { font-family: var(--heading-font); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ============ HERBAL BANNER SECTION ============ */
.herbal-banner-section {
    padding: 80px 0;
    background:
        linear-gradient(135deg, rgba(26,74,46,0.88) 0%, rgba(45,122,79,0.78) 60%, rgba(201,162,39,0.55) 100%),
        url('https://images.unsplash.com/photo-1556228578-0d85b1a4d571?w=1600&q=80') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}
.herbal-banner-section h2 {
    font-family: var(--heading-font);
    font-size: 42px; font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.herbal-banner-section h2 span {
    background: linear-gradient(90deg, var(--gold-light), #fff, var(--gold-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2.5s linear infinite 1.2s;
}
.herbal-banner-section p {
    font-size: 17px; color: rgba(255,255,255,0.88);
    max-width: 600px; margin: 0 auto 30px;
    line-height: 1.8;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    padding: 60px 0;
    background: var(--cream);
    position: relative;
}
.testimonials-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='6' fill='none' stroke='%232d7a4f' stroke-width='1' opacity='0.07'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}
.testimonials-section .section-title,
.testimonials-section .testimonials-grid { position: relative; z-index: 1; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.testimonial-card {
    background: #fff; padding: 28px; border-radius: var(--radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.07); position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.testimonial-card::before {
    content: '"'; font-size: 70px; color: var(--green); opacity: 0.15;
    position: absolute; top: 8px; left: 18px; font-family: var(--heading-font); line-height: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.testimonial-card:hover::before { opacity: 0.28; transform: translateY(-6px) scale(1.05); }
.testimonial-stars { color: var(--gold); margin-bottom: 12px; }
.testimonial-stars i { display: inline-block; animation: bounceIn 0.4s ease both; }
.testimonial-text { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--grad-forest);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px;
}
.testimonial-author h4 { font-family: var(--heading-font); font-size: 14px; font-weight: 600; color: var(--green-dark); }
.testimonial-author span { font-size: 12px; color: var(--text-light); }

/* ============ NEWSLETTER ============ */
.newsletter-section {
    padding: 55px 0;
    background:
        linear-gradient(135deg, rgba(201,162,39,0.92) 0%, rgba(160,124,24,0.95) 100%),
        url('https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=1400&q=80') center/cover no-repeat;
    position: relative;
}
.newsletter-content { text-align: center; color: #fff; position: relative; z-index: 1; }
.newsletter-content h2 { font-family: var(--heading-font); font-size: 34px; font-weight: 600; margin-bottom: 10px; }
.newsletter-content p { font-size: 15px; opacity: 0.9; margin-bottom: 28px; }
.newsletter-form {
    display: flex; max-width: 480px; margin: 0 auto;
    border-radius: 40px; overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}
.newsletter-form input { flex: 1; min-width: 0; padding: 14px 22px; border: none; font-size: 15px; font-family: 'Nunito', sans-serif; outline: none; }
.newsletter-form button {
    background: var(--green-dark); color: #fff; border: none; padding: 14px 26px;
    font-weight: 700; cursor: pointer; font-size: 14px; font-family: 'Nunito', sans-serif;
    transition: background 0.3s ease, letter-spacing 0.3s ease; flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--green); letter-spacing: 0.5px; }

/* ============ SITE FOOTER ============ */
.site-footer {
    background: var(--grad-section);
    color: rgba(255,255,255,0.85);
    padding: 55px 0 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--green));
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 35px; margin-bottom: 40px; }
.footer-brand { animation: fadeInLeft 0.7s ease 0.1s both; }
.footer-col:nth-child(2) { animation: fadeInUp 0.7s ease 0.2s both; }
.footer-col:nth-child(3) { animation: fadeInUp 0.7s ease 0.35s both; }
.footer-col:nth-child(4) { animation: fadeInRight 0.7s ease 0.45s both; }
.footer-brand .logo-name { color: #fff; font-size: 20px; }
.footer-brand .logo-tag { color: var(--gold-light); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 14px 0; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-link:hover { background: var(--gold); color: var(--green-dark); transform: translateY(-4px) scale(1.15); }
.footer-col h4 { font-family: var(--heading-font); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px; color: rgba(255,255,255,0.7);
    transition: color 0.25s ease, padding-left 0.25s ease, letter-spacing 0.25s ease;
    display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; letter-spacing: 0.3px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-light); }

/* ============ SHOP PAGE ============ */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 36px 0; }
.sidebar {
    background: #fff; border-radius: var(--radius); padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); height: fit-content;
    animation: fadeInLeft 0.5s ease both;
}
.sidebar-section { margin-bottom: 26px; border-bottom: 1px solid #f0f0f0; padding-bottom: 22px; }
.sidebar-section:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-section h3 { font-family: var(--heading-font); font-size: 15px; font-weight: 600; color: var(--green-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sidebar-section h3 i { color: var(--green); }
.filter-list li {
    display: flex; align-items: center; gap: 10px; padding: 6px 0;
    cursor: pointer; color: var(--text-mid); font-size: 14px;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.filter-list li input[type="radio"], .filter-list li input[type="checkbox"] { accent-color: var(--green); }
.filter-list li:hover { color: var(--green); padding-left: 6px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--green); }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.shop-header select { padding: 8px 14px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 14px; outline: none; }
.shop-results { font-size: 14px; color: var(--text-light); }

.filter-toggle-btn {
    display: none; align-items: center; gap: 8px;
    padding: 9px 18px; background: var(--green); color: #fff;
    border: none; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 14px; cursor: pointer; font-family: 'Nunito', sans-serif;
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid #ddd; font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover, .pagination .active { background: var(--green); color: #fff; border-color: var(--green); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 45px 0; }
.product-gallery { position: sticky; top: 100px; }
.main-image {
    background: var(--cream); border-radius: var(--radius); overflow: hidden;
    margin-bottom: 14px; height: 420px; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.8s ease both;
}
.main-image img { max-height: 100%; object-fit: contain; width: 100%; }
.product-detail-info h1 { font-family: var(--heading-font); font-size: 30px; font-weight: 600; color: var(--green-dark); margin-bottom: 12px; animation: fadeInLeft 0.7s ease 0.1s both; }
.rating-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; animation: fadeInLeft 0.6s ease 0.2s both; }
.stars { color: var(--gold); }
.rating-count { font-size: 13px; color: var(--text-light); }
.detail-price { margin-bottom: 22px; animation: fadeInLeft 0.6s ease 0.3s both; }
.detail-price .price-sale { font-size: 30px; }
.detail-price .price-original { font-size: 17px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; animation: fadeInUp 0.6s ease 0.5s both; }
.tag { background: var(--cream); border: 1px solid #ddd; padding: 5px 14px; border-radius: 20px; font-size: 13px; color: var(--text-mid); }
.qty-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--green); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 38px; height: 40px; background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--green); transition: var(--transition); }
.qty-control button:hover { background: var(--green); color: #fff; }
.qty-control input { width: 55px; text-align: center; border: none; font-size: 16px; font-weight: 700; outline: none; }
.detail-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; animation: fadeInUp 0.7s ease 0.45s both; }
.detail-buttons .btn { flex: 1; min-width: 140px; justify-content: center; }
.product-meta { border-top: 1px solid #eee; padding-top: 18px; }
.product-meta p { font-size: 14px; color: var(--text-mid); margin-bottom: 7px; }
.product-meta strong { color: var(--green-dark); }
.product-tabs { margin-top: 50px; }
.tab-nav { display: flex; border-bottom: 2px solid #eee; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
    padding: 11px 22px; font-weight: 600; font-size: 14px; cursor: pointer;
    border: none; background: transparent; color: var(--text-light);
    font-family: 'Nunito', sans-serif; transition: var(--transition);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    position: relative; overflow: hidden;
}
.tab-btn::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.tab-btn:hover::after, .tab-btn.active::after { transform: scaleX(1); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-family: var(--heading-font); font-weight: 600; color: var(--green-dark); margin-bottom: 14px; font-size: 17px; }
.tab-content ul { padding-left: 20px; }
.tab-content li { margin-bottom: 8px; color: var(--text-mid); font-size: 15px; }

/* ============ CART ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 36px 0; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); animation: fadeInLeft 0.7s ease 0.1s both; }
.cart-table th { background: var(--green-dark); color: #fff; padding: 14px 16px; font-size: 13px; text-align: left; font-weight: 600; }
.cart-table td { padding: 16px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 65px; height: 65px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-product-name { font-family: var(--heading-font); font-weight: 600; color: var(--green-dark); font-size: 14px; }
.cart-product-meta { font-size: 12px; color: var(--text-light); }
.cart-qty { display: flex; align-items: center; gap: 7px; }
.cart-qty input { width: 50px; padding: 5px; text-align: center; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.cart-remove { color: var(--red); cursor: pointer; background: none; border: none; font-size: 16px; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); height: fit-content; animation: fadeInRight 0.7s ease 0.2s both; }
.cart-summary h3 { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid #eee; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--text-mid); border-bottom: 1px solid #f5f5f5; }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--green-dark); border-top: 2px solid var(--green); margin-top: 10px; padding-top: 14px; border-bottom: none; }
.coupon-form { margin: 18px 0; display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 9px 14px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 14px; font-family: 'Nunito', sans-serif; outline: none; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; padding: 36px 0; }
.checkout-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.checkout-form h3 { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--green-dark); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--green-dark); }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 14px; transition: var(--transition); outline: none; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.payment-option { border: 2px solid #e0e0e0; border-radius: var(--radius-sm); padding: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.payment-option.selected, .payment-option:hover { border-color: var(--green); background: var(--cream); }
.payment-option input { accent-color: var(--green); }
.payment-option i { font-size: 20px; color: var(--green); }
.payment-option span { font-size: 13px; font-weight: 600; }

/* ============ USER DASHBOARD ============ */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 36px 0; }
.dashboard-sidebar { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); height: fit-content; }
.user-profile-box { text-align: center; padding-bottom: 18px; border-bottom: 1px solid #eee; margin-bottom: 18px; }
.user-avatar {
    width: 75px; height: 75px;
    background: var(--grad-forest);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; font-weight: 700; margin: 0 auto 10px;
}
.user-profile-box h3 { font-family: var(--heading-font); font-size: 16px; font-weight: 600; color: var(--green-dark); }
.user-profile-box p { font-size: 13px; color: var(--text-light); }
.dashboard-nav li a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-mid); font-size: 14px; font-weight: 500; transition: var(--transition); margin-bottom: 4px; }
.dashboard-nav li a:hover, .dashboard-nav li a.active { background: var(--cream); color: var(--green); }
.dashboard-nav li a i { width: 18px; color: var(--green); }
.dashboard-content { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--cream); border-radius: var(--radius-sm); padding: 18px; text-align: center; border-left: 4px solid var(--green); }
.stat-card .stat-num { font-size: 26px; font-weight: 600; color: var(--green-dark); font-family: var(--heading-font); }
.stat-card .stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { background: var(--cream); padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--green-dark); text-align: left; border-bottom: 2px solid #eee; }
.orders-table td { padding: 13px 14px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #f3e5f5; color: #6a1b9a; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* ============ ADMIN PANEL ============ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--grad-section); color: #fff; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 1000; transition: transform 0.3s ease; animation: fadeInLeft 0.5s ease both; }
.admin-logo { padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 12px; }
.admin-logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.admin-logo span { font-family: var(--heading-font); font-size: 15px; font-weight: 600; color: var(--gold-light); line-height: 1.2; }
.admin-nav { padding: 18px 0; }
.admin-nav-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); padding: 8px 18px; margin-top: 10px; }
.admin-nav li a { display: flex; align-items: center; gap: 11px; padding: 11px 18px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; transition: var(--transition); }
.admin-nav li a:hover, .admin-nav li a.active { background: rgba(255,255,255,0.12); color: var(--gold-light); border-right: 3px solid var(--gold-light); }
.admin-nav li a i { width: 16px; font-size: 15px; }
.admin-main { margin-left: 250px; flex: 1; background: #f5f7fa; min-height: 100vh; }
.admin-topbar { background: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 5px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; animation: fadeInDown 0.5s ease both; }
.admin-topbar h2 { font-family: var(--heading-font); font-size: 18px; font-weight: 600; color: var(--green-dark); }
.admin-topbar-right { display: flex; align-items: center; gap: 14px; }
.admin-menu-toggle { display: none; background: transparent; border: none; font-size: 20px; color: var(--green-dark); cursor: pointer; padding: 5px; }
.admin-content { padding: 22px 24px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.admin-stat-card {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.admin-stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
    transition: transform 0.35s ease;
}
.admin-stat-card:hover .admin-stat-icon { transform: scale(1.18) rotate(-8deg); }
.icon-green { background: var(--grad-forest); }
.icon-gold { background: var(--grad-gold); }
.icon-blue { background: linear-gradient(135deg, #2196f3, #1565c0); }
.icon-red { background: linear-gradient(135deg, var(--red), #b71c1c); }
.admin-stat-info h3 { font-family: var(--heading-font); font-size: 24px; font-weight: 600; color: var(--green-dark); }
.admin-stat-info p { font-size: 12px; color: var(--text-light); }
.admin-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); margin-bottom: 22px; }
.admin-card-title { font-family: var(--heading-font); font-size: 17px; font-weight: 600; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 13px; border-bottom: 2px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8fafc; padding: 11px 14px; font-size: 12px; font-weight: 700; color: var(--green-dark); text-align: left; border-bottom: 2px solid #e8edf2; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: var(--text-mid); }
.admin-table tr { transition: background 0.2s ease; }
.admin-table tr:hover td { background: #f0faf5; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.admin-form-group.full { grid-column: 1 / -1; }
.admin-form-group label { font-size: 12px; font-weight: 700; color: var(--green-dark); }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { padding: 10px 13px; border: 1.5px solid #e0e0e0; border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: 13px; outline: none; transition: var(--transition); width: 100%; }
.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus { border-color: var(--green); }

/* ============ INVOICE ============ */
.invoice-wrap { max-width: 800px; margin: 28px auto; padding: 38px; background: #fff; box-shadow: var(--shadow); animation: fadeInUp 0.7s ease both; }
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 3px solid var(--green); animation: fadeIn 0.8s ease 0.2s both; }
.invoice-logo img { height: 55px; }
.invoice-logo h2 { font-family: var(--heading-font); font-weight: 600; color: var(--green-dark); font-size: 20px; }
.invoice-logo p { font-size: 12px; color: var(--text-light); }
.invoice-meta { text-align: right; }
.invoice-title { font-size: 28px; font-weight: 600; color: var(--green-dark); font-family: var(--heading-font); }
.invoice-number { font-size: 13px; color: var(--text-light); }
.invoice-date { font-size: 13px; color: var(--text-light); }
.invoice-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.invoice-address h4 { font-family: var(--heading-font); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--green); font-weight: 600; margin-bottom: 7px; }
.invoice-address p { font-size: 13px; color: var(--text-mid); line-height: 1.8; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.invoice-table th { background: var(--green-dark); color: #fff; padding: 11px 14px; text-align: left; font-size: 12px; }
.invoice-table td { padding: 12px 14px; border-bottom: 1px solid #eee; font-size: 13px; }
.invoice-table tfoot tr { background: #f9f9f9; }
.invoice-table tfoot td { font-weight: 700; color: var(--green-dark); }
.invoice-total-row { background: var(--green-dark) !important; }
.invoice-total-row td { color: #fff !important; font-size: 15px !important; }
.invoice-footer { text-align: center; color: var(--text-light); font-size: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #eee; }

/* ============ BREADCRUMB ============ */
.breadcrumb { background: var(--cream); padding: 12px 0; border-bottom: 1px solid #e8d5b5; animation: fadeInDown 0.5s ease both; }
.breadcrumb-list { display: flex; align-items: center; gap: 7px; font-size: 13px; flex-wrap: wrap; animation: fadeInLeft 0.5s ease 0.1s both; }
.breadcrumb-list a { color: var(--green); }
.breadcrumb-list .sep { color: var(--text-light); }
.breadcrumb-list .current { color: var(--text-mid); }

/* ============ PAGE SECTIONS ============ */
.page-hero {
    background:
        linear-gradient(135deg, rgba(13,43,26,0.88) 0%, rgba(26,74,46,0.85) 50%, rgba(45,90,58,0.82) 100%),
        url('https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?w=1400&q=80') center/cover no-repeat;
    padding: 55px 0; text-align: center; color: #fff;
}
.page-hero h1 { font-family: var(--heading-font); font-size: 40px; font-weight: 600; margin-bottom: 11px; animation: fadeInDown 0.8s ease 0.1s both; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.8); animation: fadeInUp 0.7s ease 0.3s both; }
.empty-state { text-align: center; padding: 55px 20px; }
.empty-state i { font-size: 65px; color: #ddd; margin-bottom: 18px; }
.empty-state h3 { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--text-mid); margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 22px; }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 24px; right: 24px; padding: 13px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; z-index: 9999; animation: toastSlide 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; max-width: calc(100vw - 48px); }
.toast-success { background: var(--green); color: #fff; }
.toast-error { background: var(--red); color: #fff; }

/* ============ OVERLAY ============ */
.overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 997;
}
.overlay.active { display: block; }

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============ PRODUCT BADGES ============ */
.product-badges { display: none; }

/* ==============================================
   KEYFRAME ANIMATIONS
   ============================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3); }
    50%  { opacity: 1; transform: scale(1.08); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.8); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}
@keyframes toastSlide {
    from { opacity: 0; transform: translateX(60px) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ==============================================
   SCROLL-REVEAL BASE CLASSES (JS adds .is-visible)
   ============================================== */

.reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
}
.reveal-up    { transform: translateY(55px); }
.reveal-down  { transform: translateY(-45px); }
.reveal-left  { transform: translateX(-65px); }
.reveal-right { transform: translateX(65px); }
.reveal-scale { transform: scale(0.82); }

/* ==============================================
   RESPONSIVE BREAKPOINTS
   ============================================== */

/* ---- LARGE TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
    .hero-content-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar {
        display: none; position: fixed; top: 0; left: 0; height: 100vh;
        overflow-y: auto; z-index: 998; border-radius: 0; width: 290px;
        transform: translateX(-100%); transition: transform 0.3s ease;
        animation: none;
    }
    .sidebar.open { display: block; transform: translateX(0); }
    .filter-toggle-btn { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { transform: translateX(-100%); animation: none; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: block; }
}

/* ---- TABLET MEDIUM (max 991px) ---- */
@media (max-width: 991px) {
    .hero-slider { height: 700px; }
    .hero-text h1 { font-size: 50px; }
    .hero-text p { font-size: 16px; }
}

/* ---- TABLET (max 768px) ---- */
@media (max-width: 768px) {
    .topbar-left { display: none; }
    .topbar .container { justify-content: center; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .logo { flex: 1; }
    .header-actions { gap: 4px; }
    .action-btn span { display: none; }
    .action-btn { padding: 8px; }
    .action-btn i { font-size: 22px; }
    .header-search { order: 3; flex: 0 0 100%; max-width: 100%; }
    .logo-img { width: 55px; height: 55px; }
    .logo-name { font-size: 17px; }
    .nav-toggle { display: flex; align-items: center; margin-left: auto; }
    .nav-list {
        display: none; flex-direction: column; width: 100%;
        background: var(--green-dark); position: absolute;
        top: 100%; left: 0; right: 0; z-index: 998;
        border-top: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .nav-list.open { display: flex; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .dropdown-menu { position: static; box-shadow: none; background: rgba(0,0,0,0.15); border-radius: 0; min-width: 100%; display: none !important; }
    /* ---- HERO SLIDER MOBILE FIX ---- */
    .hero-slider {
        height: 35vh;
        min-height: 220px;
        max-height: 300px;
    }
    .hero-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    .hero-slide .overlay {
        background: rgba(0,0,0,0.35);
    }
    .hero-slide .container {
        height: 100%;
        align-items: center;
        padding-bottom: 0;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    .hero-text h1 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    .hero-text p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    .hero-buttons {
        justify-content: center;
        gap: 8px;
    }
    .hero-buttons .btn {
        width: auto;
        min-width: 100px;
        padding: 8px 14px;
        font-size: 12px;
    }
    .hero-stats { display: none; }
    .slider-arrow { width: 28px; height: 28px; font-size: 12px; }
    .slider-arrow.prev { left: 6px; }
    .slider-arrow.next { right: 6px; }
    .herbal-banner-section h2 { font-size: 30px; }
    .herbal-banner-section p { font-size: 15px; }
    .section-title h2 { font-size: 28px; }
    .section-title { margin-bottom: 35px; }
    .products-section, .categories-section, .why-section, .testimonials-section { padding: 45px 0; }
    .newsletter-section { padding: 40px 0; }
    .newsletter-content h2 { font-size: 26px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .product-img-wrap { height: 180px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 14px; }
    .price-sale { font-size: 16px; }
    .product-card-buttons .btn { font-size: 12px; padding: 8px 6px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .orders-table { font-size: 12px; }
    .orders-table th, .orders-table td { padding: 10px 10px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { background: #fff; border-radius: var(--radius); margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); padding: 14px; }
    .cart-table td { border: none; padding: 6px 0; font-size: 14px; }
    .cart-table td::before { content: attr(data-label); font-weight: 700; color: var(--green-dark); margin-right: 8px; font-size: 12px; }
    .cart-product { flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr; }
    .payment-options { grid-template-columns: 1fr 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 14px 16px; }
    .admin-card { padding: 16px; }
    .invoice-wrap { padding: 20px; margin: 14px; }
    .invoice-header { flex-direction: column; gap: 18px; }
    .invoice-meta { text-align: left; }
    .invoice-title { font-size: 24px; }
    .invoice-addresses { grid-template-columns: 1fr; gap: 20px; }
    .invoice-table th, .invoice-table td { padding: 9px 10px; font-size: 12px; }
    .page-hero { padding: 40px 0; }
    .page-hero h1 { font-size: 30px; }
}

/* ---- MOBILE (max 480px) ---- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .logo-img { width: 46px; height: 46px; }
    .logo-name { font-size: 15px; }
    .logo-tag { display: none; }
    .hero-slider { height: 35vh; min-height: 200px; max-height: 280px; }
    .hero-text h1 { font-size: 16px; }
    .hero-text p { font-size: 11px; }
    .hero-stats { display: none; }
    .hero-badge { font-size: 9px; padding: 4px 9px; }
    .hero-buttons .btn { min-width: 90px; font-size: 11px; padding: 7px 12px; }
    .btn { padding: 10px 18px; font-size: 13px; }
    .herbal-banner-section { padding: 50px 0; }
    .herbal-banner-section h2 { font-size: 24px; }
    .section-title h2 { font-size: 23px; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-grid { grid-template-columns: 1fr; }
    .product-img-wrap { height: 210px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .price-sale { font-size: 15px; }
    .product-card-buttons { flex-direction: column; gap: 6px; }
    .product-card-buttons .btn { font-size: 12px; padding: 8px; width: 100%; }
    .category-icon { width: 50px; height: 50px; font-size: 20px; }
    .category-card h3 { font-size: 12px; }
    .category-card { padding: 18px 10px; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form input { padding: 13px 18px; border-radius: var(--radius) var(--radius) 0 0; }
    .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); padding: 13px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-content { padding: 16px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .admin-stat-card { padding: 16px; gap: 12px; }
    .admin-stat-info h3 { font-size: 20px; }
    .main-image { height: 280px; }
    .product-detail-info h1 { font-size: 22px; }
    .detail-buttons { flex-direction: column; }
    .detail-buttons .btn { min-width: unset; width: 100%; }
    .cart-summary { width: 100%; }
    .payment-options { grid-template-columns: 1fr; }
    .toast { bottom: 16px; right: 14px; left: 14px; text-align: center; }
    .page-hero { padding: 30px 0; }
    .page-hero h1 { font-size: 24px; }
}

/* ---- VERY SMALL (max 360px) ---- */
@media (max-width: 360px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 20px; }
    .logo-name { font-size: 13px; }
    .action-btn i { font-size: 18px; }
    .slider-arrow { display: none; }
}

/* ============ PRINT STYLES ============ */
@media print {
    .main-header, .main-nav, .topbar, .site-footer,
    .no-print, .breadcrumb, .slider-arrow, .slider-dots { display: none !important; }
    body { background: #fff; }
    .invoice-wrap { box-shadow: none; margin: 0; padding: 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}


/* ===== MOBILE WHITE SPACE FIX ONLY ===== */

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden !important;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .hero-slider,
    .hero-slide,
    .main-header,
    .main-nav,
    section,
    footer {
        max-width: 100%;
        overflow-x: hidden;
    }
}