:root {
  --green: #00362d;
  --green-700: #1d3c34;
  --green-600: #285045;
  --gold: #c8a45c;
  --gold-700: #a9863f;
  --cream: #f7f5f0;
  --paper: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e2d9;
  --radius: 10px;
  --maxw: 1200px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--green);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }

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

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

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 8px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--green);
  letter-spacing: 0.02em;
}
.brand-word {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-weight: 600;
}
.main-nav {
  grid-column: 1 / -1;
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover { color: var(--green); border-color: var(--gold); }
.main-nav a.active { color: var(--green); border-color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.icon-link { font-size: 0.86rem; color: var(--ink); cursor: pointer; }
.icon-link.bag {
  background: var(--green);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--green); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.8rem; background: var(--green); color: #fff; border: 0; }
.btn-small:hover { background: var(--green-600); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(0, 54, 45, 0.86), rgba(0, 54, 45, 0.55)),
    url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 20px 96px;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero-sub { max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.hero .btn-ghost:hover { background: #fff; color: var(--green); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.section-head { margin-bottom: 30px; }
.section-head h2 { margin-bottom: 6px; }

/* ---------- Category grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.category-card {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 54, 45, 0.05), rgba(0, 54, 45, 0.75));
}
.category-card > * { position: relative; z-index: 1; }
.category-label { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 600; }
.category-go { font-size: 0.85rem; opacity: 0.92; margin-top: 4px; }
.cat-womenswear { background-image: url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=800&q=80"); }
.cat-menswear { background-image: url("https://images.unsplash.com/photo-1490578474895-699cd4e2cf59?auto=format&fit=crop&w=800&q=80"); }
.cat-food { background-image: url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=800&q=80"); }
.cat-home { background-image: url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=800&q=80"); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: 4 / 5; background: #efece4; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-size: 1.2rem; margin: 0; }
.product-blurb { font-size: 0.86rem; color: var(--muted); margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-price { font-weight: 700; color: var(--green); font-size: 1.05rem; }

/* ---------- Page head ---------- */
.page-head { background: var(--green); color: #fff; }
.page-head-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; }
.page-head h1 { color: #fff; }
.page-head .eyebrow { color: var(--gold); }
.page-head .muted { color: rgba(255, 255, 255, 0.8); }

/* ---------- Shop filters ---------- */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--green); }
.chip-active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Assistant banner ---------- */
.assistant-banner {
  background: linear-gradient(120deg, var(--green), var(--green-600));
  color: #fff;
}
.assistant-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; text-align: center; }
.assistant-inner h2 { color: #fff; }
.assistant-inner p { max-width: 56ch; margin: 8px auto; color: rgba(255, 255, 255, 0.92); }
.assistant-hint { color: var(--gold) !important; font-size: 1.02rem; }

/* ---------- Prose / About ---------- */
.prose { max-width: 820px; }
.prose p { margin: 0 0 1.1em; font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 0 8px;
}
.value-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value-card h3 { font-size: 1.3rem; }
.value-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card.highlight { border-color: var(--gold); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card p { margin: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #fff; margin-top: 40px; }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.footer-grid h4 {
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid a { display: block; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid .muted { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.newsletter { display: flex; gap: 8px; margin-bottom: 8px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- CX Agent Studio chat widget: bottom-right, fully on-screen ---------- */
/* Pin the chat panel to the bottom-right corner with an explicit size that is
   always smaller than the viewport, so the whole panel (title bar through the
   send button) stays visible and nothing is clipped. The matching custom
   properties size the panel inside the widget's shadow DOM to the same box. */
chat-messenger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: min(400px, calc(100vw - 48px));
  height: min(640px, calc(100vh - 48px));
  --chat-messenger-internal-chat-window-width: min(400px, calc(100vw - 48px));
  --chat-messenger-internal-chat-window-height: min(640px, calc(100vh - 48px));
}
@media (max-width: 560px) {
  chat-messenger {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    --chat-messenger-internal-chat-window-width: calc(100vw - 24px);
    --chat-messenger-internal-chat-window-height: calc(100vh - 24px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    order: 4;
    flex-direction: column;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand-word { display: none; }
}
