/* One stylesheet for every page. Colors live here: change --green to restyle the site. */
:root { --green: #2f7d4f; --green-dark: #246340; --border: #e3e8e5; --text: #1f2a24; --warm: #f6f2ec; }

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
body.warm { background: var(--warm); }              /* product page uses a warm neutral background */
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; }
a { color: inherit; }

.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
.page-title { margin-top: 8px; }

/* ---- Buttons: .btn works on <a> and <button> ---- */
.btn { display: inline-block; font: inherit; cursor: pointer; text-decoration: none; text-align: center;
       border-radius: 8px; border: 1px solid var(--green); background: #fff; color: var(--green); padding: 9px 16px; }
.btn:hover { background: #eaf5ee; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.light { background: #fff; color: var(--green-dark); border-color: #fff; padding: 12px 24px; font-weight: 600; }
.btn.light:hover { background: #eaf5ee; }
.btn.wide { width: 100%; padding: 12px; }
.btn:disabled { opacity: .6; cursor: wait; }
.icon-btn { font: inherit; cursor: pointer; border: 1px solid var(--green); background: #fff; color: var(--green);
            border-radius: 8px; padding: 2px 9px; }
.cart-head .icon-btn { border: none; }

/* ---- Navigation bar ---- */
.site-header { display: flex; align-items: center; gap: 24px; padding: 14px 24px; background: #fff;
               border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.logo { font-weight: 700; font-size: 1.65rem; color: var(--green); text-decoration: none; }
.site-header nav { display: flex; gap: 20px; flex: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.5; }
.header-actions .btn.active { background: #eaf5ee; }          /* Search button while on the search page */
.site-header nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a.active { color: var(--green); border-color: var(--green); }
.banner { background: #eaf5ee; color: var(--green-dark); margin: 0; padding: 12px; text-align: center; }

/* ---- Home: hero (the gradient is the dark overlay on top of the photo) ---- */
.hero { min-height: 800px; display: flex; align-items: flex-end; padding: 24px 24px 80px; color: #246340;
        background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.4)), url("images/hero.jpg") center / cover; }
.hero-text { margin: 0 auto; width: 100%; max-width: 1300px; padding-left: 0; text-align: center;}
.hero-text > * { max-width: none; }
.hero h1 { font-size: 4.50rem; margin: 0 0 2px; color: #fff}
.hero h2 { font-size: 1.80rem; margin: 0 0 4px; color: #fff}
.hero p { font-size: 1.15rem; margin: 0 0 14px; color: #fff}

/* ---- Home: plants / pots panels ---- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 48px; max-width: 1500px;}
.panel { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; display: block; }
.panel:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.panel img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.panel-body { padding: 16px 20px 20px; }
.panel-body h2 { margin: 0 0 4px; }
.panel-body p { margin: 0 0 14px; color: #5b6b62; }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 6px; flex: 1; padding-bottom: 12px; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card h3 { margin: 6px 14px 0; font-size: 1.05rem; }
.card p { margin: 0 14px; color: #5b6b62; font-size: .9rem; flex: 1; }
.card .price { margin: 0 14px; }
.card .btn { margin: 0 14px 14px; }
.price { color: var(--green); font-weight: 600; }
.price.big { font-size: 1.6rem; margin: 4px 0 16px; }

/* ---- Product detail page ---- */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.main-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumb.active { border-color: var(--green); }
.info h1 { margin: 8px 0 0; font-size: 2rem; }
.crumb { color: var(--green); text-decoration: none; font-size: .9rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.actions .btn { flex: 1; min-width: 140px; padding: 13px 16px; }
.not-found { grid-column: 1 / -1; text-align: center; padding: 48px 0; }
.not-found .btn { margin: 4px; }

/* ---- Cart panel ---- */
.cart { position: fixed; top: 0; right: 0; width: min(380px, 100%); height: 100%; background: #fff; z-index: 20;
        box-shadow: -4px 0 20px rgba(0,0,0,.12); padding: 20px; overflow-y: auto; }
.cart[hidden] { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.line-name { flex: 1; }
.total { font-size: 1.1rem; }
.error { color: #b3261e; min-height: 1.2em; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px;
               text-align: center; color: #5b6b62; font-size: .9rem; padding: 24px; border-top: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a.active { color: var(--green); text-decoration: underline; }

/* ---- Text pages (shipping, returns, privacy, terms, contact) ---- */
.prose { max-width: 720px; line-height: 1.7; padding-top: 32px; padding-bottom: 56px; }
.prose h1 { margin: 8px 0 4px; }
.prose h2 { margin: 2em 0 .5em; font-size: 1.3rem; color: var(--green-dark); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--green); }
.prose .updated { color: #5b6b62; font-size: .9rem; margin-bottom: 1.5em; }

/* ---- Forms: contact page and search box ---- */
.form { display: grid; gap: 16px; max-width: 520px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .search-form input {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; width: 100%;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .search-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .btn { justify-self: start; padding: 11px 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* spam honeypot, hidden from people */

.search-form { display: flex; gap: 12px; max-width: 520px; margin: 0 0 28px; }
.search-form .btn { padding: 9px 20px; }
.search-note { color: #5b6b62; }

/* ---- Narrow screens ---- */
/* Header wraps instead of overflowing on any width */
.site-header { flex-wrap: wrap; }
@media (max-width: 900px) {
  .site-header { gap: 12px 16px; }
  .site-header nav { gap: 16px; }
}
@media (max-width: 700px) {
  .site-header { gap: 8px 12px; padding: 12px 16px; }
  .logo { flex: 1; white-space: nowrap; }
  .site-header nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 6px 18px; }   /* links drop to their own row */
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 7px 12px; }
  .hero { min-height: 380px; }
  .panels, .detail { grid-template-columns: 1fr; }
  .detail { gap: 24px; padding-top: 20px; }
  .container { padding: 16px; }
  .search-form { flex-direction: column; }
}
@media (max-width: 380px) {
  .logo { font-size: 1.35rem; }
  .header-actions .btn { padding: 6px 10px; }
}

/* ---- Home: about us ---- */
.about { background: #1f4d36; padding: 56px 24px; }
.about-inner { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr;
               grid-template-rows: minmax(0, 1fr); height: clamp(580px, calc(100vh - 160px), 900px);
               border-radius: 12px; overflow: hidden; }
.about-text { background: #dcebdf; padding: 36px 48px; overflow-y: auto;
              display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.about-text h2 { margin: 0 0 14px; font-size: 1.6rem; line-height: 1.2; color: var(--green-dark); }
.about-text p { margin: 0 0 10px; font-size: .92rem; line-height: 1.55; max-width: 720px; color: var(--text); }
.about-text .thanks { margin: 6px 0 0; font-weight: 600; color: var(--green-dark); }
.about-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 20%; }

@media (max-width: 700px) {
  .about { padding: 32px 16px; }
  .about-inner { grid-template-columns: 1fr; height: auto; }
  .about-text { padding: 24px; overflow-y: visible; }
  .about-img { height: 300px; }
}