:root {
  /* Warm linen base */
  --bg: #F6F3EC;
  --bg-alt: #EBE5D9;
  --ink: #2A2521;
  --ink-soft: #6B6154;
  --line: #DCD4C4;

  /* Brand — the coral is lifted straight from the logo, the wine anchors it */
  --coral: #E8938C;
  --coral-soft: #F6D2CD;
  --thread: #7C2F3E;
  --thread-soft: #B98C93;

  /* Supporting accents, used sparingly so the palette stays handmade, not loud */
  --gold: #D9A566;
  --sage: #93A98D;
  --plum: #6B3352;

  /* The signature gradient: logo coral resolving into the site's wine */
  --grad-thread: linear-gradient(120deg, var(--coral) 0%, #C2626A 50%, var(--thread) 100%);
  --grad-warm: linear-gradient(140deg, #F9EDE6 0%, #F6F3EC 45%, #EFF1E8 100%);

  --radius: 4px;
  --photo-fallback: radial-gradient(circle at 50% 45%, var(--thread-soft) 0, var(--thread-soft) 5px, transparent 6px);
}

* { box-sizing: border-box; }

/* The `hidden` attribute must always win. Any rule like `.foo { display: flex }` has
   the same specificity as the browser's own `[hidden] { display: none }`, and author
   styles beat the UA stylesheet — so without this, setting `hidden` in JS silently
   does nothing. That bug shipped three times here (cart badge, chat typing dots,
   review "load more"); this stops it happening a fourth. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.display, h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark.small { font-size: 18px; }

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a:hover { color: var(--thread); }

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-image: linear-gradient(to right, var(--thread) 60%, transparent 0%);
  background-size: 8px 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Hero */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--thread);
  text-transform: lowercase;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.lede {
  max-width: 460px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 16px;
}

.btn-primary {
  display: inline-block;
  background: var(--grad-thread);
  background-size: 200% 200%;
  color: #FFF6F3;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(124, 47, 62, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(124, 47, 62, 0.95);
}

.hero-image {
  margin: 48px 0 72px;
  height: 320px;
  background: var(--bg-alt);
  border-radius: 12px;
  background-image:
    radial-gradient(circle at 30% 40%, var(--thread-soft) 0, var(--thread-soft) 6px, transparent 7px),
    radial-gradient(circle at 55% 60%, var(--thread-soft) 0, var(--thread-soft) 6px, transparent 7px),
    radial-gradient(circle at 70% 30%, var(--thread) 0, var(--thread) 6px, transparent 7px);
  background-repeat: no-repeat;
}

/* Stitch divider (signature element) */
.stitch-divider {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.stitch-divider svg {
  width: 100%;
  height: 20px;
}

.stitch-divider line {
  stroke: var(--line);
  stroke-width: 1.5;
}

/* Collection */
.collection {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-photo {
  height: 150px;
  border-radius: 12px;
  background: var(--bg-alt);
  margin-bottom: 14px;
  background-image: var(--photo-fallback);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.btn-add-cart {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--thread);
  border: 1px solid var(--thread);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--thread);
  color: #F6EDEC;
}

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

.product-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  margin: 0;
}

/* Reviews */
.rating-summary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--thread);
  margin: -4px 0 8px;
}

.review-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
}

.review-toggle:hover { color: var(--thread); }

.review-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.review-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.review-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child { border-bottom: none; }

.review-item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.review-stars {
  color: var(--thread);
  font-size: 13px;
  letter-spacing: 1px;
}

.review-name {
  font-size: 13px;
  font-weight: 500;
}

.review-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}

.review-comment {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.review-load-more {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13px;
  padding: 8px;
  cursor: pointer;
  margin-bottom: 16px;
}

.review-load-more:hover { border-color: var(--thread); color: var(--thread); }

.review-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-form h4 {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  margin: 0;
}

.star-select {
  display: flex;
  gap: 4px;
}

.star-select button {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  padding: 0;
}

.star-select button.selected { color: var(--thread); }

.char-count {
  align-self: flex-end;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.review-form-error {
  color: var(--thread);
  font-size: 13px;
  margin: 0;
}

.review-form-success {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
}

/* Admin */
.admin-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.admin-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
  margin-top: 24px;
}

.admin-toolbar {
  margin: 24px 0;
}

.admin-filter {
  max-width: 200px;
}

.admin-empty {
  color: var(--ink-soft);
  font-size: 14px;
}

.admin-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-review-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 18px 20px;
}

.admin-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.admin-review-product {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--thread);
}

.admin-review-stars {
  color: var(--thread);
  font-size: 13px;
}

.admin-review-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.status-pending { background: var(--thread-soft); color: #F6EDEC; }
.status-approved { background: var(--thread); color: #F6EDEC; }
.status-rejected { background: var(--line); color: var(--ink-soft); }

.admin-review-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.admin-review-comment {
  font-size: 14px;
  margin: 0 0 12px;
}

.admin-review-actions {
  display: flex;
  gap: 10px;
}

.admin-review-actions .btn-add-cart {
  width: auto;
  padding: 8px 18px;
}

.admin-reject-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
}

.admin-reject-btn:hover { border-color: var(--thread); color: var(--thread); }

/* Story */
.story {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.story-photo {
  height: 260px;
  border-radius: 12px;
  background: var(--bg-alt);
  background-image: radial-gradient(circle at 40% 50%, var(--thread) 0, var(--thread) 5px, transparent 6px),
                     radial-gradient(circle at 60% 35%, var(--thread-soft) 0, var(--thread-soft) 5px, transparent 6px);
  background-repeat: no-repeat;
}

.story-text p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 16px;
}

/* Details strip */
.details-strip {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}

.detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--thread);
  margin: 0 0 8px;
}

.detail-copy {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 6px 0 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--thread); }

.social-icon {
  display: inline-flex;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.social-icon:hover { color: var(--thread); }

/* Cart toggle */
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}

.cart-toggle:hover { color: var(--thread); }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--thread);
  color: #F6EDEC;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(41, 42, 36, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-drawer-head h2 { font-size: 20px; }

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

.cart-close:hover { color: var(--thread); }

.cart-empty {
  color: var(--ink-soft);
  font-size: 14px;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

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

.cart-line-name {
  font-size: 14px;
  margin: 0 0 4px;
}

.cart-line-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
}

.qty-btn:hover { border-color: var(--thread); color: var(--thread); }

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

.cart-line-remove:hover { color: var(--thread); }

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 12px;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  margin-bottom: 14px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* Checkout page */
.checkout {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.checkout-subhead {
  font-size: 18px;
  margin-bottom: 20px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field input,
.field textarea,
.field select {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--thread);
}

.checkout-error {
  color: var(--thread);
  font-size: 14px;
  margin: 0;
}

.checkout-form .btn-primary {
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.checkout-form .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.order-summary {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 24px;
}

.summary-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.summary-items li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  padding-top: 12px;
}

/* Confirmation page */
.confirmation {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.order-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  margin: -12px 0 28px;
}

/* Legal / info pages (terms, refund policy, FAQ, contact) */
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-legal a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--thread); }

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: -12px 0 40px;
}

.legal-page section {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.legal-page p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

.legal-page p a {
  color: var(--thread);
}

.faq-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

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

.faq-item p a {
  color: var(--thread);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.contact-detail a,
.contact-detail p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.contact-detail a {
  color: var(--thread);
  text-decoration: none;
}

.contact-detail a:hover { text-decoration: underline; }

.contact-detail .detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--thread);
  margin: 0 0 6px;
}

.contact-detail p + a {
  display: inline-block;
  margin-top: 8px;
}

/* Chat widget */
.chat-widget-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-thread);
  background-size: 200% 200%;
  color: #FFF6F3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(124, 47, 62, 0.6);
  z-index: 60;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease, background-position 0.6s ease;
}

.chat-widget-toggle:hover {
  background-position: 100% 50%;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 12px 30px -6px rgba(124, 47, 62, 0.75);
}

.chat-widget-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: min(340px, calc(100vw - 48px));
  height: min(460px, calc(100vh - 140px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(41, 42, 36, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
}

.chat-widget-panel[hidden] {
  display: none;
}

.chat-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-size: 15px;
}

.chat-widget-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -8px -8px 0;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.chat-widget-close:hover { color: var(--thread); }

.chat-widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--thread);
  color: #F6EDEC;
  border-bottom-right-radius: 2px;
}

.chat-bubble-assistant {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

.chat-bubble-error a { color: var(--thread); }

.chat-widget-typing {
  display: flex;
  gap: 4px;
  padding: 0 16px 10px;
}

.chat-widget-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: chat-typing 1.2s infinite ease-in-out;
}

.chat-widget-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-widget-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-widget-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-widget-form input {
  flex: 1;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
}

.chat-widget-form input:focus {
  outline: none;
  border-color: var(--thread);
}

.chat-widget-send {
  background: var(--thread);
  color: #F6EDEC;
  border: none;
  border-radius: var(--radius);
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
}

.chat-widget-send:hover { background: #661F2C; }

.chat-widget-footer {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  padding: 8px 12px 12px;
  margin: 0;
}

.chat-widget-footer a { color: var(--thread); }

/* Responsive */
@media (max-width: 640px) {
  .site-header { padding: 20px; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .nav-burger span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  .hero h1 { font-size: 32px; }
  .hero-image { height: 220px; }

  .product-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .details-strip { grid-template-columns: 1fr; }

  .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .order-summary { order: -1; }

  .chat-widget-toggle { right: 16px; bottom: 16px; }
  .chat-widget-panel {
    right: 16px;
    bottom: 76px;
    width: calc(100vw - 32px);
    height: min(420px, calc(100vh - 120px));
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   Living surface — soft drifting colour behind everything.
   Fixed + blurred so it reads as light in the room rather than as shapes.
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 18%, rgba(232, 147, 140, 0.30), transparent 60%),
    radial-gradient(32vmax 32vmax at 88% 30%, rgba(217, 165, 102, 0.24), transparent 60%),
    radial-gradient(36vmax 36vmax at 72% 82%, rgba(147, 169, 141, 0.24), transparent 60%),
    radial-gradient(30vmax 30vmax at 22% 88%, rgba(107, 51, 82, 0.16), transparent 60%);
  filter: blur(28px);
  animation: drift 34s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

/* ==========================================================================
   Logo lockup
   ========================================================================== */

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-lockup img {
  width: 46px;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-lockup:hover img { transform: rotate(-6deg) scale(1.08); }

.brand-script {
  font-family: 'Parisienne', 'Fraunces', cursive;
  font-size: 30px;
  line-height: 1;
  padding-right: 2px;
  background: var(--grad-thread);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: -2px;
}

/* Hero-sized version of the same lockup */
.brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.brand-hero img {
  width: 190px;
  max-width: 62vw;
  height: auto;
  animation: logo-breathe 7s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-7px) scale(1.02); }
}

.brand-hero .brand-script { font-size: clamp(46px, 11vw, 74px); }
.brand-hero .brand-tag { font-size: 10px; letter-spacing: 0.42em; }

/* ==========================================================================
   Coming soon
   ========================================================================== */

.coming-soon {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 84px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--coral-soft);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(232, 147, 140, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 147, 140, 0.7); }
  70%  { box-shadow: 0 0 0 11px rgba(232, 147, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 147, 140, 0); }
}

.gradient-text {
  background: var(--grad-thread);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coming-soon h2 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.coming-soon .lede { margin-bottom: 34px; }

/* Call-to-action pair */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--grad-thread);
  background-size: 200% 200%;
  color: #FFF6F3;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(124, 47, 62, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}

.btn-gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(124, 47, 62, 0.95);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border: 1px solid var(--thread);
  border-radius: 999px;
  color: var(--thread);
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-ghost:hover {
  background: var(--thread);
  color: #FFF6F3;
  transform: translateY(-2px);
}

/* ==========================================================================
   Scroll reveal — set by js/reveal.js
   ========================================================================== */

/* Scoped to .js-reveal (set by reveal.js) so that if the script never runs, nothing is
   ever hidden — the page degrades to plain, fully visible content instead of blank. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  body::before, .brand-hero img, .status-dot { animation: none; }
}

/* Animated running stitch */
.stitch-divider svg line {
  stroke: var(--thread-soft);
  animation: stitch-run 22s linear infinite;
}

@keyframes stitch-run { to { stroke-dashoffset: -360; } }

/* ==========================================================================
   Section polish
   ========================================================================== */

.details-strip > div {
  transition: transform 0.35s ease;
}

.details-strip > div:hover { transform: translateY(-4px); }

.detail-label { color: var(--thread); }

@media (max-width: 640px) {
  .brand-hero img { width: 150px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn-gradient, .btn-ghost { justify-content: center; }
}
