/* TinyGala — Main Stylesheet */

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

:root {
  --rose:    #c47d8a;
  --rose-dk: #a5626f;
  --blush:   #f7eef0;
  --cream:   #fdf8f5;
  --text:    #1c1c1e;
  --muted:   #6b6b6b;
  --border:  #e8e0dc;
  --white:   #ffffff;
  --radius:  8px;
  --shadow:  0 2px 8px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--rose-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--rose-dk);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--rose-dk); text-decoration: none; }

/* ── Hero ───────────────────────────────────── */
.hero {
  background: var(--blush);
  padding: 64px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--rose-dk);
  line-height: 1.2; margin-bottom: 16px;
}
.hero p {
  font-size: 1.1rem; color: var(--muted);
  max-width: 560px; margin: 0 auto 28px;
}
.btn {
  display: inline-block;
  background: var(--rose-dk); color: var(--white);
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--rose); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent; border: 2px solid var(--rose-dk); color: var(--rose-dk);
}
.btn-outline:hover { background: var(--rose-dk); color: var(--white); }

/* ── Occasions strip ────────────────────────── */
.occasions {
  background: var(--white);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.occasions-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.occasion-chip {
  padding: 6px 16px; border-radius: 24px;
  background: var(--blush); color: var(--rose-dk);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
  border: 1px solid transparent;
}
.occasion-chip:hover, .occasion-chip.active {
  background: var(--rose-dk); color: var(--white);
}

/* ── Inventory grid ─────────────────────────── */
.inventory {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px;
}
.section-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 24px;
  color: var(--text);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.card-img {
  width: 100%; height: 220px;
  object-fit: cover; background: var(--blush);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 16px; }
.card-title { font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.card-price { font-size: 1rem; font-weight: 700; color: var(--rose-dk); }
.card-price-orig { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.card-savings { font-size: 0.75rem; background: #e8f5e9; color: #388e3c; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }

/* ── Blog listing ───────────────────────────── */
.blog-header {
  background: var(--blush);
  padding: 48px 24px 32px;
  text-align: center;
}
.blog-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--rose-dk); font-weight: 700; }
.blog-header p { color: var(--muted); margin-top: 8px; max-width: 480px; margin-left: auto; margin-right: auto; }

.blog-grid {
  max-width: 860px; margin: 0 auto;
  padding: 40px 24px;
  display: grid; gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card-tag {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rose-dk); font-weight: 600; margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--rose-dk); text-decoration: none; }
.blog-card-excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--muted); }
.read-more { color: var(--rose-dk); font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* ── Blog post ──────────────────────────────── */
.post-header {
  background: var(--blush);
  padding: 48px 24px 36px;
  text-align: center;
}
.post-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700; color: var(--text); line-height: 1.25;
  max-width: 700px; margin: 0 auto 12px;
}
.post-meta { color: var(--muted); font-size: 0.88rem; }
.post-body {
  max-width: 720px; margin: 0 auto;
  padding: 40px 24px 64px;
}
.post-body h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.post-body p { margin-bottom: 18px; line-height: 1.75; color: var(--text); }
.post-body ul, .post-body ol { margin: 0 0 18px 24px; }
.post-body li { margin-bottom: 8px; line-height: 1.6; }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-cta {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px; margin: 40px 0;
  text-align: center;
}
.post-cta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--rose-dk); }
.post-cta p { color: var(--muted); margin-bottom: 16px; }
.post-back { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.post-back a { color: var(--rose-dk); }

/* ── Partner / CTA section ──────────────────── */
.cta-section {
  background: var(--rose-dk); color: var(--white);
  padding: 56px 24px; text-align: center;
}
.cta-section h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: 12px; }
.cta-section p { max-width: 520px; margin: 0 auto 24px; opacity: 0.9; }
.btn-white {
  background: var(--white); color: var(--rose-dk);
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; display: inline-block;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.9; text-decoration: none; color: var(--rose-dk); }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer a { color: rgba(255,255,255,0.7); margin: 0 8px; }
.footer a:hover { color: var(--white); }
.footer-links { margin-bottom: 12px; }

/* ── Partner form ───────────────────────────── */
.partner-section {
  max-width: 640px; margin: 0 auto;
  padding: 48px 24px;
}
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rose-dk);
}
textarea { resize: vertical; min-height: 100px; }
.form-success { color: #388e3c; font-weight: 600; padding: 12px; background: #e8f5e9; border-radius: var(--radius); }
.form-error { color: #c62828; font-weight: 600; padding: 12px; background: #ffebee; border-radius: var(--radius); }

/* ── Utility ────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state p { font-size: 1rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 40px 16px; }
  .blog-card { padding: 20px; }
  .post-body { padding: 24px 16px 48px; }
  .trust-badges { padding: 16px; }
  .trust-badge { flex-basis: 100%; }
  .size-chart-table thead { display: none; }
  .size-chart-table, .size-chart-table tbody, .size-chart-table tr, .size-chart-table td { display: block; width: 100%; }
  .size-chart-table td { border-bottom: 0; padding: 4px 0; }
  .size-chart-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); margin-right: 8px; }
}

/* ── Trust badges ───────────────────────────── */
.trust-badges {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
}
.trust-badges-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-badge {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-badge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.trust-badge-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trust-badge-label {
  font-weight: 700;
  color: var(--rose-dk);
}
.trust-badge-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Size chart ─────────────────────────────── */
.size-chart {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.size-chart-card {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.size-chart-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-dk);
  margin-bottom: 4px;
}
.size-chart-card .size-chart-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.size-chart-card .size-chart-footnote {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.size-chart-table th, .size-chart-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.size-chart-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}
.size-chart-table tr:last-child td {
  border-bottom: 0;
}
.size-chart-table .size-chart-notes {
  color: var(--muted);
  font-style: italic;
  font-size: 0.78rem;
}

/* ── Fit check ─────────────────────────────── */
.fit-check {
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.fit-check-card {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.fit-check-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-dk);
  margin-bottom: 4px;
}
.fit-check-card .fit-check-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.fit-check-card .fit-check-footnote {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 12px;
}
.fit-check-result {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fit-check-result-label {
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fit-check-result-size {
  font-weight: 700;
  color: var(--rose-dk);
}
.fit-check-result-hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.trust-badge--inline {
  padding: 6px 12px;
  font-size: 0.8rem;
  gap: 6px;
  flex: 0 0 auto;
}
