/*
Theme Name: BeSkuull Block Theme
Theme URI: https://beskuull.com
Author: Alvaro / Smart Sites
Author URI: https://smartsites.cl
Description: Tema FSE de bloques nativos de WordPress para BeSkuull (Print on Demand USA). Cero código HTML crudo, 100% autoadministrable con bloques Gutenberg y WooCommerce Blocks.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: beskuull
License: GNU General Public License v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Big+Shoulders+Display:wght@700;800;900&display=swap');

/* ==========================================================================
   Variables y Overrides por Breakpoint (html-bloques Cap. 1 & 7)
   ========================================================================== */

:root {
  --wp--custom--section-gap: 96px;
  --wp--custom--gutter: 36px;
}

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  html:root body {
    --wp--style--root--padding-left: 24px !important;
    --wp--style--root--padding-right: 24px !important;
    --wp--custom--section-gap: 64px !important;
    --wp--custom--gutter: 24px !important;
  }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  html:root body {
    --wp--style--root--padding-left: 16px !important;
    --wp--style--root--padding-right: 16px !important;
    --wp--custom--section-gap: 48px !important;
    --wp--custom--gutter: 16px !important;
  }
}

/* ==========================================================================
   Cabecera Pegajosa (Sticky Header)
   ========================================================================== */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   Comportamiento de Bloques del Core (Sin HTML suelto)
   ========================================================================== */

/* Logo e imágenes sin espacios extra de línea */
.wp-block-site-logo a,
.wp-block-site-logo img {
  display: block;
}

/* Tarjeta clicable entera vía enlace de título (html-bloques Cap. 4) */
.bsk-card {
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bsk-card:hover {
  transform: translateY(-2px);
}

.bsk-card:has(a:focus-visible) {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 4px;
}

.bsk-card .wp-block-post-title a::after,
.bsk-card .wp-block-heading a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Excluir botones interiores de la tarjeta del área de clic global */
.bsk-card .wp-block-button,
.bsk-card .wp-block-buttons,
.bsk-card input,
.bsk-card select {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   WooCommerce Blocks Integración
   ========================================================================== */

.wc-block-grid__product {
  text-align: left;
}

.wc-block-components-product-title a {
  text-decoration: none;
}

.wc-block-components-product-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* Pastillas y Badges */
.bsk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
