/* public/assets/style.css — CSS statique servi verbatim par le SaaS (passthrough). */

:root {
  --green: #2f6b3a;
  --green-dark: #234f2c;
  --ink: #1d2421;
  --muted: #5d6b62;
  --bg: #f6f8f5;
  --card: #ffffff;
  --border: #e0e6e0;
  --max: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

a { color: var(--green-dark); }

/* Bandeau demo (discret mais visible, en haut de chaque page) */
.demo-banner {
  background: #fff7e6;
  color: #6b4e16;
  border-bottom: 1px solid #f0d9a8;
  text-align: center;
  font-size: .85rem;
  padding: 7px 20px;
}

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.brand-link { text-decoration: none; }
.brand { font-weight: 800; color: var(--green); font-size: 1.2rem; }
.main-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; }
.search-form { margin-left: auto; }
.search-form input { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; min-width: 230px; }
.cart-link { text-decoration: none; font-weight: 600; }
.cart-badge { background: var(--green); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .85rem; }

/* Sections */
main { padding: 28px 0 50px; }
h1 { color: var(--green-dark); }
h2 { color: var(--green-dark); margin-top: 2rem; }
.hero p { max-width: 60ch; }

.promo-banner {
  display: flex; align-items: center; gap: 14px;
  background: #fff4d6; border: 1px solid #f0d68a; border-radius: 8px;
  padding: 12px 16px; margin: 18px 0;
}
.promo-label { font-weight: 700; }
.promo-cta { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
.shipping-note { color: var(--muted); font-style: italic; }
.offers { margin: 16px 0; }
.offers ul { display: inline-flex; gap: 10px; list-style: none; padding: 0 8px; margin: 0; }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 18px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.product-card__link { text-decoration: none; color: inherit; }
.product-card img, .product__media img { width: 100%; height: auto; border-radius: 8px; background: #eef2ee; }
.product-card__title { font-size: 1.05rem; margin: 12px 0 6px; }
.product-card__desc { color: var(--muted); font-size: .95rem; }
.price { font-weight: 800; color: var(--green-dark); font-size: 1.15rem; }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: #e8f1e9; color: var(--green-dark); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }

.add-to-cart { background: var(--green); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; font-weight: 600; margin-top: 10px; }
.add-to-cart:hover { background: var(--green-dark); }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.product__meta { display: flex; gap: 16px; align-items: baseline; margin: 12px 0; }
.unit, .thc, .cbd { color: var(--muted); }
.molecules { list-style: none; display: flex; gap: 10px; padding: 0; }
.badge-mol { display: inline-block; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 9px; font-weight: 700; font-size: .85rem; }
.sku { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.product__long p { max-width: 65ch; }

/* Reviews */
.reviews { display: grid; gap: 14px; margin-top: 14px; }
.review { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.r-verified { display: inline-block; background: #e8f1e9; color: var(--green-dark); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.r-title { margin: 8px 0 4px; }
.r-author { color: var(--muted); font-size: .9rem; }

/* Quick links / lists */
.quick-links { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 26px 0; margin-top: 40px; color: var(--muted); }
.footer-nav ul { list-style: none; display: flex; gap: 16px; padding: 0; }
.legal { font-size: .9rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
  .search-form { margin-left: 0; order: 3; width: 100%; }
}
