/* Glowé design tokens — the CMS Theme tab maps onto these custom properties. */
:root {
  --color-primary: #1f4b2c;
  --color-accent: #b8904a;
  --color-secondary: #1b1d1a;
  --color-default: #44473f;
  --color-muted: #7c7f78;
  --color-surface: #f5f5f2;
  --color-surface-2: #eef0ea;
  --color-line: #e5e6e0;
  --color-star: #f0b429;
  --font-default: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-script: 'Allura', cursive;
  --radius: 14px;
  --section-max-width: 1200px;
  --section-pad-y: 88px;
  --base-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.65; background: #fff; font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.15; color: var(--color-secondary); font-weight: 600; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.hl { color: var(--color-accent); }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; }
section.tinted { background: var(--color-surface); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--color-primary); color: #fff;
  font-family: var(--font-default); font-weight: 500; font-size: .88rem; padding: .85rem 1.6rem; border-radius: 999px;
  border: 1px solid var(--color-primary); cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn .arrow { width: 16px; height: 16px; transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.light { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn.light:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn.small { padding: .6rem 1.15rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: default; }
.link-under { font-weight: 500; font-size: .9rem; color: var(--color-secondary); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-under:hover { color: var(--color-accent); }

/* ── Section heads ── */
.eyebrow { font-family: var(--font-default); font-weight: 500; font-size: .9rem; color: var(--color-secondary); margin-bottom: .45rem; }
.section-head { margin-bottom: 42px; }
.section-head.centered { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: 2.35rem; font-weight: 600; }
.section-head .lead { color: var(--color-muted); margin-top: .6rem; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

/* ── Header ── */
.topbar { background: var(--color-primary); color: #fff; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; }
.topbar a:hover { color: var(--color-accent); }
.topbar .promo a { color: var(--color-accent); text-decoration: underline; margin-left: .4rem; }
.topbar .socials { display: flex; gap: 8px; }
.topbar .socials a { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--color-primary); display: grid; place-items: center; }
.topbar .socials a:hover { background: var(--color-accent); color: #fff; }
.topbar .socials svg { width: 12px; height: 12px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-line); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(27, 29, 26, .07); }
.site-header .bar { display: flex; align-items: center; gap: 2rem; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; flex-shrink: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; color: var(--color-secondary); }
.logo img { max-height: 40px; width: auto; }
.logo .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; }
.logo .mark svg { width: 18px; height: 18px; }
.logo b { color: var(--color-accent); }
.nav { margin: 0 auto; display: flex; gap: 1.8rem; font-size: .9rem; font-weight: 500; }
.nav a { position: relative; padding: .3rem 0; color: var(--color-secondary); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-accent); transition: width .3s ease; }
.nav a:hover, .nav a.on { color: var(--color-primary); }
.nav a:hover::after, .nav a.on::after { width: 100%; }
.tools { display: flex; align-items: center; gap: .35rem; }
.tool { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--color-secondary); display: grid; place-items: center; cursor: pointer; transition: background .25s ease, color .25s ease; }
.tool:hover { background: var(--color-surface); color: var(--color-primary); }
.tool svg { width: 20px; height: 20px; }
.tool .count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: .62rem; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.search-bar { border-top: 1px solid var(--color-line); padding: 14px 0; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input { flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--color-line); border-radius: 999px; font: inherit; }
.search-bar input:focus { outline: none; border-color: var(--color-primary); }
.menu-btn { display: none; }
.mobile-panel { display: none; }
.drop-enter-active, .drop-leave-active { transition: opacity .25s ease, transform .25s ease; }
.drop-enter-from, .drop-leave-to { opacity: 0; transform: translateY(-8px); }
@media (max-width: 1020px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .menu-btn { display: grid; }
  .mobile-panel { display: block; border-top: 1px solid var(--color-line); padding: 12px 24px 18px; background: #fff; }
  .mobile-panel nav { display: grid; gap: 2px; }
  .mobile-panel a { padding: .65rem .8rem; border-radius: 10px; font-weight: 500; }
  .mobile-panel a.on { background: var(--color-surface); color: var(--color-primary); }
}
@media (max-width: 700px) {
  .topbar .phone, .topbar .socials { display: none; }
  .topbar .container { justify-content: center; text-align: center; }
  .site-header .bar { gap: 1rem; }
  .logo { font-size: 1.1rem; }
  .tool { width: 36px; height: 36px; }
}

/* ── Leaf ticker ── */
.ticker { background: var(--color-primary); color: #fff; overflow: hidden; padding: 0; }
.ticker .track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .item { display: inline-flex; align-items: center; gap: 2.4rem; padding: 14px 1.2rem; font-family: var(--font-heading); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.ticker .item a:hover { color: var(--color-accent); }
.ticker .leaf { width: 22px; height: 22px; color: var(--color-accent); }
.ticker + section { padding-top: var(--section-pad-y); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ── Product card (shared by every product block) ── */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-card { position: relative; display: flex; flex-direction: column; }
.p-card .pic { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.p-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .pic img { transform: scale(1.06); }
.p-card .off { position: absolute; top: 12px; left: 12px; background: var(--color-primary); color: #fff; font-size: .72rem; font-weight: 500; padding: .25rem .65rem; border-radius: 999px; }
.p-card .soldout { position: absolute; bottom: 12px; left: 12px; background: #fff; color: #b03a2e; font-size: .7rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.p-card .acts { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; }
.p-card .act { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--color-secondary); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transition: background .25s ease, color .25s ease, transform .3s ease, opacity .3s ease; }
.p-card .act svg { width: 16px; height: 16px; }
.p-card .act:hover, .p-card .act.on { background: var(--color-primary); color: #fff; }
.p-card .act.on svg { fill: currentColor; }
.p-card .act.reveal { opacity: 0; transform: translateX(8px); }
.p-card:hover .act.reveal, .p-card .act.reveal:focus-visible { opacity: 1; transform: none; }
.p-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .75rem; color: var(--color-muted); }
.p-card .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--color-secondary); font-weight: 500; }
.p-card .rating svg { width: 13px; height: 13px; color: var(--color-star); fill: currentColor; }
.p-card h3 { font-family: var(--font-default); font-size: .98rem; font-weight: 500; margin: 4px 0 6px; }
.p-card h3 a:hover { color: var(--color-primary); }
.p-card .price { display: flex; gap: .55rem; align-items: baseline; font-size: .92rem; }
.p-card .price b { color: var(--color-accent); font-weight: 600; }
.p-card .price s { color: var(--color-muted); font-size: .82rem; }
.p-card .desc { color: var(--color-muted); font-size: .82rem; margin: 6px 0 8px; }
.p-card .buy { margin-top: auto; align-self: flex-start; background: none; border: 0; font-size: .82rem; font-weight: 500; color: var(--color-secondary); display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; padding: 4px 0; }
.p-card .buy:hover { color: var(--color-accent); }
.p-card .buy svg { width: 14px; height: 14px; }
.p-card.row { flex-direction: row; gap: 18px; background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--color-line); }
.p-card.row .pic { width: 46%; flex-shrink: 0; }
.p-card.row .body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.p-card.row .meta { margin-top: 2px; }
@media (max-width: 1020px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .p-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px) { .p-card.row { flex-direction: column; } .p-card.row .pic { width: 100%; } }

.empty-note { text-align: center; color: var(--color-muted); padding: 34px 20px; border: 1px dashed var(--color-line); border-radius: var(--radius); }
.empty-note b { color: var(--color-secondary); display: block; margin-bottom: 4px; }

/* ── Filter chips ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 0; background: none; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; color: var(--color-default); cursor: pointer; transition: background .25s ease, color .25s ease; }
.chips button:hover { color: var(--color-primary); }
.chips button.on { background: var(--color-primary); color: #fff; }

/* ── Inner-page hero ── */
.page-hero { background: var(--color-surface); padding: 0; overflow: hidden; }
.page-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 320px; }
.page-hero h1 { font-size: 2.8rem; margin: .3rem 0 .8rem; }
.page-hero p.text { color: var(--color-muted); max-width: 52ch; }
.crumbs { display: flex; gap: .5rem; font-size: .82rem; color: var(--color-muted); margin-bottom: .6rem; }
.crumbs a:hover { color: var(--color-primary); }
.crumbs b { color: var(--color-primary); font-weight: 500; }
.page-hero .shot { align-self: stretch; position: relative; }
.page-hero .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 0 0 120px; }
@media (max-width: 860px) {
  .page-hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .page-hero .shot { display: none; }
  .page-hero h1 { font-size: 2.1rem; }
}

/* ── Footer ── */
.site-footer { background: var(--color-surface); padding: 70px 0 0; font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.site-footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; color: var(--color-muted); }
.site-footer ul a:hover { color: var(--color-primary); }
.site-footer .about p { color: var(--color-muted); margin: 1rem 0 1.2rem; max-width: 34ch; }
.site-footer .social { display: flex; gap: 8px; }
.site-footer .social a { width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; }
.site-footer .social a:hover { background: var(--color-accent); }
.site-footer .social svg { width: 15px; height: 15px; }
.site-footer .fine { margin-top: 50px; border-top: 1px solid var(--color-line); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--color-muted); font-size: .8rem; flex-wrap: wrap; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ── Forms ── */
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 500; color: var(--color-secondary); }
.field input, .field textarea, .field select { width: 100%; padding: .8rem 1rem; border: 1px solid var(--color-line); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31, 75, 44, .1); }
.field-err { color: #b03a2e; font-size: .78rem; }

@media (max-width: 760px) {
  :root { --section-pad-y: 64px; }
  .section-head h2 { font-size: 1.85rem; }
}
