/* ═══════════════════════════════════════════════════════════
   LITTLE HUMMINGBIRD JA CREATIONS — v2 design system
   Image-driven homepage; white header; digital-store storefront
   for Ezy Cart v3.103+. Palette pinks kept as CSS vars named
   --green* (Ezy Cart internal convention).
   ═══════════════════════════════════════════════════════════ */
:root {
  --green: #e91e63;          /* brand pink */
  --green-deep: #ad1457;     /* deep magenta */
  --green-soft: #fce4ec;     /* blush */
  --gold: #d4a574;           /* soft rose-gold accent */
  --gold-deep: #b8875a;
  --ink: #2b1a20;
  --ink-mid: #5a4048;
  --ink-soft: #8a6f78;
  --cream: #ffffff;          /* white-first now */
  --line: #f2dbe4;
  --line-soft: #f5eaef;
  --red: #d0342c;
  --serif: 'Archivo', system-ui, sans-serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --shadow: 0 4px 18px rgba(173, 20, 87, .08);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* ── White header ── */
.nav { position: sticky; top: 0; z-index: 950; background: #fff; border-bottom: 1px solid var(--line-soft); transition: transform .28s ease; }
.nav.nav-hide { transform: translateY(-100%); }
.nav-main { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.nav-logo img { height: 58px; width: auto; }
.nav-search { flex: 1; display: flex; max-width: 560px; }
.nav-search input { flex: 1; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 10px 18px; font-size: 14px; font-family: inherit; outline: none; background: #fff; }
.nav-search input:focus { border-color: var(--green); }
.nav-search button { border: 1.5px solid var(--line); border-left: 0; background: #fff; color: var(--green); border-radius: 0 999px 999px 0; padding: 0 20px; display: grid; place-items: center; }
.nav-search button:hover { background: var(--green-soft); }
.nav-search button svg { width: 18px; height: 18px; }
.nav-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); background: transparent; border: 0; transition: background .18s; }
.nav-icon:hover { background: var(--green-soft); }
.nav-icon svg { width: 22px; height: 22px; }
.nav-badge { position: absolute; top: 2px; right: 2px; background: var(--green); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; }

/* Category bar — white with pink accents (no colored strip) */
.cat-bar { background: #fff; border-bottom: 1px solid var(--line-soft); }
.cat-bar .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-bar .container::-webkit-scrollbar { display: none; }
.cat-bar a { color: var(--ink-mid); font-size: 13px; font-weight: 700; padding: 12px 12px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cat-bar a:hover, .cat-bar a.active { color: var(--green-deep); border-bottom-color: var(--green); }
.cat-bar .shop-cta { background: var(--green); color: #fff; border-radius: 999px; padding: 6px 14px; margin: 4px 0 4px auto; border-bottom: 0; font-size: 12px; }
.cat-bar .shop-cta:hover { background: var(--green-deep); border-bottom-color: transparent; color: #fff; }

@media (max-width: 860px) {
  .nav-main { flex-wrap: wrap; gap: 10px; }
  .burger { display: grid; }
  .nav-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-logo img { height: 48px; }
}

/* ── Image-driven homepage (hero + stacked sections, all client images) ── */
.home-hero { position: relative; }
.home-hero img { width: 100%; height: auto; display: block; }
.home-hero .placeholder { aspect-ratio: 21 / 9; background: linear-gradient(135deg, var(--green-soft), #fff); display: grid; place-items: center; padding: 40px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.home-hero .placeholder b { display: block; color: var(--green-deep); font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }

.home-sections { padding: 0; }
.home-slot { display: block; margin: 0; }
.home-slot img { width: 100%; height: auto; display: block; }
.home-slot.placeholder { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green-soft), #fff); display: grid; place-items: center; padding: 40px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; margin: 0; }
.home-slot.placeholder b { display: block; color: var(--green-deep); font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.home-slot.placeholder small { display: block; font-size: 12px; margin-top: 4px; opacity: .8; }

/* Optional container wrap for slots when the client wants boxed vs full-bleed */
.home-slot.boxed { max-width: 1180px; margin: 0 auto; padding: 20px 18px; }

.home-cta { text-align: center; padding: 40px 20px; background: #fff; }
.home-cta .btn { padding: 16px 36px; font-size: 15px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); font-weight: 800; font-size: 14.5px; border-radius: 999px; padding: 13px 26px; border: 2px solid transparent; transition: all .18s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-soft); }

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1020px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.p-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .18s; }
.p-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.p-media { aspect-ratio: 1 / 1; background: var(--green-soft) center/cover; display: grid; place-items: center; font-size: 42px; }
.p-badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; z-index: 2; }
.p-badge.new { background: var(--green); }
.p-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-name { font-family: var(--serif); font-weight: 800; font-size: 13.5px; line-height: 1.3; min-height: 2.6em; }
.p-price { font-weight: 900; font-family: var(--serif); color: var(--green-deep); font-size: 15px; }
.p-price .old { color: var(--ink-soft); text-decoration: line-through; font-weight: 600; font-size: 12.5px; margin-left: 6px; }
.p-add { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; border: 0; border-radius: 999px; font-family: var(--serif); font-weight: 800; font-size: 13px; padding: 11px 12px; transition: all .15s; }
.p-add:hover { background: var(--green-deep); }
.p-add svg { width: 16px; height: 16px; flex: 0 0 16px; }
.p-add.added { background: var(--gold); color: var(--green-deep); }
.p-add.sold { background: #e8e5da; color: #8a8676; cursor: not-allowed; }
.p-add.cs { background: var(--green-soft); color: var(--green-deep); border: 2px dashed var(--green); cursor: not-allowed; }
.p-badge.soldout { background: #757575; color: #fff; }
.no-products { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* ── Drawer ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(60, 20, 40, .5); z-index: 1290; display: none; opacity: 0; transition: opacity .3s; }
.drawer-backdrop.active { display: block; opacity: 1; }
.drawer { position: fixed; top: 0; left: 0; width: 340px; max-width: 86vw; height: 100%; background: #fff; z-index: 1300; transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-head img { height: 44px; }
.drawer-close { border: 0; background: var(--green-soft); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.drawer-close svg { width: 16px; height: 16px; }
.drawer-body { overflow-y: auto; padding: 16px 18px 26px; }
.drawer-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 8px; }
.drawer-label:first-child { margin-top: 0; }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-cats a { background: var(--green-soft); border-radius: 12px; padding: 12px 10px; text-align: center; font-weight: 800; font-size: 12.5px; color: var(--green-deep); }
.drawer-body > a.d-link { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 700; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.drawer-body > a.d-link svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--green); }
.drawer-contact { margin-top: 20px; border-top: 1.5px solid var(--line-soft); padding-top: 16px; display: grid; gap: 8px; }
.drawer-contact a { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); }
.drawer-contact a svg { width: 16px; height: 16px; }

/* ── Cart tray ── */
.tray-backdrop { position: fixed; inset: 0; background: rgba(60, 20, 40, .5); z-index: 1290; display: none; opacity: 0; transition: opacity .3s; }
.tray-backdrop.active { display: block; opacity: 1; }
.tray { position: fixed; top: 0; right: 0; width: 380px; max-width: 92vw; height: 100%; background: #fff; z-index: 1300; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; }
.tray.open { transform: none; }
.tray-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-weight: 800; }
.tray-items { flex: 1; overflow-y: auto; padding: 14px 18px; }
.tray-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tray-item-img { width: 58px; height: 58px; border-radius: 10px; background: var(--green-soft) center/cover; flex: 0 0 58px; display: grid; place-items: center; }
.tray-item-name { font-weight: 800; font-size: 13px; }
.tray-item-meta { font-size: 12.5px; color: var(--ink-mid); display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty-mini { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty-mini button { border: 0; background: none; width: 26px; height: 26px; font-weight: 800; cursor: pointer; }
.tray-foot { border-top: 1px solid var(--line-soft); padding: 14px 18px 18px; }
.tray-total { display: flex; justify-content: space-between; font-family: var(--serif); font-weight: 900; margin-bottom: 12px; }
.tray-foot .btn { width: 100%; }

/* ── Credit strip (replaces footer) ── */
.credit-strip { background: #fff; border-top: 1px solid var(--line-soft); color: var(--ink-soft); text-align: center; font-size: 12px; padding: 18px 16px; }
.credit-strip a { color: var(--green-deep); font-weight: 700; }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 13.5px; z-index: 1500; opacity: 0; transition: all .3s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ── Forms ── */
.field label { display: block; font-weight: 800; font-size: 12.5px; margin-bottom: 5px; color: var(--ink-mid); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font-family: inherit; font-size: 14px; background: #fff; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field { margin-bottom: 14px; }
.card-panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; }

[data-anim] { opacity: 0; transform: translateY(14px); transition: all .5s ease; }
[data-anim].in { opacity: 1; transform: none; }

/* Mobile: centered logo + bottom browse nav */
@media (max-width: 860px) {
  .nav-main { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; grid-template-rows: auto auto; grid-template-areas: 'burger logo icons' 'search search search'; align-items: center; row-gap: 8px; }
  .nav-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .burger { grid-area: burger; }
  .nav-logo { grid-area: logo; justify-self: center; }
  .nav-logo img { height: 46px; }
  .nav-icons { grid-area: icons; justify-self: end; margin-left: 0; }
  .nav-search { grid-area: search; order: 0; flex-basis: auto; width: 100%; }
  body { padding-bottom: 66px; }
}
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; display: flex; background: #fff; border-top: 1.5px solid var(--line-soft); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(173, 20, 87, .06); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; color: var(--ink-mid); text-decoration: none; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--green); }
  .bottom-nav .bn-cart { position: relative; }
  .bottom-nav .bn-cart .bn-cart-badge { position: absolute; top: -6px; right: calc(50% - 24px); background: var(--green); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
}

/* ── Article-style content pages ── */
.article { max-width: 760px; margin: 0 auto; padding: 30px 18px 60px; }
.article h1 { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--green-deep); line-height: 1.2; margin-bottom: 10px; }
.article .a-meta { color: var(--ink-soft); font-size: .88rem; margin-bottom: 24px; }
.article h2 { font-family: var(--serif); color: var(--green-deep); margin: 30px 0 10px; font-size: 1.35rem; }
.article p, .article li { line-height: 1.75; margin-bottom: 14px; color: var(--ink-mid); }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article .a-tip { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }

/* ── Digital-mode UI adjustments (activated by body.sj-digital) ── */
body.sj-digital .physical-only { display: none !important; }
