/* ── Brand colours ── */
:root {
  --lavender: #EAE6F8;
  --green:    #3A9A5C;
  --coral:    #F07860;
  --text:     #1a1a1a;
  --muted:    #555;
  --border:   #ddd;
}

/* ── Layout ── */
body { display: flex; flex-direction: column; min-height: 100vh; background: #fff; color: var(--text); }
main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }
footer { text-align: center; padding: 1.5rem; font-size: 0.85rem; color: var(--muted); background: var(--lavender); }

/* ── Header / Nav ── */
header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: var(--lavender); }
.logo { height: 56px; }
nav a { margin-left: 1.5rem; font-weight: 600; color: var(--green); }
nav a:hover { text-decoration: underline; }

/* ── Button ── */
.btn { display: inline-block; padding: 0.75rem 1.5rem; background: var(--green); color: #fff; border: none; border-radius: 24px; font-size: 1rem; font-weight: 600; }
.btn:hover { background: #2e7d4a; }

/* ── Hero ── */
.hero { position: relative; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 2rem; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-overlay { text-align: center; padding: 3rem 2rem; background: rgba(0,0,0,0.38); border-radius: 12px; width: 100%; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.product-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .card-body { padding: 1rem; }
.product-card h3 { margin-bottom: 0.25rem; color: var(--green); }
.product-card .variation { font-size: 0.85rem; color: var(--coral); margin-bottom: 0.15rem; }
.product-card .price { color: var(--muted); margin-bottom: 0.75rem; }

/* ── Product Detail ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-detail img { border-radius: 12px; }
.product-info h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--green); }
.product-info .price { font-size: 1.25rem; color: var(--muted); margin-bottom: 1rem; }
.product-info p { margin-bottom: 1.5rem; }

/* ── Cart ── */
.cart-summary { margin-top: 2rem; text-align: right; }
.cart-summary p { font-size: 1.2rem; margin-bottom: 1rem; }
.cart-item { display: flex; gap: 1rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }

/* ── Checkout ── */
.checkout form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 600px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
legend { font-weight: 600; padding: 0 0.5rem; color: var(--green); }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
input, textarea { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }

/* ── Content pages (about, contact) ── */
.content-page h1 { margin-bottom: 1.5rem; color: var(--green); }
#contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; }

/* ── Featured section ── */
.featured h2 { font-size: 1.5rem; color: var(--green); }

/* ── Headings ── */
h1, h2, h3 { line-height: 1.2; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .product-detail { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: 1rem; }
  nav a:first-child { margin-left: 0; }
}
