/* ═══════════════════════════════════════════════════════════
   SHARED DESIGN SYSTEM  ·  _shared.css
   Used by: index.html, privacy.html, cart.html, payment.html
═══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --rose:          #c4687a;
  --rose-deep:     #a8556a;
  --rose-pale:     #f7e8eb;
  --rose-muted:    #deb8bf;
  --cream:         #fdf6f0;
  --cream-deep:    #f5ebe2;
  --text-primary:  #2a1c1f;
  --text-muted:    #9a8285;
  --border-soft:   rgba(196,104,122,0.15);
  --border-medium: rgba(196,104,122,0.28);
  --success:       #2e7d32;
  --success-bg:    #edf7ed;
  --ff-display:    'Cormorant Garamond', Georgia, serif;
  --ff-body:       'DM Sans', sans-serif;
  --r-card:        18px;
  --r-pill:        100px;
  --shadow-card:   0 4px 28px rgba(196,104,122,0.10), 0 1px 6px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 44px rgba(196,104,122,0.18), 0 3px 12px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ── Navbar ── */
.site-nav {
  background: rgba(253,246,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-nav .navbar-brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose) !important;
  letter-spacing: -0.01em;
}

.site-nav .nav-link {
  font-size: 0.84rem;
  color: var(--text-muted) !important;
  font-weight: 400;
  padding: 0.4rem 0.85rem !important;
  transition: color 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--rose) !important;
}

.nav-cart-badge {
  position: relative;
}

.nav-cart-badge .badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--rose);
  color: #fff;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ── Footer ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.8rem;
}

.site-footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--rose-muted); }

.site-footer .footer-brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* ── Shared surface / card ── */
.surface-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ── Buttons ── */
.btn-rose {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 11px 28px;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(196,104,122,0.30);
  transition: background 0.22s, box-shadow 0.22s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
}

.btn-rose:hover {
  background: var(--rose-deep);
  color: #fff;
  box-shadow: 0 7px 24px rgba(196,104,122,0.40);
}

.btn-rose:active { transform: scale(0.975); }

.btn-rose-outline {
  background: transparent;
  color: var(--rose);
  border: 1px solid var(--rose-muted);
  border-radius: var(--r-pill);
  padding: 10px 26px;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
}

.btn-rose-outline:hover {
  background: var(--rose-pale);
  border-color: var(--rose);
  color: var(--rose-deep);
}

/* ── Section heading ── */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  display: block;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0;
}

/* ── Tag / Badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--rose-pale);
  color: var(--rose-deep);
  border: 1px solid rgba(196,104,122,0.18);
}

/* ── Divider ── */
.rose-divider {
  height: 1px;
  background: var(--border-soft);
  border: none;
}

/* ── Step indicator ── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.checkout-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.checkout-steps .step.active { color: var(--rose); font-weight: 500; }
.checkout-steps .step.done   { color: var(--success); }

.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.checkout-steps .step.active .step-circle { background: var(--rose); color: #fff; border-color: var(--rose); }
.checkout-steps .step.done  .step-circle  { background: var(--success); color: #fff; border-color: var(--success); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-medium);
  max-width: 60px;
  margin: 0 4px;
}

/* ── Form ── */
.form-label-rose {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: block;
}

.form-ctrl-rose {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-ctrl-rose:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,104,122,0.12);
}

.form-ctrl-rose::placeholder { color: var(--text-muted); }

select.form-ctrl-rose { cursor: pointer; }

/* ── Alert ── */
.alert-rose {
  background: var(--rose-pale);
  border: 1px solid rgba(196,104,122,0.25);
  border-radius: 12px;
  color: var(--rose-deep);
  padding: 12px 16px;
  font-size: 0.83rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ── Quantity control ── */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rose-muted);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.qty-btn:hover:not(:disabled) { background: var(--rose-pale); }
.qty-btn:disabled { opacity: 0.28; cursor: default; }

.qty-val {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 28px;
  text-align: center;
  color: var(--text-primary);
  user-select: none;
}

/* ── Toast notification ── */
.toast-rose {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast-rose.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page hero ── */
.page-hero {
  background:
    radial-gradient(ellipse 65% 55% at 10% 0%,   rgba(196,104,122,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 90% 100%,  rgba(240,185,150,0.09) 0%, transparent 55%),
    var(--cream);
  padding: 3.5rem 0 2.5rem;
}

.page-hero-title {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.page-hero-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Utility ── */
.text-rose   { color: var(--rose) !important; }
.text-muted2 { color: var(--text-muted) !important; }
.bg-cream    { background: var(--cream) !important; }
.fw-display  { font-family: var(--ff-display); }
