@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --vanilla: #FCF8E8;
  --vanilla-dark: #F0ECD8;
  --sage: #E2EFE6;
  --sage-dark: #C8D9CE;
  --sunbeam: #FCE38A;
  --sunbeam-dark: #E8C96A;
  --peach: #F9D5D3;
  --peach-dark: #EDC0BE;
  --forest: #004225;
  --forest-light: #005C33;
  --forest-muted: #4A7C5C;
  --bronze: #8A631C;
  --champagne: #D4CEBA;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --shadow: rgba(0, 66, 37, 0.08);
  --shadow-strong: rgba(0, 66, 37, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--vanilla);
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--forest-muted);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--forest-muted);
  max-width: 55ch;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--sunbeam);
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(252, 227, 138, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 227, 138, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--sage-dark);
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--sage);
  border-color: var(--sage-dark);
}

.btn-peach {
  display: inline-block;
  padding: 14px 36px;
  background: var(--peach);
  color: var(--forest);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-peach:hover {
  background: var(--peach-dark);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-strong);
}

.card-sage {
  background: var(--sage);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.card-sage:hover {
  transform: translateY(-4px);
}

.card-sunbeam {
  background: linear-gradient(135deg, var(--sunbeam) 0%, var(--peach) 100%);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Nav */
.nav-upgrade {
  background: rgba(252, 248, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage);
}

/* Section backgrounds */
.section-vanilla {
  background: var(--vanilla);
}

.section-sage {
  background: var(--sage);
}

.section-forest {
  background: var(--forest);
  color: var(--vanilla);
}

.section-forest h1,
.section-forest h2,
.section-forest h3,
.section-forest .section-title {
  color: var(--vanilla);
}

.section-forest .section-sub {
  color: var(--champagne);
}

.section-sunbeam {
  background: linear-gradient(135deg, var(--sunbeam) 0%, var(--peach) 10%);
}

/* Gold accent elements */
.accent-gold {
  color: var(--gold);
}

.border-gold {
  border: 1px solid var(--sunbeam);
}

.divider-sage {
  height: 1px;
  background: var(--sage);
  border: none;
  margin: 2rem 0;
}

/* Glassmorphism */
.glass {
  background: rgba(252, 248, 232, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 239, 230, 0.5);
  border-radius: 16px;
}

.glass-forest {
  background: rgba(0, 66, 37, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(252, 248, 232, 0.1);
  border-radius: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--vanilla);
}

::-webkit-scrollbar-thumb {
  background: var(--sage-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest-muted);
}

/* Selection */
::selection {
  background: var(--sunbeam);
  color: var(--forest);
}

/* Footer */
.footer-upgrade {
  background: var(--forest);
  color: var(--champagne);
}

.footer-upgrade a {
  color: var(--sunbeam);
  text-decoration: none;
}

.footer-upgrade a:hover {
  color: var(--peach);
}

/* Inputs */
input, textarea, select {
  border: 1.5px solid var(--sage-dark);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--forest);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sunbeam);
  box-shadow: 0 0 0 3px rgba(252, 227, 138, 0.2);
}

/* Admin specific */
.admin-header-upgrade {
  background: var(--forest);
  color: var(--vanilla);
  padding: 1rem 2rem;
}

.admin-tab-upgrade {
  background: var(--vanilla);
  border: 1px solid var(--sage);
  color: var(--forest);
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background 0.2s ease;
}

.admin-tab-upgrade.active {
  background: var(--sunbeam);
  border-color: var(--sunbeam-dark);
  font-weight: 600;
}

.admin-tab-upgrade:hover:not(.active) {
  background: var(--sage);
}

/* Toast */
.toast-upgrade {
  background: var(--forest);
  color: var(--vanilla);
  border-left: 4px solid var(--sunbeam);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(0, 66, 37, 0.2);
}

/* Product cards */
.product-card-upgrade {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card-upgrade:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-strong);
}

.product-card-upgrade img {
  border-bottom: 3px solid var(--sage);
}

/* Modal */
.modal-upgrade {
  background: var(--vanilla);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 66, 37, 0.2);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
