/*
Theme Name: COBA - Agroecológico
Theme URI: https://localhost/COBA
Author: COBA Biotecnología
Description: Tema oficial para el E-commerce Agroecológico COBA. Basado fielmente en el prototipo Figma de alta fidelidad con páginas de Inicio, Catálogo y Ficha de Producto, e integración completa con WooCommerce (carrito, checkout, mi cuenta). Diseño moderno con paleta verde bosque, maderas y biotecnología visualmente clara.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: coba
*/

/* ── Focus outlines ── */
:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  background: var(--forest);
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
}

/* ── Admin bar offset ── */
html body.admin-bar .header {
  top: 32px;
}
/* En mobile la admin bar mide 46px */
@media screen and (max-width: 782px) {
  html body.admin-bar .header {
    top: 46px;
  }
}
/* Compensar padding-top del .app cuando hay admin bar */
html body.admin-bar .app {
  padding-top: calc(128px + 32px);
}
@media screen and (max-width: 900px) {
  html body.admin-bar .app {
    padding-top: calc(128px + 46px);
  }
}
