@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Great+Vibes&family=Poppins:wght@400;500;600&display=swap');

:root {
  --color-off-white: #faf7f2;
  --color-beige: #d8c9b8;
  --color-sage: #a8b29a;
  --color-terracotta: #b77457;
  --color-brown: #5c4638;
  --color-white: #ffffff;
  --color-sage-dark: #8f9a80;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
  --shadow-soft: 0 12px 40px rgba(92, 70, 56, 0.08);
  --radius: 2px;
  --header-height: 72px;
  --announcement-height: 40px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 178, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(183, 116, 87, 0.1), transparent 50%),
    var(--color-off-white);
  color: var(--color-brown);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Announcement */
.announcement {
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brown);
  color: var(--color-off-white);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 70, 56, 0.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}
.nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 0.35rem; justify-self: end; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none; background: transparent; color: var(--color-brown); border-radius: 50%;
}
.icon-btn:hover { background: rgba(216, 201, 184, 0.35); }
.badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--color-terracotta); color: #fff;
  font-size: 0.65rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; padding: 10px;
}
.menu-btn span { display: block; height: 1.5px; background: var(--color-brown); }
.search-panel {
  display: none; border-top: 1px solid rgba(92,70,56,0.08); padding: 0.75rem 0 1rem;
}
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 0.5rem; max-width: 480px; margin: 0 auto; }
.search-panel input {
  flex: 1; border: 1px solid rgba(92,70,56,0.2); background: #fff;
  padding: 0.7rem 1rem; color: var(--color-brown);
}
.search-panel button {
  border: none; background: var(--color-terracotta); color: #fff;
  padding: 0 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem;
}
.nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(92,70,56,0.35); z-index: 30;
}
.nav-overlay.is-open { display: block; }

@media (max-width: 899px) {
  .nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 0; left: 0; bottom: 0; width: min(80vw, 300px);
    background: var(--color-off-white); padding: 5rem 1.5rem 2rem;
    transform: translateX(-105%); transition: transform var(--transition); z-index: 35;
  }
  .nav.is-open { transform: translateX(0); }
  .header-inner { grid-template-columns: 40px 1fr auto; }
  .logo { justify-self: center; }
  .logo img { height: 44px; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
}

/* Hero */
.hero-grid {
  display: grid; gap: 0; min-height: min(78vh, 720px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 3rem 0 2.5rem; animation: fadeUp 0.7s ease both;
}
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-sage-dark); font-weight: 500;
}
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 14ch; }
.hero-text { max-width: 38ch; opacity: 0.8; line-height: 1.7; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.9rem 1.75rem;
  background: var(--color-terracotta); color: #fff;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: none; transition: background var(--transition);
}
.btn-primary:hover { background: #a4654a; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8;
}
.hero-media {
  position: relative; min-height: 360px;
  animation: fadeIn 0.9s ease both;
  display: flex; align-items: center; justify-content: center;
}
.hero-media img { width: min(55%, 280px); opacity: 0.92; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; }
  .hero-copy { padding-right: 2rem; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; padding: 2rem 0 1rem;
}
.cat-card {
  text-align: center; padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(92,70,56,0.12);
  transition: color var(--transition);
}
.cat-card:hover { color: var(--color-terracotta); }
.cat-card span {
  display: block; font-family: var(--font-serif); font-size: 1.25rem; margin-top: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}
.product-card { display: flex; flex-direction: column; gap: 0.85rem; animation: fadeUp 0.6s ease both; }
.product-card-media {
  aspect-ratio: 4/5; background: linear-gradient(160deg, #e8dfd3, #d8c9b8);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card-media img { width: 55%; opacity: 0.85; }
.product-card h3 { font-size: 1.15rem; }
.product-card .price { font-size: 0.9rem; color: var(--color-terracotta); font-weight: 500; }
.product-card .meta { font-size: 0.8rem; opacity: 0.65; }

.values {
  display: grid; gap: 1.5rem; padding: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.value-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value-item p { font-size: 0.9rem; opacity: 0.75; }

.cta-band {
  background: linear-gradient(120deg, rgba(168,178,154,0.35), rgba(216,201,184,0.45));
  padding: 4rem 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.8; margin-bottom: 1.5rem; }

/* Shop / PDP / Cart */
.page-hero { padding: 2.5rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.4rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  padding: 0.45rem 0.9rem; border: 1px solid rgba(92,70,56,0.2);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.chip.is-active { background: var(--color-brown); color: var(--color-off-white); border-color: var(--color-brown); }

.pdp {
  display: grid; gap: 2rem; padding: 2rem 0 3rem;
}
.pdp-media {
  aspect-ratio: 1; background: linear-gradient(160deg, #e8dfd3, #d8c9b8);
  display: flex; align-items: center; justify-content: center;
}
.pdp-media img { width: 50%; }
.pdp-info { display: flex; flex-direction: column; gap: 1rem; }
.pdp-info .price { font-size: 1.35rem; color: var(--color-terracotta); font-family: var(--font-serif); }
.qty-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.qty-row input {
  width: 80px; padding: 0.7rem; border: 1px solid rgba(92,70,56,0.25); background: #fff;
}
@media (min-width: 800px) {
  .pdp { grid-template-columns: 1fr 1fr; align-items: start; }
}

.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th, .cart-table td {
  text-align: left; padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(92,70,56,0.12);
}
.cart-total { font-family: var(--font-serif); font-size: 1.4rem; margin: 1rem 0 1.5rem; }
.flash {
  padding: 0.85rem 1rem; margin: 1rem 0;
  background: rgba(168,178,154,0.25); border-left: 3px solid var(--color-sage-dark);
}
.flash-error { background: rgba(183,116,87,0.15); border-left-color: var(--color-terracotta); }

.static-page { padding: 2.5rem 0 4rem; max-width: 680px; }
.static-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.static-page p { margin-bottom: 1rem; opacity: 0.85; line-height: 1.75; }

/* Footer */
.footer-banner {
  background: var(--color-sage);
  color: var(--color-brown);
  text-align: center;
  padding: 2.5rem 1rem;
}
.footer-banner .script {
  font-family: var(--font-script); font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.footer {
  background: var(--color-brown); color: rgba(250,247,242,0.85); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 2rem;
}
.footer h4 {
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.85rem; color: #fff;
}
.footer a { opacity: 0.8; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
.footer a:hover { opacity: 1; }
.footer .logo,
.footer .logo:hover { opacity: 1; }
.footer-copy {
  border-top: 1px solid rgba(250,247,242,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
}
.footer-copy p { margin: 0; }
.footer-credit { margin-top: 0.35rem; }
.footer-credit a {
  display: inline;
  margin: 0;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { opacity: 0.85; }
.footer .logo-vertical {
  display: inline-flex;
}
.footer .logo-vertical img {
  width: auto;
  height: 168px;
}
