/* ===========================================================
   An Nhiên Xanh — Theme xanh lá tươi mát
   =========================================================== */
:root {
    --green-900: #1b4332;
    --green-800: #2d6a4f;
    --green-700: #40916c;
    --green-600: #52b788;
    --green-500: #74c69d;
    --green-300: #b7e4c7;
    --green-100: #e9f5ee;
    --green-50:  #f1f9f4;

    --cream:     #faf8f3;
    --gold:      #c9a227;
    --gold-soft: #d4a373;

    --ink:       #1b2e26;
    --muted:     #5f7268;
    --line:      #e3ede7;

    --shadow-sm: 0 2px 8px rgba(27, 67, 50, .06);
    --shadow-md: 0 10px 30px rgba(27, 67, 50, .10);
    --shadow-lg: 0 20px 50px rgba(27, 67, 50, .14);

    --radius:    18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    margin: 0;
}

h1, h2, h3, h4, h5 { font-weight: 600; color: var(--green-900); }
a { text-decoration: none; color: var(--green-700); transition: color .2s ease; }
a:hover { color: var(--green-900); }
.section-title { font-family: 'Playfair Display', serif; }

/* ---------- Header ---------- */
.top-bar {
    background: var(--green-900);
    color: var(--green-100);
    font-size: .82rem;
    padding: 7px 0;
}
.top-bar a.admin-link { color: var(--green-300); font-weight: 500; }
.top-bar a.admin-link:hover { color: #fff; }

.main-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #fff; font-size: 1.4rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--green-900); }
.brand-slogan { font-size: .72rem; color: var(--muted); font-style: italic; }

.main-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    margin: 0 .35rem;
    border-radius: 10px;
    padding: .45rem .85rem !important;
    transition: all .2s ease;
}
.main-nav .nav-link:hover { background: var(--green-100); color: var(--green-800); }
.dropdown-menu { border: none; box-shadow: var(--shadow-md); border-radius: var(--radius-sm); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .92rem; }
.dropdown-item:hover { background: var(--green-100); color: var(--green-800); }

.search-box { position: relative; }
.search-box .form-control {
    border: 1.5px solid var(--line);
    border-radius: 30px;
    padding: .5rem 2.6rem .5rem 1rem;
    background: var(--green-50);
    min-width: 200px;
}
.search-box .form-control:focus { border-color: var(--green-500); box-shadow: 0 0 0 .2rem rgba(116,198,157,.25); }
.search-box .btn-search {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--green-700); color: #fff;
    border-radius: 50%; width: 34px; height: 34px;
    display: grid; place-items: center; border: none;
}
.search-box .btn-search:hover { background: var(--green-800); }

/* ---------- Buttons ---------- */
.btn-leaf {
    background: linear-gradient(135deg, var(--green-700), var(--green-800));
    color: #fff; border: none;
    border-radius: 30px; padding: .7rem 1.8rem; font-weight: 500;
    box-shadow: var(--shadow-sm); transition: all .25s ease;
}
.btn-leaf:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline-leaf {
    background: transparent; color: var(--green-800);
    border: 1.5px solid var(--green-600); border-radius: 30px;
    padding: .7rem 1.8rem; font-weight: 500; transition: all .25s ease;
}
.btn-outline-leaf:hover { background: var(--green-700); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(116,198,157,.35), transparent 45%),
        linear-gradient(135deg, var(--green-50), var(--green-100));
    padding: 5rem 0 6rem;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; right: -60px; bottom: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, var(--green-300), transparent 70%);
    opacity: .5; border-radius: 50%;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--green-800);
    padding: .4rem 1rem; border-radius: 30px;
    font-size: .85rem; font-weight: 500;
    box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15; margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--green-700); font-style: italic; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; }
.hero-stats .num { font-size: 1.8rem; font-weight: 700; color: var(--green-800); }
.hero-stats .lbl { font-size: .85rem; color: var(--muted); }
.hero-visual {
    background: #fff; border-radius: 28px; padding: 1rem;
    box-shadow: var(--shadow-lg); position: relative;
}
.hero-visual img { width: 100%; border-radius: 20px; display: block; }
.hero-badge {
    position: absolute; left: -18px; bottom: 30px;
    background: #fff; padding: .8rem 1.1rem; border-radius: 16px;
    box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
}
.hero-badge i { color: var(--green-600); font-size: 1.6rem; }
.hero-badge .t { font-weight: 600; font-size: .9rem; }
.hero-badge .s { font-size: .75rem; color: var(--muted); }

/* ---------- Section ---------- */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .kicker {
    color: var(--green-600); font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; font-size: .8rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .5rem 0; }
.section-head p { color: var(--muted); }

/* ---------- Category chips ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.cat-card {
    background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem;
    text-align: center; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); transition: all .25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.cat-card .ic {
    width: 60px; height: 60px; margin: 0 auto 1rem;
    display: grid; place-items: center; font-size: 1.6rem;
    background: var(--green-100); color: var(--green-700); border-radius: 18px;
}
.cat-card h5 { margin-bottom: .3rem; }
.cat-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; }
.product-card {
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--line); transition: all .3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }
.product-thumb {
    position: relative; aspect-ratio: 1/1; overflow: hidden;
    background: var(--green-50);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--gold); color: #fff;
    font-size: .72rem; font-weight: 600;
    padding: .25rem .7rem; border-radius: 20px;
}
.product-badge.sale { background: #e07a5f; }
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .75rem; color: var(--green-600); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: 1.08rem; margin: .3rem 0 .4rem; }
.product-name a { color: var(--green-900); }
.product-desc { font-size: .85rem; color: var(--muted); flex: 1; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; }
.product-tag { font-size: .72rem; background: var(--green-100); color: var(--green-800); padding: .2rem .6rem; border-radius: 20px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--green-800); }
.price .old { font-size: .85rem; color: #b0b8b3; text-decoration: line-through; font-weight: 400; margin-right: .3rem; }
.btn-detail {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--green-100); color: var(--green-700);
    display: grid; place-items: center; border: none; transition: all .2s;
}
.btn-detail:hover { background: var(--green-700); color: #fff; }

/* ---------- Product listing page ---------- */
.listing-head { background: linear-gradient(135deg, var(--green-50), var(--green-100)); padding: 2.5rem 0; }
.filter-bar {
    background: #fff; border-radius: var(--radius); padding: 1.2rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 2rem;
}
.filter-bar .form-select, .filter-bar .form-control {
    border-radius: 12px; border: 1.5px solid var(--line);
}
.filter-bar .form-select:focus, .filter-bar .form-control:focus {
    border-color: var(--green-500); box-shadow: 0 0 0 .2rem rgba(116,198,157,.2);
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .35rem .9rem; border-radius: 30px;
    background: #fff; border: 1.5px solid var(--line);
    color: var(--ink); font-size: .88rem; font-weight: 500; transition: all .2s;
}
.chip:hover { border-color: var(--green-500); color: var(--green-800); }
.chip.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--green-700); border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--line); }
.pagination .page-item.active .page-link { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Product detail ---------- */
.detail-img { background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-md); }
.detail-img img { width: 100%; border-radius: var(--radius-sm); }
.detail-cat { color: var(--green-600); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.detail-name { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin: .4rem 0; }
.detail-price { font-size: 2rem; font-weight: 700; color: var(--green-800); margin: 1rem 0; }
.detail-price .old { font-size: 1.1rem; color: #b0b8b3; text-decoration: line-through; font-weight: 400; margin-right: .6rem; }
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.care-item { background: var(--green-50); border-radius: 14px; padding: 1rem 1.2rem; border: 1px solid var(--line); }
.care-item .lbl { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.care-item .lbl i { color: var(--green-600); }
.care-item .val { font-weight: 600; color: var(--green-900); font-size: .95rem; margin-top: .25rem; }
.fengshui-box {
    background: linear-gradient(135deg, #fdf8ec, #f7f0dd);
    border: 1px solid #ecdfb8; border-radius: var(--radius);
    padding: 1.5rem; margin-top: 1.5rem;
}
.fengshui-box h5 { color: var(--gold); display: flex; align-items: center; gap: 8px; }

/* ---------- Feature strip ---------- */
.feature-strip { background: var(--green-900); color: #fff; padding: 3rem 0; }
.feature-strip .feat { text-align: center; }
.feature-strip .feat i { font-size: 2rem; color: var(--green-500); margin-bottom: .6rem; }
.feature-strip .feat h6 { color: #fff; margin-bottom: .2rem; }
.feature-strip .feat p { color: var(--green-300); font-size: .85rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--green-100); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; font-weight: 700; }
.footer-slogan { font-style: italic; color: var(--green-300); margin-bottom: .8rem; }
.footer-desc { color: #b9d4c5; font-size: .9rem; }
.site-footer h6 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .6rem; }
.site-footer ul li a { color: #b9d4c5; font-size: .9rem; }
.site-footer ul li a:hover { color: #fff; }
.contact-list li { color: #b9d4c5; font-size: .9rem; }
.contact-list li i { color: var(--green-500); margin-right: 6px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 10px; color: #fff; margin-right: 8px; margin-top: .5rem; }
.social a:hover { background: var(--green-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; color: #9cbcab; font-size: .85rem; }

/* ---------- Misc ---------- */
.alert-soft { border: none; border-radius: var(--radius-sm); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--green-300); }

@media (max-width: 991px) {
    .search-box { margin-top: 1rem; }
    .hero-stats { gap: 1.5rem; }
}
