:root {
    --green-dark: #1B4332;
    --green-main: #2E7D32;
    --green-light: #4CAF50;
    --green-pale: #E8F5E9;
    --beige: #F5F1E8;
    --brown: #6D4C41;
    --text-dark: #263238;
    --white: #FFFFFF;
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text-dark); background: var(--beige); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-size: 20px; font-weight: 700; color: var(--green-dark); }
.main-nav { display: flex; gap: 24px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--text-dark); }
.main-nav a:hover { color: var(--green-main); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 26px; color: var(--green-dark); cursor: pointer; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .main-nav {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 16px 20px; box-shadow: var(--shadow); gap: 14px;
    }
    .main-nav.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 26px; border-radius: 30px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: transform 0.15s ease, background 0.2s ease; }
.btn-primary { background: var(--green-main); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--green-main); color: var(--green-main); }
.btn-outline:hover { background: var(--green-main); color: white; }
.btn-sell { background: var(--brown); color: white; }
.btn-sell:hover { background: #4E342E; transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: white; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: white;
    padding: 90px 0;
    text-align: center;
    background: url('/uploads/hero/hero-bg.jpg') center center / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,67,50,0.88), rgba(46,125,50,0.75));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero p { font-size: 17px; max-width: 600px; margin: 0 auto 28px; opacity: 0.97; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

section { padding: 60px 0; }
.section-title { text-align: center; font-size: 28px; color: var(--green-dark); margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- 3D Process Section ---------- */
.process-section { background: var(--green-pale); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; perspective: 1000px; }
.process-card {
    background: white; border-radius: 16px; padding: 30px 20px; text-align: center;
    box-shadow: 0 10px 25px rgba(27,67,50,0.15);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}
.process-card:hover { transform: translateY(-10px) rotateX(6deg) rotateY(-6deg); box-shadow: 0 20px 35px rgba(27,67,50,0.25); }
.process-step-num {
    width: 56px; height: 56px; border-radius: 50%; background: var(--green-main); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold;
    margin: 0 auto 16px; box-shadow: 0 8px 16px rgba(46,125,50,0.4);
}
.process-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--green-dark); }
.process-card p { font-size: 14px; color: #555; }

/* ---------- Product Grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { height: 200px; width: 100%; object-fit: cover; }
.product-card-body { padding: 18px; }
.product-card h3 { font-size: 17px; margin-bottom: 6px; }
.product-price { color: var(--green-main); font-weight: 700; font-size: 18px; margin: 8px 0; }
.stock-badge { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--green-pale); color: var(--green-dark); margin-bottom: 8px; }
.product-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.product-actions .btn { padding: 8px 16px; font-size: 13px; }

/* ---------- Product Detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail-images img { border-radius: 12px; margin-bottom: 12px; }
.product-detail-info h1 { color: var(--green-dark); margin-bottom: 12px; font-size: 28px; }
.product-detail-price { font-size: 26px; color: var(--green-main); font-weight: 700; margin: 12px 0; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-card { background: white; padding: 22px; border-radius: 12px; box-shadow: var(--shadow); }
.review-stars { color: #FFB300; margin-bottom: 8px; }
.review-name { font-weight: 600; margin-top: 10px; color: var(--green-dark); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.blog-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { height: 180px; width: 100%; object-fit: cover; }
.blog-card-body { padding: 18px; }
.blog-card h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: #555; }
.blog-post-content { max-width: 760px; margin: 0 auto; }
.blog-post-content img { border-radius: 12px; margin: 16px 0; }

/* ---------- Forms (buy now, sell, contact) ---------- */
.form-box { background: white; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; }
.form-box label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
.form-box input, .form-box select, .form-box textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px; }
.form-box button { margin-top: 20px; width: 100%; }

/* ---------- Modal (Buy Now popup) ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: white; border-radius: 14px; padding: 30px; max-width: 440px; width: 100%; position: relative; }
.modal-box h2 { color: var(--green-dark); margin-bottom: 6px; }
.modal-box label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
.modal-box input, .modal-box select, .modal-box textarea {
    display: block; width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 14px;
}
.modal-box button[type="submit"] { margin-top: 20px; width: 100%; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 22px; cursor: pointer; color: #888; background: none; border: none; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; background: #25D366; width: 58px; height: 58px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3); z-index: 500;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #d9e8dd; padding: 50px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.site-footer h3, .site-footer h4 { color: white; margin-bottom: 12px; }
.site-footer p, .site-footer a { font-size: 14px; color: #c8dccb; }
.footer-copy { text-align: center; margin-top: 30px; font-size: 13px; opacity: 0.7; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
