/*
Theme Name: Mộc Cây
Theme URI: https://example.com
Author: OpenAI
Description: Theme WordPress/WooCommerce bán cây giống, phong cách xanh rêu mộc, tối giản và responsive.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: moc-cay
*/

:root{
 --moss:#3f5a3d; --moss-2:#56734f; --moss-dark:#2c402b;
 --cream:#f5f0e7; --paper:#fbfaf7; --ink:#273025; --muted:#687064;
 --line:#dfe3d8; --white:#fff; --radius:22px; --shadow:0 14px 40px rgba(43,64,43,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body, "Be Vietnam Pro"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,92%);margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,250,247,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(63,90,61,.08)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-heading, Lora),Georgia,serif;font-size:26px;font-weight:700;color:var(--moss-dark)}
.brand-mark{width:34px;height:34px;border-radius:50%;background:var(--moss);display:grid;place-items:center;color:white;font-size:18px}
.main-nav{display:flex;align-items:center;gap:30px;font-size:14px}
.main-nav a{padding:26px 0;color:#384036}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--moss);font-weight:650}
.header-actions{display:flex;align-items:center;gap:14px}
.icon-btn{width:40px;height:40px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--moss-dark)}
.cart-count{min-width:19px;height:19px;border-radius:99px;background:var(--moss);color:#fff;font-size:11px;display:inline-grid;place-items:center;margin-left:-18px;margin-top:-22px}
.mobile-toggle{display:none}
.hero{position:relative;min-height:640px;display:grid;align-items:center;overflow:hidden;border-radius:0 0 48px 48px;background:#dfe6da}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(34,48,33,.72),rgba(34,48,33,.16) 58%,rgba(34,48,33,.05));z-index:1}
.hero-bg{position:absolute;inset:0;background:url("https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1800&q=85") center/cover}
.hero-content{position:relative;z-index:2;color:white;padding:90px 0;max-width:690px}
.eyebrow{letter-spacing:.16em;text-transform:uppercase;font-size:12px;font-weight:700;opacity:.85}
.hero h1{font-family:var(--font-heading, Lora),Georgia,serif;font-size:clamp(48px,7vw,86px);line-height:.98;margin:18px 0 22px;max-width:720px}
.hero p{font-size:18px;max-width:600px;color:#f2f4ef}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:13px 22px;font-weight:700;cursor:pointer;transition:.2s}
.btn-primary{background:var(--moss);color:white}
.btn-primary:hover{background:var(--moss-dark);transform:translateY(-1px)}
.btn-light{background:white;color:var(--moss-dark)}
.btn-outline{border:1px solid var(--moss);background:transparent;color:var(--moss)}
.section{padding:78px 0}
.section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:30px}
.section-head h2{font-family:var(--font-heading, Lora),Georgia,serif;font-size:42px;line-height:1.05;margin:0}
.section-head p{margin:0;color:var(--muted);max-width:580px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{position:relative;min-height:230px;border-radius:var(--radius);overflow:hidden}
.category-card img{width:100%;height:100%;object-fit:cover;transition:.4s}
.category-card:hover img{transform:scale(1.04)}
.category-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(26,38,25,.62),transparent 70%)}
.category-card span{position:absolute;z-index:2;left:22px;bottom:18px;color:#fff;font-family:var(--font-heading, Lora),Georgia,serif;font-size:24px}
.shop-toolbar{background:#eef2e9;border:1px solid var(--line);border-radius:24px;padding:18px;margin-bottom:30px}
.shop-toolbar-top{display:flex;gap:12px;flex-wrap:wrap}
.search-box{flex:1;min-width:260px;position:relative}
.search-box input{width:100%;height:48px;border:1px solid var(--line);border-radius:999px;padding:0 18px;background:white;outline:none}
.filter-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.filter-pill{border:1px solid var(--line);background:white;border-radius:999px;padding:9px 16px;cursor:pointer;color:var(--moss-dark)}
.filter-pill.active,.filter-pill:hover{background:var(--moss);color:white;border-color:var(--moss)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{background:white;border:1px solid #e8ebe4;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);position:relative}
.product-thumb{aspect-ratio:1/1;background:#f1eee7;overflow:hidden}
.product-thumb img{width:100%;height:100%;object-fit:cover;transition:.35s}
.product-card:hover .product-thumb img{transform:scale(1.04)}
.product-info{padding:16px}
.product-cat{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7b8276}
.product-title{font-family:var(--font-heading, Lora),Georgia,serif;font-size:21px;margin:4px 0 7px}
.product-price{font-weight:800;color:var(--moss-dark)}
.product-actions{display:flex;gap:8px;margin-top:13px}
.product-actions .btn{flex:1;padding:10px 12px;font-size:13px}
.load-more-wrap{text-align:center;margin-top:32px}
.site-footer{background:var(--moss-dark);color:#e9efe6;margin-top:70px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:40px;padding:60px 0}
.footer-grid h3{font-family:var(--font-heading, Lora),Georgia,serif;margin-top:0;color:#fff}
.footer-grid p,.footer-grid li{color:#cdd8c9}
.footer-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:18px 0;color:#bfcbbd;font-size:13px}
.page-hero{background:var(--cream);padding:76px 0 60px;border-radius:0 0 42px 42px}
.page-hero h1{font-family:var(--font-heading, Lora),Georgia,serif;font-size:clamp(42px,6vw,72px);line-height:1;margin:0 0 12px}
.page-hero p{color:var(--muted);max-width:720px}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{background:white;border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
.post-card img{aspect-ratio:16/10;width:100%;object-fit:cover}
.post-card-body{padding:20px}
.post-card h2{font-family:var(--font-heading, Lora),Georgia,serif;font-size:25px;line-height:1.2;margin:6px 0 10px}
.post-meta{font-size:12px;color:#7b8276;text-transform:uppercase;letter-spacing:.08em}
.article{max-width:820px;margin:auto}
.article h1{font-family:var(--font-heading, Lora),Georgia,serif;font-size:clamp(40px,6vw,66px);line-height:1.05}
.article h2{font-family:var(--font-heading, Lora),Georgia,serif;font-size:32px;margin-top:40px}
.article p,.article li{font-size:17px;color:#465046}
.article img{border-radius:22px;margin:28px 0}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.contact-card{background:white;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}
.contact-card h2{font-family:var(--font-heading, Lora),Georgia,serif;font-size:34px;margin-top:0}
.contact-links{display:grid;gap:12px;margin-top:24px}
.checkout-wrap{max-width:1050px;margin:auto}
.notice{padding:15px 18px;border-radius:14px;background:#eef4e9;border:1px solid #d8e5d0}
.mobile-bottom{display:none}
@media(max-width:980px){
 .main-nav{gap:18px}
 .product-grid{grid-template-columns:repeat(3,1fr)}
 .category-grid{grid-template-columns:repeat(2,1fr)}
 .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
 .header-inner{height:68px}
 .main-nav{display:none;position:absolute;left:4%;right:4%;top:68px;background:white;border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}
 .main-nav.open{display:flex}
 .main-nav a{padding:12px 14px}
 .mobile-toggle{display:grid}
 .hero{min-height:590px;border-radius:0 0 28px 28px}
 .hero-content{padding:70px 0}
 .hero h1{font-size:50px}
 .hero p{font-size:16px}
 .section{padding:54px 0}
 .section-head{display:block}
 .section-head h2{font-size:35px;margin-bottom:10px}
 .category-grid{grid-template-columns:repeat(2,1fr);gap:10px}
 .category-card{min-height:180px}
 .category-card span{font-size:19px;left:14px}
 .product-grid{grid-template-columns:repeat(2,1fr);gap:12px}
 .product-card{border-radius:15px}
 .product-info{padding:12px}
 .product-title{font-size:17px}
 .product-actions .btn{font-size:12px;padding:9px 6px}
 .footer-grid{grid-template-columns:1fr;padding:44px 0}
 .contact-grid{grid-template-columns:1fr}
 .blog-grid{grid-template-columns:1fr}
 .mobile-bottom{display:flex;position:fixed;bottom:12px;left:4%;right:4%;z-index:80;background:rgba(44,64,43,.95);border-radius:18px;padding:9px;box-shadow:0 15px 35px rgba(0,0,0,.2);justify-content:space-around}
 .mobile-bottom a{color:white;font-size:12px;text-align:center}
}
