/* NoGrey — чист „аптечен“ стил: бяло + тъмнозелено */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sage: #eef3ef;
  --sage-2: #dfe9e2;
  --green: #1f4d3a;
  --green-2: #2c6a50;
  --green-ink: #143528;
  --text: #1c2622;
  --muted: #5d6c64;
  --line: #e3e7e3;
  --danger: #b4382f;
  --warn: #b7791f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 53, 40, .06), 0 8px 24px rgba(20, 53, 40, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.section { padding: 64px 0; }
/* при скок към #how, #contact и т.н. заглавието да не остава под залепеното меню */
section[id] { scroll-margin-top: 64px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Announcement + header */
.announce { background: var(--green); color: #e9f2ec; text-align: center; font-size: .85rem; padding: 8px 16px; }
.announce:empty { display: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green-ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .9rem; font-family: var(--sans); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--green-2); }
.cart-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--green-ink); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.cart-count { background: var(--green); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--green-ink); }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; margin-left: auto; }
}

/* Buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--green); background: var(--green); color: #fff; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-2); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--sage); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage-2); border-color: var(--green-2); }
.field { margin-bottom: 16px; }
.field small { color: var(--muted); font-size: .82rem; }
.field > small { display: block; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--sage); border: 1px solid var(--sage-2); font-size: .95rem; }
.notice.error { background: #fbeceb; border-color: #f0c9c5; color: var(--danger); }
.notice.ok { background: #e7f3ec; border-color: #c6e2d1; color: var(--green-ink); }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, #f3f7f4 0%, #e3ede6 55%, #d4e3d9 100%); background-size: cover; background-position: center; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; padding-top: 48px; padding-bottom: 48px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.hero-trust span::before { content: "✓ "; color: var(--green-2); font-weight: 800; }
.hero-visual { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff 0%, #eef3ef 45%, #cfe0d5 100%); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--sage-2); }
.hero-visual .bottle { width: 34%; height: 62%; background: var(--green); border-radius: 22px 22px 16px 16px; position: relative; box-shadow: var(--shadow); }
.hero-visual .bottle::before { content: ""; position: absolute; top: -14%; left: 30%; width: 40%; height: 16%; background: var(--green-ink); border-radius: 6px 6px 0 0; }
.hero-visual .bottle::after { content: "NoGrey"; position: absolute; left: 10%; right: 10%; top: 36%; background: #fbfaf7; color: var(--green-ink); text-align: center; padding: 14% 0; font-family: var(--serif); font-weight: 700; border-radius: 6px; font-size: clamp(.8rem, 1.6vw, 1.1rem); }
/* hero с фон снимка от админа */
.hero.has-bg { background-size: cover; background-position: center; }
.hero.has-bg h1, .hero.has-bg p.lead, .hero.has-bg .hero-trust, .hero.has-bg .eyebrow { color: #fff; }
.hero.has-bg .hero-trust span::before { color: #bfe3cc; }
.hero.has-bg .hero-visual { display: none; }
.hero.has-bg .container { grid-template-columns: 1fr; }
.hero.has-bg .btn.ghost { color: #fff; border-color: #fff; }
.hero.has-bg .btn.ghost:hover { background: rgba(255,255,255,.12); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .hero-visual { max-width: 280px; margin: 0 auto; }
  .hero.has-bg .container { min-height: 70vh; align-content: end; }
}

/* Benefits / steps */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.icon-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; font-size: 1.1rem; }
.step-num { font-family: var(--serif); font-size: 2.2rem; color: var(--green-2); line-height: 1; margin-bottom: 8px; }
.band { background: var(--sage); }

/* Product grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-img { position: relative; aspect-ratio: 1; background: var(--sage); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3 { margin: 0; font-size: 1.1rem; }
.p-feats { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.p-feats li::before { content: "• "; color: var(--green-2); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--green); color: #fff; }
.badge.sale { background: var(--danger); }
.badge.urgent { background: #fff4e0; color: var(--warn); border: 1px solid #f2d8a7; text-transform: none; letter-spacing: 0; }
.badge.out { background: #6b7280; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price .now { font-weight: 800; font-size: 1.2rem; color: var(--green-ink); }
.price .bgn { font-size: .85rem; color: var(--muted); }
.price .old { text-decoration: line-through; color: var(--muted); font-size: .9rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0 64px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; } }
.gallery-main { aspect-ratio: 1; background: var(--sage); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--sage); cursor: pointer; }
.thumbs button.active { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .price .now { font-size: 1.8rem; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--green-ink); }
.qty input { width: 48px; text-align: center; border: 0; padding: 10px 0; border-radius: 0; }
.buy-row { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.acc summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; color: var(--green-2); font-size: 1.2rem; }
.acc details[open] summary::after { content: "–"; }
.acc ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.trust-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; font-size: .92rem; }
.trust-list li::before { content: "✓ "; color: var(--green-2); font-weight: 800; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stars { color: #c9932b; letter-spacing: 2px; }
.review .who { font-weight: 700; margin-top: 10px; font-size: .92rem; }
.review .meta { color: var(--muted); font-size: .82rem; }
.review-photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.review-photos button { width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sage); cursor: zoom-in; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 20, 15, .9); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.photo-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-picker .ph { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--sage); border: 1px solid var(--line); }
.photo-picker .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(20,53,40,.85); color: #fff; cursor: pointer; line-height: 1; font-size: 1rem; }
.photo-picker .add { width: 86px; height: 86px; border-radius: 10px; border: 2px dashed var(--sage-2); display: grid; place-items: center; text-align: center; color: var(--green); font-weight: 700; font-size: .78rem; cursor: pointer; margin: 0; padding: 6px; }
.photo-picker .add:hover { background: var(--sage); }
.star-input { display: flex; gap: 6px; font-size: 2rem; }
.star-input button { background: none; border: 0; cursor: pointer; color: #d9d9d4; padding: 0; line-height: 1; }
.star-input button.on { color: #c9932b; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }

/* Cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 30, 22, .4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); z-index: 61; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head button { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--sage); }
.line-item .name { font-weight: 700; font-size: .95rem; }
.line-item .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 0; }
.line-item .qty button { width: 30px; }
.line-item .qty input { width: 34px; padding: 4px 0; }
.totals { display: grid; gap: 6px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 1.15rem; color: var(--green-ink); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; padding: 40px 0 64px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { order: -1; } }
.summary { position: sticky; top: 84px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .btn { padding: 10px 16px; }

/* Footer */
.site-footer { background: var(--green-ink); color: #c9d8cf; padding: 48px 0 28px; margin-top: 40px; font-size: .92rem; }
.site-footer a { color: #e9f2ec; text-decoration: none; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 10px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .82rem; color: #9fb4a8; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose li { margin-bottom: 6px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--green-ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 80; transition: transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--sage-2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
