:root {
  --bg: #FAF5EF;
  --surface: #FFFFFF;
  --surface-soft: #F3E9DD;
  --ink: #2C221E;
  --muted: #6E5D55;
  --terracotta: #C46345;
  --terracotta-dark: #A64D32;
  --sage: #6B7D65;
  --border: #E5D7C8;
  --shadow: 0 12px 32px rgba(44, 34, 30, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.2;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Announcement */
.announcement-bar {
  background: var(--ink);
  color: #FAF5EF;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-text {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-text strong {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn, .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.icon-btn:hover, .cart-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.icon-btn.active {
  background: #FCEAE4;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.badge {
  background: var(--terracotta);
  color: #fff;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 1.15rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 4% 18px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 0;
}

/* Hero */
.hero {
  padding: 56px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.pill-tag {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--terracotta-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

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

.btn-secondary:hover {
  border-color: var(--terracotta);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--terracotta-dark);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  position: relative;
}

.hero-svg {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
}

.hero-floating-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.hero-floating-badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
}

/* Shop Section */
.shop-section {
  padding: 48px 0 64px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.section-header h2, .section-center h2, .story-card h2, .custom-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.shop-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-controls input, .shop-controls select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active, .filter-chip:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  background: var(--surface-soft);
  padding: 18px;
  cursor: pointer;
}

.product-media svg {
  width: 100%;
  height: 190px;
  display: block;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.wish-btn.liked {
  color: #D64545;
  border-color: #F3B7B7;
  background: #FFF1F1;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  font-weight: 700;
}

.product-title {
  font-size: 1.15rem;
  margin: 4px 0 6px;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex: 1;
}

.option-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.checkout-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-fields input {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--bg);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.add-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}

.add-btn:hover {
  background: var(--terracotta-dark);
}

/* Process Section */
.process-section {
  background: var(--surface-soft);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-center {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 36px;
}

.section-center p {
  color: var(--muted);
  margin-top: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.process-card {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 10px;
}

.process-card h3 {
  margin-bottom: 8px;
}

.process-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Story & Custom Order */
.story-section {
  padding: 64px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.story-card, .custom-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.story-card p, .custom-card p {
  color: var(--muted);
  margin: 12px 0 18px;
}

.story-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-weight: 500;
}

.custom-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row input, .form-row select, .form-row textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--bg);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #EADFD4;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand .brand-text {
  color: #FAF5EF;
}

.footer-note {
  font-size: 0.9rem;
  color: #BFAEA0;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #FAF5EF;
  text-decoration: none;
  font-size: 0.92rem;
}

.copyright {
  font-size: 0.84rem;
  color: #BFAEA0;
}

/* Modal & Drawer */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 18, 15, 0.55);
  display: none;
  z-index: 60;
}

.modal-backdrop.open {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  background: var(--surface);
  border-radius: 22px;
  max-width: 680px;
  width: 100%;
  padding: 26px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.modal-art {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 20px;
}

.modal-art svg {
  width: 100%;
  height: 220px;
}

.drawer-backdrop.open {
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: min(410px, 100%);
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-header .modal-close {
  position: static;
}

.shipping-meter {
  background: var(--surface-soft);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin: 14px 0;
  font-weight: 600;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  align-content: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cart-thumb {
  width: 56px;
  height: 56px;
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 6px;
}

.cart-thumb svg {
  width: 100%;
  height: 100%;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 36px 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .hero-grid, .process-grid, .story-grid, .modal-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-block;
  }
}
