/* F&S Wear — boutique */
:root {
  --ink: #2b2230;
  --muted: #7d7480;
  --bg: #fbf8f6;
  --card: #fff;
  --line: #ece5e1;
  --accent: #a8426a;
  --accent-dark: #8a3456;
  --soft: #f7e8ee;
  --ok: #2e7d4f;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }

/* En-tête */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; white-space: nowrap; }
.logo span { color: var(--accent); font-weight: 500; font-style: italic; }
.search { flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); font: inherit; }
.search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.cart-link { position: relative; display: flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cats { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; font-size: .92rem; font-weight: 500; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.cats a.active, .cats a:hover { color: var(--ink); border-color: var(--accent); }

/* Accueil */
.hero { text-align: center; padding: 42px 0 28px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 6px; }
.hero p { margin: 0 0 8px; color: var(--muted); }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px !important; }
.hero-badges span { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: .85rem; color: var(--ink); }
.page-title { padding: 26px 0 12px; }
.page-title h1 { font-size: 2.1rem; margin: 0; }
.crumb { font-size: .88rem; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips a { border: 1px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 99px; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); }
.section-title { font-size: 1.8rem; margin: 48px 0 16px; }

/* Grille produits */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; padding-bottom: 40px; }
.product-card { display: flex; flex-direction: column; }
.pc-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #efe9e5; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-img img { transform: scale(1.04); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.pc-body { display: flex; flex-direction: column; padding: 10px 2px 0; gap: 1px; }
.pc-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pc-name { font-weight: 500; }
.pc-price { font-weight: 700; }

/* Fiche produit */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 28px 0; align-items: start; }
.gallery-main { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #efe9e5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 68px; flex: none; cursor: pointer; background: none; aspect-ratio: 3 / 4; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: 120px; }
.product-info h1 { font-size: 2.3rem; margin: 4px 0 6px; line-height: 1.1; }
.price { font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.option-block { margin-bottom: 16px; }
.option-label { font-size: .9rem; margin-bottom: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; padding: 9px 14px; border: 1px solid #d9d0cb; background: #fff; border-radius: 8px; font: inherit; font-weight: 500; cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt.out { color: #bbb; text-decoration: line-through; cursor: not-allowed; background: #faf8f7; }
.stock-info { min-height: 1.4em; font-size: .9rem; color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.sold-out { font-weight: 600; color: var(--muted); }
.reassure { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: .9rem; display: grid; gap: 6px; }
.description { margin-top: 18px; color: #4a404d; }

/* Boutons, alertes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 14px 24px; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; margin-bottom: 10px; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--bg); }
.btn-wa { background: #25d366; border-color: #25d366; }
.btn-wa:hover { background: #1ebe57; }
.alert { background: #fbe7e5; color: #b3261e; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.alert-ok { background: #e3f3e8; color: var(--ok); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.empty { text-align: center; padding: 60px 0; }

/* Panier, commande */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-bottom: 48px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.cl-info { display: flex; flex-direction: column; }
.cl-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-qty select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 120px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin: 8px 0 14px; padding-top: 12px; }
.sum-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: .9rem; }
.sum-line img { width: 48px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.checkout-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.checkout-form input, .checkout-form textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 14px; border: 1px solid #d9d0cb; border-radius: 10px; font: inherit; background: #fff; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.pay-box { background: var(--soft); border-radius: 10px; padding: 14px 16px; margin: 6px 0 18px; }
.pay-box p { margin: 4px 0 0; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.thanks { text-align: center; max-width: 560px; margin: 0 auto; padding: 56px 0; }
.thanks .check { width: 64px; height: 64px; border-radius: 50%; background: #e3f3e8; color: var(--ok); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.thanks h1 { font-size: 2.4rem; margin: 0 0 8px; }

/* Pied de page */
.site-footer { background: var(--ink); color: #d9d0d6; margin-top: 40px; padding: 36px 0 18px; font-size: .9rem; }
.site-footer .logo { color: #fff; margin-bottom: 6px; }
.site-footer .logo span { color: #e9a3bf; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.copyright { font-size: .8rem; opacity: .6; margin-top: 18px; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 30; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product, .cart-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-info, .summary { position: static; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 4px; }
  .cart-link { margin-left: auto; }
  .logo { font-size: 1.5rem; }
  .product { padding-top: 12px; }
  .product-info h1 { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 1.8rem; }
}
