/* ============================================================
   Tony's Bonsai Supplies — Design system
   ============================================================ */
:root {
  --green-900: #1d3527;
  --green-800: #25422f;
  --green-700: #335840;
  --green-500: #5a7d63;
  --green-50:  #eef2ec;
  --bark:      #6b4f3a;
  --cream:     #f7f4ee;
  --paper:     #ffffff;
  --ink:       #181a18;
  --ink-2:     #3a3f3a;
  --muted:     #6e716c;
  --line:      #e3decf;
  --line-2:    #ede8d8;
  --shadow-sm: 0 1px 2px rgba(20,30,22,.04);
  --shadow:    0 1px 2px rgba(20,30,22,.05), 0 10px 30px rgba(31,58,43,.06);
  --radius:    4px;
  --radius-lg: 8px;
  --max:       1180px;
  --max-narrow: 720px;
  --serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Web fonts (Google) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--green-800); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 1rem;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--max-narrow); }
section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; }
.section-head a {
  font-family: var(--sans); font-weight: 500; font-size: .95rem;
  color: var(--green-700);
}
.section-head a::after { content: " →"; transition: margin .15s; display: inline-block; }
.section-head a:hover::after { margin-left: .15em; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.92);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--max); margin: 0 auto; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 500; color: var(--green-900); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-800); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0;
}
.brand-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  color: var(--green-900); letter-spacing: -0.005em;
}
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .94rem;
  letter-spacing: .005em;
}
.nav a:hover { color: var(--green-700); text-decoration: none; }
.cart-link { position: relative; padding-right: .25rem; }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--green-800); color: var(--cream);
  font-size: .68rem; font-weight: 600;
  border-radius: 999px;
  margin-left: .35rem;
}
.cart-count[hidden] { display: none; }

@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav a:not(.cart-link) { display: none; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; text-align: left; }
.hero h1 { color: #fff; margin-bottom: 1rem; font-weight: 500; }
.hero p {
  color: rgba(255,255,255,.85);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin: 0 0 2rem; max-width: 580px;
}
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 500; font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  text-align: center; line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: var(--cream); }
.btn-primary:hover { background: var(--green-900); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; border-color: #fff; }
.btn-outline {
  background: transparent; color: var(--green-900);
  border-color: var(--green-800);
}
.btn-outline:hover { background: var(--green-800); color: var(--cream); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-added { background: var(--green-700); }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  background: transparent;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.card a.card-link { color: inherit; display: block; }
.card a.card-link:hover { text-decoration: none; }
.card-img {
  aspect-ratio: 1/1;
  background: var(--green-50);
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: .9rem;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: .3rem; padding: 0 .1rem; }
.card-title {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--green-900); line-height: 1.25;
  font-weight: 500;
}
.card-price { font-weight: 500; color: var(--ink); font-size: .95rem; }

/* ---------- Value props ---------- */
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}
.prop {
  padding: 1rem 0;
}
.prop-icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  color: var(--green-700);
  margin-bottom: .9rem;
}
.prop-icon svg { width: 28px; height: 28px; }
.prop h3 { margin: 0 0 .4rem; color: var(--green-900); }
.prop p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Email signup ---------- */
.signup {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signup-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.signup h2 { margin-bottom: .5rem; }
.signup p { margin-bottom: 1.25rem; }
.signup form { display: flex; gap: .5rem; max-width: 460px; margin: 0 auto; }
.signup input[type=email] {
  flex: 1;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-family: var(--sans); font-size: .95rem;
  background: var(--cream);
  transition: border-color .15s, background .15s;
}
.signup input[type=email]:focus {
  outline: none; border-color: var(--green-700); background: #fff;
}
.signup-thanks {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--green-800); margin: 0;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 1rem;
}
@media (min-width: 880px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.product-detail .gallery img {
  border-radius: var(--radius);
  width: 100%;
  background: var(--green-50);
}
.product-detail h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: .25rem 0 1rem;
}
.product-detail .badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .25rem;
}
.price-large {
  font-size: 1.6rem;
  font-weight: 500;
  font-family: var(--serif);
  margin: .25rem 0 1.5rem;
  color: var(--ink);
}
.qty { display: flex; align-items: center; gap: .35rem; margin: 1rem 0 1.5rem; }
.qty button {
  width: 38px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper); cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.qty button:hover { border-color: var(--green-700); }
.qty input {
  width: 56px; height: 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem;
  background: var(--paper);
}
.qty input:focus { outline: none; border-color: var(--green-700); }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.cart-table th, .cart-table td {
  padding: 1rem .6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cart-table th {
  font-family: var(--sans); font-weight: 600;
  color: var(--muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  padding-top: 0; padding-bottom: .75rem;
}
.cart-table img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); background: var(--green-50); }
.cart-table .remove {
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  font-size: .85rem; font-family: var(--sans);
  text-decoration: underline; text-underline-offset: 3px;
}
.cart-table .remove:hover { color: var(--green-900); }
.cart-summary {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 420px; margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.cart-summary .total {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 1rem; margin-top: .5rem;
  color: var(--green-900);
}
.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.cart-empty p { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .92rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer h4 {
  color: #fff; margin: 0 0 .9rem;
  font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer p { color: rgba(255,255,255,.7); margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .25rem 0; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}

/* ---------- Misc ---------- */
.crumbs {
  font-size: .82rem;
  color: var(--muted);
  padding: 1.25rem 0 .5rem;
  font-family: var(--sans);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-700); }

.notice {
  background: var(--paper);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.5rem 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.bullets { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.bullets li {
  position: relative;
  padding: .35rem 0 .35rem 1.25rem;
  color: var(--ink-2);
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .9rem;
  width: 6px; height: 6px; background: var(--green-700);
  border-radius: 50%;
}

.info-table {
  width: 100%; max-width: 540px; border-collapse: collapse;
  margin: 1rem 0 2rem; font-size: .95rem;
}
.info-table th, .info-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.info-table th {
  font-family: var(--sans); font-weight: 600;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); padding-bottom: .5rem;
}

::selection { background: var(--green-700); color: #fff; }
