/* ============================================
   Wild Things Co. — Shared Design System
   ============================================ */

:root {
  --color-bg: #EAE2D0;
  --color-ink: #2B2118;
  --color-cream: #F5F0E4;
  --color-accent: #6E7B5C;
  --color-accent-dark: #3F4A34;
  --color-tan: #A8713F;
  --color-brass: #AB8752;
  --color-placeholder-bg: #DED4BC;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

/* ---------- Layout helpers ---------- */
.wtc-pad { padding-left: 64px; padding-right: 64px; }
.wtc-container { max-width: 720px; }

/* ---------- Nav ---------- */
.wtc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid rgba(43,33,24,0.15);
}
.wtc-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.wtc-logo-img { height: 48px; width: auto; display: block; }
.wtc-nav-right { display: flex; align-items: center; gap: 36px; }
.wtc-nav-links { display: flex; gap: 36px; font-size: 15px; }
.wtc-nav-links a { color: inherit; }

.wtc-cart-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(43,33,24,0.3);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  cursor: pointer;
}

.wtc-breadcrumb {
  padding: 20px 64px 0 64px;
  font-size: 13px;
  color: rgba(43,33,24,0.55);
}
.wtc-breadcrumb a { color: inherit; }

/* ---------- Footer ---------- */
.wtc-footer {
  padding: 48px 64px;
  border-top: 1px solid rgba(43,33,24,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(43,33,24,0.6);
  flex-wrap: wrap;
  gap: 16px;
}
.wtc-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.wtc-footer-links a { color: inherit; }

/* ---------- Hero (catalogue) ---------- */
.wtc-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--color-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wtc-hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(43,33,24,0.35);
  font-size: 14px;
  border: 1px dashed rgba(43,33,24,0.25);
  margin: 16px;
}
.wtc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,33,24,0.02) 40%, rgba(43,33,24,0.55) 100%);
}
.wtc-hero-text {
  position: absolute;
  left: 64px;
  bottom: 56px;
  max-width: 560px;
}
.wtc-hero-text h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.05;
  color: var(--color-cream);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.wtc-hero-text p {
  font-size: 17px;
  color: var(--color-cream);
  margin: 0;
  opacity: 0.92;
}

/* ---------- Collection intro ---------- */
.wtc-intro {
  padding: 96px 64px 48px 64px;
  max-width: 720px;
}
.wtc-intro h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.wtc-intro p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: rgba(43,33,24,0.75);
}
.wtc-rating {
  font-size: 13px;
  color: rgba(43,33,24,0.6);
}
.wtc-rating .stars { color: var(--color-tan); letter-spacing: 1px; }

/* ---------- Catalogue entries ---------- */
.wtc-collection { padding: 0 64px 96px 64px; }
.wtc-entry {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 2px solid #FFFFFF;
}
.wtc-entry.reverse { flex-direction: row-reverse; }
.wtc-entry-gallery {
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.wtc-entry-photo {
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--color-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(43,33,24,0.4);
  font-size: 13px;
  text-align: center;
  border: 1px dashed rgba(43,33,24,0.25);
  padding: 16px;
}
.wtc-entry-photo img { width: 100%; height: 100%; object-fit: cover; }
.wtc-entry-body { flex-grow: 1; min-width: 280px; }
.wtc-entry-body h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 12px 0;
}
.wtc-entry-body p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(43,33,24,0.75);
  margin: 0 0 20px 0;
  max-width: 440px;
}
.wtc-entry-specs { font-size: 13px; color: rgba(43,33,24,0.55); margin-bottom: 24px; }
.wtc-entry-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wtc-entry-price { font-family: var(--font-display); font-size: 22px; }
.wtc-btn {
  font-size: 14px;
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-cream);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-body);
}
.wtc-btn:hover { background: var(--color-accent-dark); }

/* ---------- Newsletter banner ---------- */
.wtc-newsletter {
  padding: 64px;
  background: var(--color-ink);
  text-align: center;
}
.wtc-newsletter h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-cream);
  margin: 0 0 12px 0;
}
.wtc-newsletter p {
  font-size: 15px;
  color: rgba(245,240,228,0.75);
  margin: 0 0 28px 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.wtc-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.wtc-newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(245,240,228,0.3);
  background: transparent;
  color: var(--color-cream);
  font-size: 14px;
  font-family: var(--font-body);
}
.wtc-newsletter-form input::placeholder { color: rgba(245,240,228,0.5); }
.wtc-newsletter-form button {
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-cream);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.wtc-newsletter-success { font-size: 15px; color: var(--color-cream); }

/* ---------- Product detail page ---------- */
.wtc-product-layout {
  display: flex;
  gap: 64px;
  padding: 32px 64px 96px 64px;
  align-items: flex-start;
}
.wtc-gallery-col { width: 560px; flex-shrink: 0; position: relative; }
.wtc-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 560px;
  height: 560px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43,33,24,0.3) transparent;
}
.wtc-gallery::-webkit-scrollbar { height: 6px; }
.wtc-gallery::-webkit-scrollbar-thumb { background: rgba(43,33,24,0.3); }
.wtc-gallery-slide {
  width: 560px;
  height: 560px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--color-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(43,33,24,0.4);
  font-size: 13px;
  text-align: center;
  border: 1px dashed rgba(43,33,24,0.25);
  padding: 16px;
}
.wtc-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.wtc-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245,240,228,0.9);
  border: none;
  font-size: 18px;
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43,33,24,0.2);
}
.wtc-gallery-arrow.prev { left: 16px; }
.wtc-gallery-arrow.next { right: 16px; }

.wtc-product-info { flex-grow: 1; min-width: 320px; max-width: 560px; }
.wtc-product-info h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  margin: 0 0 8px 0;
}
.wtc-product-price { font-family: var(--font-display); font-size: 24px; margin: 0 0 20px 0; }
.wtc-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 6px 12px;
  margin-bottom: 24px;
}
.wtc-product-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(43,33,24,0.8);
  margin: 0 0 28px 0;
}
.wtc-variation-note {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(43,33,24,0.55);
  font-style: italic;
  margin: 0 0 28px 0;
}

.wtc-option-group { margin-bottom: 32px; }
.wtc-option-label { font-size: 13px; color: rgba(43,33,24,0.6); margin-bottom: 10px; }

.wtc-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wtc-swatch-wrap { position: relative; display: inline-block; }
.wtc-swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.wtc-swatch.selected { box-shadow: 0 0 0 2px var(--color-cream), 0 0 0 4px var(--color-accent); }
.wtc-swatch:not(.selected) { box-shadow: 0 0 0 1px rgba(43,33,24,0.2); }
.wtc-swatch-preview {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  width: 120px;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(43,33,24,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  border: 2px solid var(--color-cream);
  background-size: cover;
  background-position: center;
}
.wtc-swatch-wrap:hover .wtc-swatch-preview,
.wtc-swatch-wrap:active .wtc-swatch-preview { opacity: 1; transform: translateX(-50%) scale(1); }
.wtc-swatch-label {
  position: absolute;
  bottom: calc(100% + 134px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.wtc-swatch-wrap:hover .wtc-swatch-label,
.wtc-swatch-wrap:active .wtc-swatch-label { opacity: 1; }

.wtc-pill-row { display: flex; gap: 12px; flex-wrap: wrap; }
.wtc-pill {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  cursor: pointer;
}
.wtc-pill.selected { background: var(--color-ink); color: var(--color-cream); }
.wtc-option-note { font-size: 13px; color: rgba(43,33,24,0.6); margin-top: 10px; }

.wtc-purchase-row { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.wtc-qty {
  display: flex; align-items: center;
  border: 1px solid rgba(43,33,24,0.3);
}
.wtc-qty button {
  width: 40px; height: 40px;
  background: none; border: none;
  font-size: 18px; color: var(--color-ink);
  cursor: pointer;
}
.wtc-qty span { width: 40px; text-align: center; font-size: 15px; }
.wtc-add-btn {
  flex-grow: 1;
  min-width: 200px;
  padding: 16px 28px;
  background: var(--color-accent);
  color: var(--color-cream);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
}
.wtc-add-btn:hover { background: var(--color-accent-dark); }
.wtc-add-btn:disabled { background: rgba(43,33,24,0.3); cursor: not-allowed; }

.wtc-product-meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(43,33,24,0.6);
  border-top: 1px solid rgba(43,33,24,0.15);
  padding-top: 20px;
}

/* ---------- Reviews ---------- */
.wtc-reviews { padding: 0 64px 64px 64px; max-width: 720px; }
.wtc-reviews-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.wtc-reviews-header h2 { font-family: var(--font-display); font-size: 26px; margin: 0; }
.wtc-review {
  padding: 20px 0;
  border-top: 1px solid rgba(43,33,24,0.15);
}
.wtc-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wtc-review-stars { color: var(--color-tan); font-size: 14px; letter-spacing: 1px; }
.wtc-review-name { font-size: 14px; font-weight: 500; }
.wtc-review-text { font-size: 14px; line-height: 1.65; color: rgba(43,33,24,0.75); }
.wtc-reviews-empty { font-size: 14px; color: rgba(43,33,24,0.6); border-top: 1px solid rgba(43,33,24,0.15); padding-top: 20px; }

/* ---------- Cart drawer ---------- */
.wtc-cart-overlay {
  position: fixed; inset: 0;
  background: rgba(43,33,24,0.45);
  z-index: 10;
  display: none;
}
.wtc-cart-overlay.open { display: block; }
.wtc-drawer {
  position: fixed; top: 0; right: 0;
  height: 100%; width: 420px;
  background: var(--color-cream);
  z-index: 11;
  box-shadow: -4px 0 24px rgba(43,33,24,0.2);
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.wtc-drawer.open { display: flex; transform: translateX(0); }
.wtc-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(43,33,24,0.15);
}
.wtc-drawer-title { font-family: var(--font-display); font-size: 20px; }
.wtc-drawer-close { background: none; border: none; font-size: 20px; color: var(--color-ink); cursor: pointer; }
.wtc-drawer-items { flex-grow: 1; overflow-y: auto; padding: 8px 28px; }
.wtc-drawer-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(43,33,24,0.1);
  gap: 12px;
}
.wtc-drawer-item-name { font-size: 15px; margin-bottom: 4px; }
.wtc-drawer-item-variant, .wtc-drawer-item-qty { font-size: 13px; color: rgba(43,33,24,0.6); }
.wtc-drawer-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wtc-drawer-remove {
  background: none; border: none; font-size: 13px;
  color: rgba(43,33,24,0.5); cursor: pointer; text-decoration: underline;
}
.wtc-drawer-empty { padding: 48px 0; text-align: center; color: rgba(43,33,24,0.5); font-size: 14px; }
.wtc-drawer-footer { padding: 24px 28px; border-top: 1px solid rgba(43,33,24,0.15); }
.wtc-drawer-subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 16px; }
.wtc-drawer-subtotal .amount { font-family: var(--font-display); }
.wtc-drawer-discount-row { display: none; justify-content: space-between; font-size: 14px; color: var(--color-accent); margin-bottom: 8px; }
.wtc-drawer-total-row { display: none; justify-content: space-between; font-size: 17px; margin-bottom: 16px; padding-top: 8px; border-top: 1px solid rgba(43,33,24,0.15); }
.wtc-drawer-total-row .amount { font-family: var(--font-display); }
.wtc-discount-form { display: flex; gap: 8px; margin-bottom: 16px; }
.wtc-discount-form input {
  flex: 1; padding: 10px 12px;
  border: 1px solid rgba(43,33,24,0.3);
  background: var(--color-bg);
  font-size: 13px; font-family: var(--font-body);
}
.wtc-discount-form button {
  padding: 10px 16px; background: transparent;
  border: 1px solid var(--color-ink); color: var(--color-ink);
  font-family: var(--font-body); font-size: 13px; cursor: pointer;
}
.wtc-discount-error { font-size: 12px; color: #A84A3F; margin: -10px 0 16px 0; }
.wtc-discount-applied {
  display: none; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: 16px;
  padding: 8px 12px; background: rgba(110,123,92,0.12);
}
.wtc-discount-applied button {
  background: none; border: none; font-size: 12px;
  color: rgba(43,33,24,0.55); text-decoration: underline; cursor: pointer;
}
.wtc-checkout-btn {
  width: 100%; padding: 16px;
  background: var(--color-accent); color: var(--color-cream);
  border: none; font-family: var(--font-body); font-size: 15px;
  cursor: pointer;
}
.wtc-checkout-btn:disabled { background: rgba(43,33,24,0.3); cursor: not-allowed; }
.wtc-checkout-note { font-size: 12px; color: rgba(43,33,24,0.55); margin-top: 10px; text-align: center; }

/* ---------- Contact form ---------- */
.wtc-contact-layout { display: flex; gap: 80px; padding: 96px 64px; align-items: flex-start; flex-wrap: wrap; }
.wtc-contact-details { flex: 1; min-width: 280px; max-width: 420px; }
.wtc-contact-details h1 { font-family: var(--font-display); font-size: 38px; font-weight: 500; margin: 0 0 20px 0; }
.wtc-contact-field { margin-bottom: 24px; }
.wtc-contact-field-label {
  font-size: 12px; letter-spacing: 0.03em; color: rgba(43,33,24,0.55);
  text-transform: uppercase; margin-bottom: 6px;
}
.wtc-contact-field-value { font-size: 15px; }
.wtc-contact-note {
  border: 1px dashed rgba(43,33,24,0.3);
  padding: 16px; font-size: 13px; color: rgba(43,33,24,0.6);
  line-height: 1.6; margin-top: 24px;
}
.wtc-contact-form { flex: 1; min-width: 280px; max-width: 480px; }
.wtc-contact-form label { font-size: 13px; color: rgba(43,33,24,0.6); margin-bottom: 8px; display: block; }
.wtc-contact-form input, .wtc-contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(43,33,24,0.3);
  background: var(--color-cream);
  font-size: 14px; margin-bottom: 20px;
  font-family: var(--font-body);
  resize: vertical;
}

/* ---------- FAQ / policy pages ---------- */
.wtc-policy-body { padding: 0 64px 96px 64px; max-width: 720px; }
.wtc-faq-item { border-top: 1px solid rgba(43,33,24,0.15); padding: 28px 0; }
.wtc-faq-item:last-child { border-bottom: 1px solid rgba(43,33,24,0.15); }
.wtc-faq-q { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.wtc-faq-a { font-size: 15px; line-height: 1.65; color: rgba(43,33,24,0.75); }
.wtc-policy-section { padding: 24px 0 0 0; }
.wtc-policy-section:last-child { border-bottom: 1px solid rgba(43,33,24,0.15); padding-bottom: 24px; }
.wtc-policy-h { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.wtc-policy-text { font-size: 15px; line-height: 1.7; color: rgba(43,33,24,0.75); }
.wtc-policy-meta { font-size: 13px; color: rgba(43,33,24,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wtc-product-layout { flex-direction: column; }
  .wtc-gallery-col { width: 100%; }
  .wtc-gallery, .wtc-gallery-slide { width: 100%; }
  .wtc-contact-layout { padding: 48px 28px; }
}
@media (max-width: 760px) {
  .wtc-nav, .wtc-breadcrumb, .wtc-intro, .wtc-collection, .wtc-newsletter,
  .wtc-product-layout, .wtc-reviews, .wtc-footer, .wtc-policy-body {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
  .wtc-nav-links { display: none; }
  .wtc-hero-text h1 { font-size: 36px; }
  .wtc-entry { flex-direction: column !important; }
  .wtc-entry-gallery, .wtc-entry-photo { width: 100%; }
  .wtc-drawer { width: 100%; }
}
