:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #ede9fe;
  --primary-soft: #f4f3fb;
  --black: #130e2a;
  --text: #1e1e2d;
  --muted: #8e8ea0;
  --line: #f0f0f6;
  --bg: #f8f9fe;
  --card: #ffffff;
  --danger: #ef4444;
  --star: #f5a623;
  --radius: 16px;
  --nav-base-h: 62px;
  --safe-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  --nav-h: calc(var(--nav-base-h) + var(--safe-bottom));
  --font: "Outfit", system-ui, -apple-system, sans-serif;
}

/* ============================================================
   CLASSES UTILITAIRES
   ============================================================ */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100%;
  width: 100%;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--nav-h) + 24px);
}

.desktop-header {
  display: none;
}

#view {
  min-height: calc(100vh - var(--nav-h));
}

.screen-light {
  background: #ffffff;
  color: var(--text);
  padding: 14px 16px 20px;
  position: relative;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text);
  position: relative;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
}

.logo-wrap {
  text-align: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.logo-icon img {
  width: 68px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.logo {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin-bottom: 16px;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.search-filter-icon {
  display: grid;
  place-items: center;
}

.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #130e2a 0%, #1b1238 60%, #2a1554 100%);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.hero-mid {
  min-height: 210px;
  height: 210px;
  margin: 16px 0 6px;
}

.hero-mid img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.hero-mid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(19, 14, 42, 0.82) 0%,
      rgba(19, 14, 42, 0.6) 35%,
      rgba(19, 14, 42, 0.2) 65%,
      rgba(19, 14, 42, 0) 85%);
}

.hero-mid .hero-copy {
  height: 210px;
  padding: 20px 22px;
}

.hero-mid h2 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-mid p {
  font-size: 12px;
  margin-top: 6px;
}

.hero-mid .btn-purple {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
}

.hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(19, 14, 42, 0.85) 0%,
      rgba(19, 14, 42, 0.6) 35%,
      rgba(19, 14, 42, 0.15) 65%,
      rgba(19, 14, 42, 0) 85%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 62%;
  height: 220px;
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #c7c3e8;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.3);
  padding: 3px 9px;
  border-radius: 99px;
  width: max-content;
}

.hero h2 {
  font-family: var(--font);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero p {
  margin-top: 8px;
  font-size: 11px;
  color: #c7c3e8;
  font-weight: 300;
  line-height: 1.35;
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  width: max-content;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2e2ec;
  transition: all 0.2s ease;
}

.hero-dots span.on {
  background: var(--primary);
  width: 22px;
  border-radius: 99px;
}

.pad {
  padding: 16px 16px 20px;
}

.cats {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  flex: none;
  width: 58px;
}

.cat-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.cat-ico svg {
  width: 24px;
  height: 24px;
}

.cat-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.cat span {
  white-space: nowrap;
  font-size: 10px;
}

.cat .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
}

.section-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.link-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-home {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 12px;
  margin: 0 -16px;
}

.grid-home::-webkit-scrollbar {
  display: none;
}

.grid-home .product-card {
  flex: 0 0 135px;
  width: 135px;
  max-width: 135px;
}

.product-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f2fa;
  display: block;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}

.fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.fav svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #333;
  stroke-width: 1.8;
}

.fav.on svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.product-body {
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 2px;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Nouveau style pour Panier vide & Favoris vides (Format Mobile & Desktop)
   ========================================================================== */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 40px;
  max-width: 480px;
  margin: 0 auto;
  animation: emptyFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes emptyFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-illus-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-illus-wrap::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 200px;
  background: radial-gradient(circle, rgba(237, 233, 254, 0.85) 0%, rgba(245, 243, 255, 0.45) 70%, transparent 100%);
  border-radius: 50%;
  z-index: 1;
  transform: rotate(-10deg);
}

.empty-illus-img {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  animation: floatEmpty 4s ease-in-out infinite, illusPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes illusPop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes floatEmpty {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.empty-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 28px;
  font-weight: 400;
}

.empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  width: auto;
  min-width: 230px;
  cursor: pointer;
  user-select: none;
}

.empty-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #5b21b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.empty-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.empty-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.empty-btn:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

.empty-tip-card {
  margin-top: 36px;
  width: 100%;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf8ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.04);
}

.empty-tip-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
  animation: pulseTipIcon 3s ease-in-out infinite;
}

@keyframes pulseTipIcon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.empty-tip-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.empty-tip-content strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #5b21b6;
  margin-bottom: 2px;
}

.empty-tip-content p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.stars {
  font-size: 10px;
  color: var(--star);
  margin-bottom: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stars span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.old {
  color: #a0a0b2;
  font-size: 9px;
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 3px;
}

.shops {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 12px;
  margin: 0 -16px;
}

.shops::-webkit-scrollbar {
  display: none;
}

.shop-card {
  flex: 0 0 148px;
  width: 148px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.shop-media {
  height: 90px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card .info {
  padding: 8px 10px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.shop-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.shop-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.shop-rating {
  font-size: 10px;
  color: var(--star);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Page "Boutiques partenaires" ── */
.shops-page {
  padding: 8px 16px 28px;
  overflow: hidden;
}

.shops-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 80px;
  align-items: center;
  gap: 8px;
  padding: 6px 0 8px;
  min-height: 92px;
}

.shops-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -36px;
  width: 180px;
  height: 140px;
  background: radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.35), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.shops-hero-back {
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.shops-hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

.shops-hero-copy h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a1540;
  line-height: 1.15;
}

.shops-hero-copy p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 100%;
}

.shops-hero-art {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 74px;
  margin-right: -2px;
}

.shops-hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shops-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}

.shops-search {
  flex: 1;
  margin-bottom: 0;
}

.shops-filter-btn {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 16px;
  background: #fff;
  color: #1a1540;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: grid;
  place-items: center;
}

.shops-filter-btn svg {
  width: 20px;
  height: 20px;
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shop-card-full {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 30, 45, 0.06);
  text-decoration: none;
}

.shop-card-full-banner {
  position: relative;
  height: 118px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-soft);
}

.shop-card-full-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 10, 40, 0.15) 0%, rgba(18, 10, 40, 0.55) 100%);
}

.shop-card-full-banner-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}

.shop-card-full-banner-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.15;
}

.shop-card-full-banner-copy span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.shop-card-full-avatar {
  position: absolute;
  left: 12px;
  bottom: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  z-index: 3;
  overflow: hidden;
}

.shop-card-full-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-full-body {
  padding: 28px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-card-full-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-card-full-body h4 svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.shop-card-full-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.shop-card-full-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.shop-card-full-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-card-full-stats svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.shop-card-full-rating {
  color: var(--star);
  font-weight: 700;
}

.shop-card-full-cta {
  margin-top: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.shop-card-full-cta svg {
  width: 14px;
  height: 14px;
}

.shop-card-full-cta svg * {
  stroke: #ffffff;
}

@media (max-width: 380px) {
  .shops-grid {
    grid-template-columns: 1fr;
  }
}

.trust-banner {
  margin-top: 20px;
  background: var(--primary-light);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.trust-left strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #5b21b6;
}

.trust-left span {
  display: block;
  font-size: 10px;
  color: var(--primary-hover);
  margin-top: 1px;
}

.btn-trust {
  background: #ffffff;
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.1);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--nav-h);
  height: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px var(--safe-bottom);
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active svg {
  fill: var(--primary);
  color: var(--primary);
}

.badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--primary);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-head h1 {
  font-size: 18px;
  flex: 1;
}

.back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
}

.list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}





.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg);
  font-weight: 700;
}

.checkout {
  margin: 8px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout input,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}



.muted {
  color: var(--muted);
  font-size: 13px;
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

/* Header de détail */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.detail-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn-round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4f4f8;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all 0.2s ease;
}

.icon-btn-round svg {
  width: 18px;
  height: 18px;
}

.icon-btn-round.on svg {
  fill: var(--danger);
  stroke: var(--danger);
}

/* Detail Container */
.detail-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

/* Image Card */
.detail-media-card {
  position: relative;
  background: #f8f8fc;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
}

.detail-discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.detail-hero-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-img-counter {
  position: absolute;
  bottom: 34px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.detail-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.detail-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2e2ec;
}

.detail-dots span.on {
  background: var(--primary);
  width: 18px;
  border-radius: 99px;
}

/* Vignettes de sélection couleur / modèle */
.detail-swatches {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 4px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.swatch-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #e2e2ec;
  background: #f8f8fc;
}

.swatch-item.on img {
  border-color: var(--primary);
}

.swatch-item span {
  font-size: 11px;
  color: var(--text);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detail Info Card */
.detail-info-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-shop-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.shop-icon-sm svg {
  width: 18px;
  height: 18px;
}

.verified-icon svg,
.verified-icon-inline svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.detail-rating-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--star);
}

.detail-brand {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #b08d57);
  background: color-mix(in srgb, var(--accent, #b08d57) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #b08d57) 25%, transparent);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.detail-price-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.detail-price-old {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}

.detail-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f0ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  width: max-content;
}

.badge-tag-icon svg {
  width: 14px;
  height: 14px;
}

.detail-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}













/* Partner Card */
.detail-partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f8fc;
  border: 1px solid #ede8fd;
  border-radius: 16px;
  padding: 12px 14px;
}

.partner-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #ffffff;
  flex: none;
}

.partner-ico svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.partner-text {
  flex: 1;
}

.partner-text strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.partner-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.partner-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Quantity Row */
.detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.detail-sizes-row {
  padding: 6px 0;
}

.detail-sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.size-item {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #f4f4f8;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.size-item.on {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.qty-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f4f4f8;
  border-radius: 14px;
  padding: 6px 12px;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.qty-stepper span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 16px;
  text-align: center;
}

/* Action Block */
.detail-action-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.detail-buy-row {
  display: flex;
  gap: 10px;
}

.detail-fav-btn {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.2s ease;
}

.detail-fav-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
}

.detail-fav-btn.on svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.detail-add-btn {
  flex: 1;
  height: 50px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
}

.detail-add-btn:active {
  transform: scale(0.98);
}

.detail-add-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

/* ── Bouton "Acheter maintenant" ───────────────────────────────── */
.detail-buynow-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.detail-buynow-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.detail-buynow-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.detail-buynow-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  flex-shrink: 0;
}

/* ── Article achat express (lecture seule) ─────────────────────── */
.buynow-item-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e0e7ff;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
  position: relative;
}

.buynow-item-card::before {
  content: "Achat express";
  position: absolute;
  top: -1px;
  right: 14px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
}

.buynow-qty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 4px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  color: #047857;
}

.buynow-qty-badge strong {
  color: #065f46;
}

.detail-trust-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.shield-ico svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 80;
  max-width: 90%;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

.cat-row .cat-ico {
  margin: 0;
}

.loader {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.desk-nav .nav-item {
  flex-direction: row;
  font-size: 14px;
  color: #eee;
  gap: 0;
}

.desk-nav .nav-item.active {
  color: var(--gold);
}

.desk-cart {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
}

.desk-cart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

@media (min-width: 900px) {
  #app {
    max-width: none;
    padding-bottom: 0;
  }

  .desktop-header {
    display: grid;
    grid-template-columns: auto 1fr minmax(280px, 420px) auto;
    align-items: center;
    gap: 28px;
    background: var(--black);
    color: #fff;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .desk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .desk-brand .brand-icon {
    height: 56px;
    width: auto;
    display: block;
  }

  .desk-brand .logo {
    font-size: 32px;
    letter-spacing: 0.16em;
  }

  .desk-brand .tagline {
    display: block;
    margin-top: 2px;
  }

  .desk-nav {
    display: flex;
    gap: 22px;
    justify-content: flex-start;
  }

  .desk-search {
    background: var(--search);
    margin: 0;
  }

  .bottom-nav {
    display: none;
  }



  .topbar {
    display: none;
  }



  .hero {
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 28px;
  }

  .hero:not(.hero-mid) {
    height: 420px;
  }

  .hero:not(.hero-mid) .hero-copy {
    height: 420px;
  }

  .hero h2 {
    font-size: 48px;
    max-width: 55%;
  }

  .hero p {
    font-size: 16px;
    max-width: 46%;
  }

  .hero-copy {
    padding: 48px 52px;
  }

  .hero-mid {
    height: 280px;
    min-height: 280px;
    margin: 32px auto 8px;
  }

  .hero-mid .hero-copy {
    height: 280px;
    padding: 36px 48px;
    max-width: 55%;
  }

  .hero-mid h2 {
    font-size: 32px;
    line-height: 1.2;
    max-width: 100%;
  }

  .hero-mid p {
    font-size: 14px;
    max-width: 85%;
    margin-top: 8px;
  }

  .hero-mid .btn-purple {
    margin-top: 16px;
    padding: 10px 22px;
    font-size: 14px;
  }

  #mid-slot {
    margin: 16px 0 28px;
  }



  .hero-dots {
    max-width: 1180px;
    margin: 14px auto 0;
    justify-content: flex-start;
  }

  .pad {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 40px 16px;
  }

  .cats {
    justify-content: space-between;
    overflow: visible;
  }

  .cat {
    width: auto;
    font-size: 13px;
  }

  .cat-ico {
    width: 80px;
    height: 80px;
  }

  .section-head h3 {
    font-size: 24px;
  }

  .grid-2,
  .grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
  }

  .grid-home .product-card {
    flex: none;
    width: auto;
  }

  .shops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    overflow: visible;
  }

  .shops .shop-card {
    flex: none;
    width: auto;
    min-height: 180px;
    height: 180px;
  }

  .trust {
    max-width: 1180px;
    margin: 28px auto 40px;
    padding: 28px 16px;
  }

  .trust strong {
    font-size: 15px;
  }

  .trust span {
    font-size: 13px;
  }

  .page-head {
    max-width: 1180px;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 24px 40px 8px;
  }

  .page-head .back {
    display: none;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .shops-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 40px 48px;
  }

  .shops-hero-back {
    display: none;
  }

  .shops-hero {
    grid-template-columns: 1fr auto;
    min-height: 110px;
    margin-bottom: 8px;
    align-items: center;
  }

  .shops-hero-copy h1 {
    font-size: 32px;
  }

  .shops-hero-copy p {
    max-width: 420px;
    font-size: 15px;
  }

  .shops-hero-art {
    width: 120px;
    height: 110px;
  }

  .shops-search-row {
    max-width: 560px;
  }

  .shops-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .list,
  .checkout {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .checkout {
    margin-top: 8px;
  }

  .detail {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 40px 48px;
    align-items: start;
  }

  .detail img.hero-img {
    height: 520px;
    border-radius: 20px;
  }

  .toast {
    bottom: 32px;
  }
}

/* =========================================================
   PANIER & COMMANDE - DESIGN MAQUETTE (MOBILE & DESKTOP)
   ========================================================= */

.cart-container {
  padding: 12px 16px 36px;
  max-width: 680px;
  margin: 0 auto;
}

.cart-item-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  border: 1px solid #f2f2f7;
  margin-bottom: 14px;
}

.cart-item-img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: #f8f8fc;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 24px;
}

.cart-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.cart-item-shop {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #6c38ff;
}

.cart-qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #f4f0ff;
  border-radius: 12px;
  padding: 4px 12px;
  margin-top: 8px;
  align-self: flex-start;
}

.cart-qty-pill button {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #6c38ff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.cart-qty-pill span {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.cart-remove-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #111827;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cart-remove-btn:hover {
  opacity: 1;
}

.cart-products-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 4px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cart-products-subtotal .subtotal-val {
  font-size: 16px;
  color: #6c38ff;
}

/* FORMULAIRE DE COMMANDE */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #eeeef4;
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.015);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input-card:focus-within {
  border-color: #6c38ff;
  box-shadow: 0 0 0 3px rgba(108, 56, 255, 0.1);
}

.form-input-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5fa;
  display: grid;
  place-items: center;
  color: #555566;
  flex-shrink: 0;
}

.form-input-icon svg {
  width: 18px;
  height: 18px;
}

.form-input-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-input-label {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.form-input-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  font-family: inherit;
}

.form-input-field::placeholder {
  color: #a0a0b2;
  font-weight: 400;
}

.form-select-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #111827;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}

.form-select-arrow {
  color: var(--muted);
  pointer-events: none;
}

.form-select-arrow svg {
  width: 18px;
  height: 18px;
}

/* MODE DE LIVRAISON */
.delivery-mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 16px 4px 12px;
}

.delivery-mode-header svg {
  width: 22px;
  height: 22px;
  stroke: #6c38ff;
}

.delivery-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.delivery-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #eeeef4;
  border-radius: 20px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.delivery-card.active {
  background: #f8f5ff;
  border-color: #6c38ff;
  box-shadow: 0 4px 14px rgba(108, 56, 255, 0.08);
}

.delivery-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f5f5fa;
  display: grid;
  place-items: center;
  color: #6c38ff;
  margin-bottom: 12px;
}

.delivery-card.active .delivery-card-icon {
  background: #efebff;
}

.delivery-card-icon svg {
  width: 20px;
  height: 20px;
}

.delivery-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.delivery-card-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.delivery-card-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #6c38ff;
}

.delivery-card-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d0d0d8;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.delivery-card.active .delivery-card-check {
  border-color: #6c38ff;
  background: #6c38ff;
  color: #ffffff;
}

.delivery-card-check svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* RECAP BARRE INFERIEURE */
.cart-bottom-summary {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f0f0f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cart-shipping-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6c38ff;
}

.cart-shipping-info svg {
  width: 18px;
  height: 18px;
}

.cart-grand-total {
  font-size: 15px;
  font-weight: 800;
  color: #6c38ff;
}

.btn-validate-order {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #6c38ff 100%);
  color: #ffffff;
  border-radius: 30px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  box-shadow: 0 8px 24px rgba(108, 56, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-validate-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(108, 56, 255, 0.35);
}

.btn-validate-order svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   PAGE DE CONFIRMATION DE COMMANDE (SCREEN 2)
   ========================================================= */

.order-confirmation-wrap {
  padding: 16px 16px 40px;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D PACKAGE ILLUSTRATION */
.order-3d-illus-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 8px auto 20px;
  display: grid;
  place-items: center;
}

.order-3d-glow-bg {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 235, 255, 0.9) 0%, rgba(240, 235, 255, 0) 70%);
  z-index: 1;
}

.order-3d-box-svg {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 12px 24px rgba(108, 56, 255, 0.22));
}

.order-confirm-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin: 0 0 6px;
}

.order-confirm-sub {
  font-size: 13.5px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 20px;
}

/* CARD DATE / REF */
.order-date-card {
  width: 100%;
  background: #f5f3ff;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-date-left {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e9e3ff;
  display: grid;
  place-items: center;
  color: #6c38ff;
}

.order-date-left svg {
  width: 22px;
  height: 22px;
}

.order-date-right {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.4;
}

/* RECAP CARD */
.order-recap-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 20px;
  border: 1px solid #f0f0f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
  margin-bottom: 16px;
}

.order-recap-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.order-recap-head svg {
  width: 22px;
  height: 22px;
  stroke: #6c38ff;
}

.order-recap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #f5f5fa;
  margin-bottom: 14px;
}

.order-recap-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-recap-item-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #f8f8fc;
}

.order-recap-item-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f0ebff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-recap-item-placeholder svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

.order-recap-item-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.order-recap-item-info span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.order-recap-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #6c38ff;
  margin-top: 2px;
}

.order-recap-item-right {
  text-align: right;
}

.order-recap-item-qty {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 2px;
}

.order-recap-item-total {
  font-size: 14px;
  font-weight: 700;
  color: #6c38ff;
}

/* DELIVERY ROW IN RECAP */
.order-recap-delivery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.order-recap-delivery-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-recap-delivery-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5f3ff;
  display: grid;
  place-items: center;
  color: #6c38ff;
}

.order-recap-delivery-icon svg {
  width: 20px;
  height: 20px;
}

.order-recap-delivery-info label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.order-recap-delivery-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.order-recap-delivery-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

/* GRAND TOTAL ROW IN RECAP */
.order-recap-grand-total {
  background: #f8f5ff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-recap-total-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.order-recap-total-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #6c38ff;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.order-recap-total-icon svg {
  width: 18px;
  height: 18px;
}

.order-recap-total-price {
  font-size: 18px;
  font-weight: 800;
  color: #6c38ff;
}

/* INFO CALLOUT BANNER */
.order-info-banner {
  width: 100%;
  background: #f8f8fc;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.order-info-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  display: grid;
  place-items: center;
  color: #555566;
  flex-shrink: 0;
  margin-top: 1px;
}

.order-info-icon svg {
  width: 14px;
  height: 14px;
}

.order-info-banner p {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
  line-height: 1.45;
}

/* ACTION BUTTONS */
.order-actions-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-confirm-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #6c38ff 100%);
  color: #ffffff;
  border-radius: 30px;
  padding: 15px;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(108, 56, 255, 0.28);
}

.btn-confirm-primary svg,
.btn-confirm-secondary svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
}

.btn-confirm-secondary {
  width: 100%;
  background: #ffffff;
  color: #6c38ff;
  border: 1.5px solid #6c38ff;
  border-radius: 30px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ================================================================
   PAGE COMPTE / AUTHENTIFICATION CLIENT
================================================================ */

/* Conteneur principal de la page auth */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f5f3ff 0%, #faf9fe 60%, #ffffff 100%);
  padding-bottom: calc(var(--nav-h) + 20px);
}

/* Illustration en haut de la page */
.auth-illus {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0 20px;
}

.auth-illus-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  animation: authGlowPulse 3s ease-in-out infinite;
}

@keyframes authGlowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.auth-illus-icon {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.32);
  animation: authIconFloat 4s ease-in-out infinite;
}

@keyframes authIconFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.auth-illus-icon svg {
  width: 48px;
  height: 48px;
  stroke: #ffffff;
  color: #ffffff;
}

/* Zone de contenu */
.auth-content {
  flex: 1;
  padding: 8px 22px 40px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Bouton Google */
.auth-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e0f0;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}

.auth-btn-google:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #c4b5fd;
  transform: translateY(-1px);
}

.auth-btn-google:active {
  transform: translateY(0);
}

.auth-btn-google span:first-of-type {
  flex: 1;
  text-align: left;
}

/* Bouton Facebook */
.auth-btn-facebook {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1877F2;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.32);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.auth-btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.42);
  transform: translateY(-1px);
}

.auth-btn-facebook:active {
  transform: translateY(0);
}

.auth-btn-facebook span:first-of-type {
  flex: 1;
  text-align: left;
}

.auth-btn-arrow {
  font-size: 16px;
  opacity: 0.7;
}

/* Séparateur OU */
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Formulaire */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.auth-field-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 10px;
}

.auth-field-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  color: var(--muted);
}

.auth-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 14.5px;
  color: var(--text);
}

.auth-field::placeholder {
  color: var(--muted);
}

.auth-eye {
  display: flex;
  align-items: center;
  padding: 8px;
  margin-right: -6px;
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
}

/* Options (remember + forgot) */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.auth-remember input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* Bouton de soumission principal */
.auth-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, #6c38ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 56, 255, 0.3);
  transition: box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  margin-top: 4px;
}

.auth-submit:hover {
  box-shadow: 0 8px 28px rgba(108, 56, 255, 0.42);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Bouton déconnexion (variante outline) */
.auth-logout-btn {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  box-shadow: none;
  margin-top: 20px;
}

.auth-logout-btn:hover {
  background: #fef2f2;
  box-shadow: none;
  transform: translateY(-1px);
}

/* Lien switch login/register */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-switch-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

/* ================================================================
   PAGE DASHBOARD CLIENT (connecté)
================================================================ */
.account-page {
  min-height: calc(100vh - var(--nav-h));
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + 20px);
}



.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-initials {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}













/* ============================================================
   DASHBOARD CLIENT — nouveau design fidèle au maquette
   ============================================================ */

/* Carte profil en-tête */
.dash-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  margin: 12px 14px;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 2px 16px rgba(124, 58, 237, .07);
  position: relative;
}

/* Avatar avec bouton caméra */
.dash-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dash-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-camera-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.dash-camera-btn svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
}

/* Infos profil */
.dash-profile-info {
  flex: 1;
  min-width: 0;
}

.dash-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-email {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-phone {
  font-size: 12.5px;
  color: var(--text);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-phone svg {
  width: 13px;
  height: 13px;
  stroke: var(--primary);
  flex-shrink: 0;
}

.dash-member {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-member-icon {
  display: flex;
}

.dash-member-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
}

.dash-edit-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.dash-edit-icon svg {
  width: 20px;
  height: 20px;
}

/* Stats row */
.dash-stats-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  margin: 0 14px 12px;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(124, 58, 237, .06);
}

.dash-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 0;
}

.dash-stat-item:hover {
  background: #f9f7ff;
  border-radius: 12px;
}

.dash-stat-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.dash-stat-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
}

.dash-stat-item strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.dash-stat-item small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.dash-stat-sep {
  width: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* Menu groupes */
.dash-menu-group {
  background: #fff;
  border-radius: 18px;
  margin: 0 14px 12px;
  box-shadow: 0 2px 12px rgba(124, 58, 237, .06);
  overflow: hidden;
}

.dash-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: none;
  cursor: pointer;
  transition: background .15s;
}

.dash-menu-item:last-child {
  border-bottom: none;
}

.dash-menu-item:hover {
  background: #f9f7ff;
}

.dash-menu-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-menu-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--primary);
}

.dash-menu-text {
  flex: 1;
  min-width: 0;
}

.dash-menu-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.dash-menu-text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
}

.dash-menu-item>svg:last-child {
  width: 18px;
  height: 18px;
  stroke: #c4b5fd;
  flex-shrink: 0;
}

/* Bandeau sécurité */
.dash-security-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 12px;
  background: var(--primary-light);
  border-radius: 18px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.dash-security-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-security-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.dash-security-banner strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.dash-security-banner p {
  font-size: 11.5px;
  color: #7c5cb8;
  margin: 2px 0 0;
}

.dash-security-badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 60px;
  height: 60px;
  opacity: .12;
}

.dash-security-badge svg {
  width: 60px;
  height: 60px;
  stroke: var(--primary);
}

/* Bouton logout */
.auth-logout-btn {
  background: #fff !important;
  color: var(--danger) !important;
  border: 1.5px solid #fee2e2 !important;
  box-shadow: none !important;
}

.auth-logout-btn:hover {
  background: #fef2f2 !important;
}

/* Cartes commandes */
.dash-order-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  transition: box-shadow .15s, border-color .15s;
}

.dash-order-card:hover {
  box-shadow: 0 4px 16px rgba(124, 58, 237, .1);
  border-color: var(--primary-light);
}

/* Cartes adresses */
.dash-addr-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-addr-default {
  border-color: var(--primary-light);
  background: #faf8ff;
}

/* Boutons icônes (edit / delete) */
.dash-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}

.dash-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
}

.dash-icon-btn-danger {
  background: #fef2f2;
}

.dash-icon-btn-danger svg {
  stroke: var(--danger);
}

.dash-icon-btn:hover {
  background: var(--primary-soft);
}

.dash-icon-btn-danger:hover {
  background: #fee2e2;
}



/* ================================================================
   SYSTÈME D'AVIS & COMMENTAIRES (PRODUITS & BOUTIQUES)
================================================================ */
.detail-reviews-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  margin-top: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.reviews-header-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.reviews-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.reviews-score-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reviews-score-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.reviews-stars-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--star);
  font-size: 18px;
}

.reviews-stars-wrap .star-empty {
  color: #e2e8f0;
}

.reviews-stars-wrap .star-half {
  position: relative;
  display: inline-block;
  color: #e2e8f0;
}

.reviews-stars-wrap .star-half::before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--star);
}

.reviews-count-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Bandeau d'information / Non éligible */
.review-notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8faff;
  border: 1.5px dashed #c7d2fe;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.review-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-notice-icon svg {
  width: 20px;
  height: 20px;
}

.review-notice-text {
  flex: 1;
}

.review-notice-text strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.review-notice-text p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.review-login-btn {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  transition: opacity .15s;
}

.review-login-btn:hover {
  opacity: 0.9;
}

/* Mon avis existant (client connecté éligible) */
.review-my-card {
  background: #faf5ff;
  border: 1.5px solid #d8b4fe;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.review-my-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-my-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7e22ce;
}

.review-my-badge svg {
  width: 16px;
  height: 16px;
}

.btn-edit-my-review {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.btn-edit-my-review:hover {
  background: #ddd6fe;
}

.review-my-stars {
  font-size: 16px;
  color: var(--star);
  margin-bottom: 6px;
}









.star-rating-selector {
  margin-bottom: 14px;
}

.star-selector-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.star-rating-stars {
  display: flex;
  gap: 6px;
  align-items: center;
}

.star-pick-btn {
  font-size: 26px;
  color: #cbd5e1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: transform .15s, color .15s;
}

.star-pick-btn.active,
.star-pick-btn.hover {
  color: var(--star);
}

.star-pick-btn:hover {
  transform: scale(1.15);
}

.star-rating-hint {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.review-comment-textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 12px;
  transition: border-color .15s;
}

.review-comment-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.comment-composer {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.comment-composer .review-comment-textarea {
  margin-bottom: 0;
}



.btn-submit-review {
  background: linear-gradient(135deg, var(--primary), #9333ea);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.btn-submit-review:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-cancel-review {
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

/* Liste des avis */
.reviews-list-container {
  margin-top: 20px;
}

.reviews-list-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.reviews-list-empty {
  text-align: center;
  padding: 24px 10px;
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
  border-radius: 12px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
}

.review-item-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-item-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.badge-verified-purchase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
  margin-left: 6px;
}

.badge-verified-purchase svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.review-item-date {
  font-size: 12px;
  color: var(--muted);
}

.review-item-stars {
  font-size: 14px;
  color: var(--star);
  margin-bottom: 6px;
}

.review-item-stars .star-empty {
  color: #e2e8f0;
}

.review-item-stars .star-half {
  position: relative;
  display: inline-block;
  color: #e2e8f0;
}

.review-item-stars .star-half::before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--star);
}

.review-item-comment {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  margin: 6px 0 0;
}

/* Bouton d'évaluation dans Mes Commandes */
.btn-review-order-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all .15s;
}

.btn-review-order-item:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-review-order-item.reviewed {
  background: #f3f0ff;
  color: var(--primary);
  border: 1px solid #ddd6fe;
}

.btn-review-order-item.reviewed:hover {
  background: var(--primary-light);
}

/* Modal de rédaction d'avis */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease-out;
}

.review-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.review-modal-prod-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.review-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.review-modal-prod-name {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.review-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.review-modal-body {
  padding: 20px;
}

.review-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #a7f3d0;
}

.review-verified-tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.review-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ================================================================
   PAGE DÉTAIL BOUTIQUE & ONGLETS AVIS
================================================================ */
.shop-hero-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.shop-hero-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.shop-hero-body {
  padding: 16px 20px 20px;
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.shop-hero-avatar-wrap {
  margin-top: -46px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.shop-hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.shop-hero-details {
  flex: 1;
}

.shop-hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.shop-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.shop-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.shop-meta-tag .meta-icon svg {
  width: 14px;
  height: 14px;
}

.shop-rating-tag {
  background: #fffbeb;
  color: #b45309;
  font-weight: 700;
  border: 1px solid #fef3c7;
}

.shop-rating-tag small {
  color: #92400e;
  font-weight: 500;
  margin-left: 2px;
}

/* Onglets de la boutique */
.shop-tabs-row {
  display: flex;
  background: var(--primary-light);
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  margin-bottom: 16px;
}

.shop-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6b21a8;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}

.shop-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

/* ============================================================
   FIL D'ACTUALITÉ INFINI (NORMES META / INSTAGRAM)
   ============================================================ */

/* Disposition en grille verticale stricte pour le défilement vertical sur mobile */
.infinite-feed-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.infinite-feed-grid .product-card {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

@media (min-width: 768px) {
  .infinite-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {
  .infinite-feed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* 1. Virtualisation et libération de RAM mobile (Meta standard) */
.feed-product-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.feed-product-card:hover {
  transform: translateY(-2px);
}

.product-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f1f3f9;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-img-wrapper img.loaded {
  opacity: 1;
}

/* Badge de recommandation dynamique */
.feed-recom-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  z-index: 2;
  text-transform: uppercase;
}

.feed-head-titles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-sub-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 12px;
}

/* 2. Micro-Spinner / Skeleton discret */
.feed-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.feed-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: feedSpin 0.75s linear infinite;
}

@keyframes feedSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 3. Bloc d'invitation à la connexion Guest (Style Meta / Instagram) */
.meta-guest-gate-card {
  margin: 32px 0 24px;
  padding: 28px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f6fe 100%);
  border: 1.5px solid #e9d5ff;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08);
  position: relative;
  overflow: hidden;
  animation: metaGateFadeIn 0.4s ease-out forwards;
}

@keyframes metaGateFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.meta-guest-gate-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 80px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.meta-guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-guest-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1e2d;
  line-height: 1.35;
  margin-bottom: 10px;
}

.meta-guest-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto 22px;
}

.meta-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.meta-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.meta-btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.meta-btn-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.meta-btn-facebook {
  background: #1877f2;
  color: #ffffff;
  border: 1.5px solid #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.28);
}

.meta-btn-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}







/* ============================================================
   TRANSITION DE PAGE (GLISSEMENT SPA)
   ============================================================ */
.view-transition {
  animation: viewSlideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-transition.view-back {
  animation-name: viewSlideInLeft;
}

@keyframes viewSlideInRight {
  from {
    transform: translateX(60px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes viewSlideInLeft {
  from {
    transform: translateX(-60px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .view-transition,
  .view-transition.view-back {
    animation: none;
  }
}