/* HEMS-BENIN BOUTIQUE — Design system premium */
:root {
  --ink: #0a0a0a;
  --graphite: #2a2a2a;
  --muted: #6b6b6b;
  --ivory: #faf8f5;
  --cream: #f3efe8;
  --beige: #e8e0d4;
  --border: rgba(10,10,10,0.08);
  --champagne: #c9a227;
  --champagne-dark: #a6841a;
  --white: #ffffff;
  --danger: #a32020;
  --ok: #1a6b3c;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --header-h: 76px;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(10,10,10,0.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container-wide { width: min(1400px, 94%); margin: 0 auto; }

/* Typography */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-dark);
  font-weight: 500;
}
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}
.btn:hover { background: var(--graphite); border-color: var(--graphite); }
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-gold {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--ink);
}
.btn-gold:hover { background: var(--champagne-dark); border-color: var(--champagne-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
}
.btn-sm { padding: 10px 18px; font-size: 0.68rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-dark);
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 22px;
}
.nav-desktop a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.62rem;
  display: grid;
  place-items: center;
}
.nav-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 22px;
}
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--ivory);
  z-index: 99;
  padding: 28px 6%;
  flex-direction: column;
  gap: 18px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,0.55), rgba(10,10,10,0.72));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 20px 80px;
  max-width: 780px;
}
.hero .eyebrow { color: var(--champagne); }
.hero h1 { margin: 16px 0 12px; }
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head p {
  color: var(--muted);
  max-width: 420px;
  font-size: 0.95rem;
}
.link-arrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
}
.product-card .badge.sale { background: var(--champagne); color: var(--ink); }
.product-card .body { padding: 16px 14px 18px; }
.product-card .cat {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
}
.price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.82rem;
}
.price .now { font-weight: 600; }

/* Categories strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 800px) {
  .cat-strip { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .cat-strip { grid-template-columns: repeat(6, 1fr); }
}
.cat-tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  display: grid;
  place-items: end start;
  padding: 16px;
  color: var(--white);
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7), transparent 60%);
}
.cat-tile span {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Bento / editorial */
.editorial {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
}
.editorial-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
}
.editorial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editorial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75), transparent 55%);
}
.editorial-card > * { position: relative; z-index: 1; }
.editorial-card h3 { margin: 8px 0 12px; font-size: 1.8rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 72px 20px;
}
.cta-band .eyebrow { color: var(--champagne); }
.cta-band h2 { margin: 12px 0 16px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 28px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer .brand-name { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,0.65);
}
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
}
.motto { color: var(--champagne); letter-spacing: 0.08em; font-size: 0.75rem; }

/* Page hero small */
.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.page-hero h1 { margin-top: 8px; }

/* Filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 99px;
}
.chip.active, .chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 10px 14px;
  min-width: min(280px, 100%);
}
.search-box input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
}

/* Product detail */
.product-layout {
  display: grid;
  gap: 32px;
  padding: 40px 0 64px;
}
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}
.gallery-main {
  aspect-ratio: 3/4;
  background: var(--cream);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumbs button {
  width: 64px;
  height: 80px;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--cream);
  overflow: hidden;
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info .ref {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin: 8px 0 16px;
}
.product-info .price { font-size: 1.25rem; margin-bottom: 20px; }
.option-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.option-row button {
  min-width: 42px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.option-row button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.qty-row input {
  width: 64px;
  height: 42px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--white);
}
.product-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.product-meta {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.product-meta p { margin-bottom: 8px; }

/* Cart */
.cart-layout {
  display: grid;
  gap: 28px;
  padding: 36px 0 64px;
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: var(--cream);
}
.cart-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cart-item .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary h2 { font-size: 1.4rem; margin-bottom: 18px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 640px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--graphite);
}
.form-control {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: 12px 14px;
  outline: none;
}
.form-control:focus { border-color: var(--ink); background: var(--white); }
.form-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.step {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.step.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}
.step.done { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Empty */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.85rem;
  z-index: 2000;
  transition: transform 0.3s ease;
  max-width: 90%;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Admin minimal */
.admin-shell {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 240px 1fr; }
}
.admin-side {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 24px 18px;
}
.admin-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.admin-main { padding: 28px 6%; background: var(--cream); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ivory);
}
.badge-soft {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.7rem;
  background: var(--cream);
  border-radius: 99px;
}
.badge-soft.on { background: #e5f3ea; color: var(--ok); }
.badge-soft.off { background: #f3e5e5; color: var(--danger); }

/* WhatsApp */
.wa-float{
  position:fixed; right:18px; bottom:22px; z-index:9999;
  display:flex; align-items:center; gap:8px;
  background:#25D366; color:#fff !important;
  padding:12px 16px; border-radius:999px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  font-size:.8rem; font-weight:600; letter-spacing:.04em;
}
.wa-float i{ font-size:1.25rem; }
@media(max-width:600px){ .wa-float span{ display:none; } .wa-float{ padding:14px; } }
