/*
Theme Name: GeneratePress Child - CortarJamon Dark Gourmet
Theme URI: https://cortarjamon.es
Description: Child Theme oficial para CortarJamon.es adaptado a la estructura nativa de GeneratePress 3.6.x. Implementa el Design System "Dark Gourmet & Tactile Gastronomy" v1.1.0, compatible al 100% con o sin WooCommerce activo.
Author: CortarJamon.es Engineering Team
Author URI: https://cortarjamon.es
Template: generatepress
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: generatepress-child
*/

/* ==========================================================================
   Integración Estructural con GeneratePress 3.6.x (Full-Bleed & Dark Gourmet)
   Nota: GeneratePress encola automáticamente este archivo ('generate-child')
   después de 'generate-style'. Los tokens y estilos Dark Gourmet se encolan
   de forma segura desde functions.php.
   ========================================================================== */

body.dark-gourmet-theme {
  background-color: var(--surface-base, #131313);
  color: var(--text-primary, #e5e2e1);
}

/* Neutralización del contenedor encajonado (.grid-container 1200px) y márgenes
   entre secciones (.site-main > *) propios de GeneratePress */
body.dark-gourmet-theme #page.container.grid-container,
body.dark-gourmet-theme.full-width-content #page.container.grid-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.dark-gourmet-theme .site-content {
  padding: 0;
  margin: 0;
}

body.dark-gourmet-theme .site-content .content-area {
  width: 100%;
  max-width: 100%;
  float: none;
  margin: 0;
  padding: 0;
}

body.dark-gourmet-theme .site-main {
  margin: 0 !important;
  padding: 0 !important;
}

body.dark-gourmet-theme .site-main > * {
  margin-bottom: 0;
}

/* Soporte para barra de administración de WordPress sobre el Sticky Header */
body.admin-bar .cj-sticky-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .cj-sticky-header {
    top: 46px;
  }
}

/* Despliegue de navegación móvil al pulsar .cj-mobile-toggle */
@media (max-width: 1023px) {
  .cj-nav-desktop.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border-gold-strong, rgba(233, 193, 118, 0.45));
    z-index: 999;
    gap: 16px;
  }
}
