/* main.css — Estilos Globales · MS Bellass */

/* ─── Tipografía ──────────────────────────────── */
body {
    font-family: var(--font-body);
    scroll-behavior: smooth;
    color: var(--brand-text);
}

/* Clase global para fuente de marca */
.font-brand  { font-family: var(--font-brand);  }
.font-serif  { font-family: var(--font-serif);  }

/* ─── Header y Navegación ─────────────────────── */
.glass-header {
    background: transparent;
    transition: var(--transition-slow);
    border-bottom: 1px solid transparent;
}

.header-scrolled {
    margin-top: 0.75rem;
    width: 92% !important;
    left: 4% !important;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.2rem 1rem;
}

/* ─── Placas de Información ───────────────────── */
.placa-maestra {
    background: var(--bg-white);
    border-radius: var(--radius-placa);
    box-shadow: var(--shadow-md);
    border: 1px solid #f3f4f6;
}

.sub-placa {
    background: var(--bg-white);
    border-radius: var(--radius-subplaca);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f9fafb;
    transition: var(--transition-base);
}

.sub-placa:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ─── Carrito de Compras ──────────────────────── */
.product-in-cart {
    border: 2px solid var(--primary) !important;
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(190, 24, 93, 0.1);
}

.product-in-cart .add-to-cart-btn {
    background-color: var(--primary);
    color: white;
}

/* ─── Utilidades ──────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ─── Scrollbar ───────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar        { height: 4px; }
.custom-scrollbar::-webkit-scrollbar-track  { background: #f3f4f6; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb  { background: var(--primary); border-radius: 10px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Lazy Loading Placeholder ────────────────── */
img[loading="lazy"] {
    background: #f3f4f6;
}

/* ─── Animaciones de Entrada ──────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ─── Accesibilidad ───────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Iconografía con Máscara ────────────────── */
.icon-mask {
    background-color: var(--icons-primary);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── Valoración ─────────────────────────────── */
.rating-stars, 
.rating-stars svg, 
.rating-stars svg path {
    color: #F59E0B !important;
    fill: #F59E0B !important;
}


