/* TerpVault Storefront plugin styles */

:root {
  --tv-pine: #15291f;
  --tv-pine-deep: #0e1d15;
  --tv-sage: #9db89c;
  --tv-resin: #e8a33d;
  --tv-resin-dark: #c4842a;
  --tv-parchment: #f2ede3;
  --tv-line: #d8d0bf;
  --tv-radius: 10px;
  --tv-display: "Bricolage Grotesque", system-ui, sans-serif;
  --tv-body: "Public Sans", system-ui, sans-serif;
}

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

/* ---------- Compliance ribbon ---------- */
.tv-ribbon {
  background: var(--tv-pine-deep);
  color: var(--tv-sage);
  font-family: var(--tv-body);
  font-size: 0.78rem;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.04em;
}

/* ---------- Age gate ---------- */
.tv-age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(14, 29, 21, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tv-age-gate[hidden] { display: none; }
.tv-age-gate-card {
  background: var(--tv-parchment);
  border-radius: 14px;
  border-top: 4px solid var(--tv-resin);
  max-width: 420px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  font-family: var(--tv-body);
  color: var(--tv-pine-deep);
}
.tv-age-mark { font-size: 2rem; color: var(--tv-resin-dark); margin: 0 0 4px; }
.tv-age-gate-card h2 {
  font-family: var(--tv-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--tv-pine-deep);
}
.tv-age-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Buttons ---------- */
.tv-btn {
  display: inline-block;
  background: var(--tv-resin);
  color: var(--tv-pine-deep) !important;
  font-family: var(--tv-display);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.tv-btn:hover { background: var(--tv-resin-dark); color: var(--tv-parchment) !important; }
.tv-btn--ghost {
  background: transparent;
  color: var(--tv-pine-deep) !important;
  border: 1.5px solid var(--tv-pine);
}
.tv-btn--ghost:hover { background: var(--tv-pine); color: var(--tv-parchment) !important; }
.tv-btn:focus-visible { outline: 3px solid var(--tv-pine); outline-offset: 2px; }

/* ---------- Hero shortcode ---------- */
.tv-hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(232, 163, 61, 0.18), transparent 60%),
    var(--tv-pine);
  color: var(--tv-parchment);
  padding: 64px 0 72px;
  border-radius: var(--tv-radius);
  margin: 0 0 28px;
}
.tv-hero h1 {
  font-family: var(--tv-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  color: var(--tv-parchment);
  margin: 0 0 14px;
  max-width: 18ch;
}
.tv-hero p {
  font-family: var(--tv-body);
  color: var(--tv-sage);
  max-width: 52ch;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

/* ---------- Category strip shortcode ---------- */
.tv-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.tv-cat-card {
  background: var(--tv-parchment);
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  padding: 18px 16px;
  text-align: center;
  text-decoration: none !important;
  color: var(--tv-pine-deep) !important;
  font-family: var(--tv-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.tv-cat-card:hover { border-color: var(--tv-resin); color: var(--tv-resin-dark) !important; }

/* ---------- Chips ---------- */
.tv-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; }
li.product .tv-chips { padding: 8px 14px 0; }
.tv-chip {
  font-family: var(--tv-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tv-pine-deep);
  background: rgba(157, 184, 156, 0.25);
  border: 1px solid var(--tv-sage);
  border-radius: 999px;
  padding: 3px 10px;
}
.tv-chip--potency { background: rgba(232, 163, 61, 0.18); border-color: var(--tv-resin); }

/* ---------- WooCommerce accents (light touch, theme-friendly) ---------- */
.woocommerce span.onsale {
  background: var(--tv-resin) !important;
  color: var(--tv-pine-deep) !important;
}
.tv-featured .woocommerce ul.products li.product,
.tv-featured ul.products li.product {
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  overflow: hidden;
  background: #fff;
  padding-bottom: 12px;
}

/* ---------- Disclaimer bar ---------- */
.tv-disclaimer-bar {
  background: var(--tv-pine-deep);
  color: rgba(157, 184, 156, 0.85);
  font-family: var(--tv-body);
  font-size: 0.76rem;
  line-height: 1.55;
  padding: 16px 0;
}
.tv-disclaimer-bar p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
