/* Maison Basti — storefront shared styles */
:root {
  --ink: #1a1714; --muted: #8a8178; --line: #e7e1d8; --bg: #faf7f2;
  --card: #ffffff; --gold: #b08d57; --gold-ink: #6b5230; --good: #2f7d4f;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Georgia", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.sans { font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* top trust bar */
.trustbar {
  background: var(--ink); color: #f3ece1; text-align: center;
  font: 12px/1 -apple-system, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; padding: 9px 12px;
}

/* header */
header.site {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { font-size: 22px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; font-weight: 600; }
.brand small { display: block; font-size: 10px; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
nav.main { display: flex; gap: 22px; font: 13px/1 -apple-system, "Segoe UI", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-block; font: 14px/1 -apple-system, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: 2px; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* hero */
.hero { text-align: center; padding: 78px 22px 64px; }
.hero .kicker { font: 12px/1 -apple-system, "Segoe UI", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 18px 0 14px; font-weight: 500; line-height: 1.15; }
.hero p { max-width: 640px; margin: 0 auto 26px; color: #5a534b; font-size: 18px; }

/* trust strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px; }
.strip .item { text-align: center; font: 13px/1.4 -apple-system, "Segoe UI", system-ui, sans-serif; color: #4d4740; }
.strip .item b { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 5px; }
.strip .item span { color: var(--gold-ink); font-size: 19px; }

/* section heading */
.section { padding: 56px 0; }
.section h2 { text-align: center; font-size: 28px; font-weight: 500; margin: 0 0 6px; }
.section .sub { text-align: center; color: var(--muted); font: 14px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif; margin-bottom: 34px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .15s; }
.pcard:hover { box-shadow: 0 10px 30px rgba(26,23,20,.10); transform: translateY(-2px); }
.pcard .imgwrap { aspect-ratio: 1/1; background: #f0ece5; position: relative; overflow: hidden; }
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oneofone { position: absolute; top: 10px; left: 10px; background: rgba(26,23,20,.86); color: #fff;
  font: 10px/1 -apple-system, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; padding: 6px 9px; border-radius: 2px; }
.pcard .body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .maison { font: 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.pcard .name { font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.7em; }
.pcard .price { margin-top: auto; font: 600 17px/1 -apple-system, system-ui, sans-serif; }
.pcard .allin { font: 11px/1 -apple-system, system-ui, sans-serif; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 40px; font-family: -apple-system, system-ui, sans-serif; }

/* maison tiles */
.maisons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
.maisons a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--card);
  padding: 26px 10px; text-align: center; border-radius: 4px; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; transition: .15s; }
.maisons a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* authentication band */
.authband { background: var(--ink); color: #f1e8da; text-align: center; padding: 60px 22px; }
.authband h2 { color: #fff; font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.authband p { max-width: 620px; margin: 0 auto; color: #cdc3b3; }

/* newsletter */
.news { text-align: center; padding: 56px 22px; }
.news form { display: flex; gap: 10px; max-width: 460px; margin: 18px auto 0; }
.news input { flex: 1; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; font: inherit; }

/* footer */
footer.site { background: #efe9e0; border-top: 1px solid var(--line); margin-top: 40px; }
footer.site .wrap { padding: 40px 22px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; font: 14px/1.8 -apple-system, "Segoe UI", system-ui, sans-serif; }
footer.site h4 { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
footer.site a { display: block; text-decoration: none; color: #4d4740; }
footer.site a:hover { color: var(--ink); }
.pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pay span { font: 11px/1 -apple-system, system-ui, sans-serif; border: 1px solid var(--line); background: #fff; padding: 6px 9px; border-radius: 3px; color: #4d4740; letter-spacing: .06em; }
.copyright { text-align: center; padding: 16px; font: 12px/1 -apple-system, system-ui, sans-serif; color: var(--muted); border-top: 1px solid var(--line); }

/* delivery / disclosure boxes */
.disclosure { background: #f6f0e7; border: 1px solid #ecdfca; border-radius: 6px; padding: 14px 16px; font: 14px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif; color: var(--gold-ink); }

/* Entrupy verification pill — shared across product page, cards & homepage (sentence case) */
.entrupy-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 -apple-system, system-ui, sans-serif;
  color: #2f7d4f; background: #eef6f0; border: 1px solid #cfe6d7; border-radius: 999px; padding: 6px 11px; white-space: nowrap; }
.entrupy-pill.on-image { position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(238,246,240,.96); box-shadow: 0 1px 5px rgba(26,23,20,.14); }

/* condition rank badge (A/B/C) */
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
  padding: 0 7px; border: 1px solid var(--ink); border-radius: 999px; background: #fff;
  font: 700 12px/1 -apple-system, system-ui, sans-serif; color: var(--ink); letter-spacing: .02em; }
.rank-badge.tr { position: absolute; top: 10px; right: 10px; z-index: 2; box-shadow: 0 1px 5px rgba(26,23,20,.14); }

/* faceted filters (stock-aware) */
.facets { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 24px; }
.facet { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.facet .flabel { font: 11px/1 -apple-system, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); width: 84px; flex: none; padding-top: 8px; }
.facet .opts { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.fchip { font: 13px/1 -apple-system, system-ui, sans-serif; border: 1px solid var(--line); background: var(--card);
  color: #4d4740; border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: .12s; }
.fchip:hover { border-color: var(--gold); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .strip .wrap { grid-template-columns: repeat(2,1fr); }
  footer.site .wrap { grid-template-columns: 1fr; }
  nav.main { display: none; }
}
