/* ============================================================
   Paddy Wack Snack Shack - site styles
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #fbf6ef;             /* warm cream */
  --bg-alt: #f4ead9;         /* slightly deeper cream */
  --surface: #ffffff;
  --surface-soft: #fdfaf4;

  /* Ink */
  --ink: #1f1d1a;
  --ink-soft: #6b6660;
  --ink-faint: #a09a92;

  /* Brand - all pulled from the logo */
  --brand: #1e3a8a;          /* doghouse blue */
  --brand-soft: #e8edf6;     /* tinted-cream blue */
  --brand-bright: #2a4ea8;   /* slightly brighter blue, for emphasis */
  --accent: var(--brand);    /* aliased to brand - single-color system */
  --accent-soft: var(--brand-soft);
  --warm: #8b5e3c;           /* wooden shelf brown (used sparingly) */
  --bone: #f3e7c8;           /* dog-bone cream from the logo */

  /* Lines & shadow */
  --line: #ece2cf;
  --line-soft: #f3ead8;
  --shadow-sm: 0 1px 2px rgba(31, 29, 26, 0.04), 0 1px 1px rgba(31, 29, 26, 0.03);
  --shadow:    0 4px 12px rgba(31, 29, 26, 0.06), 0 2px 4px rgba(31, 29, 26, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(31, 29, 26, 0.18), 0 8px 20px rgba(31, 29, 26, 0.06);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--accent); }

p { margin: 0 0 1em; color: var(--ink); }

img { max-width: 100%; display: block; }

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

/* ---------- Top announcement bar ---------- */
.announce {
  background: var(--brand);
  color: var(--surface);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  padding: 10px 16px;
  text-transform: uppercase;
}
.announce a { color: var(--surface); }
.announce a:hover { color: var(--bone); }

/* ---------- Header ---------- */
.site-header {
  background:
    radial-gradient(1200px 400px at 85% 0%, rgba(82, 122, 48, 0.10), transparent 60%),
    radial-gradient(900px 380px at 0% 100%, rgba(30, 58, 138, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 36px;
}
.brand .wordmark {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.05;
  margin: 0 0 14px;
}
.brand .wordmark .llc {
  color: var(--ink-faint);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}
.brand .tag {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}
.brand .tag::before {
  content: "";
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--brand);
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 2px;
}

.logo-block { text-align: center; }
.logo-block img {
  margin: 0 auto;
  max-height: 180px;
  filter: drop-shadow(0 6px 14px rgba(31, 29, 26, 0.08));
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.call-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.call-link:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.call-link .icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 0.95rem;
}
.call-link .label { color: var(--ink-soft); font-weight: 500; margin-right: 4px; }

.thanks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.thanks:hover { background: var(--brand); color: var(--surface); transform: translateY(-1px); }
.thanks::after { content: "→"; transition: transform 0.15s var(--ease); }
.thanks:hover::after { transform: translateX(3px); }

/* ---------- Nav (sticky, translucent) ---------- */
.nav-bar {
  background: rgba(251, 246, 239, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav-links {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--ink); background: var(--bg-alt); }

.nav-tools { display: flex; align-items: center; gap: 12px; }
.nav-search {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 14px;
  width: 220px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.nav-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg-alt); }
.nav-search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font: inherit; font-size: 0.9rem; color: var(--ink);
  padding: 4px 0;
}
.nav-search input::placeholder { color: var(--ink-faint); }
.nav-search button {
  background: var(--bg-alt); border: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-soft);
  transition: background 0.15s var(--ease);
}
.nav-search button:hover { background: var(--accent-soft); color: var(--accent); }

.cart-btn {
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  font: inherit; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.92rem;
  position: relative;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cart-btn:hover { background: var(--surface); border-color: var(--ink-soft); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--surface);
  min-width: 20px; height: 20px;
  border-radius: var(--radius-pill); padding: 0 6px;
  font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-count[hidden] { display: none; }

/* ---------- Hero band of dogs (home only) ---------- */
.dog-band {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.dog-band img { width: 100%; height: auto; display: block; }
.dog-band-placeholder {
  height: 340px;
  background:
    radial-gradient(60% 60% at 50% 50%, var(--accent-soft), transparent),
    repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 18px, var(--bg) 18px, var(--bg) 36px);
  display: grid; place-items: center;
  color: var(--ink-soft); font-style: italic;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 48px 0; }

.section-title {
  text-align: center;
  margin: 0 0 12px;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  opacity: 0.45;
  border-radius: 2px;
}
.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---------- Category split cards ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split .card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: grid;
  align-items: end;
  color: var(--surface);
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.split .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.split .card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg-alt) center/cover no-repeat;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}
.split .card:hover::before { transform: scale(1.04); }
.split .card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15, 14, 12, 0.7) 0%, rgba(15, 14, 12, 0.15) 55%, rgba(15, 14, 12, 0) 100%);
  z-index: -1;
}
.split .card.treats::before { background-image: url('../images/blueberry.png'); }
.split .card.collars::before { background-image: url('../images/shop-collar-covers.png'); }
.split .card-content {
  padding: 44px;
  max-width: 480px;
}
.split .card h2 { color: var(--surface); margin-bottom: 10px; }
.split .card p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface);
  border: 0;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { background: #000; color: var(--surface); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--brand); }
.btn.primary:hover { background: #15275e; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #3f5f24; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--surface); }
.btn.full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.product .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt) center/cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease);
}
.product:hover .photo { transform: scale(1.02); }
.product .photo.placeholder,
.product .photo:not([style*="url"]) {
  display: grid; place-items: center;
  color: var(--ink-faint);
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 50%),
    repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, var(--surface-soft) 12px, var(--surface-soft) 24px);
}
.product .info { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product h3 { margin: 0; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.product h3 a:hover { color: var(--accent); }
.product .muted { font-size: 0.88rem; }
.product .price { font-weight: 600; color: var(--ink); font-size: 1.05rem; font-feature-settings: "tnum"; }
.product .info .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; gap: 10px; }
.product .info .row .btn { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Product badge (Top Seller, New, etc.) ---------- */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(31, 29, 26, 0.18);
}
.product-badge::before {
  content: "★";
  font-size: 0.8rem;
  letter-spacing: 0;
  line-height: 1;
}
.product-badge--lg {
  top: 18px;
  left: 18px;
  font-size: 0.78rem;
  padding: 7px 14px;
}

/* ---------- Variant (size) toggle ---------- */
.variant-toggle {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 6px 0 0;
}
.variant-btn {
  flex: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.variant-btn .size { letter-spacing: 0; }
.variant-btn .vp {
  color: var(--ink-faint);
  font-weight: 500;
  font-feature-settings: "tnum";
  font-size: 0.74rem;
}
.variant-btn:hover { color: var(--ink); }
.variant-btn.selected {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 1px 3px rgba(31, 29, 26, 0.18);
}
.variant-btn.selected .vp { color: rgba(255, 255, 255, 0.7); }

.variant-single {
  font-size: 0.88rem;
  padding-top: 4px;
}

/* Detail page: larger, more prominent toggle */
.variant-label {
  margin: 18px 0 8px;
  font-size: 0.85rem;
}
.detail .variant-toggle {
  padding: 5px;
  margin-bottom: 0;
  max-width: 320px;
}
.detail .variant-btn {
  padding: 10px 14px;
  font-size: 0.92rem;
}
.detail .variant-btn .vp { font-size: 0.85rem; }

/* ---------- Product detail / modal ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt) center/cover no-repeat;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.detail .meta h1 { margin-top: 8px; }
.detail .meta .price { font-size: 1.7rem; font-weight: 600; margin: 14px 0 28px; font-feature-settings: "tnum"; }
.detail .qty {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.detail .qty button {
  width: 36px; height: 36px;
  border-radius: 50%; border: 0;
  background: transparent; cursor: pointer; font-size: 1.05rem;
  transition: background 0.15s var(--ease);
}
.detail .qty button:hover { background: var(--bg-alt); }
.detail .qty input {
  width: 40px; text-align: center;
  border: 0; background: transparent;
  padding: 6px; font: inherit; font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.detail .qty input::-webkit-outer-spin-button,
.detail .qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.ingredients {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 28px;
}
.ingredients h4 {
  margin: 0 0 12px;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
}
.ingredients ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.ingredients ul li { padding: 2px 0; }

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 14, 12, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 90;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--bg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-foot {
  border-bottom: 0; border-top: 1px solid var(--line-soft);
  flex-direction: column; gap: 14px; align-items: stretch;
  background: var(--surface-soft);
}
.drawer-head h3 { margin: 0; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; }
.drawer-close {
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.1rem; color: var(--ink-soft);
  width: 32px; height: 32px; border-radius: 50%;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.drawer-close:hover { background: var(--bg-alt); color: var(--ink); }
.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 4px 24px;
}
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .ph {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: var(--bg-alt) center/cover no-repeat;
}
.cart-line .name { font-weight: 600; }
.cart-line .small { color: var(--ink-soft); font-size: 0.85rem; }
.cart-line .qty-mini {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.cart-line .qty-mini button {
  width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; font-size: 0.85rem;
  transition: background 0.15s var(--ease);
}
.cart-line .qty-mini button:hover { background: var(--bg-alt); }
.cart-line .qty-mini span { min-width: 22px; text-align: center; font-size: 0.88rem; font-weight: 600; }
.cart-line .line-price { font-weight: 600; font-feature-settings: "tnum"; }
.cart-line .remove {
  background: transparent; border: 0; color: var(--ink-soft);
  font-size: 0.82rem; cursor: pointer; padding: 4px 0;
  margin-top: 4px;
  transition: color 0.15s var(--ease);
}
.cart-line .remove:hover { color: var(--ink); text-decoration: underline; }
.cart-empty { padding: 60px 24px; text-align: center; color: var(--ink-soft); }
.cart-empty p { margin-bottom: 18px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; font-feature-settings: "tnum"; }
.cart-note { font-size: 0.78rem; color: var(--ink-faint); text-align: center; margin: 0; }

/* ---------- Promo code ---------- */
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: var(--ink);
}
.coupon-row input:focus { outline: none; border-color: var(--ink-soft); }
.coupon-row .btn { white-space: nowrap; }
.coupon-msg { font-size: 0.82rem; margin: 0; }
.coupon-msg.ok { color: var(--ink-soft); }
.coupon-msg.err { color: #b42318; }
.coupon-msg button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-soft); text-decoration: underline; font: inherit;
}
.coupon-msg button:hover { color: var(--ink); }
.cart-discount {
  display: flex; justify-content: space-between;
  font-size: 0.95rem; color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.cart-grand { border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* Ensure hidden rows/forms stay hidden despite their display rules. */
[hidden] { display: none !important; }

/* ---------- Shipping details (checkout step) ---------- */
.drawer-body { min-height: 0; }
.drawer-foot { max-height: 100%; overflow-y: auto; }
.ship-back {
  align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-soft); font: inherit; font-size: 0.85rem;
  margin-bottom: 2px;
}
.ship-back:hover { color: var(--ink); text-decoration: underline; }
.ship-title {
  margin: 0 0 4px; font-family: 'Fraunces', serif;
  font-size: 1.05rem; font-weight: 600;
}
.ship-form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ship-form label { font-size: 0.8rem; color: var(--ink-soft); }
.ship-form label em { font-style: normal; color: var(--ink-faint); }
.ship-form input {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: var(--ink);
}
.ship-form input:focus { outline: none; border-color: var(--ink-soft); }
.ship-row { display: flex; gap: 8px; }
.ship-row .field { flex: 1; }
.ship-state { max-width: 74px; }
.ship-zip { max-width: 98px; }

/* ---------- Contact / About ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-grid form { display: grid; gap: 16px; }
.contact-grid label { display: grid; gap: 6px; }
.contact-grid label .muted { font-size: 0.85rem; font-weight: 500; }
.contact-grid input,
.contact-grid textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: 0;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.contact-grid input:focus,
.contact-grid textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--bg-alt);
}
.contact-grid textarea { min-height: 150px; resize: vertical; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { margin-top: 0; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.4rem; }
.info-card p { margin: 8px 0; color: var(--ink-soft); }
.info-card p strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  margin-top: 64px;
}
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 40px; }
.footer-address { font-style: normal; color: rgba(255, 255, 255, 0.6); line-height: 1.7; font-size: 0.92rem; }
.footer-address strong { color: var(--surface); display: inline-block; margin-bottom: 4px; }
.footer-address a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-address a:hover { color: var(--surface); text-decoration: underline; }
.footer h4 {
  color: var(--surface); margin: 0 0 16px;
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.02em;
  text-transform: none;
}
.footer p { color: rgba(255, 255, 255, 0.6); margin: 6px 0; font-size: 0.92rem; }
.footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.footer a:hover { color: var(--surface); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin: 8px 0; }
.footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px; padding-top: 22px;
  text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.4);
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr; text-align: center; padding: 32px 0 24px; gap: 24px; }
  .brand { display: flex; flex-direction: column; align-items: center; }
  .brand .tag::before { display: none; }
  .header-right { align-items: center; }
  .nav-search { width: 180px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer .container { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 0; order: 3; width: 100%; justify-content: center; }
  .nav-links a { padding: 6px 10px; font-size: 0.85rem; }
  .nav-search { flex: 1; width: auto; }
  section { padding: 48px 0; }
  .split .card-content { padding: 32px 28px; }
}
