/* ============================================================
   ZEN LEAF LIFE — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Design Tokens ── */
:root {
    --white: #ffffff;
    --sage-bg: #f4f8f5;
    --sage-mid: #e6f0ea;
    --accent: #6b8e7d;
    --accent-dark: #557a69;
    --accent-deep: #2e5245;
    --text-1: #1a2e24;
    --text-2: #4a5e53;
    --text-3: #8a9e93;
    --border: #ddeae1;
    --radius: 16px;
    --pad-section: 96px;
    --max-w: 1200px;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    /* Tier colors */
    --tier-1: #8aab96;
    --tier-2: #6b8e7d;
    --tier-3: #4a7060;
    --tier-4: #2e5245;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Layout ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--pad-section) 0;
}

.section--sage {
    background: var(--sage-bg);
}

.section--white {
    background: var(--white);
}

/* ── Typography ── */
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--text-1);
    margin: 8px 0 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 540px;
    line-height: 1.7;
}

.divider {
    width: 44px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 14px 0 28px;
}

.center {
    text-align: center;
}

.center .section-sub {
    margin: 0 auto 0;
}

.center .divider {
    margin: 14px auto 28px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 142, 125, .3);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 13px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Tier Badges ── */
.tier-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}

.tier-1 {
    background: #e8f4ee;
    color: var(--tier-1);
}

.tier-2 {
    background: #dceee6;
    color: var(--tier-2);
}

.tier-3 {
    background: #d0e8dc;
    color: var(--tier-3);
}

.tier-4 {
    background: #c4e0d2;
    color: var(--tier-4);
}

/* ── Site Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.trust-bar {
    background: var(--accent);
    padding: 10px 0;
    text-align: center;
}

.trust-bar p {
    font-size: 12px;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-1);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn {
    position: relative;
    background: var(--sage-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    transition: background 0.2s, border-color 0.2s;
}

.cart-btn:hover {
    background: var(--sage-mid);
    border-color: var(--accent);
}

.cart-count-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ── Product Cards ── */
.product-grid {
    display: grid;
    gap: 20px;
}

.product-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 36px rgba(107, 142, 125, .15);
    transform: translateY(-4px);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 18px 20px 20px;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 16px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
}

.product-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-3);
    margin-left: 2px;
}

.add-to-cart-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.18s;
}

.add-to-cart-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.04);
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.18s;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-1);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--accent);
}

.search-input::placeholder {
    color: var(--text-3);
}

/* ── Category pills on heading ── */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ── Footer ── */
.site-footer {
    background: var(--text-1);
    padding: 60px 0 28px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, .35);
    font-size: 12px;
}

.footer-legal a:hover {
    color: #fff;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --pad-section: 64px;
    }

    .nav-links {
        display: none;
    }

    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .product-grid-4,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
}