/* Northerngoods – premium light theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --brand: #0d9f6e;
  --brand-bright: #12b981;
  --brand-dark: #047857;
  --brand-deep: #064e3b;
  --cream: #f7f4ef;
  --cream-2: #f0ebe3;
  --ink: #14201b;
  --muted: #5c6b64;
  --card: #ffffff;
  --line: #e5e0d6;
  --glow: rgba(13, 159, 110, 0.18);
  --shadow: 0 4px 24px rgba(20, 32, 27, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 32, 27, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(13, 159, 110, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(180, 140, 80, 0.08), transparent 50%),
    var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

h1, h2, h3, .font-display {
  font-family: 'DM Sans', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn-brand, button.bg-brand-500, a.bg-brand-500 {
  background: linear-gradient(135deg, #12b981 0%, #0d9f6e 50%, #047857 100%) !important;
  color: #04150f !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(13, 159, 110, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}
.btn-brand:hover, button.bg-brand-500:hover, a.bg-brand-500:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 159, 110, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-brand:active, button.bg-brand-500:active {
  transform: translateY(0);
}

/* Category / type pills */
.cat-btn, .type-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.cat-btn:hover, .type-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: #fff;
}
.cat-btn.active, .type-btn.active {
  background: linear-gradient(135deg, #12b981, #047857);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(13, 159, 110, 0.3);
}

/* Header */
header.site-header, #shop-content > header {
  background: rgba(247, 244, 239, 0.85) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Product cards */
#product-grid > div {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 1.25rem !important;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  overflow: hidden;
}
#product-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 159, 110, 0.35) !important;
}
#product-grid > div .h-48 {
  background: linear-gradient(180deg, #f3f7f4 0%, #eef2ef 100%) !important;
}

/* Hero */
.hero-panel {
  background:
    linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(4, 120, 87, 0.88) 45%, rgba(13, 159, 110, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #f0fdf4;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Landing */
#landing-page {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(13, 159, 110, 0.15), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(180, 140, 80, 0.1), transparent 50%),
    var(--cream) !important;
}
#landing-page .sticky {
  background: rgba(247, 244, 239, 0.9) !important;
  border-color: var(--line) !important;
  backdrop-filter: blur(14px);
}

/* Trust strip */
.trust-strip {
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4, #ecfdf5);
  border-color: rgba(13, 159, 110, 0.2) !important;
}

/* Sections */
section.bg-white {
  background: rgba(255,255,255,0.65) !important;
  border-color: var(--line) !important;
}

/* Cart drawer */
#cart-drawer {
  background: #fffaf5 !important;
  border-left: 1px solid var(--line) !important;
  box-shadow: -8px 0 40px rgba(20, 32, 27, 0.12);
}
#cart-overlay {
  background: rgba(20, 32, 27, 0.45) !important;
  backdrop-filter: blur(4px);
}

/* Inputs */
input, select, textarea {
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  border-radius: 0.75rem !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--glow) !important;
  outline: none !important;
}

/* Modals */
#checkout-modal > div,
#join-modal > div,
#success-modal > div,
#join-success-modal > div {
  background: #fffaf5 !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 1.25rem !important;
}

/* Brand text accents */
.text-brand-400, .text-brand-500, .text-brand-600 {
  color: var(--brand-dark) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #12b981, #047857);
  border-radius: 8px;
  border: 2px solid var(--cream-2);
}

/* Soft fade-in for grid */
#product-grid > div {
  animation: rise 0.45s ease both;
}
#product-grid > div:nth-child(1) { animation-delay: 0.02s; }
#product-grid > div:nth-child(2) { animation-delay: 0.05s; }
#product-grid > div:nth-child(3) { animation-delay: 0.08s; }
#product-grid > div:nth-child(4) { animation-delay: 0.11s; }
#product-grid > div:nth-child(5) { animation-delay: 0.14s; }
#product-grid > div:nth-child(6) { animation-delay: 0.17s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter bar */
.filter-bar {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  padding: 0.75rem;
}

/* Coming soon muted card */
#product-grid > div:has(button[disabled]) {
  opacity: 0.88;
}
