@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --onyve-ink: #0F0F0F;
  --onyve-ink-soft: #1C1A18;
  --onyve-ivory: #FAF8F6;
  --onyve-wine: #7A2333;
  --onyve-gold: #B8933D;
  --onyve-gold-light: #E8CE8E;
  --onyve-gold-dark: #7A5A1E;
  --onyve-taupe: #8F8478;
  --onyve-gold-gradient: linear-gradient(120deg, #7A5A1E, #E8CE8E 45%, #B8933D 75%, #7A5A1E);
  --onyve-font-serif: 'Playfair Display', Georgia, serif;
  --onyve-font-sans: 'Work Sans', 'Segoe UI', sans-serif;
  --onyve-container: 1100px;
  --onyve-header-container: 1200px;
  --onyve-page-gutter: 28px;
  --onyve-radius-sm: 2px;
}

html, body, #root { margin: 0; padding: 0; min-height: 100%; }
body { background: var(--onyve-ivory); color: var(--onyve-ink); font-family: var(--onyve-font-sans); }
.serif { font-family: var(--onyve-font-serif); }
.brand { font-family: var(--onyve-font-serif); font-style: italic; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* =========================================================
   Shell compartido Onyvé
   Este bloque lo consumen tanto React como WooCommerce.
   ========================================================= */
.onyve-topbar {
  background: var(--onyve-gold-dark);
  color: var(--onyve-ivory);
  font-size: 12px;
  padding: 6px var(--onyve-page-gutter);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.onyve-topbar a {
  color: var(--onyve-ivory);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.onyve-topbar a:hover { color: var(--onyve-gold-light); }

.onyve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--onyve-page-gutter);
  border-bottom: 1px solid rgba(15,15,15,0.08);
  background: var(--onyve-ink);
  flex-wrap: wrap;
  gap: 14px;
}
.brand {
  font-family: var(--onyve-font-serif);
  font-style: italic;
  font-weight: 600;
  background: var(--onyve-gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.onyve-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.onyve-logo-img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}
.onyve-footer-brand { display: inline-flex; align-items: center; line-height: 0; }
.onyve-footer-logo-img { display: block; width: auto; height: 46px; max-width: 166px; object-fit: contain; }
.onyve-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.onyve-nav-link,
.onyve-nav a {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--onyve-ivory);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 0 0 4px;
  text-decoration: none;
}
.onyve-nav-link:hover,
.onyve-nav-link.is-active,
.onyve-nav a:hover,
.onyve-nav a.is-active {
  color: var(--onyve-gold-light);
  border-bottom-color: var(--onyve-gold);
}
.onyve-nav-link.is-active { font-weight: 600; }
.onyve-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.onyve-cart { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 38px; height: 38px; padding: 0 4px; color: var(--onyve-ivory); text-decoration: none; font-size: 14px; line-height: 1; white-space: nowrap; flex: 0 0 auto; }
.onyve-cart-icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: var(--onyve-gold-light); flex: 0 0 18px; }
.onyve-cart-icon svg { display: block; width: 18px; height: 18px; }
.onyve-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: rgba(232,206,142,.12); color: var(--onyve-gold-light); font-size: 11px; font-weight: 600; line-height: 1; }
.onyve-cart:hover { color: var(--onyve-gold-light); }
.onyve-cta {
  background: transparent;
  color: var(--onyve-gold-light);
  border: 1px solid var(--onyve-gold);
  border-radius: var(--onyve-radius-sm);
  padding: 10px 18px;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
}
.onyve-cta:hover { background: var(--onyve-gold); color: var(--onyve-ink); }

@media (max-width: 720px) {
  .onyve-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .onyve-nav { width: 100%; }
  .onyve-header-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .onyve-cta { width: 100%; text-align: center; }
  .onyve-header-actions .onyve-cta { width: auto; flex: 1; }
}


/* Onyvé 1.8 — identidad visual oficial */
@media (max-width: 720px) {
  .onyve-logo-img { height: 38px; max-width: 136px; }
  .onyve-footer-logo-img { height: 42px; max-width: 152px; }
}

/* Onyvé 2.1.1 — ajuste responsive puntual de navegación móvil */
@media (max-width: 720px) {
  .onyve-header {
    padding: 18px 20px 20px;
    gap: 13px;
  }
  .onyve-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .onyve-nav-link,
  .onyve-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12.75px;
    padding-bottom: 4px;
  }
  .onyve-logo-img {
    height: 36px;
    max-width: 130px;
  }
}

@media (max-width: 380px) {
  .onyve-header { padding-left: 16px; padding-right: 16px; }
  .onyve-nav { gap: 5px; }
  .onyve-nav-link,
  .onyve-nav a { font-size: 12px; }
}
