/* =========================
   BASE
========================= */
:root{
  --bg:#ffffff;
  --text:#222;
  --muted:#666;
  --border:#e7e7e7;
  --accent:#e91e63; /* rose bouton */
  --brand:#e11d48;
  --line:#e5e7eb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
}

a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)} 

.container{
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.theme-light { background:#fff; color:var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

.head { background:#fff; border-bottom:1px solid var(--line); }
.head__inner { display:grid; grid-template-columns: 220px 1fr auto; align-items:center; gap:24px; padding:16px 0; }
.brand { font-size:28px; font-weight:700; text-decoration:none; color:var(--text); }
.brand:hover{ color:var(--brand); }

.head__center { display:flex; align-items:center; gap:14px; }

/* === Cat dropdown === */
.catdrop { position:relative; }
.catdrop__btn {
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#f9fafb;
  font-weight:500; cursor:pointer;
}
.catdrop__menu {
  position:absolute; top:110%; left:0; min-width:260px; background:#fff; border:1px solid var(--line);
  border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.06); padding:8px; display:none; z-index:20;
}
.catdrop.is-open .catdrop__menu { display:block; }
.catdrop__menu ul{ list-style:none; margin:0; padding:0; max-height:320px; overflow:auto; }
.catdrop__menu a{ display:block; padding:10px 12px; border-radius:8px; }
.catdrop__menu a:hover{ background:#f3f4f6; }

/* === Searchbar === */
.searchbar { display:flex; align-items:center; flex:1; border:1px solid var(--line); background:#fff; border-radius:12px; overflow:hidden; }
.searchbar input{ flex:1; padding:12px 14px; border:0; outline:none; font-size:15px; }
.searchbar__btn{ display:grid; place-items:center; width:48px; height:44px; border-left:1px solid var(--line); cursor:pointer; }

/* === Actions === */
.head__actions { display:flex; align-items:center; gap:10px; }
.iconbtn { position:relative; display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:50%; }
.iconbtn:hover{ color:var(--brand); border-color:var(--brand); }
.cartbtn__count{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px;
  background:var(--brand); color:#fff; border-radius:999px; font-size:12px;
  display:flex; align-items:center; justify-content:center;
}

/* Responsive header */
@media (max-width: 1024px){
  .head__inner{ grid-template-columns: 240px 1fr auto; }
  .brand__logo{ height:48px; }
}
@media (max-width: 900px){
  .head__inner{ grid-template-columns: 1fr auto; }
  .brand__logo{ height:42px; }
  .head__center { grid-column: 1 / -1; width:100%; }
}

/* =========================
   NAVIGATION CATÉGORIES
========================= */
.catnav { background:#111827; border-bottom:1px solid var(--line); }
.catnav .nav-flex { display:flex; justify-content:space-between; align-items:center; }
.catnav .nav-left { display:flex; justify-content:center; flex:1; gap:40px; list-style:none; }
.catnav .nav-right { display:flex; gap:20px; }
.catnav ul{ margin:0; padding:0; display:flex; flex-wrap:wrap; gap:20px; list-style:none; }
.catnav a{ display:block; padding:12px 0; color:#fff; font-weight:500; }
.catnav a:hover { color:#facc15; }

/* =========================
   HERO SLIDER
========================= */
.hero{padding:18px 0 8px}
.slider{ position:relative; background:#fafafa; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.slider-track{display:flex;scroll-snap-type:x mandatory;overflow:auto}
.slide{ flex:0 0 100%; scroll-snap-align:start; min-height:280px; display:flex;align-items:center;justify-content:center; background:#f4f4f4; }
.slide img{ width:100%;height:420px;object-fit:cover;display:block; }
.caption{ position:absolute;left:16px;bottom:16px; background:rgba(255,255,255,.9);padding:10px 14px;border-radius:10px; }
.slider .nav{ position:absolute;top:50%;translate:0 -50%;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:#fff;display:grid;place-items:center;cursor:pointer; }
.slider .prev{left:12px} .slider .next{right:12px}

/* =========================
   BADGES
========================= */
.badges { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:20px 0; }
.badge { background:#000; color:#fff; font-weight:600; text-align:center; padding:20px 15px; border-radius:10px; }
.badge:hover { background:#222; }

/* =========================
   PRODUITS (listes, cartes)
========================= */
.featured-section { padding:40px 0 10px; }
.featured-section h2 { text-align:center; margin-bottom:24px; }
.grid.products.featured { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media(max-width:980px){ .grid.products.featured { grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .grid.products.featured { grid-template-columns:1fr; } }

.grid.products{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media (max-width: 980px){ .grid.products{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 560px){ .grid.products{grid-template-columns:1fr} }

.card{ background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden; box-shadow:0 6px 16px rgba(0,0,0,.04) }
.card img{width:100%;height:160px;object-fit:cover;display:block}
.card .name{font-weight:600;padding:10px 12px 0}
.card .price{color:var(--accent);font-weight:700;padding:4px 12px 12px}
.btn{ display:inline-block;margin:0 12px 12px;padding:8px 14px;border-radius:10px; background:var(--accent);color:#fff;font-weight:600 }

/* =========================
   SIDEBAR
========================= */
.sidebar .widget{ background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:16px }
.sidebar .widget h3{margin:0 0 10px}
.sidebar input[type=text]{ width:100%;padding:10px;border:1px solid var(--border);border-radius:10px }
ul.plain{list-style:none;padding:0;margin:0}
ul.plain li{padding:6px 0;border-bottom:1px dashed var(--border)}
ul.plain li:last-child{border-bottom:0}

/* =========================
   PAGE PRODUIT (détail)
========================= */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}
.product-page .product-images img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}
.product-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-page .product-info h2 { font-size:26px; margin-bottom:10px; }
.product-page .product-info p { color:var(--muted); margin-bottom:20px; }
.product-page .product-info .price { font-size:22px; font-weight:700; margin-bottom:20px; }
.product-page .product-info .form-label { font-weight:600; margin-bottom:6px; display:block; }
.product-page .product-info input[type="text"],
.product-page .product-info select {
  width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; margin-bottom:15px;
}
.product-page .product-info button {
  display:inline-block; padding:12px 20px; background:var(--accent); color:#fff;
  border-radius:8px; font-weight:600; border:none; cursor:pointer;
}
.product-page .product-info button:hover { background:#c2185b; }

/* Responsive produit */
@media (max-width: 768px) {
  .product-page { grid-template-columns: 1fr; }
  .product-page .product-images img { max-width:100%; margin:0 auto; display:block; }
}
/* === ACCOUNT PAGE === */
.account-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bloc principal */
.account-box {
  flex: 1;
  max-width: 700px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.account-box h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: #111827;
}

.account-box h3 {
  font-size: 18px;
  color: #374151;
  margin-top: 25px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.account-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.account-nav a {
  padding: 10px 0;
  font-weight: 500;
  color: #555;
  position: relative;
}

.account-nav a.active {
  color: #111;
  font-weight: 600;
}

.account-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e11d48;
  border-radius: 2px;
}

/* Champs du formulaire */
.account-form form {
  display: grid;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 5px;
  color: #374151;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

/* Boutons */
button,
.logout-btn {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover,
.logout-btn:hover {
  background: #be123c;
}

/* Colonne latérale */
.account-sidebar {
  width: 250px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
}

.account-sidebar h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

.account-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-sidebar li {
  margin-bottom: 10px;
}

.account-sidebar a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #374151;
  transition: 0.2s;
}

.account-sidebar a:hover {
  background: #e11d48;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .account-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .account-sidebar {
    width: 100%;
    order: -1;
  }
}
:root {
  --fg: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --pill: #f9fafb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: #fff;
}
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
a { color: inherit; text-decoration: none; }

/* --- Header principal --- */
.head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head__inner {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__logo {
  height: 100px;
  width: auto;
  display: block;
  object-fit: unset;
}
.brand__text {
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

/* --- Barre centrale --- */
.head__center {
  display: flex;
  gap: 14px;
  align-items: center;
}
.catdrop {
  position: relative;
}
.catdrop__btn {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--pill);
}
.catdrop__menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  padding: 8px;
  display: none;
  z-index: 20;
}
.catdrop.is-open .catdrop__menu { display: block; }
.catdrop__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}
.catdrop__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
}
.catdrop__menu a:hover { background: #f3f4f6; }

.searchbar {
  display: flex;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.searchbar input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  outline: 0;
}
.searchbar__btn {
  width: 48px;
  height: 44px;
  border-left: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* --- Actions à droite --- */
.head__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.cartbtn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Nav Catégories --- */
.catnav {
  background: #111827;
  border-bottom: 1px solid var(--line);
}
.catnav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}
.catnav a {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-weight: 500;
}
.catnav a:hover { color: #facc15; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .head__inner { grid-template-columns: 240px 1fr auto; }
  .brand__logo { height: 70px; max-height: 70px; }
}
@media (max-width: 900px) {
  .head__inner { grid-template-columns: 1fr auto; }
  .brand__logo { height: 50px; max-height: 50px; }
  .brand__text { font-size: 22px; }
  .head__center { grid-column: 1 / -1; }
}
input.mismatch {
  border-color: #e11d48 !important;
  background-color: #fff5f6 !important;
}
.account-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.account-box-section {
  flex: 1 1 300px;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
}

.account-box-section.full-width {
  flex: 1 1 100%;
  max-width: 100%;
}

.account-box-section h3 {
  margin-top: 0;
  color: #111827;
}

.account-box-section .edit-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #e11d48;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th, .orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.orders-table th {
  background: #f9fafb;
}
.currency-form select {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 13px;
  padding: 3px 8px;
  cursor: pointer;
}
.currency-form select:hover {
  border-color: #999;
}

