/* TinyFit Jewelry - Custom Styles */
:root {
  --bg: #FAFAF9;
  --text: #1C1917;
  --muted: #78716C;
  --border: #E7E5E4;
  --accent: #B76E79;
  --accent-light: #F2E0E3;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --gold: #C9A96E;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 8px; }

/* Hero */
.hero {
  text-align: center; padding: 60px 20px 50px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
}
.hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.btn {
  display: inline-block; padding: 14px 32px;
  background: var(--accent); color: var(--white);
  border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; min-height: 44px;
  transition: background 0.2s;
}
.btn:hover { background: #A25D67; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

/* Sections */
section { padding: 50px 0; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.section-subtitle { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 32px; font-size: 0.95rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--muted); }

/* Stats */
.stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 30px 0; }
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--muted); }

/* Size chart table */
.size-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.size-table th { background: var(--accent-light); color: var(--text); font-weight: 600; padding: 10px 12px; text-align: left; }
.size-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.size-table tr:hover { background: #FAF5F6; }

/* Brand DB */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 24px;
}
.filter-bar select, .filter-bar input {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.88rem; font-family: inherit;
  min-height: 44px; background: var(--white);
}
.brand-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; display: flex;
  flex-direction: column; gap: 10px;
}
.brand-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.brand-card .country-flag { font-size: 0.8rem; color: var(--muted); }
.brand-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 3px 10px;
  background: var(--accent-light); color: var(--accent);
  border-radius: 20px; font-size: 0.75rem; font-weight: 500;
}
.tag-gold { background: #FEF3C7; color: #92400E; }
.tag-green { background: #D1FAE5; color: #065F46; }
.brand-card .price { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.brand-card .note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.brand-card .shop-btn {
  align-self: flex-start; padding: 8px 20px;
  background: var(--accent); color: var(--white);
  border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}
.brand-card .shop-btn:hover { background: #A25D67; text-decoration: none; }
.no-results { text-align: center; padding: 40px; color: var(--muted); }

/* Article content */
.article { padding: 40px 0; }
.article h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.article .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 32px; }
.article h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.article h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 20px; }
.article li { margin-bottom: 6px; }
.article blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: var(--accent-light); border-radius: 0 8px 8px 0;
  margin: 20px 0; font-style: italic; color: var(--muted);
}
.callout {
  background: #FEF3C7; border: 1px solid #FDE68A;
  border-radius: 8px; padding: 16px 20px; margin: 20px 0;
}
.callout-title { font-weight: 700; margin-bottom: 4px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 30px 0;
  text-align: center; font-size: 0.82rem; color: var(--muted);
}
.footer a { color: var(--muted); }
.affiliate-disclosure {
  background: #F5F5F4; padding: 12px 16px; border-radius: 8px;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 16px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Mobile */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 16px 36px; }
  .stats { gap: 24px; }
  .stat-number { font-size: 1.5rem; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .filter-bar { flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 1.4rem; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
