/* ===========================================================
   Hudson Nookery — kitchen gadgets storefront
   Placeholder brand name — find & replace "Hudson Nookery" /
   "Hudson Nookery" across all HTML files to rename.
   =========================================================== */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe0;
  --ink: #2b2b28;
  --ink-soft: #5c574d;
  --accent: #c97c5d;
  --accent-dark: #a85f43;
  --sage: #7a8b6f;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0 0 .5em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 12px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: .02em;
}

.logo span { color: var(--accent); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  transition: color .15s;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--accent-dark); }

.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  padding: 100px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn.outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn.outline:hover { background: var(--ink); color: var(--bg); }

.btn.small { padding: 9px 20px; font-size: 12px; }

/* ---------- Section headings ---------- */
.section {
  padding: 80px 24px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head p { color: var(--ink-soft); }

.section.alt { background: var(--bg-alt); }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: 0 12px 28px rgba(43,43,40,.08); transform: translateY(-3px); }

.card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
  overflow: hidden;
}

.card .thumb svg { width: 100%; height: 100%; stroke: var(--ink); }

.card .thumb.photo {
  padding: 0;
}

.card .thumb.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero.has-photo {
  position: relative;
  background: none;
  color: var(--white);
}

.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,43,40,.55), rgba(43,43,40,.35));
  z-index: 1;
}

.hero.has-photo img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero.has-photo .hero-content {
  position: relative;
  z-index: 2;
}

.hero.has-photo h1,
.hero.has-photo p { color: var(--white); }

.card-body { padding: 18px 18px 22px; }

.card-body .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sage);
  margin-bottom: 4px;
  display: block;
}

.card-body h3 { font-size: 17px; margin-bottom: 6px; }

.price { font-weight: 600; color: var(--ink); }
.price .was { color: #a39c8d; text-decoration: line-through; font-weight: 400; margin-right: 8px; font-size: 14px; }

/* ---------- Collections ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 980px) { .collections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .collections { grid-template-columns: 1fr; } }

.collection-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: var(--white);
}

.collection-card .bg {
  position: absolute; inset: 0;
  z-index: 0;
}

.collection-card .label {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

/* ---------- About / story split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split .art {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split .art svg { width: 45%; stroke: var(--sage); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 70px 24px;
}

.newsletter h2 { color: var(--bg); }
.newsletter p { color: #cfc9bc; margin-bottom: 28px; }

.news-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 10px;
}

.news-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid #55524a;
  background: transparent;
  color: var(--bg);
  font-size: 14px;
}

.news-form input::placeholder { color: #a39c8d; }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 60px 24px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto 40px;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--accent-dark); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.payment-icons {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.payment-icons span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}

.policy-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.policy-links a { color: var(--ink-soft); }
.policy-links a:hover { color: var(--accent-dark); }

/* ---------- Misc ---------- */
.badge-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 50px;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-row div { display: flex; align-items: center; gap: 8px; }

.page-hero {
  padding: 70px 24px 40px;
  text-align: center;
  background: var(--bg-alt);
}

.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 12px auto 0; }

/* ---------- Cart ---------- */
.card-body .add-to-cart {
  width: 100%;
  margin-top: 14px;
}

.cart-toggle-btn {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,43,40,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 90;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--bg);
  z-index: 91;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(0,0,0,.12);
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h3 { margin: 0; }

.cart-panel-head button {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-panel-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-name { font-size: 14px; margin-bottom: 2px; }
.cart-item-price { font-size: 12px; color: var(--ink-soft); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
}
