/* CornerPlants — colours & fonts are overridden live from the admin "Customize" tab */
:root {
  --green: #3f5f36;
  --green-2: #6f8c56;
  --clay: #b87447;
  --bg: #fbfaf5;
  --surface: #ffffff;
  --ink: #1f2a1c;
  --muted: color-mix(in srgb, var(--ink) 58%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 11%, var(--bg));
  --tint: color-mix(in srgb, var(--green) 7%, var(--bg));
  --radius: 14px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(31 42 28 / 0.05), 0 8px 28px -12px rgb(31 42 28 / 0.18);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 32px, 760px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .6rem; }
.ico { width: 20px; height: 20px; flex: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.boot { min-height: 100vh; display: grid; place-items: center; padding: 2rem; text-align: center; }
.boot img { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.98); } }
.loading { padding: 4rem 0; text-align: center; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--green);
  background: var(--green); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: color-mix(in srgb, var(--green) 85%, #000); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--tint); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .1); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-grow { flex: 1; }
.btn-danger { background: #a3402e; border-color: #a3402e; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--tint); }
.link-btn { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--muted); }
.link-btn:hover { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 600; text-decoration: none; }
.text-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .ico { transform: translateX(3px); }

/* ---------- announcement ---------- */
.announce { background: var(--green); color: #fff; font-size: .85rem; font-weight: 500; }
.announce-inner { position: relative; height: 38px; overflow: hidden; }
.announce-item { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 16px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.announce-item.on { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.wordmark { font-family: var(--font-body); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; line-height: 1; }
.wordmark span:first-child { color: var(--green); }
.wordmark span:last-child { color: var(--green-2); }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; width: min(320px, 32vw); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-2) 18%, transparent); }
.search .ico { color: var(--muted); width: 18px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
.main-nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; height: 48px; align-items: center; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { white-space: nowrap; text-decoration: none; padding: .4rem .85rem; border-radius: 999px; font-weight: 500; font-size: .95rem; color: color-mix(in srgb, var(--ink) 80%, var(--bg)); transition: background .15s, color .15s; }
.nav-row a:hover { background: var(--tint); color: var(--green); }
.nav-row a.active { background: var(--green); color: #fff; }

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgb(20 28 18 / 0); transition: background .2s; }
.mobile-nav.open { background: rgb(20 28 18 / .45); }
.mobile-nav-panel { width: min(86vw, 340px); height: 100%; background: var(--bg); padding: 16px; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-search { width: 100%; margin-bottom: 12px; }
.mobile-link { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.mobile-link.active { color: var(--green); font-weight: 700; }

/* ---------- hero ---------- */
.hero { padding: 20px 0 8px; }
.hero-frame { position: relative; border-radius: calc(var(--radius) * 1.6); overflow: hidden; min-height: clamp(380px, 56vh, 560px); background: var(--green); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg img, .slide-bg .plant-art { width: 100%; height: 100%; object-fit: cover; }
.slide-bg .plant-art { display: block; width: 55%; margin-left: auto; }
.slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--green) 96%, #000) 0%, color-mix(in srgb, var(--green) 78%, transparent) 45%, transparent 75%); }
.slide-text { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(28px, 6vw, 72px); max-width: 640px; color: #fff; }
.slide-text .eyebrow { color: #f1c9a6; }
.slide-text h1 { color: #fff; }
.slide-text p { font-size: 1.15rem; opacity: .9; max-width: 34ch; margin-bottom: 1.6rem; }
.slide.on .slide-text > * { animation: rise .8s both; }
.slide.on .slide-text > *:nth-child(2) { animation-delay: .08s; }
.slide.on .slide-text > *:nth-child(3) { animation-delay: .16s; }
.slide.on .slide-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-dots { position: absolute; z-index: 2; left: clamp(28px, 6vw, 72px); bottom: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 5px; border-radius: 9px; border: 0; background: rgb(255 255 255 / .4); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.hero-dots button.on { width: 46px; background: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-tight { padding-top: 12px; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head.related { margin-top: 64px; }
.page-head { padding: clamp(36px, 6vw, 64px) 0 20px; }
.page-head h1 { margin-bottom: .2em; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(31 42 28 / .06), 0 18px 40px -16px rgb(31 42 28 / .3); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; background: var(--tint); }
.card-media img, .card-media .plant-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img, .card:hover .card-media .plant-art { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { background: var(--surface); color: var(--green); font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.badge-clay { background: var(--clay); color: #fff; }
.badge-muted { background: #555; color: #fff; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-title { font-weight: 600; text-decoration: none; line-height: 1.3; }
.card-title:hover { color: var(--green); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-weight: 700; color: var(--green); font-size: 1.05rem; }
.compare { color: var(--muted); margin-left: 6px; font-size: .9rem; }
.add-btn { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--green); color: var(--green); background: transparent; border-radius: 99px; padding: .35rem .8rem .35rem .6rem; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s; }
.add-btn .ico { width: 16px; height: 16px; }
.add-btn:hover:not(:disabled) { background: var(--green); color: #fff; }
.add-btn:disabled { border-color: var(--line); color: var(--muted); cursor: not-allowed; padding-left: .8rem; }

/* ---------- collections ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.collection { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; text-decoration: none; display: block; }
.collection-media, .collection-media img, .collection-media .plant-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.collection:hover .collection-media img, .collection:hover .collection-media .plant-art { transform: scale(1.05); }
.collection-label { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border-radius: calc(var(--radius) - 4px); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.collection-label span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- about & promise ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.about-media { border-radius: calc(var(--radius) * 1.4); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about-media img, .about-media .plant-art { width: 100%; height: 100%; object-fit: cover; }
.about-text .prose { color: color-mix(in srgb, var(--ink) 80%, var(--bg)); font-size: 1.07rem; margin-bottom: 1.4rem; }
.promise { background: var(--green); color: #fff; }
.promise-head { max-width: 640px; margin-bottom: 36px; }
.promise-head h2 { color: #fff; }
.promise-head p { opacity: .85; font-size: 1.1rem; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise-grid > div { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.promise-grid .ico { width: 30px; height: 30px; color: #f1c9a6; margin-bottom: 8px; }
.promise-grid strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.promise-grid span { opacity: .82; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.post-card:hover { transform: translateY(-3px); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img, .post-media .plant-art { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { margin: 4px 0 8px; }
.post-body p { color: var(--muted); flex: 1; }
.post-title { margin-top: .3em; }
.lede { font-size: 1.2rem; color: color-mix(in srgb, var(--ink) 75%, var(--bg)); }
.post-hero { border-radius: calc(var(--radius) * 1.3); overflow: hidden; aspect-ratio: 16 / 9; margin: 28px 0 32px; }
.post-hero img, .post-hero .plant-art { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--green); }
.prose-lg { font-size: 1.1rem; line-height: 1.75; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- shop ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { text-decoration: none; padding: .45rem .95rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--green-2); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
select, .field input, .field textarea, .field select {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .65rem .8rem; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.sort select { width: auto; border-radius: 99px; padding: .45rem .9rem; }
select:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-2) 18%, transparent); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.gallery-main { position: relative; border-radius: calc(var(--radius) * 1.4); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.gallery-main img, .gallery-main .plant-art { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; }
.thumbs button.on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 140px; }
.product-price { font-size: 1.5rem; margin-bottom: .4rem; }
.product-price .price { font-size: 1.6rem; }
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.care > div, .contact-info > div, .contact-info > a { display: flex; gap: 12px; align-items: center; background: var(--tint); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.care .ico, .contact-info .ico { color: var(--green); }
.care small, .contact-info small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.buy { display: flex; gap: 12px; margin: 22px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--tint); }
.qty .ico { width: 15px; height: 15px; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: .95rem; }
.qty-lg button { width: 46px; height: 46px; }
.qty-lg span { min-width: 30px; }

/* ---------- forms ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #a3402e; background: #fbeae6; border-radius: 10px; padding: .6rem .8rem; margin: 0; font-size: .92rem; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.success > .ico { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--tint); color: var(--green); margin-bottom: 10px; }
.success .btn { margin-top: 8px; }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choices legend { font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: var(--tint); }
.choice input { accent-color: var(--green); }
.choice span { display: flex; justify-content: space-between; flex: 1; }
.choice small { color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.saved { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.saved small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.saved a { display: flex; flex-direction: column; text-decoration: none; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.bubble p { margin: 4px 0 0; white-space: normal; }
.bubble small { color: var(--muted); }
.bubble.customer { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--tint); }
.bubble.admin { align-self: flex-start; border-bottom-left-radius: 4px; }

/* ---------- cart & checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line-media { width: 72px; height: 84px; border-radius: 10px; overflow: hidden; display: block; }
.line-media img, .line-media .plant-art { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.totals { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.totals .total { font-size: 1.15rem; }

.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(20 28 18 / 0); transition: background .25s; }
.drawer.open .drawer-scrim { background: rgb(20 28 18 / .45); }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(100%, 420px); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-body .lines { padding: 0 20px; flex: 1; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.drawer-foot p { margin: 0; }

.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .plant-art { width: 140px; height: 175px; border-radius: 20px; margin-bottom: 8px; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgb(20 28 18 / .5); animation: fade .2s; }
.modal-card { position: relative; background: var(--bg); border-radius: calc(var(--radius) * 1.3); padding: 28px; width: min(100%, 420px); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .4); animation: pop .22s ease; }
.modal-card.wide { width: min(100%, 720px); }
.modal-x { position: absolute; top: 10px; right: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.login { text-align: center; }
.login form { text-align: left; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.login-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.login-badge .ico { width: 26px; height: 26px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1.2rem; border-radius: 99px; font-weight: 500; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); animation: pop .2s; transition: opacity .4s, transform .4s; }
.toast.err { background: #a3402e; color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
.edit-pill { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 99px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.edit-pill .ico { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.site-footer { background: color-mix(in srgb, var(--green) 88%, #000); color: rgb(255 255 255 / .82); padding-top: 56px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { background: var(--bg); border-radius: 16px; padding: 10px 16px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { color: rgb(255 255 255 / .82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid > div:nth-child(2) a { display: block; padding: 3px 0; }
.footer-grid p { display: flex; gap: 10px; align-items: flex-start; }
.footer-grid p .ico { width: 18px; margin-top: 3px; color: #f1c9a6; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social a { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { border-top: 1px solid rgb(255 255 255 / .14); padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; flex-wrap: wrap; }

/* ---------- admin mode ---------- */
body.admin-mode .announce, body.admin-mode .main-nav, body.admin-mode .site-footer, body.admin-mode .header-row .search { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .header-row .search { display: none; }
  .main-nav { display: none; }
  .brand { margin-right: auto; }
  .about, .product, .contact, .checkout { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .promise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-bg .plant-art { width: 100%; opacity: .5; }
  .slide-bg::after { background: linear-gradient(0deg, color-mix(in srgb, var(--green) 96%, #000) 20%, color-mix(in srgb, var(--green) 55%, transparent)); }
  .slide-text { justify-content: flex-end; padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 1.3rem; }
  .brand img { height: 34px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add-btn { justify-content: center; }
  .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
