/* ============================================================
   shirtfindr.css — design system partagé entre tous les templates
   Palette : navy #0F172A / vert #22C55E / fond #F9FAFB
   Typo : Inter (Google Fonts), 400 et 500 uniquement
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

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

:root {
  --navy:           #0F172A;
  --green:          #22C55E;
  --green-hover:    #16A34A;
  --bg:             #F9FAFB;
  --white:          #FFFFFF;
  --text:           #111827;
  --text-secondary: #6B7280;
  --border:         #E5E7EB;
  --radius:         8px;
  --radius-sm:      6px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Header commun --- */
header.sf-header {
  background: var(--navy);
  color: var(--white);
  padding: 0 24px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  position: sticky;
  top: 0;
  z-index: 100;
}

header.sf-header .sf-nav {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

header.sf-header .sf-logo {
  height: 28px;
  width: auto;
  display: block;
}

header.sf-header .sf-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header.sf-header .sf-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.15s;
}

header.sf-header .sf-nav a:hover,
header.sf-header .sf-nav a.active {
  color: var(--white);
}

/* --- Boutons --- */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--green-hover); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover { background: var(--bg); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--text); background: var(--border); }

/* --- Cards produit --- */
.sf-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}
.sf-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.sf-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--bg);
  display: block;
}

.sf-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.sf-card-source {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.sf-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.sf-card-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.sf-card-price {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-top: auto;
  padding-top: 8px;
}

.sf-card a.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Bouton favori sur la card */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}
.fav-btn:hover { background: var(--white); color: var(--text); }
.fav-btn.active { color: #EF4444; }

/* --- Grille de résultats --- */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* --- Badges --- */
.sf-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: #DCFCE7;
  color: #166534;
  letter-spacing: 0.03em;
}

/* --- Inputs & selects --- */
.sf-input,
.sf-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
.sf-input:focus,
.sf-select:focus {
  border-color: var(--green);
}

/* --- Pagination --- */
.sf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.sf-pagination a,
.sf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.sf-pagination a:hover { background: var(--bg); }
.sf-pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.sf-pagination .disabled { color: var(--border); pointer-events: none; }

/* --- Section label --- */
.sf-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* --- Empty state --- */
.sf-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 60px 16px;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Utilitaires --- */
.sf-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sf-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
