body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #FDF5EC;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }
h3, h4 { letter-spacing: -0.005em; }

p, li {
  line-height: 1.7;
}

.btn {
  padding: 0.6rem 1.6rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #92400e;
  color: #fff;
}
.btn-primary:hover {
  background-color: #78350f;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #92400e;
  color: #92400e;
}
.btn-secondary:hover {
  background-color: #92400e;
  color: #fff;
}

.site-header {
  background: linear-gradient(180deg, #f6e8cd 0%, #e7cb9c 100%);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #9199a1, #d8dce0, #9199a1) 1;
}

.site-footer {
  background: linear-gradient(155deg, #5b636b 0%, #363c41 55%, #262b2f 100%);
  border-top: 3px solid #92400e;
}

.footer-logo-chip {
  display: inline-flex;
  background: #fdf5ec;
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-link {
  padding: 0.5rem 1rem;
  color: #374151;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.3s ease-in-out;
}
.nav-link:hover,
.nav-link.active-link {
  color: #78350f;
  font-weight: 600;
}

.product-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3ede4;
  overflow: hidden;
  touch-action: pan-y;
}
.product-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}
.product-photo-wrap.is-sold-out img {
  filter: grayscale(70%) brightness(0.75);
}

.sold-out-ribbon {
  position: absolute;
  top: 14px;
  left: -36px;
  transform: rotate(-40deg);
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 2.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.photo-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.photo-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
}
.photo-dots button.active {
  background: #fff;
}

.category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: #fdf0dc;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.filter-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #d6c3a5;
  color: #57534e;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: #92400e;
  border-color: #92400e;
  color: #fff;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: #b91c1c;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.toggle-switch.on::after {
  transform: translateX(22px);
}

.spinner {
  border: 3px solid #f3ede4;
  border-top-color: #92400e;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
