/* Handmade by Diantha — component styles, ported 1:1 from the React design system. */

/* ---------- Button ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 14px; gap: 6px; }
.btn-md { padding: 12px 24px; font-size: 15px; gap: 8px; }
.btn-lg { padding: 15px 32px; font-size: 16px; gap: 10px; }
.btn-full { width: 100%; }

.btn-primary { background: var(--brand); color: var(--text-on-brand); box-shadow: var(--shadow-gold); }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); box-shadow: 0 14px 32px rgba(184,135,58,0.30); }

.btn-secondary { background: var(--surface); color: var(--text-heading); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-raised); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--text-heading); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-raised); box-shadow: var(--shadow-sm); }

.btn-dark { background: var(--surface-ink); color: var(--text-on-dark); border: 1px solid rgba(255,255,255,0.25); }
.btn-dark:hover:not(:disabled) { background: var(--surface-ink-2); box-shadow: var(--shadow-sm); }

.btn-link { background: transparent; color: var(--brand-strong); padding: 0 !important; border-radius: 0; box-shadow: none; }
.btn-link:hover:not(:disabled) { color: var(--gold-600); }

/* ---------- IconButton ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:active:not(:disabled) { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn-sm { width: 32px; height: 32px; }
.icon-btn-md { width: 40px; height: 40px; }
.icon-btn-lg { width: 48px; height: 48px; }
.icon-btn-ghost { background: transparent; color: var(--text-heading); }
.icon-btn-ghost:hover:not(:disabled) { background: var(--surface-raised); }
.icon-btn-outline { background: var(--surface); color: var(--text-heading); border-color: var(--border-strong); }
.icon-btn-outline:hover:not(:disabled) { background: var(--surface-raised); }
.icon-btn-solid { background: var(--brand); color: var(--text-on-brand); }
.icon-btn-solid:hover:not(:disabled) { background: var(--brand-strong); }
.icon-btn-danger { background: transparent; color: var(--danger); }
.icon-btn-danger:hover:not(:disabled) { background: var(--rose-100); }
.icon-btn svg, .icon-btn i { width: 18px; height: 18px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-muted { background: var(--surface-muted); }
.card-ink { background: var(--surface-ink); color: var(--text-on-dark); border-color: transparent; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: var(--w-bold);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill); line-height: 1;
}
.badge-md { padding: 5px 12px; font-size: 12px; }
.badge-sm { padding: 3px 9px; font-size: 11px; }
.badge-brand { background: var(--brand); color: var(--text-on-brand); }
.badge-sale { background: var(--danger); color: #fff; }
.badge-sage { background: var(--sage-500); color: #fff; }
.badge-soft { background: var(--gold-100); color: var(--gold-700); }
.badge-neutral { background: var(--surface-raised); color: var(--text-body); }
.badge-sold { background: var(--taupe-500); color: #fff; }

/* ---------- Tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: var(--w-medium);
  padding: 7px 15px; border-radius: var(--radius-pill); line-height: 1;
  cursor: pointer; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-body);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.tag:hover { background: var(--surface-raised); }
.tag.is-selected { border-color: var(--brand); background: var(--brand-soft); color: var(--gold-700); }
.tag.is-selected:hover { background: var(--brand-soft); }

/* ---------- GemChip ---------- */
.gem-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: var(--w-medium);
  color: var(--espresso-700); padding: 6px 13px 6px 10px; border-radius: var(--radius-pill);
  background: var(--surface-muted); border: 1px solid var(--border);
}
.gem-chip-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); flex: none; }

/* ---------- SectionHeading ---------- */
.section-heading.align-center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-heading-eyebrow {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: var(--w-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--brand-strong); margin-bottom: 12px;
}
.section-heading-title {
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--w-semibold);
  line-height: var(--lh-tight); color: var(--text-heading); margin: 0;
}
.section-heading-lead { margin-top: 14px; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-body); }

/* ---------- ReassuranceBar ---------- */
.reassurance-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 26px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: var(--w-medium); letter-spacing: 0.02em;
}
.reassurance-bar.tone-ink { background: var(--surface-ink); color: var(--text-on-dark); }
.reassurance-bar.tone-soft { background: var(--brand-tint); color: var(--gold-700); }
.reassurance-bar .dot { opacity: 0.5; }

/* ---------- Form fields (Input / Select / Textarea) ---------- */
.field { display: block; }
.field-label { display: block; font-size: 13px; font-weight: var(--w-semibold); color: var(--text-body); margin-bottom: 6px; }
.field-wrap { display: flex; align-items: center; position: relative; }
.field-prefix { position: absolute; left: 14px; color: var(--text-muted); font-size: 15px; pointer-events: none; }
.field-input, .field-select, .field-textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text-heading);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 11px 14px; width: 100%; outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field-input.has-prefix { padding-left: 30px; }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.field-input.is-error, .field-select.is-error, .field-textarea.is-error { border-color: var(--danger); }
.field-hint { display: block; font-size: 12.5px; margin-top: 6px; color: var(--text-muted); }
.field-hint.is-error { color: var(--danger); }
.field-select-wrap { position: relative; display: block; }
.field-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.field-select-chevron {
  position: absolute; right: 14px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--taupe-500); border-bottom: 2px solid var(--taupe-500);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.field-textarea { resize: vertical; line-height: 1.5; }
.field-checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-body); cursor: pointer; }
.field-checkbox-row input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---------- ProductCard ---------- */
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card.is-sold-out { cursor: default; }
.product-card.is-sold-out:hover { box-shadow: var(--shadow-sm); transform: none; }
.product-card-image {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-muted);
  display: grid; place-items: center; color: var(--taupe-500);
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  transition: transform var(--dur-slow) var(--ease);
}
.product-card:hover .product-card-image { transform: scale(1.05); }
.product-card.is-sold-out .product-card-image { filter: grayscale(0.6) opacity(0.7); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-badge { position: absolute; top: 12px; left: 12px; }
.product-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-category { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: var(--w-semibold); }
.product-card-name { font-family: var(--font-display); font-size: 22px; font-weight: var(--w-medium); line-height: 1.15; color: var(--text-heading); margin: 0; }
.product-card-price-row { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.product-card-old-price { color: var(--text-muted); text-decoration: line-through; font-size: 14px; }
.product-card-price { color: var(--price); font-weight: var(--w-bold); font-size: 17px; }
.product-card-price.is-sale { color: var(--sale); }
