/* TailTrove — main stylesheet
 * Design tokens match the landing page brief.
 * Warm cream palette, Syne headings, Plus Jakarta Sans body.
 */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #faf6f1;
  --bg-warm:      #f3ece3;
  --fg:           #2d1f10;
  --fg-muted:     #7a6652;
  --accent:       #c85d2b;
  --accent-hover: #a84b22;
  --accent-light: #fcebd9;
  --cream:        #fff8f0;
  --sage:         #8fa97e;
  --sage-light:   #e8f0e3;
  --bark:         #5c3d21;
  --golden:       #d4a843;
  --border:       rgba(92,61,33,.12);
  --shadow:       0 4px 24px rgba(92,61,33,.10);
  --shadow-lg:    0 12px 48px rgba(92,61,33,.14);
  --radius:       16px;
  --radius-sm:    8px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,241,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--bark);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-light);
  color: var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: linear-gradient(170deg, var(--cream) 0%, var(--bg-warm) 50%, var(--sage-light) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--bark);
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 3rem;
}
.hero-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-tag {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--bark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(92,61,33,.07);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(200,93,43,.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--bark);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--bark); transform: translateY(-1px); }

/* ── What section ───────────────────────────────────────── */
.what-section {
  background: var(--cream);
  padding: 6rem 2rem;
}
.what-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.what-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--bark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.what-text p { color: var(--fg-muted); margin-bottom: 1rem; }
.what-cards { display: flex; flex-direction: column; gap: 1rem; }
.what-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.what-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.what-card-icon { font-size: 1.8rem; line-height: 1; }
.what-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--bark); margin-bottom: 0.25rem; }
.what-card p { font-size: 0.9rem; color: var(--fg-muted); }

/* ── Categories section ─────────────────────────────────── */
.categories {
  padding: 6rem 2rem;
  background: var(--bg-warm);
}
.categories-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.section-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.categories-inner h2,
.shop-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 3rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.cat-item {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  display: block;
}
.cat-item:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200,93,43,.12);
}
.cat-emoji { font-size: 2.4rem; display: block; margin-bottom: 0.75rem; }
.cat-item h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--bark); margin-bottom: 0.4rem; font-size: 1rem; }
.cat-item p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

/* ── Difference section ─────────────────────────────────── */
.difference { padding: 6rem 2rem; background: var(--bg); }
.diff-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.diff-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 3rem;
}
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.diff-card {
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
}
.diff-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; }
.diff-card li { font-size: 0.9rem; color: var(--fg-muted); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.diff-card li:last-child { border-bottom: none; }
.diff-card.them { background: var(--bg-warm); border: 1px solid var(--border); }
.diff-card.them h3 { color: var(--fg-muted); }
.diff-card.us { background: var(--accent); border: 1px solid var(--accent); }
.diff-card.us h3 { color: #fff; }
.diff-card.us li { color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.2); }

/* ── Closing / CTA section ──────────────────────────────── */
.closing {
  padding: 6rem 2rem;
  background: linear-gradient(160deg, var(--bark) 0%, #3a2410 100%);
  text-align: center;
}
.closing h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.closing p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-light {
  display: inline-block;
  background: #fff;
  color: var(--bark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-light:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--fg);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ── Shop Hero ──────────────────────────────────────────── */
.shop-hero {
  background: linear-gradient(170deg, var(--cream) 0%, var(--bg-warm) 100%);
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.shop-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 0.75rem;
}
.shop-hero p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ── Category filter tabs ───────────────────────────────── */
.cat-filters {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.cat-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}
.cat-filters-inner::-webkit-scrollbar { display: none; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.filter-tab:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filter-tab .tab-emoji { font-size: 1rem; }

/* ── Product grid ───────────────────────────────────────── */
.shop-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 0.25rem;
}
.section-desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-warm);
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--sage-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.65rem;
}
.product-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.product-price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bark);
}
.product-buy {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  transition: background 0.2s;
}
.product-buy:hover { background: var(--accent-hover); }

/* ── Category page heading strip ───────────────────────── */
.cat-page-header {
  background: linear-gradient(170deg, var(--cream) 0%, var(--bg-warm) 100%);
  padding: 3.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cat-page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cat-page-emoji {
  font-size: 3.5rem;
  line-height: 1;
}
.cat-page-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--bark);
  margin-bottom: 0.25rem;
}
.cat-page-header p { color: var(--fg-muted); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ── All-products category sections ────────────────────── */
.cat-section { margin-bottom: 4rem; }
.cat-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.cat-section-head .cat-section-emoji { font-size: 1.5rem; }
.cat-section-head h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--bark);
}
.cat-section-head a {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.cat-section-head a:hover { opacity: 0.75; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--fg-muted);
}
.empty-state .empty-emoji { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--bark); margin-bottom: 0.5rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .what-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cat-page-header-inner { flex-direction: column; align-items: flex-start; }
}
