
/* ============================================================
   Bonayon: public site styles
   (the admin page uses admin.css)
   Palette: forest, fern, marigold (Kolkata's flower-market flower), sage, paper
   Type:    Bricolage Grotesque for headings, Hanken Grotesk for text
   ============================================================ */
:root {
  --paper:     #f5f7f1;
  --paper-2:   #ebefe4;
  --forest:    #12301f;
  --forest-2:  #0b2014;
  --fern:      #2f6b3f;
  --marigold:  #f5a911;
  --marigold-d:#e09a08;
  --sage:      #d3e0c8;
  --mint:      #c4ddd2;
  --gold-soft: #f6dc93;
  --ink:       #16201a;
  --ink-2:     #4a5a4f;
  --line:      #dbe2d3;
  --white:     #ffffff;

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --maxw: 1680px;
  --gutter: clamp(16px, 3.2vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text); font-size: 1rem; line-height: 1.6;
  background: var(--paper); color: var(--ink);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; color: var(--forest); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--text); font-weight: 700; font-size: 0.95rem; line-height: 1;
  padding: 14px 22px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--marigold); color: var(--forest-2); }
.btn-primary:hover { background: var(--marigold-d); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--fern); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); color: var(--white); }
.btn-buy { background: var(--marigold); color: var(--forest-2); padding: 10px 14px; font-size: 0.85rem; border-radius: 8px; }
.btn-buy:hover { background: var(--marigold-d); }
.btn-buy.alt { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-buy.alt:hover { background: var(--forest); color: var(--white); }
.btn-flip { border-color: #2874f0; color: #2874f0; background: transparent; }
.btn-flip:hover { background: #2874f0; color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,247,241,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand svg { color: var(--fern); flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand-sub { font-size: 0.8rem; color: var(--ink-2); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; color: var(--ink); }
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--marigold); border-radius: 0; }
.main-nav .nav-wa { background: var(--forest); color: var(--white); margin-left: 8px; }
.main-nav .nav-wa:hover { background: var(--fern); }
.icon-btn { background: none; border: 0; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--forest); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); }
.burger { display: none; }
.burger .m-close { display: none; }
.menu-open .burger .m-open { display: none; }
.menu-open .burger .m-close { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 34ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 0.92rem; color: var(--ink-2); }
.hero-note strong { color: var(--forest); }

.hero-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); align-items: end; }
.tile { position: relative; display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--sage); animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.tile:nth-child(1) { aspect-ratio: 4 / 5.2; background: var(--gold-soft); animation-delay: .05s; }
.tile:nth-child(2) { aspect-ratio: 4 / 6.4; background: var(--sage); animation-delay: .17s; }
.tile:nth-child(3) { aspect-ratio: 4 / 5.6; background: var(--mint); animation-delay: .29s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; mix-blend-mode: multiply; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
.tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--white); border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; color: var(--forest); }
.tile-cap b { font-weight: 700; line-height: 1.2; }
.tile-cap i { font-style: normal; font-weight: 700; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; }
.section-head p { color: var(--ink-2); max-width: 44ch; }

/* ---------- browse by type ---------- */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.types.three { grid-template-columns: repeat(3, 1fr); }
.type { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42%; min-height: 300px; border-radius: 16px; overflow: hidden; background: var(--sage); }
.type.outdoor { background: var(--gold-soft); }
.type.seeds { background: var(--mint); }
.type-text { padding: 28px 0 28px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; position: relative; z-index: 2; }
.type h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.type h3 a { text-decoration: none; }
.type h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.type-count { color: var(--ink-2); font-size: 0.95rem; }
.type-subs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; position: relative; z-index: 3; }
.type-subs a { font-size: 0.9rem; font-weight: 600; color: var(--forest); text-decoration: underline; text-decoration-color: rgba(18,48,31,.35); text-underline-offset: 3px; }
.type-subs a:hover { text-decoration-color: var(--forest); }
.type-photo { position: relative; }
.type-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: multiply; }
.types.three .type { grid-template-columns: 1fr; }
.types.three .type-photo { height: 200px; }

/* ---------- shop grid ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.chip { flex: none; font-family: var(--text); font-size: 0.9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.chip span { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--forest); }
.chip.active { background: var(--forest); border-color: var(--forest); color: var(--white); }
.chip.active span { color: rgba(255,255,255,.75); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
@media (min-width: 1440px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.pc { display: flex; flex-direction: column; }
.pc-img { position: relative; display: block; aspect-ratio: 855 / 1000; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity .35s ease; }
.pc-img img.alt { opacity: 0; }
@media (hover: hover) { .pc:hover .pc-img img.alt { opacity: 1; } }
.pc-body { display: flex; flex-direction: column; flex: 1; padding-top: 12px; }
.pc-sub { font-size: 0.82rem; color: var(--fern); font-weight: 600; }
.pc-name { font-size: 1.12rem; font-weight: 700; margin-top: 2px; }
.pc-name a { text-decoration: none; }
.pc-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc-sci { font-size: 0.82rem; font-style: italic; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.pc-price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--forest); }
.grid-more { display: flex; justify-content: center; margin-top: 40px; }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--ink-2); }
.grid-empty h3 { margin-bottom: 6px; }

/* ---------- why bonayon ---------- */
.why { background: var(--forest); color: var(--white); }
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.why h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 32px; }
.fact { border-top: 1px solid rgba(255,255,255,.22); padding: 18px 0 26px; }
.fact h3 { color: var(--white); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.fact p { color: rgba(255,255,255,.78); font-size: 0.95rem; max-width: 34ch; }
.wa-panel { background: var(--marigold); color: var(--forest-2); border-radius: 16px; padding: clamp(24px, 3vw, 36px); }
.wa-panel h3 { color: var(--forest-2); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; }
.wa-panel p { margin: 10px 0 22px; color: #3a2a00; max-width: 32ch; }
.wa-panel .btn { background: var(--forest-2); color: var(--white); }
.wa-panel .btn:hover { background: var(--forest); }
.wa-num { display: block; margin-top: 12px; font-size: 0.9rem; color: #3a2a00; }

/* ---------- reviews (shown only when reviews are added in index.html) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { border-top: 3px solid var(--marigold); padding-top: 14px; }
.review p { font-size: 1.05rem; }
.review cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--forest); }
.review cite span { font-weight: 500; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-2); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 32px 48px; padding-bottom: 40px; }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer .brand svg { color: var(--marigold); --leaf-vein: #0b2014; }
.foot-brand p { max-width: 36ch; font-size: 0.95rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; font-weight: 700; }
.site-footer a:not(.brand), .site-footer span { display: block; font-size: 0.95rem; padding: 4px 0; text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--marigold); }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); padding-block: 20px; font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: #1fa855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- search ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11,32,20,.55); display: none; align-items: flex-start; justify-content: center; padding: 9vh 16px 16px; }
.search-overlay.open { display: flex; }
.search-modal { width: 100%; max-width: 620px; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); min-width: 0; }
.search-close-btn { background: var(--paper-2); border: 0; border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--forest); }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.sr-empty { padding: 28px 12px; text-align: center; color: var(--ink-2); }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.sr-item:hover { background: var(--paper-2); }
.sr-img { width: 46px; height: 54px; border-radius: 6px; background: var(--paper-2); overflow: hidden; flex: none; }
.sr-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.sr-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr-info strong { font-size: 0.98rem; color: var(--forest); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-info span { font-size: 0.82rem; color: var(--ink-2); }
.sr-price { font-weight: 700; color: var(--forest); }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) 24px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; font-size: 1.05rem; }
.page-body { padding-bottom: clamp(48px, 7vw, 96px); }
.count-line { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 20px; }
.count-line strong { color: var(--forest); }
.seed-search { display: block; width: 100%; max-width: 420px; padding: 12px 16px; margin-bottom: 28px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; color: var(--ink); }
.seed-search:focus { outline: none; border-color: var(--forest); }
.sub-block { margin-bottom: 48px; }
.sub-block h2 { font-size: 1.6rem; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.sub-block h2 span { font-family: var(--text); font-size: 0.95rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.loading { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--ink-2); }

/* ---------- plant detail ---------- */
.crumbs { padding: 22px 0 8px; font-size: 0.9rem; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }
.detail { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding: 16px 0 clamp(48px, 7vw, 96px); align-items: start; }
.gallery-main { position: relative; aspect-ratio: 855 / 1000; border-radius: 16px; overflow: hidden; background: var(--sage); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--forest); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; aspect-ratio: 855 / 1000; border-radius: 8px; overflow: hidden; background: var(--paper-2); border: 2px solid transparent; padding: 0; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb.active { border-color: var(--forest); }
.info .tagline { color: var(--fern); font-weight: 600; font-size: 0.92rem; }
.info h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; margin-top: 4px; letter-spacing: -0.03em; }
.info .sci { font-style: italic; color: var(--ink-2); margin-top: 6px; }
.info .price { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--forest); margin-top: 18px; }
.info .price small { display: block; font-family: var(--text); font-weight: 500; font-size: 0.85rem; color: var(--ink-2); }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.info .desc { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 56ch; }
.promises { margin-top: 24px; list-style: none; display: grid; gap: 10px; }
.promises li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.promises li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--marigold); }
.notfound { text-align: center; padding: 96px 16px; }
.notfound h1 { font-size: 2rem; margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .types.three { grid-template-columns: 1fr; }
  .types.three .type { grid-template-columns: minmax(0, 1fr) 42%; }
  .types.three .type-photo { height: auto; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 14ch; }
  .types { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .burger { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .main-nav.open { display: flex; }
  .main-nav a { font-family: var(--display); font-size: 1.5rem; font-weight: 700; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: none; color: var(--fern); }
  .main-nav .nav-wa { margin: 16px 0 0; text-align: center; font-family: var(--text); font-size: 1rem; padding: 14px; border-radius: 10px; border-bottom: 0; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .pc-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pc-foot .btn { width: 100%; }
  .pc-name { font-size: 1rem; }
  .pc-price { font-size: 1.15rem; }
  .facts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .type { grid-template-columns: minmax(0, 1fr) 38%; min-height: 240px; }
  .type-text { padding: 20px 0 20px 20px; }
  .tile-cap { left: 6px; right: 6px; bottom: 6px; padding: 6px 7px; font-size: 0.72rem; flex-direction: column; gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .buy-row .btn { flex: 1 1 100%; }
  .thumb { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { animation: none; }
  .tile img, .pc-img img { transition: none; }
}

/* photos that are not the standard portrait shape are shown whole instead of cropped */
.fit-whole { background: #fff !important; }
.fit-whole img { object-fit: contain !important; mix-blend-mode: normal !important; }
