/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 400; font-style: italic; }
h4 { font-size: 1.05rem; font-weight: 600; font-style: normal; }
p { color: var(--color-text-mid); margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section { padding: var(--space-3xl) 0; }
.section-alt { background: var(--color-cream-dark); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header p { max-width: 550px; margin: var(--space-sm) auto 0; font-size: 1.05rem; }
.divider {
  display: inline-block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-rose-gold));
  border-radius: var(--radius-pill);
  margin: var(--space-sm) 0;
}
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(201, 147, 58, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 6px 22px rgba(201, 147, 58, 0.50);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--color-text-mid);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--color-gold); }
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-gold    { background: var(--color-gold);    color: var(--color-white); }
.badge-rose    { background: var(--color-rose-gold); color: var(--color-white); }
.badge-maroon  { background: var(--color-maroon);  color: var(--color-white); }
.badge-outline { border: 1px solid var(--color-gold); color: var(--color-gold); }

/* ===== STAR RATING ===== */
.stars { color: var(--color-gold); font-size: 0.85rem; letter-spacing: 1px; }

/* ===== PRICE ===== */
.price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-maroon);
}
.price-original {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 6px;
}
.price-discount {
  font-size: 0.82rem;
  color: var(--color-success);
  font-weight: 700;
  margin-left: 6px;
}

/* ===== TOAST NOTIFICATION ===== */
#toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  background: var(--color-text-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: 0.9rem;
  min-width: 240px;
  animation: slideInToast 0.3s ease;
}
.toast.toast-success { background: var(--color-success); }
.toast.toast-error   { background: var(--color-error); }
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44, 26, 14, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.25s ease;
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.4rem;
  color: var(--color-text-light);
  background: var(--color-cream);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--color-text-dark); }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
  .hide-mobile { display: none !important; }
  /* Toast: full-width bottom strip on mobile */
  #toast-container {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-md);
  }
  .toast { min-width: unset; width: 100%; }
  /* Modal overlay: minimal padding on mobile */
  .modal-overlay { padding: var(--space-sm); }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
