/**
 * Peptis Elementor / WooCommerce brand overrides.
 * Enqueue after theme stylesheet. Maps Brand_Kits/Brand.md tokens.
 */

:root {
  --peptis-bg: #fff8f1;
  --peptis-surface: #faf3ea;
  --peptis-primary: #5a171d;
  --peptis-primary-deep: #3d020a;
  --peptis-secondary: #c7a86b;
  --peptis-sage: #7e8f6e;
  --peptis-ink: #1e1b16;
  --peptis-muted: #544242;
  --peptis-outline-soft: #dac1c0;
}

body {
  background-color: var(--peptis-bg);
  color: var(--peptis-ink);
  font-family: Manrope, system-ui, sans-serif;
}

h1, h2, h3, .peptis-header-nav a:first-child {
  font-family: "Noto Serif", Georgia, serif;
  letter-spacing: -0.01em;
}

.peptis-announcement {
  color: #fff;
  text-align: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.peptis-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

.peptis-header-nav a,
.peptis-header-nav .peptis-nav-dropdown__trigger {
  color: #fff8f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.peptis-header-nav a:hover,
.peptis-header-nav .peptis-nav-dropdown__trigger:hover {
  color: var(--peptis-secondary);
}

.peptis-nav-dropdown {
  position: relative;
}

.peptis-nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.peptis-nav-dropdown__trigger {
  color: #fff8f1;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.peptis-nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  min-width: 240px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--peptis-primary-deep);
  border: 1px solid rgba(255, 248, 241, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.peptis-nav-dropdown__menu a {
  display: block;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.peptis-nav-dropdown:hover .peptis-nav-dropdown__menu,
.peptis-nav-dropdown:focus-within .peptis-nav-dropdown__menu {
  display: block;
}

.peptis-trust-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--peptis-outline-soft);
}

.peptis-trust-marquee__track {
  display: inline-block;
  padding: 0.75rem 0;
  animation: peptis-marquee 28s linear infinite;
  color: var(--peptis-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes peptis-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.peptis-ruo-badge {
  display: inline-block;
  background: var(--peptis-sage);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-block: 0.5rem;
}

.peptis-coa-section {
  margin-block: 2rem;
  padding: 1.5rem;
  background: var(--peptis-surface);
  border: 1px solid var(--peptis-outline-soft);
  border-radius: 8px;
}

.peptis-coa-select {
  width: 100%;
  max-width: 420px;
  margin-block: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--peptis-outline-soft);
  border-radius: 4px;
}

.peptis-coa-download.button {
  background: var(--peptis-primary);
  color: #fff;
}

.peptis-faq-list details {
  border-bottom: 1px solid var(--peptis-outline-soft);
  padding: 1rem 0;
}

.peptis-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--peptis-primary);
}

.peptis-footer {
  color: var(--peptis-muted);
}

.peptis-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.peptis-footer a {
  color: var(--peptis-primary);
}

.peptis-compliance-strip,
.peptis-product-disclaimer {
  font-size: 0.85rem;
  border-top: 1px solid var(--peptis-outline-soft);
  padding-top: 1rem;
  color: var(--peptis-muted);
}

.peptis-mode-cta {
  margin-block: 1.5rem;
  padding: 1rem;
  background: var(--peptis-surface);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .peptis-header-nav {
    justify-content: flex-start;
  }

  .peptis-nav-toggle {
    display: inline-flex;
  }
}
