/*
Theme Name: Enghel Farm
Theme URI: https://enghelfarm.com
Author: Enghel Farm Team
Author URI: https://enghelfarm.com
Description: A premium organic farm e-commerce theme with full WooCommerce integration, Stripe payment gateway, payment gateways, and multimedia product galleries.
Version: 1.1.0
License: GPL v2
Text Domain: enghel-farm
Tags: e-commerce, farm, organic, vegetables, responsive, woocommerce
*/

/* ============================================
   ENGHEL FARM — ROOT VARIABLES & RESET
   ============================================ */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #d8f3dc;
    --accent: #e9c46a;
    --accent-hover: #d4a373;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --bg-cream: #fefae0;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.site-logo .logo-icon {
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px;
}
.site-logo .logo-text {
    font-size: 1.6rem; font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}
.site-logo .logo-text span { color: var(--accent); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}
.main-nav a::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.cart-icon-wrap {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.3rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.cart-icon-wrap:hover { background: var(--primary-light); color: var(--primary); }
.cart-count {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-accent {
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}
.stat-item h3 { font-size: 2rem; color: var(--accent); }
.stat-item p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.section-padding { padding: 5rem 2rem; }
.container { max-width: 1400px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.product-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--accent);
    color: var(--text-dark);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.product-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.product-image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-video-indicator {
    position: absolute;
    bottom: 15px; right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.product-video-indicator:hover { background: var(--primary); }

.product-info { padding: 1.5rem; }
.product-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.product-price .old-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}
.product-rating {
    color: var(--accent);
    font-size: 0.9rem;
}
.product-rating span { color: var(--text-light); margin-left: 4px; }

.product-actions {
    display: flex;
    gap: 0.8rem;
}
.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-wishlist {
    width: 44px; height: 44px;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}
.btn-wishlist:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ============================================
   PRODUCT DETAIL / GALLERY
   ============================================ */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}
.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.gallery-thumb {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-detail-info h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.product-detail-info .price-large {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
}
.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.qty-btn {
    width: 40px; height: 40px;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input {
    width: 60px; height: 40px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================
   CART SIDEBAR / MODAL
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0; right: -450px;
    width: 420px; height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 { font-size: 1.3rem; color: var(--primary-dark); }
.cart-close {
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}
.cart-close:hover { color: #e74c3c; transform: rotate(90deg); }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-info p { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cart-item-remove {
    background: none; border: none;
    color: #e74c3c; cursor: pointer;
    font-size: 1.1rem;
    align-self: flex-start;
}
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-cream);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.cart-total-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}
.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-checkout:hover { background: var(--primary-dark); }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.checkout-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.checkout-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.order-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.order-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.summary-item.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    border-top: 2px solid var(--border);
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.payment-methods {
    margin-top: 2rem;
}
.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.payment-method input { width: 18px; height: 18px; }
.payment-method img { height: 30px; }

/* ============================================
   STRIPE PAYMENT ELEMENT
   ============================================ */
#stripe-card-element {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    margin-bottom: 1rem;
}
#stripe-card-errors {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}
.stripe-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}
.stripe-badge i { color: #6772e5; font-size: 1.2rem; }

/* ============================================
   ABOUT FARM PAGE
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.about-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.about-story img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    height: 450px;
}
.about-story h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
.about-story p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-light);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}
.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 90%;
    position: relative;
}
.timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px; height: 20px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-item:nth-child(odd) .timeline-content::after { right: -60px; }
.timeline-item:nth-child(even) .timeline-content::after { left: -60px; }
.timeline-year {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}
.timeline-content p { color: var(--text-light); line-height: 1.7; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.team-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 1.2rem 0 0.3rem;
}
.team-card p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.team-socials {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
}
.team-socials a {
    width: 36px; height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.team-socials a:hover { background: var(--primary); color: white; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.value-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}
.value-card:hover { transform: translateY(-5px); }
.value-card .value-icon {
    width: 70px; height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}
.value-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}
.value-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}
.contact-hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.contact-hero p { font-size: 1.2rem; opacity: 0.9; }

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.contact-info-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-info-box h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-item i {
    width: 45px; height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

.contact-form-wrap {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form-wrap h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn-primary { width: 100%; padding: 14px; font-size: 1.05rem; }

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    height: 400px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   BLOG / RECIPES
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.blog-hero h1 { font-size: 2.8rem; margin-bottom: 0.8rem; }
.blog-hero p { font-size: 1.1rem; opacity: 0.9; }

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card-content { padding: 1.5rem; }
.blog-card .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}
.blog-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.blog-card h3 a { text-decoration: none; color: inherit; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.blog-card .read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-card .read-more:hover { gap: 10px; }

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-widget {
    background: var(--bg-white);
    padding: 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.sidebar-widget h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-light);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { margin-bottom: 0.7rem; }
.sidebar-widget a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
}
.sidebar-widget a:hover { color: var(--primary); padding-left: 5px; }
.sidebar-widget a span { color: var(--text-light); font-size: 0.8rem; }

.single-post-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.single-post-wrap h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.single-post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.single-post-wrap .post-content {
    line-height: 1.9;
    color: var(--text-dark);
    font-size: 1.05rem;
}
.single-post-wrap .post-content p { margin-bottom: 1.5rem; }
.single-post-wrap .post-content h2,
.single-post-wrap .post-content h3 {
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
}
.single-post-wrap .post-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.recipe-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 300px 1fr;
}
.recipe-card:hover { box-shadow: var(--shadow-hover); }
.recipe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}
.recipe-card-content { padding: 2rem; }
.recipe-card .recipe-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}
.recipe-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.recipe-card p { color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.recipe-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.recipe-tags span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}
.footer-brand p { opacity: 0.8; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: var(--text-dark); }
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-stats { justify-content: center; }
    .product-gallery { grid-template-columns: 1fr; }
    .checkout-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-story { grid-template-columns: 1fr; text-align: center; }
    .about-story img { height: 350px; }
    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }
    .timeline-item .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -45px;
        right: auto;
    }
    .contact-wrap { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .recipe-card { grid-template-columns: 1fr; }
    .recipe-card img { height: 250px; }
}
@media (max-width: 768px) {
    .header-inner { height: 70px; }
    .main-nav { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .about-hero h1 { font-size: 2rem; }
    .contact-hero h1 { font-size: 2rem; }
    .blog-hero h1 { font-size: 2rem; }
    .single-post-wrap { padding: 1.5rem; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Admin Bar Fix */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* WooCommerce overrides */
.woocommerce-message,
.woocommerce-info {
    background: var(--primary-light) !important;
    border-left: 4px solid var(--primary) !important;
    color: var(--primary-dark) !important;
}
.woocommerce-error {
    background: #fdeaea !important;
    border-left: 4px solid #e74c3c !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary);
    outline: none;
}


/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-widget.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}
.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.chatbot-info { flex: 1; }
.chatbot-info h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 700;
}
.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.chatbot-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}
.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-message {
    display: flex;
    gap: 0.6rem;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}
.chat-message.bot {
    align-self: flex-start;
}
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    align-self: flex-end;
}
.chat-message.user .message-avatar {
    background: var(--accent);
    color: var(--text-dark);
}
.message-bubble {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
}
.chat-message.user .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}
.message-bubble a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.chat-message.user .message-bubble a {
    color: var(--accent);
}
.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}
.chat-message.user .message-time {
    color: rgba(255,255,255,0.8);
}

.chatbot-typing {
    padding: 0.5rem 1rem;
}
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); background: var(--primary); }
}

.chatbot-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 0.8rem;
    flex-shrink: 0;
}
.quick-replies {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    scrollbar-width: none;
}
.quick-replies::-webkit-scrollbar { display: none; }
.quick-btn {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.quick-btn:hover {
    background: var(--primary);
    color: white;
}

.chatbot-input-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.chatbot-input-form input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.chatbot-input-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}
.chatbot-send,
.chatbot-mic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.chatbot-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
.chatbot-mic {
    background: var(--accent);
    color: var(--text-dark);
}
.chatbot-mic:hover {
    background: var(--accent-hover);
}
.chatbot-mic.listening {
    background: #e74c3c;
    color: white;
    animation: micPulse 1s infinite;
}
@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
    z-index: 2499;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.5);
}
.chatbot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile chatbot */
@media (max-width: 480px) {
    .chatbot-widget {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        height: 70vh;
        max-height: 70vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .chatbot-toggle {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}
