:root {
  --bg: #FFF7F1;
  --card-bg: #FFFFFF;
  --coral: #FF7E93;
  --coral-dark: #E85C74;
  --sage: #A9BE9A;
  --sage-dark: #7C9169;
  --butter: #FFD873;
  --ink: #3B2C33;
  --ink-soft: #7A6B71;
  --line: #F0E1D8;
  --shadow: 0 12px 28px -14px rgba(59, 44, 51, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
header {
  padding: 28px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

.tagline-pill {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: #FFEDE2;
  padding: 6px 14px;
  border-radius: 100px;
  display: none;
}

@media (min-width: 620px) {
  .tagline-pill { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  position: relative;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}

.shape-1 { width: 90px; height: 90px; background: var(--butter); top: 10px; right: 60px; }
.shape-2 { width: 46px; height: 46px; background: var(--sage); top: 90px; right: 160px; }
.shape-3 { width: 26px; height: 26px; background: var(--coral); top: 20px; right: 220px; }

@media (max-width: 700px) {
  .hero-shape { display: none; }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---------- Category chips ---------- */
.categories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 28px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.chip:hover { border-color: var(--coral); color: var(--ink); }

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Product grid (masonry via columns) ---------- */
.grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.grid {
  column-count: 2;
  column-gap: 18px;
}

@media (min-width: 700px) { .grid { column-count: 3; } }
@media (min-width: 980px) { .grid { column-count: 4; } }

.card {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  animation: rise 0.35s ease both;
}

.card-highlight {
  animation: pulse-highlight 1.3s ease 0s 2;
}

@keyframes pulse-highlight {
  0%   { box-shadow: 0 0 0 0 rgba(255, 126, 147, 0.55), var(--shadow); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 126, 147, 0), var(--shadow); }
  100% { box-shadow: 0 0 0 0 rgba(255, 126, 147, 0), var(--shadow); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #FBEFE6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
}

.zoom-lens {
  position: absolute;
  border: 2px solid var(--coral);
  background: rgba(255, 126, 147, 0.22);
  pointer-events: none;
  display: none;
  z-index: 5;
}

.zoom-pane {
  position: fixed;
  width: 320px;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: #FBEFE6;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  display: none;
  z-index: 999;
  pointer-events: none;
}

@media (max-width: 900px) {
  .zoom-lens, .zoom-pane { display: none !important; }
}

/* ---------- Image Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(59, 44, 51, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}

.lightbox-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #FBEFE6;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lightbox-close:hover { background: var(--butter); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--butter);
  color: #4A3B12;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cat {
  font-size: 0.72rem;
  color: var(--sage-dark);
  font-weight: 600;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: -2px;
}

.card-price .strike {
  text-decoration: line-through;
  color: #C9BAB3;
  margin-right: 6px;
  font-size: 0.85rem;
}

.buy-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 0;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.buy-btn:hover { background: var(--coral-dark); }
.buy-btn:active { transform: scale(0.98); }

.empty-msg {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 40px;
  text-align: center;
}

footer p {
  max-width: 560px;
  margin: 0 auto 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

footer .brand {
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
  color: var(--coral-dark);
  border-color: var(--coral-dark);
}

/* ---------- Simple content pages (Privacy, Terms, etc.) ---------- */
.page-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.page-hero .eyebrow {
  font-size: 0.85rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin: 0 0 10px;
}

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.page-hero .updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 24px 72px;
  line-height: 1.75;
  font-size: 1rem;
}

.page-content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 34px 0 12px;
}

.page-content p { margin: 0 0 16px; color: var(--ink); }

.page-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.page-content li { margin-bottom: 8px; }

.page-content a.inline-link {
  color: var(--coral-dark);
  text-decoration: underline;
}

.back-home {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--coral-dark);
  text-decoration: none;
  font-weight: 500;
}

.back-home:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 480px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.contact-form button {
  margin-top: 6px;
  align-self: flex-start;
  background: var(--coral);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-form button:hover { background: var(--coral-dark); }

.contact-alt {
  max-width: 480px;
  margin: 28px auto 0;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-alt a { color: var(--coral-dark); text-decoration: underline; }