:root {
  --bg: #f4f8fb;
  --bg-accent: #e2eef7;
  --card: #ffffff;
  --ink: #1b2733;
  --muted: #63748a;
  --line: #d8e5ef;
  --blue: #2f7fc1;
  --blue-soft: #e3f0fa;
  --blue-ink: #1c568c;
  --green: #3f9a63;
  --green-soft: #e6f4ec;
  --green-ink: #2c6f47;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(30, 70, 110, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--bg-accent), transparent),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header { padding: 44px 0 10px; }
.site-header h1 { font-size: 2.2rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin: 0 0 16px; font-size: 1.05rem; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.swatch-steroid { background: var(--blue-soft); border: 2px solid var(--blue); }
.swatch-anti { background: var(--green-soft); border: 2px solid var(--green); }

/* Product card */
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 26px 0;
  overflow: hidden;
}
.product.is-steroid { border-left: 5px solid var(--blue); }
.product.is-anti { border-left: 5px solid var(--green); }

.product-top { display: grid; grid-template-columns: 460px 1fr; }
@media (max-width: 760px) { .product-top { grid-template-columns: 1fr; } }

.viewer {
  background: linear-gradient(180deg, #ffffff, #eef5fa);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 16px 16px;
}
@media (max-width: 760px) { .viewer { border-right: none; border-bottom: 1px solid var(--line); } }

.viewer img {
  height: 620px; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(20, 50, 80, 0.20));
  transition: opacity .18s ease;
}
.viewer img.fading { opacity: 0; }

.flip {
  display: flex; gap: 6px; margin-top: 18px;
  background: #e4edf4; border-radius: 999px; padding: 4px;
}
.flip button {
  border: 0; background: transparent; padding: 6px 18px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.flip button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.details { padding: 24px 26px; }
.kicker { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 2px; }
.details h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.name-en { color: var(--muted); font-style: italic; margin: 2px 0 12px; }

.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.meta .chip {
  background: var(--bg-accent); border: 1px solid var(--line); color: var(--blue-ink);
  border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600;
}
.meta .chip.drug.steroid { background: var(--blue); color: #fff; border-color: var(--blue); }
.meta .chip.drug.anti { background: var(--green); color: #fff; border-color: var(--green); }
.meta .chip.price { background: var(--green-soft); border-color: #c6e2d1; color: var(--green-ink); }

.facts { margin: 0 0 14px; font-size: .9rem; }
.facts div { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: none; }
.f-label {
  display: inline-block; min-width: 110px; color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}

.claims { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.claims li { margin: 2px 0; }

.filters-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.shelf p:not(.filters-title) {
  margin: 0; font-size: .9rem; background: var(--green-soft); border: 1px solid #c6e2d1;
  border-radius: 10px; padding: 9px 13px;
}
.shelf .shelf-src { color: var(--green-ink); font-size: .82rem; }

/* Ingredients */
.ingredients { border-top: 1px solid var(--line); }
.ingredients summary {
  cursor: pointer; padding: 14px 26px; font-weight: 600; color: var(--blue-ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.ingredients summary::-webkit-details-marker { display: none; }
.ingredients summary::after { content: "▾"; transition: transform .15s; margin-left: auto; color: var(--muted); }
.ingredients[open] summary::after { transform: rotate(180deg); }

.ing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 0 26px 22px; }
@media (max-width: 760px) { .ing-grid { grid-template-columns: 1fr; } }

.ing {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 7px 12px; border-radius: 10px; border: 1px solid transparent;
  font-size: .88rem; background: #f2f7fb;
}
.ing .inci { font-weight: 600; }
.ing .en { color: var(--muted); }
.ing .badge {
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 6px; padding: 1px 7px; margin-left: auto; white-space: nowrap;
  background: var(--blue); color: #fff;
}
.ing.active { background: var(--blue-soft); border-color: var(--blue); }

/* Comparison */
.compare { margin-top: 40px; }
.compare h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.compare-intro { color: var(--muted); max-width: 70ch; margin: 0 0 16px; }
.compare-note { color: var(--muted); font-size: .88rem; max-width: 74ch; }

.table-scroll {
  overflow-x: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.compare table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: .87rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--bg-accent); color: var(--blue-ink);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  position: sticky; top: 0;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tr.steroid-row td { background: #f3f9fd; }
.compare tr.anti-row td { background: #f4faf6; }
.compare tr.us-row td { background: #fafafa; color: var(--muted); }
.compare .dim { color: var(--muted); font-size: .8rem; }
.compare .flag { font-size: .95rem; }
.compare td.stars { color: #e0a615; font-size: 1rem; letter-spacing: .06em; white-space: nowrap; }
.compare .stars .off { color: var(--line); }

.site-footer { color: var(--muted); font-size: .85rem; padding: 10px 20px 50px; max-width: 1080px; margin: 0 auto; }
.site-footer p { max-width: 78ch; }
