/*
Theme Name: Marmolart Luxury Theme
Theme URI: https://marmolart.mx
Author: Senior Frontend Engineer
Description: Tema premium con Snap-Scroll y diseño editorial para Marmolart. Portado de HTML/Tailwind.
Version: 1.0
Text Domain: marmolart
*/

/* Estilos de base del tema original */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #0a0a0a;
    color: white;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.snap-section-auto {
    scroll-snap-align: start;
    min-height: 100vh;
    height: auto;
}

/* Scrollbar hiding */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



/* Animations */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes revealImage {
    0% { transform: scale(1.1); filter: brightness(0.5); }
    100% { transform: scale(1); filter: brightness(1); }
}

.animate-slide-up {
    animation: slideUpFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}
.animate-reveal {
    animation: revealImage 2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }

::selection {
    background: #cfaa79;
    border-color: #00b289 !important;
}

/* Force Full Width for WooCommerce Cart Block Container */
.wp-block-woocommerce-cart,
.wp-block-post-content,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Component specific */
.category-card:hover {
    flex: 1.5;
}

/* ── Header con fondo al hacer scroll ───────────────────────────────────────
   Cuando el usuario sale de la sección del slider, JS añade .header-scrolled
   al <header>. Esto agrega un fondo negro semi-transparente con blur para que
   el menú sea legible sobre cualquier sección de la página.
   Sin la clase = sin fondo (transparente, sobre el slider).
────────────────────────────────────────────────────────────────────────── */
header {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

header.header-scrolled {
    background-color: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    /* Desactivar mix-blend-difference para que el fondo sea visible */
    mix-blend-mode: normal !important;
    color: #ffffff !important;
}

/* Asegurar que los enlaces del nav hereden el color blanco cuando hay fondo */
header.header-scrolled nav a,
header.header-scrolled nav span {
    color: #ffffff !important;
}

