/* Pure: white and soft green. A slim link strip, categories as tiles above a full-width banner, light cards, a strip of promises and a floating tab bar on phones.
   Layout comes from app/themes/pure/views; pictures from assets/themes/pure/img (the page works without them). */
:root {
    --bg: #f6faf4; --card: #fff; --ink: #16301c; --muted: #5f7466; --line: #e2eadf;
    --green: #2f8a35; --green-d: #1b5e20; --green-soft: #e8f4e4; --green-hi: #45a24b; --green-line: #cfe6c9; --tint: #f1f8ee;
    --img-bg: #f2f6f0; --radius: 20px;
    --shadow: 0 1px 2px rgba(27, 94, 32, .05), 0 8px 22px rgba(27, 94, 32, .07);
    --logo-a: #5cc95f; --logo-b: #1f7a2a;
    --foot-bg: #123d1a; --foot-ink: #c6dcc9; --foot-link: #e4f1e6; --foot-accent: #8fe08f;
    --pu-price: #d32f2f;
}
body.theme-pure { background: linear-gradient(180deg, #eef7ea 0, var(--bg) 420px); }
.theme-pure .wrap { width: min(1240px, 100% - 28px); }
.theme-pure .logo-word { color: var(--green-d); }
.pu-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- slim strip ---------- */
.pu-strip { background: #fff; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pu-strip-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 7px; }
.pu-strip-ship { display: inline-flex; align-items: center; gap: 8px; color: var(--green-d); font-weight: 700; }
.pu-strip-ship .i { width: 18px; height: 18px; }
.pu-strip-links { display: flex; gap: 20px; }
.pu-strip-links a:hover { color: var(--green-d); }
@media (max-width: 899px) { .pu-strip { display: none; } }

/* ---------- header ---------- */
.theme-pure .topbar { background: #fff; border: 0; }
.pu-top-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding-block: 14px; }
.pu-burger { display: none; width: 42px; height: 42px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--green-d); place-items: center; }
.pu-burger .i { width: 24px; height: 24px; }
.pu-search {
    display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; justify-self: center; height: 50px; padding: 0 20px;
    background: #fff; border: 1.5px solid var(--green-line); border-radius: 999px; color: var(--muted); box-shadow: 0 2px 10px rgba(27, 94, 32, .06);
}
.pu-search:focus-within { border-color: var(--green); }
.pu-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.pu-acts { display: flex; align-items: flex-start; gap: 22px; }
.pu-act { position: relative; display: grid; justify-items: center; gap: 3px; color: var(--green-d); font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pu-act .i { width: 28px; height: 28px; }
.pu-act:hover { color: var(--green); }
.theme-pure .cart-link.pu-act { width: auto; height: auto; border: 0; border-radius: 0; background: none; }
.theme-pure .cart-link.pu-act .cart-count { inset-block-start: -6px; inset-inline-end: -4px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 899px) {
    .pu-top-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-block: 10px; }
    .pu-burger { display: grid; }
    .theme-pure .brand { justify-self: center; }
    .pu-search { grid-column: 1 / -1; order: 4; max-width: none; height: 44px; }
    .pu-acts { gap: 10px; }
    .pu-act { width: 42px; height: 42px; align-content: center; border: 1px solid var(--line); border-radius: 50%; }
    .pu-act span { display: none; }
    .pu-act .i { width: 22px; height: 22px; }
    .theme-pure .cart-link.pu-act { border: 1px solid var(--line); border-radius: 50%; }
}

/* ---------- home order: tiles, banner, title, (phone picker), products ---------- */
main:has(.pu-hero) { display: flex; flex-direction: column; }
main:has(.pu-hero) > * { order: 5; }
main:has(.pu-hero) > #chips { order: 1; }
main:has(.pu-hero) > .pu-hero { order: 2; }
main:has(.pu-hero) > .pu-sect { order: 3; }
main:has(.pu-hero) > .filterbar { order: 4; }

/* ---------- banner ---------- */
.pu-hero { margin-top: 18px; }
.pu-hero-link { display: block; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #eaf4e6; }
.pu-hero-link img { width: 100%; height: auto; display: block; transition: transform .5s; }
.pu-hero-link:hover img { transform: scale(1.015); }
.pu-hero-text { text-align: center; padding: 44px 20px; border-radius: 26px; background: linear-gradient(120deg, #e3f2dd, #f6fbf3); display: grid; justify-items: center; gap: 10px; }
.pu-hero-text h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--green-d); }
.pu-hero-text p { color: var(--muted); max-width: 520px; }
.pu-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; border-radius: 999px; background: linear-gradient(180deg, var(--green-hi), var(--green-d)); color: #fff; font-weight: 800; font-size: 17px; }
.pu-sect { margin-top: 26px; }
.pu-sect h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--ink); }
.pu-sect .i { width: 30px; height: 30px; color: var(--green); }
.pu-cathead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 18px; padding: 18px 26px; border-radius: 22px; background: linear-gradient(120deg, #e3f2dd, #f6fbf3); border: 1px solid var(--green-line); }
.pu-cathead h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--green-d); }
.pu-back { display: inline-flex; align-items: center; gap: 8px; color: var(--green-d); font-weight: 700; }
.theme-pure .hero .search { display: none; }
.theme-pure .hero { padding-top: 22px; }
@media (max-width: 700px) {
    .pu-hero { margin-top: 12px; }
    .pu-hero-link { border-radius: 0; box-shadow: none; background: none; overflow: visible; }
    .pu-hero-link img { filter: drop-shadow(0 8px 16px rgba(27, 94, 32, .22)); }
    .pu-sect { display: none; }
}

/* ---------- categories: white tiles with line icons ---------- */
.theme-pure .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding: 12px; margin: 16px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.theme-pure .chip {
    flex: 1 0 98px; flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 6px 12px; white-space: normal; line-height: 1.3;
    background: #fbfdf9; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.theme-pure .chip:hover { background: var(--green-soft); }
.theme-pure .chip .i { width: 34px; height: 34px; color: var(--green); stroke-width: 1.7; }
.theme-pure .chip.is-active { background: linear-gradient(180deg, #1f7a2a, var(--green-d)); border-color: var(--green-d); color: #fff; }
.theme-pure .chip.is-active .i { color: #fff; }
@media (max-width: 899px) {
    .theme-pure .chips { display: none; }
    .theme-pure .filterbar { display: flex; }
    .theme-pure .catbtn { border-radius: 18px; border-color: var(--green-line); }
    .theme-pure .catbtn-ic { background: var(--green-soft); color: var(--green); }
}

/* round badge pictures (assets/themes/pure/img/cat-<icon>.webp) replace the line icons when the theme ships them */
.theme-pure .chip .i-badge { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(27, 94, 32, .22)); }
.theme-pure .catbtn-ic:has(.i-badge) { background: none; width: 48px; height: 48px; }
.theme-pure .catbtn-ic .i-badge { width: 48px; height: 48px; }
.theme-pure .cs-tile .ic:has(.i-badge), .theme-pure .cs-tile.is-active .ic:has(.i-badge) { background: none; width: 54px; height: 54px; }
.theme-pure .cs-tile .i-badge { width: 54px; height: 54px; }

/* ---------- product cards ---------- */
.theme-pure .grid { gap: 16px; scroll-margin-top: 12px; margin-top: 12px; }
.theme-pure .card { padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.theme-pure .card-img { aspect-ratio: 1 / .9; border-radius: 16px; background: linear-gradient(180deg, #f6f9f4, #edf3ea); }
.theme-pure .card-body { padding: 12px 4px 2px; }
.theme-pure .card-title { font-size: 15.5px; }
.theme-pure .price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.theme-pure .price-now { color: var(--pu-price); font-size: 21px; font-weight: 800; }
.theme-pure .price small { font-size: 13px; }
.theme-pure .price s { font-size: 13.5px; color: var(--muted); font-weight: 400; margin: 0; }
.theme-pure .tag { border-radius: 999px; padding: 3px 11px; }
.theme-pure .card-actions { display: grid; gap: 8px; padding: 10px 0 0; }
.theme-pure .card-actions .btn { border-radius: 999px; }
.theme-pure .card-actions .btn-ghost { color: var(--green-d); border-color: var(--green-line); }
@media (max-width: 480px) { .theme-pure .card { padding: 9px; border-radius: 18px; } .theme-pure .card-actions .btn { font-size: 13.5px; } }

/* ---------- strip of promises ---------- */
.pu-assure { position: relative; overflow: hidden; margin-top: 38px; padding-block: 8px; }
.pu-assure .wrap { position: relative; z-index: 1; }
.pu-assure-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 8px; }
.pu-assure-in li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 10px; }
.pu-assure-in li + li { border-inline-start: 1px solid var(--line); }
.pu-assure-in .i { width: 34px; height: 34px; color: var(--green); flex: none; }
.pu-assure-in b { display: block; font-size: 15px; line-height: 1.3; color: var(--green-d); }
.pu-assure-in small { display: block; color: var(--muted); font-size: 13px; }
.pu-leaf { position: absolute; width: 96px; height: auto; opacity: .5; pointer-events: none; }
.pu-leaf-a { inset-inline-start: -22px; bottom: -34px; transform: rotate(-40deg); }
.pu-leaf-b { inset-inline-end: -22px; bottom: -34px; transform: rotate(40deg); }
.theme-pure .foot { margin-top: 0; }
@media (max-width: 700px) { .pu-assure-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pu-assure-in li { justify-content: flex-start; padding: 10px 12px; } .pu-assure-in li + li { border-inline-start: 0; } .pu-assure-in small { display: none; } .pu-leaf { display: none; } }

/* ---------- phone tab bar (floating) ---------- */
.pu-bar { display: none; }
@media (max-width: 899px) {
    body.theme-pure { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .pu-bar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45;
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(27, 94, 32, .18);
    }
    .pu-bar a, .pu-bar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; background: none; border: 0; border-radius: 16px; font-size: 12px; font-weight: 700; color: var(--muted); }
    .pu-bar .on { color: var(--green-d); background: var(--green-soft); }
    .pu-bar-ic { position: relative; display: grid; }
    .pu-bar-ic .i { width: 24px; height: 24px; }
    .pu-bar .cart-count { inset-inline-end: -9px; box-shadow: 0 0 0 2px #fff; }
    body.theme-pure:has(.sticky-cta) { padding-bottom: 80px; }
    body:has(.sticky-cta) .pu-bar { display: none; }
    .theme-pure .fab { display: none; }
    .theme-pure .cookie { bottom: 92px; }
    .theme-pure .cart-toast { bottom: 96px; }
}
