/* ===== KWT (Kwite) — Pièces moto Burkina Faso / Mali · thème bleu ===== */
:root {
  --navy: #0f2c52;
  --blue: #1c5fa8;
  --blue-bright: #2f7fd1;
  --blue-soft: #e8f1fa;
  --gold: #f2a51f;
  --gold-dark: #d98e12;
  --paper: #f3f6fa;
  --card: #ffffff;
  --ink: #1b2733;
  --ink-soft: #5b6b7a;
  --line: #e2e9f1;
  --wa: #25d366;
  --radius: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== Topbar ===== */
.topbar { background: var(--navy); color: #dbe6f2; font-size: 0.84rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 8px 20px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-item svg { width: 14px; height: 14px; fill: var(--gold); }
.topbar .spacer { flex: 1; }
.topbar a { color: #dbe6f2; }
.topbar a:hover { color: #fff; }

/* ===== Header ===== */
.site-sticky { position: sticky; top: 0; z-index: 50; background: var(--card); box-shadow: 0 1px 5px rgba(15,44,82,.10); }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 22px; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .logo-badge {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 1px;
}
.brand .logo-badge span { color: var(--gold); }
.brand .brand-text .name { font-weight: 800; font-size: 1.1rem; color: var(--navy); line-height: 1.1; }
.brand .brand-text .sub { font-size: 0.74rem; color: var(--ink-soft); }

.search-box { flex: 1; display: flex; max-width: 560px; }
.search-box input {
  flex: 1; border: 1px solid var(--line); border-right: none; border-radius: 10px 0 0 10px;
  padding: 12px 16px; font-size: 0.95rem; outline: none; background: var(--paper);
}
.search-box input:focus { border-color: var(--blue); background: #fff; }
.search-box button {
  border: none; background: var(--gold); color: #fff; border-radius: 0 10px 10px 0;
  padding: 0 26px; cursor: pointer; font-size: 1.05rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 68px;
}
.search-box button svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.search-box button:hover { background: var(--gold-dark); }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { border: none; background: #fff; color: var(--soft); padding: 8px 12px; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.lang-switch button.active { background: var(--navy); color: #fff; }
.lang-switch button + button { border-left: 1px solid var(--line); }

.header-actions { display: flex; gap: 14px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: var(--navy); }

/* ===== Nav ===== */
.main-nav { border-bottom: 1px solid var(--line); background: #fff; }
.main-nav ul { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 14px 16px; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 52px 0 44px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; margin-bottom: 14px; }
.hero p.lead { font-size: 1.05rem; color: #d8e6f5; max-width: 660px; margin-bottom: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.96rem; border: none; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(0.95); text-decoration: none; }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); text-decoration: none; }

/* ===== Trust strip ===== */
.trust { background: var(--card); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 20px; }
.trust div { font-size: 0.9rem; color: var(--ink-soft); }
.trust strong { color: var(--navy); }

/* ===== Sections ===== */
.section { padding: 40px 0; }
.section h2 { font-size: 1.45rem; margin-bottom: 8px; color: var(--navy); }
.section .sub { color: var(--ink-soft); margin-bottom: 24px; max-width: 660px; }

/* ===== Shop layout: sidebar + grid ===== */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: stretch; }
.shop > div { min-width: 0; }
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; height: 100%; min-height: 0; max-height: 100%; }
.sidebar h3 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; }
.sidebar + .sidebar { margin-top: 20px; }
.cat-list { list-style: none; overflow-y: auto; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list::-webkit-scrollbar { width: 6px; }
.cat-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cat-list li button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 0.93rem; color: var(--ink); text-align: left;
}
.cat-list li button:hover { background: var(--blue-soft); }
.cat-list li button.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.cat-list .count { color: var(--ink-soft); font-size: 0.82rem; }

.shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.shop-head .count-txt { color: var(--ink-soft); font-size: 0.92rem; }
.sort-select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 0.9rem; background: #fff; }

/* ===== Product grid & cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s;
}
.product:hover { box-shadow: 0 8px 22px rgba(15,44,82,0.12); }
.product .thumb {
  position: relative; background: var(--blue-soft); aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.85rem;
}
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-hot {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #d7263d; color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.5px; padding: 4px 9px; border-radius: 7px;
  box-shadow: 0 2px 6px rgba(215,38,61,0.35);
}
.badge-hot-lg { display: inline-block; margin: 4px 0 12px; font-size: 0.85rem; padding: 6px 12px; }
.product .body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product .cat { font-size: 0.8rem; color: var(--ink-soft); }
.product .meta-line { font-size: 0.8rem; color: var(--blue); }
.product h3 { font-size: 0.98rem; line-height: 1.35; color: var(--ink); }
.product .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; padding-top: 6px; }
.product .actions .btn { padding: 7px 12px; font-size: 0.82rem; justify-content: center; }
.btn-cart { background: var(--blue); color: #fff; }
.btn-cart:hover { background: var(--navy); text-decoration: none; }

/* ===== Country / feature cards ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .link { display: inline-block; margin-top: 12px; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .ico { font-size: 1.5rem; margin-bottom: 8px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.feature p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--ink-soft); }

/* ===== Detail page ===== */
.detail-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; margin-top: 20px; }
.detail-thumb { background: var(--blue-soft); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 1.55rem; margin-bottom: 10px; color: var(--navy); }
.detail-info .cat-line { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-table th { width: 38%; color: var(--ink-soft); }
.detail-desc { color: var(--ink-soft); margin: 16px 0; }
.empty-note { color: var(--ink-soft); padding: 40px 0; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c6d5e6; padding: 40px 0 0; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.98rem; }
.site-footer p { font-size: 0.9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; font-size: 0.9rem; }
.site-footer a { color: #c6d5e6; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid #33547a; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; fill: #dbe6f2; }
.footer-bottom { margin-top: 30px; padding: 16px 20px; border-top: 1px solid #23446b; font-size: 0.82rem; color: #8fa8c2; text-align: center; }
.footer-bottom .container { max-width: var(--max); margin: 0 auto; text-align: center; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff;
  padding: 13px 18px; border-radius: 30px; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.wa-float svg { width: 24px; height: 24px; fill: #fff; }
.wa-float:hover { filter: brightness(0.95); text-decoration: none; }

/* ===== Contact form ===== */
.contact-block { background: var(--card); border-top: 1px solid var(--line); }
.contact-form { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: var(--paper); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { font-size: 0.88rem; color: var(--blue); min-height: 1.2em; }
.wechat-btn {
  background: none; border: none; color: var(--blue); cursor: pointer;
  font: inherit; padding: 0; text-decoration: underline;
}
.wechat-btn:hover { color: var(--blue-bright); }
.site-footer .wechat-btn { color: #c6d5e6; }
.site-footer .wechat-btn:hover { color: #fff; }
.wechat-btn.copied::after { content: " ✓"; color: var(--wa); }

/* ===== Pagination ===== */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.pager-btn {
  min-width: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--navy); font-size: .9rem; cursor: pointer;
}
.pager-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager-btn:disabled { opacity: .4; cursor: default; }

/* ===== Card transition animation ===== */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-grid.animate-in .product { animation: cardIn .32s ease both; }
.product-grid.animate-in .product:nth-child(2) { animation-delay: .04s; }
.product-grid.animate-in .product:nth-child(3) { animation-delay: .08s; }
.product-grid.animate-in .product:nth-child(4) { animation-delay: .12s; }
.product-grid.animate-in .product:nth-child(5) { animation-delay: .16s; }
.product-grid.animate-in .product:nth-child(6) { animation-delay: .2s; }

/* ===== Responsive ===== */
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .search-box { display: none; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
  .main-nav { display: none; position: static; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a { display: block; padding: 12px 14px; }
  .shop { grid-template-columns: 1fr; }
  .grid-2, .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { max-height: 240px; }
  .hero h1 { font-size: 1.55rem; }
  .trust .container { gap: 14px; }
  .topbar .container { gap: 10px; }
  .product .body .actions { flex-direction: column; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}
