/* ─── WickAndWash Design System ─── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sand: #F5EDE3;
  --warm-cream: #FDF8F2;
  --terracotta: #C4703F;
  --terracotta-dark: #A85A2A;
  --terracotta-light: rgba(196, 112, 63, 0.1);
  --deep-green: #2C4A3E;
  --sage: #8FA68E;
  --charcoal: #2D2926;
  --soft-gray: #9B9590;
  --white: #FFFFFF;
  --border: rgba(45, 41, 38, 0.08);
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--charcoal);
  background: var(--warm-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -10px;
}

.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: white;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ─── Product Cards ─── */
.product-card-link {
  display: block;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-card-image {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.product-card-image.candle-bg {
  background: linear-gradient(135deg, #F5EDE3 0%, #EDE5D8 100%);
}

.product-card-image.soap-bg {
  background: linear-gradient(135deg, #E8EDE5 0%, #D5DED1 100%);
}

.product-card-body {
  padding: 24px 28px 28px;
}

.product-card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-tagline {
  font-size: 0.9rem;
  color: var(--soft-gray);
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
}

.product-card-action {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  font-weight: 600;
}

/* ─── Section Styles ─── */
.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 60px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span { color: var(--terracotta); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 320px;
}

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--terracotta); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ─── Page Container ─── */
.page-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* ─── Quantity Selector ─── */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: background 0.15s;
}

.qty-selector button:hover { background: var(--sand); }

.qty-selector .qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  padding: 6px 0;
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-candle {
  background: var(--terracotta-light);
  color: var(--terracotta);
}

.badge-soap {
  background: rgba(44, 74, 62, 0.1);
  color: var(--deep-green);
}

/* ─── Loading / Empty States ─── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--soft-gray);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--deep-green);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

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

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 248, 242, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 0.95rem;
  }

  .nav-hamburger { display: flex; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title { font-size: 2rem; }
}
