/* =========================================================
   George3295 — shared styles (Home + Shop)
   Warm, friendly, locally owned. Edit the tokens below to
   re-theme the whole site.
   ========================================================= */

:root {
  /* Green / yellow / black theme (matches the George's Odds & Ends logo).
     Token names kept from the old theme so the whole site re-skins from here. */
  --cream:      #f6f8f1;   /* page background — light, faintly green-neutral */
  --card:       #ffffff;   /* card / surface */
  --ink:        #191c18;   /* near-black text & headings (the logo's outline black) */
  --ink-soft:   #566056;   /* secondary text */
  --terracotta: #34a02c;   /* PRIMARY green (buttons, highlights) */
  --terracotta-dark: #237c1d; /* darker green (hover, accents, active) */
  --olive:      #3fa235;   /* green band (trust strip) */
  --gold:       #f5c531;   /* YELLOW accent (badges, gradients) */
  --line:       #e4e8dd;   /* borders */

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 10px 30px rgba(58, 47, 42, 0.08);
  --shadow-lg:  0 20px 50px rgba(58, 47, 42, 0.14);
  --maxw:       1440px;

  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8rem; color: var(--terracotta-dark); margin-bottom: .6rem; }
.hl { color: var(--terracotta); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 800; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 18px rgba(224,122,95,.35); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--terracotta); color: #fff; font-family: var(--font-head); font-size: 1.3rem; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; }
.nav { display: flex; gap: 1.6rem; font-weight: 700; align-items: center; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--terracotta-dark); }
.nav a.active { color: var(--terracotta-dark); }
.nav .btn { padding: .5rem 1.1rem; }
/* keep the primary nav button's label white (nav link color would otherwise win) */
.nav a.btn-primary,
.nav a.btn-primary.active,
.nav a.btn-primary:hover { color: #fff; }

/* ---------------- Hero (home) ---------------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-text .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge { display: grid; place-items: center; }
.badge-circle { width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--gold), var(--terracotta)); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg); border: 6px solid #fff; transform: rotate(-6deg); }
.badge-top { font-weight: 700; letter-spacing: .2em; font-size: .8rem; }
.badge-year { font-family: var(--font-head); font-size: 3rem; line-height: 1; }
.badge-bottom { font-weight: 800; letter-spacing: .1em; font-size: .85rem; }

/* ---------------- Trust strip ---------------- */
.trust { background: var(--olive); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 24px; font-weight: 700; }
.trust-item { display: inline-flex; align-items: center; gap: .5rem; }
.trust-item span { font-size: 1.2rem; }

/* ---------------- Generic section head ---------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------------- Feature cards (home) ---------------- */
.features { padding: clamp(3rem, 6vw, 5rem) 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.4rem; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; }
.feature-card h3 { margin: .6rem 0 .3rem; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ---------------- About (home) ---------------- */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(3rem,6vw,5rem) 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-text .signature { font-family: var(--font-head); font-style: italic; color: var(--terracotta-dark); font-size: 1.2rem; }
.photo-placeholder { aspect-ratio: 4/3; border: 2px dashed var(--line); border-radius: var(--radius); display: grid; place-content: center; text-align: center; color: var(--ink-soft); background: var(--cream); }
.photo-placeholder span { font-size: 2.5rem; }

/* ---------------- CTA band (home) ---------------- */
.cta-band { padding: clamp(3rem,6vw,5rem) 0; text-align: center; }
.cta-band .btn { margin-top: .5rem; }

/* ---------------- Shop page ---------------- */
.page-hero { padding: clamp(2.5rem,5vw,4rem) 0 1rem; text-align: center; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 52ch; margin: 0 auto; }
.shop { padding: 2rem 0 clamp(3rem,6vw,5rem); }

/* ---- search + sort controls ---- */
.shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.8rem; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box .search-ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: .7; pointer-events: none; }
.search-box input {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .75rem 1rem .75rem 2.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.search-box input:focus { outline: 2px solid var(--terracotta); border-color: transparent; }
.sort-box { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink-soft); }
.sort-box select {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink);
  padding: .7rem 2.2rem .7rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f625b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.sort-box select:focus { outline: 2px solid var(--terracotta); border-color: transparent; }
.result-count { flex-basis: 100%; color: var(--ink-soft); font-size: .9rem; }
.linklike { background: none; border: none; color: var(--terracotta-dark); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }

@media (max-width: 560px) {
  .sort-box { width: 100%; justify-content: space-between; }
  .sort-box select { flex: 1; }
}

/* ---------------- Cart button + drawer ---------------- */
.cart-btn { position: relative; background: transparent; border: none; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: .3rem .4rem; display: inline-flex; align-items: center; }
.cart-btn--float { position: fixed; bottom: 20px; right: 20px; background: var(--terracotta); color: #fff; border-radius: 50%; width: 56px; height: 56px; justify-content: center; box-shadow: var(--shadow-lg); z-index: 60; }
.cart-btn.cart-bump { animation: cartBump .35s ease; }
@keyframes cartBump { 0%, 100% { transform: none; } 35% { transform: scale(1.28); } }
.cart-badge { position: absolute; top: -4px; right: -6px; background: var(--terracotta); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.cart-badge[hidden] { display: none; }

.cart-overlay { position: fixed; inset: 0; background: rgba(25,28,24,.5); z-index: 100; display: flex; justify-content: flex-end; }
.cart-overlay[hidden] { display: none; }
.cart-panel { width: min(410px, 100%); height: 100%; background: var(--cream); display: flex; flex-direction: column; box-shadow: -12px 0 44px rgba(0,0,0,.22); animation: cartIn .2s ease; }
@keyframes cartIn { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); background: #fff; }
.cart-head h2 { margin: 0; font-size: 1.4rem; }
.cart-close { background: none; border: none; font-size: 1.15rem; cursor: pointer; color: var(--ink-soft); padding: .3rem; }
.cart-items { flex: 1; overflow-y: auto; padding: .8rem 1.4rem; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 2.5rem 0; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto auto; gap: .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-noimg { font-size: 1.4rem; }
.ci-name { font-size: .85rem; font-weight: 700; line-height: 1.25; }
.ci-price { font-size: .85rem; color: var(--ink-soft); font-family: var(--font-head); }
.ci-qty { display: inline-flex; align-items: center; gap: .45rem; }
.ci-qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 800; line-height: 1; }
.ci-qty span { min-width: 1.1em; text-align: center; font-weight: 700; }
.ci-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: .9rem; }
.ci-remove:hover { color: #c0483b; }
.cart-foot { padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); background: #fff; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; font-size: 1.05rem; }
.cart-sub-val { font-family: var(--font-head); font-size: 1.4rem; }
.cart-checkout { width: 100%; }
.cart-note { text-align: center; color: var(--ink-soft); font-size: .76rem; margin: .7rem 0 0; }
.cart-error { color: #c0483b; font-weight: 700; font-size: .85rem; text-align: center; margin: .2rem 0 0; }

/* ---------------- Pickup card (success page) ---------------- */
.pickup-card { max-width: 480px; margin: 2rem auto 0; background: #fff; border: 2px solid var(--olive); border-radius: var(--radius); padding: 1.5rem 1.8rem; text-align: left; box-shadow: var(--shadow); }
.pickup-card h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.pickup-card p { margin: 0 0 .7rem; }
.pickup-addr { font-size: 1.05rem; }
.pickup-hours { color: var(--ink-soft); margin-bottom: 0; }

/* Fluid grid: adds columns as the screen widens (4 on a ~1080px window,
   5 around 1400px, 6+ on very wide/4K displays) so it fills the screen. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.6rem; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--gold) 0%, var(--terracotta) 100%); display: grid; place-items: center; color: #fff; }
.feat-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: var(--ink); color: #ffd98a; font-weight: 800; font-size: .75rem; letter-spacing: .03em; padding: .3rem .6rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image .img-fallback { text-align: center; padding: 1rem; font-weight: 700; opacity: .9; }
.product-image .img-fallback span { font-size: 2rem; display: block; margin-bottom: .3rem; }
.product-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 .3rem; }
.product-desc { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.product-price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.buy-btn { padding: .6rem 1.1rem; font-size: .95rem; }
.buy-btn.soon { background: var(--line); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }

/* loading / empty states */
.state { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }
.state .spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--terracotta); border-radius: 50%; margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Contact (home) ---------------- */
.contact { padding: clamp(3rem,6vw,5rem) 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.4rem; max-width: 820px; margin: 0 auto; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); transition: transform .15s ease; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--terracotta); }
.contact-icon { font-size: 1.8rem; }
.contact-detail { color: var(--ink-soft); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #f5ece2; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.site-footer .brand-name { color: #fff; }
.footer-note { color: #b9a99c; font-size: .85rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-badge { order: -1; }
  .badge-circle { width: 160px; height: 160px; }
  .about-inner { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
  .nav .nav-link { display: none; }  /* keep only the Shop button on small screens */
  .brand-logo { height: 46px; }
}
