/* ==========================================================================
   nabudavid — maquette HTML
   Feuille de style principale (portage de app/globals.css)
   ========================================================================== */

:root {
  --ink: #171318;
  --plum: #241824;
  --coral: #ff705b;
  --paper: #fbfaf8;
  --muted: #8a8188;
}

* { box-sizing: border-box; }

html {
  background: #eeeae7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eeeae7;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { background: #eeeae7; }

.app-frame {
  max-width: 560px;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(31, 20, 27, .08);
  padding-bottom: 96px;
}

/* ---------- Header / marque ---------- */
.app-header {
  background: rgba(251, 250, 248, .9);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.brand { color: var(--ink); }

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 800;
  font-size: 15px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -.07em;
  font-size: 19px;
}

.icon-button,
.round-light,
.like-button,
.add-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button {
  color: var(--ink);
  background: transparent;
  font-size: 21px;
  padding: 2px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
}

/* ---------- Typo ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--coral);
}

.eyebrow.muted,
.muted { color: var(--muted); }

.hero-title {
  font-size: clamp(42px, 10vw, 60px);
  letter-spacing: -.075em;
  line-height: .88;
  font-weight: 800;
}

.hero-title em { color: var(--coral); font-style: normal; }

.drop-index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding-bottom: 3px;
}

.drop-index small { color: var(--muted); font-size: 10px; }

.hero-card {
  height: 390px;
  border-radius: 22px;
  background: #ddd;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 10, 18, .72));
}

.round-light {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 18px;
}

/* ---------- Catégories ---------- */
.category-nav { scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }

.category-pill {
  border: 1px solid #e7e0dc;
  background: transparent;
  color: #766c73;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

/* ---------- Sections ---------- */
.section-title {
  font-size: 19px;
  letter-spacing: -.045em;
  font-weight: 800;
}

.page-title {
  font-size: clamp(42px, 11vw, 64px);
  letter-spacing: -.08em;
  line-height: .88;
  font-weight: 800;
}

.page-title em { color: var(--coral); font-style: normal; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1ece9;
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--muted);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- Profil ---------- */
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  background: #f1ece9;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-weight: 800;
  font-size: 20px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee7e3;
  background: white;
  padding: 18px 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.profile-row > i:first-child {
  width: 22px;
  font-size: 18px;
  color: var(--coral);
}

.empty-state { color: var(--muted); }

.dark-pill {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

/* ---------- Produits ---------- */
.product-image-wrap {
  height: 245px;
  border-radius: 17px;
  overflow: hidden;
  background: #e3dfdd;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-image-wrap:hover .product-image { transform: scale(1.04); }

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.like-button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 31px;
  height: 31px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  border-radius: 50%;
  font-size: 14px;
}

.like-button.liked { color: var(--coral); }

.add-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--ink);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 15px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.product-price { color: var(--muted); font-size: 13px; }

/* ---------- Manifeste ---------- */
.manifesto {
  background: var(--plum);
  color: white;
  border-radius: 22px;
  min-height: 260px;
}

.manifesto-orbit {
  position: absolute;
  right: 20px;
  top: 10px;
  color: var(--coral);
  font-size: 85px;
  line-height: 1;
  opacity: .9;
  transform: rotate(18deg);
}

.manifesto-title {
  font-size: 38px;
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 800;
}

.manifesto-copy {
  color: #cfc2cc;
  max-width: 260px;
  font-size: 14px;
}

.manifesto-button,
.checkout-button {
  border: 0;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.community-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* ---------- Navigation basse ---------- */
.bottom-nav {
  bottom: 0;
  max-width: 560px;
  background: rgba(251, 250, 248, .94);
  backdrop-filter: blur(18px);
  border-top: 1px solid #eee7e3;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  z-index: 20;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #a1989e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  min-width: 52px;
  cursor: pointer;
}

.nav-item i { font-size: 19px; line-height: 1; }
.nav-item.active { color: var(--ink); }
.nav-item:nth-child(3) i { color: var(--coral); font-size: 25px; }

/* ---------- Panier ---------- */
.offcanvas { background: var(--paper); }
.empty-cart { color: var(--ink); }

.checkout-button {
  background: var(--ink);
  color: white;
  padding: 15px;
}

.checkout-button:disabled {
  background: #ddd6d3;
  color: #948b90;
  cursor: not-allowed;
}

/* ---------- Responsive ---------- */
@media (min-width: 576px) {
  .bottom-nav { position: fixed; }
}