/* okamuskoka storefront — mobile first, outdoor-living palette */
:root {
  --green: #2f5d3a;
  --green-dk: #21412a;
  --accent: #c9692e;      /* warm canoe-orange */
  --bg: #f7f5ef;          /* cream */
  --surface: #ffffff;
  --ink: #20251f;
  --muted: #6f7268;
  --line: #e3e0d6;
  --radius: 10px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }

/* ---- buttons ---- */
.btn {
  display: inline-block; border: 1px solid var(--green); background: var(--green);
  color: #fff; padding: .6rem 1rem; border-radius: var(--radius); font: inherit;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.btn:disabled { background: #b7bdb2; border-color: #b7bdb2; cursor: not-allowed; }
.btn--lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: rgba(47,93,58,.08); color: var(--green-dk); }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; }
.link-btn:hover { color: var(--accent); }

/* ---- header ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header__inner { display: flex; align-items: center; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; flex-wrap: wrap; }
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.brand--sm { font-size: 1.15rem; }
.search { display: flex; flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .75rem; font: inherit; font-size: 16px; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--green); color: #fff; padding: 0 .9rem; font-size: 1.1rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { font-weight: 600; }
.cart-link { position: relative; }
.cart-badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05rem .4rem; vertical-align: top; }

/* ---- messages ---- */
.messages { margin-top: 1rem; }
.message { padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: .5rem; background: #eef3ec; border: 1px solid var(--line); }
.message--success { background: #e7f1e8; border-color: #bcd8c0; }
.message--error { background: #f7e7e3; border-color: #e2b3a6; }

/* ---- hero ---- */
.hero { background: linear-gradient(150deg, var(--green) 0%, var(--green-dk) 100%); color: #fff; padding: 3rem 0; }
.hero__title { margin: 0; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.02em; }
.hero__tag { margin: .5rem 0 1.5rem; font-size: clamp(1rem, 3vw, 1.25rem); opacity: .92; }
.hero .btn--lg { background: var(--accent); border-color: var(--accent); }
.hero .btn--lg:hover { background: #b15c27; border-color: #b15c27; }

/* ---- sections ---- */
.section { padding: 2rem 1rem; }
.section__title { font-size: 1.4rem; margin: 0 0 1rem; }
.section__more { margin-top: 1.25rem; font-weight: 600; }
.empty { text-align: center; padding: 3rem 1rem; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: var(--ink); }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip--on { background: var(--green); color: #fff; border-color: var(--green); }
.chips--filter { margin-bottom: 1.5rem; }

/* ---- product grid + cards ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; color: var(--ink); }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card__img { position: relative; aspect-ratio: 1/1; background: #efeee8; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .85rem; }
.card__oos { position: absolute; top: .5rem; left: .5rem; background: rgba(32,37,31,.8); color: #fff; font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; }
.card__body { padding: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.card__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card__title { font-size: .95rem; margin: 0; font-weight: 600; line-height: 1.3; }
.card__price { font-weight: 700; color: var(--green-dk); margin-top: .25rem; }

/* ---- list ---- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; font-weight: 600; }

/* ---- detail ---- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.detail { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.detail__img, .detail__noimg { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); background: #efeee8; }
.detail__noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.detail__brand { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--muted); }
.detail__title { font-size: 1.6rem; margin: .25rem 0; }
.detail__price { font-size: 1.5rem; font-weight: 800; color: var(--green-dk); margin-bottom: 1rem; }
.detail__desc { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail__desc img { border-radius: 8px; margin: .5rem 0; }

/* buybox */
.buybox { display: flex; flex-direction: column; gap: .75rem; }
.buybox__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.buybox__opt { display: flex; flex-direction: column; gap: .1rem; margin-right: auto; }
.buybox__sku { font-size: .8rem; color: var(--muted); }
.buybox__price { font-weight: 700; }
.instock { color: var(--green); font-size: .85rem; }
.qty { width: 64px; padding: .45rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px; }

/* ---- cart ---- */
.cart__row { display: grid; grid-template-columns: 1fr; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart__item { display: flex; gap: .75rem; align-items: center; }
.cart__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart__name { font-weight: 600; }
.cart__qty { display: flex; gap: .5rem; align-items: center; }
.cart__line { font-weight: 700; }
.cart__foot { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cart__total { font-size: 1.2rem; }

/* ---- checkout ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.checkout__h { font-size: 1.1rem; margin: 1.5rem 0 .75rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.checkout-form .checkout__h:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
.form-grid .span2 { grid-column: 1 / -1; }
.input { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; background: var(--surface); }
.input:focus { outline: none; border-color: var(--green); }
select.input { background: var(--surface); }
.checkout-form .btn--lg { margin-top: 1.5rem; }
.checkout-form .errorlist { color: #b03; font-size: .8rem; margin: .2rem 0 0; padding-left: 1rem; }

.order-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; align-self: start; }
.order-summary--wide { max-width: 480px; }
.order-summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.order-summary__row:last-child { border-bottom: none; }
.order-summary__total { font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink); margin-top: .25rem; padding-top: .6rem; }

/* ---- footer ---- */
.site-footer { background: var(--green-dk); color: #dfe5da; margin-top: 3rem; }
.site-footer__inner { display: flex; flex-direction: column; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #aab6a4; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: #dfe5da; font-weight: 600; }
.footer-links a:hover { color: #fff; }

/* ---- responsive ---- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .cart__row { grid-template-columns: 2fr 1fr auto auto; align-items: center; }
  .checkout-layout { grid-template-columns: 1.6fr 1fr; }
}
