:root {
  --sf-orange: #f0a22e;
  --sf-orange-dark: #c77d0a;
  --sf-green: #1d5c3e;
  --sf-green-dark: #144630;
  --sf-ink: #33261d;
  --sf-cream: #fbf7f0;
  --sf-line: #e8dfd0;
}
html { scroll-behavior: smooth; }
body { background: var(--sf-cream); color: var(--sf-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, .display-font { font-family: Georgia, "Times New Roman", serif; color: var(--sf-green); }
a { color: var(--sf-green); }
a:hover { color: var(--sf-green-dark); }

.announcement { background: var(--sf-green); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .9rem; }
.site-nav { background: #fff; border-bottom: 1px solid var(--sf-line); }
.site-nav .navbar-brand img { height: 48px; width: auto; }
.site-nav .nav-link { color: var(--sf-ink); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--sf-green); }

.btn-sf { background: var(--sf-green); border-color: var(--sf-green); color: #fff; }
.btn-sf:hover, .btn-sf:focus { background: var(--sf-green-dark); border-color: var(--sf-green-dark); color: #fff; }
.btn-sf-accent { background: var(--sf-orange); border-color: var(--sf-orange); color: #2a1c05; font-weight: 600; }
.btn-sf-accent:hover, .btn-sf-accent:focus { background: var(--sf-orange-dark); border-color: var(--sf-orange-dark); color: #fff; }

/* hero: full-width photo with a dark wash so the text always reads */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #3b2a20 url("../img/hero-coffee-cookies.jpg") center / cover no-repeat;
  padding: clamp(4rem, 14vw, 9rem) 1rem;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,15,8,.55), rgba(25,15,8,.68)); }
.hero > * { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.6rem); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .lead { max-width: 36rem; margin: 0 auto 1.75rem; font-size: clamp(1.05rem, 2.4vw, 1.35rem); }

.band {
  position: relative; color: #fff; text-align: center;
  background: #3b2a20 url("../img/band-espresso.jpg") center / cover no-repeat;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(25,15,8,.62); }
.band > * { position: relative; }
.band h2 { color: #fff; }

.section-title { text-align: center; margin: 3rem 0 1.5rem; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--sf-orange); margin: .6rem auto 0; border-radius: 2px; }

.product-card { background: #fff; border: 1px solid var(--sf-line); border-radius: .75rem; overflow: hidden; height: 100%; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: 0 .5rem 1.25rem rgba(51,38,29,.12); transform: translateY(-2px); }
.product-card a.stretched-link { text-decoration: none; color: inherit; }
.product-thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: #efe6d6; }
.product-thumb.placeholder { display: flex; align-items: center; justify-content: center; color: #9a8b78; font-size: .9rem; }
.product-card .card-body { padding: 1rem 1.1rem 1.2rem; }
.product-card h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.product-card .desc { color: #6b5a4b; font-size: .92rem; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--sf-ink); }
.badge-soldout { background: #7a2e2e; }
.weight { color: #8a7a68; font-size: .85rem; margin-left: .35rem; font-weight: 400; white-space: nowrap; }

.detail-photo { width: 100%; border-radius: .75rem; border: 1px solid var(--sf-line); background: #efe6d6; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-table th { width: 8rem; color: #8a7a68; font-weight: 500; }

footer.site-footer { background: #2b1f17; color: #d9ccbb; margin-top: 4rem; padding: 2rem 0; font-size: .92rem; }
footer.site-footer a { color: #f0c47a; }

@media (max-width: 575.98px) {
  .product-card .card-body { padding: .7rem .75rem .85rem; }
  .product-card h3 { font-size: 1rem; }
  .product-card .desc { font-size: .85rem; -webkit-line-clamp: 2; }
  .price { font-size: 1rem; }
  .section-title { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .product-card:hover { transition: none; transform: none; }
}

/* cart */
.cart-badge { background: var(--sf-orange); color: #2a1c05; }
.cart-lines { margin: 0 0 1rem; padding: 0; }
.cart-line { display: flex; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--sf-line); }
.cart-line.unavailable { opacity: .75; }
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: .5rem; background: #efe6d6; flex: 0 0 auto; }
.cart-info { flex: 1 1 auto; min-width: 0; }
.cart-qty { width: 4.5rem; flex: 0 0 auto; }
.cart-total { width: 5rem; text-align: right; font-weight: 600; flex: 0 0 auto; }
.summary-box { background: #fff; border: 1px solid var(--sf-line); border-radius: .75rem; padding: 1.25rem; }
.free-ship-hint { color: var(--sf-green); font-weight: 500; }
@media (max-width: 575.98px) {
  .cart-line { flex-wrap: wrap; }
  .cart-info { flex-basis: calc(100% - 80px); }
  .cart-qty { margin-left: 76px; }
  .cart-total { flex: 1 1 auto; }
}
