/*
Theme Name: Cerbony
Theme URI: https://cerbony.com.co
Author: Cerbony S.A.S.
Author URI: https://cerbony.com.co
Description: Tema corporativo y catálogo de cotización para Cerbony S.A.S. — distribución de productos cárnicos. Incluye catálogo de productos, carrito de cotización funcional, gestión de clientes, portal comercial con elaboración de cotizaciones y PDF, login de clientes y seguimiento. Tema autocontenido (sin plugins de campos).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cerbony
Tags: business, e-commerce, custom-post-type, custom-colors, featured-images, translation-ready
*/

/* La paleta, tipografía y componentes visuales viven en /assets/css/base.css y components.css.
   Este archivo solo contiene la cabecera del tema para WordPress y ajustes mínimos. */

:root {
  /* Disponibles también para el frontend y para posibles overrides */
  --cerbony-version: 1.0.0;
}

/* Reset de alineación de WordPress (bloques) */
body.alignfull,
body.alignwide { width: auto; }

/* Asegurar que el admin bar no tape el header sticky */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Mensaje de aviso dentro del frontend (configuración pendiente) */
.cerbony-notice {
  background: var(--gold-300);
  color: var(--ink-900);
  padding: 10px 16px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
}

/* Helper para esconder contenido pero dejar accesible (estilo WP screen-reader) */
.cerbony-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor de mensajes AJAX (éxito/error) dentro de formularios del front */
.cerbony-form-msg {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  margin-bottom: 16px;
}
.cerbony-form-msg.success { background: var(--green-100); color: var(--green-700); }
.cerbony-form-msg.error { background: var(--red-100); color: var(--red-600); }

/* Paginación WP estándar */
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers {
  min-width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1.5px solid var(--ink-200);
  color: var(--ink-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none;
  padding: 0 12px;
  transition: all var(--t-fast);
}
.nav-links .page-numbers:hover { border-color: var(--wine-500); color: var(--wine-600); }
.nav-links .page-numbers.current { background: var(--wine-600); border-color: var(--wine-600); color: #fff; }
