/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/
/* ==========================================================
   1. VARIABLES, RESET Y GLOBALES
========================================================== */
:root {
    --bg-color: #1e3350;
    /* Fondo principal */
    --bg-secondary: #373c51;
    /* Fondo secundario (Footer) */
    --accent-color: #005fb6;
    /* Color de acento / detalles */
    --text-color: #ffffff;
    /* Texto principal */
    --font-main: 'Montserrat', sans-serif;
}

/* Reset Global para evitar desfases */
html,
body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    overflow-y: visible !important;
    /* Vital para Sticky Sidebar */
}

a,
button {
    cursor: pointer;
}

/* Forzar enlaces por encima del blur */
.novastar-header a,
.offcanvas-menu a,
.menu-toggle,
.header-cart,
.hover-target {
    position: relative;

}

/* Reparar ancho completo en Elementor */
.elementor-template-full-width .site-main,
.elementor-page .site-main,
.elementor-canvas .site-main {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    padding-top: 80px;
}

.elementor-template-full-width .site-main {
    padding-top: 100px;
}

.elementor-canvas .site-main {
    padding-top: 0 !important;
}

/* Estilos para páginas estándar (No Elementor) */
.site-main {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 70vh;
}

.page-header {
    margin-bottom: 50px;
    text-align: center;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-color);
}

.page-content {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }
}


/* ==========================================================
   2. CURSOR Y ANIMACIONES (LOADER)
========================================================== */
/* Cursor Personalizado (Fusionado y Optimizado) */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: transparent;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none !important;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 9998 !important;
    mix-blend-mode: screen;
    will-change: transform;
}

.custom-cursor.hover-glow {
    width: 100px;
    height: 100px;
    border: none;
    background: radial-gradient(circle, rgba(2, 145, 209, 0.4) 0%, transparent 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* ==========================================================
   NOVASTAR QUANTUM TECH PRELOADER
   ========================================================== */
.ns-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b111e; /* Fondo tecnológico ultra oscuro */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.ns-preloader-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(2, 145, 209, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(0, 95, 182, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.7;
    animation: nsGridPan 20s linear infinite;
}

@keyframes nsGridPan {
    0% {
        background-position: 0 0, 20px 20px;
    }
    100% {
        background-position: 400px 400px, 420px 420px;
    }
}

.ns-preloader-overlay.ns-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ns-loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 2;
}

/* Contenedor del cargador de tecnología */
.ns-tech-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Anillos Orbitales */
.ns-loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ns-ring-outer {
    width: 110px;
    height: 110px;
    border-top-color: #0291d1;
    border-bottom-color: rgba(2, 145, 209, 0.2);
    animation: nsSpinClockwise 1.8s cubic-bezier(0.53, 0.21, 0.29, 0.87) infinite;
}

.ns-ring-inner {
    width: 85px;
    height: 85px;
    border-right-color: #005fb6;
    border-left-color: rgba(0, 95, 182, 0.2);
    animation: nsSpinCounterClockwise 1.2s cubic-bezier(0.53, 0.21, 0.29, 0.87) infinite;
}

/* Núcleo Central de Tecnología */
.ns-loader-core {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(2, 145, 209, 0.2) 0%, rgba(11, 17, 30, 0.8) 100%);
    border: 1px solid rgba(2, 145, 209, 0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 15px rgba(2, 145, 209, 0.3),
        inset 0 0 10px rgba(2, 145, 209, 0.2);
    animation: nsPulseCore 2s infinite ease-in-out;
}

.ns-core-svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
    filter: drop-shadow(0 0 4px #0291d1);
    animation: nsRotateCore 8s linear infinite;
}

/* Animaciones */
@keyframes nsSpinClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes nsSpinCounterClockwise {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes nsPulseCore {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 15px rgba(2, 145, 209, 0.3),
            inset 0 0 10px rgba(2, 145, 209, 0.2);
        border-color: rgba(2, 145, 209, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 
            0 0 25px rgba(2, 145, 209, 0.6),
            inset 0 0 15px rgba(2, 145, 209, 0.4);
        border-color: #0291d1;
    }
}

@keyframes nsRotateCore {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Texto del Cargador */
.ns-loader-text {
    font-family: var(--font-main);
    color: #ffffff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    animation: nsPulseText 1.5s infinite ease-in-out;
}

@keyframes nsPulseText {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        color: #93c5fd;
    }
}

/* Barra de Progreso Simulada */
.ns-loader-progress-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.ns-loader-progress-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #005fb6, #0291d1);
    border-radius: 10px;
    box-shadow: 0 0 8px #0291d1;
    animation: nsProgressLoad 3.5s infinite ease-in-out;
}

@keyframes nsProgressLoad {
    0% {
        width: 0%;
        transform: translateX(-10%);
    }
    50% {
        width: 80%;
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}


/* ==========================================================
   3. HEADER Y MENÚ OFF-CANVAS
========================================================== */
/* Reset Hello Elementor */
.novastar-header a,
.offcanvas-menu a {
    text-decoration: none !important;
    color: #1e3350;
    background-color: transparent;
    box-shadow: none !important;
    outline: none !important;
}

.novastar-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    background: #f1f1f1;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 9999 !important;
    pointer-events: none;
}

.novastar-header .logo,
.novastar-header .header-right {
    pointer-events: auto;
}

.logo a {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo img {
    width: 300px;
    height: auto;
}

/* Navegación Desktop */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.header-menu-list a {
    color: #1e3350;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.header-menu-list a:hover {
    color: #0096da;
}

.header-menu-list li {
    position: relative;
    display: flex;
    align-items: center;
}

.header-menu-list .menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.header-menu-list .menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Submenús Dropdown */
.header-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #005fb6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100000;
}

.header-menu-list .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(20px);
}

.header-menu-list .menu-item-has-children::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.header-menu-list .sub-menu a {
    display: block;
    padding: 12px 25px;
    color: #1e3350;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    width: auto;
}

.header-menu-list .sub-menu li:last-child a {
    border-bottom: none;
}

.header-menu-list .sub-menu a:hover {
    color: #005fb6;
    background-color: #f8f9fa;
    padding-left: 32px;
}

.header-menu-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
    transform: translateX(10px);
}

.header-menu-list .sub-menu .menu-item-has-children:hover>.sub-menu {
    transform: translateX(0);
}

/* Acciones y Carrito */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.header-cart:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.header-cart svg {
    width: 100%;
    height: 100%;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-color);
}

/* Hamburguesa */
.menu-toggle {
    all: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    padding: 0;
    gap: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.menu-toggle .line {
    height: 2px;
    width: 36px;
    background: #1e3350 !important;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.menu-toggle:not(.active):hover .line-1 {
    width: 14px;
    transform: translateX(-3px);
}

.menu-toggle:not(.active):hover .line-2 {
    width: 20px;
}

.menu-toggle:not(.active):hover .line-3 {
    width: 14px;
    transform: translateX(3px);
}

.menu-toggle.active .line-1 {
    width: 36px;
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .line-2 {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active .line-3 {
    width: 36px;
    transform: translateY(-7px) rotate(-45deg);
}

/* Sistema Off-Canvas */
.offcanvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0f18;
    z-index: 998;
    transform: translateY(-101%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.offcanvas-bg.active {
    transform: translateY(0);
    pointer-events: auto;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-101%);
    visibility: hidden;
    overflow: hidden !important;
    box-sizing: border-box !important;
    pointer-events: none;
    padding: 20px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
}

.offcanvas-menu.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.offcanvas-header {
    position: absolute;
    top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 20;
}

.offcanvas-header img {
    width: 180px !important;
    max-width: 70vw !important;
    height: auto !important;
}

/* Watermark Offcanvas */
.bg-watermark {
    position: absolute;
    bottom: 5%;
    right: -5%;
    font-size: 15vw;
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    transform: rotate(-3deg);
    display: block;
}

/* Navegación Offcanvas */
.offcanvas-nav {
    position: relative;
    z-index: 10;
    width: 100%;
}

.offcanvas-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-nav a {
    color: #ffffff;
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 900;
    display: inline-block;
    padding: 10px 0;
    transition: opacity 0.3s;
}

.offcanvas-nav a:hover {
    opacity: 0.5;
}

/* Animaciones Entrada Offcanvas */
.offcanvas-header,
.bg-watermark,
.offcanvas-nav li {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.offcanvas-menu.active .offcanvas-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.offcanvas-menu.active .bg-watermark {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.offcanvas-menu.active .offcanvas-nav li {
    opacity: 1;
    transform: translateY(0);
}

.offcanvas-menu.active .offcanvas-nav li:nth-child(1) {
    transition-delay: 0.4s;
}

.offcanvas-menu.active .offcanvas-nav li:nth-child(2) {
    transition-delay: 0.5s;
}

.offcanvas-menu.active .offcanvas-nav li:nth-child(3) {
    transition-delay: 0.6s;
}

.offcanvas-menu.active .offcanvas-nav li:nth-child(4) {
    transition-delay: 0.7s;
}

.offcanvas-menu.active .offcanvas-nav li:nth-child(5) {
    transition-delay: 0.8s;
}

/* Header Responsive */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .novastar-header {
        padding: 20px;
    }

    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .partner-logo {
        margin-right: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .partner-logo img {
        max-height: 18px !important;
        width: auto !important;
    }

    .header-cart {
        margin-right: 0 !important;
        display: flex !important;
        align-items: center !important;
        position: relative;
    }

    .header-cart svg {
        width: 20px !important;
        height: 20px !important;
    }

    .logo img {
        width: 140px;
    }

    .offcanvas-header {
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .offcanvas-nav a {
        font-size: 3rem;
    }

    .bg-watermark {
        font-size: 35vw;
    }
}

@media (max-width: 480px) {
    .bg-watermark {
        font-size: 20vw;
        bottom: 10%;
    }

    .offcanvas-nav a {
        font-size: 2.2rem;
    }
}


/* ==========================================================
   4. WOOCOMMERCE TIENDA / ARCHIVO / B2B LAYOUT
========================================================== */
.ns-shop-b2b-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* Sidebar B2B */
.ns-shop-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #005fb6;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    align-self: start;
    z-index: 10;
}

.ns-shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.ns-shop-sidebar::-webkit-scrollbar-thumb {
    background-color: #e1e1e1;
    border-radius: 4px;
}

.ns-sidebar-title {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    letter-spacing: 0.5px;
}

/* Categorías */
.ns-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ns-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: #444444;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ns-cat-list .cat-count {
    background-color: #e1e1e1;
    color: #666;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.ns-cat-list a:hover,
.ns-cat-list a.active {
    background-color: #005fb6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 95, 182, 0.3);
    transform: translateX(5px);
}

.ns-cat-list a:hover .cat-count,
.ns-cat-list a.active .cat-count {
    background-color: #ffffff;
    color: #005fb6;
}

/* Loop Grid (Forzado Único) */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

/* Tarjeta de Producto */
.novastar-product-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eeeeee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.novastar-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-color);
}

.novastar-product-card a {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.novastar-product-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.novastar-product-card:hover img {
    transform: scale(1.05);
}

/* Textos Tarjeta */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.novastar-product-card h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: var(--font-main);
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    line-height: 1.4 !important;
}

.woocommerce ul.products li.product .price,
.novastar-product-card .price {
    font-family: var(--font-main);
    color: var(--accent-color) !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    margin-top: auto !important;
    margin-bottom: 15px !important;
    display: block !important;
}

/* Botón + y Etiquetas */
.novastar-add-button {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    padding: 0 !important;
    background-color: var(--accent-color);
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
    line-height: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 95, 182, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10;
}

.novastar-product-card:hover .novastar-add-button {
    opacity: 1;
    transform: translateY(0);
}

.novastar-add-button:hover {
    background-color: #1e3350 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(30, 51, 80, 0.5);
}

.woocommerce span.onsale {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 5;
}

/* Botón Cargar Más y AJAX */
.woocommerce-pagination {
    display: none !important;
}

.ns-load-more-wrap {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    width: 100%;
    clear: both;
}

.ns-btn-load-more {
    background-color: #005fb6 !important;
    color: #ffffff !important;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 95, 182, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ns-btn-load-more:hover {
    background-color: #1e3350 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(30, 51, 80, 0.4);
}

.ns-btn-load-more.is-loading {
    opacity: 0.7;
    pointer-events: none;
    animation: pulseLoading 1.5s infinite;
}

.ns-shop-main {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ns-shop-main.ajax-loading {
    opacity: 0.5;
    filter: blur(2px);
    pointer-events: none;
}

@keyframes pulseLoading {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
        opacity: 0.5;
    }
}

/* Filtros Móvil Offcanvas */
.ns-filter-overlay,
.ns-mobile-filter-btn,
.ns-filter-close {
    display: none;
}

@media (max-width: 992px) {
    .ns-shop-b2b-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ns-shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -110% !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 100000 !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-right: 4px solid var(--accent-color);
        transition: left 0.4s ease !important;
        padding-top: 60px !important;
    }

    .ns-shop-sidebar.is-open {
        left: 0 !important;
    }

    .ns-filter-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(30, 51, 80, 0.8);
        backdrop-filter: blur(5px);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .ns-filter-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .ns-mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #005fb6 !important;
        color: #ffffff !important;
        border: none;
        padding: 14px 30px;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 10px 25px rgba(0, 95, 182, 0.5);
        z-index: 9999;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .ns-mobile-filter-btn:active {
        transform: translateX(-50%) scale(0.95);
    }

    .ns-filter-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: #f1f1f1;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 1.5rem;
        line-height: 1;
        color: #1a1a1a;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .novastar-product-card {
        padding: 10px;
    }

    .novastar-product-card img {
        height: 140px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    .novastar-add-button {
        opacity: 1;
        transform: none;
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        font-size: 1.5rem !important;
        bottom: 15px;
        right: 15px;
    }

    .woocommerce-page.single-product,
    .single-product .content-area {
        padding: 100px 0;
    }
}


/* ==========================================================
   5. WOOCOMMERCE PRODUCTO INDIVIDUAL (SINGLE)
========================================================== */
/* Desfase y Reset de Producto */
.single-product {
    overflow-x: hidden !important;
    width: 100% !important;
    padding-top: 92px;
}

.single-product header,
.single-product .site-header,
.single-product .header-wrapper {
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}

.single-product #content,
.single-product .site-content,
.single-product #primary {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
}

.single-product * {
    box-sizing: border-box !important;
}

.woocommerce div.product.novastar-pro-layout {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 12px 25px !important;
    border-radius: 50px;
    color: #f1f1f1;
    font-size: 0.95em;
    margin-bottom: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.woocommerce-breadcrumb a {
    color: #4da6ff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #ffffff;
}

/* Layout Grid Producto */
.novastar-pro-layout .ns-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .novastar-pro-layout .ns-layout-grid {
        grid-template-columns: 50% 45%;
        gap: 5%;
        align-items: start;
    }
}

.woocommerce #content div.product.novastar-pro-layout div.images,
.woocommerce div.product.novastar-pro-layout div.images,
.woocommerce #content div.product.novastar-pro-layout div.summary,
.woocommerce div.product.novastar-pro-layout div.summary {
    float: none !important;
    margin-bottom: 0 !important;
}

/* Galería y Resumen */
.ns-gallery-column .woocommerce-product-gallery,
.ns-summary-box,
.ns-bottom-section .woocommerce-tabs {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.ns-gallery-column .woocommerce-product-gallery {
    padding: 20px;
    border: 1px solid #e1e1e1;
}

.ns-gallery-column img {
    border-radius: 8px;
}

.ns-summary-box {
    padding: 30px;
    border-top: 5px solid #005fb6;
}

@media (min-width: 992px) {
    .ns-summary-box {
        padding: 45px;
    }
}

.ns-summary-box .product_title {
    color: #1a1a1a !important;
    font-size: 1.8em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .ns-summary-box .product_title {
        font-size: 2.2em;
    }
}

.ns-summary-box p.price,
.ns-summary-box span.price {
    color: #005fb6 !important;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.ns-summary-box .woocommerce-product-details__short-description {
    color: #444444;
    font-size: 1.05em;
    line-height: 1.6;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

/* Carrito en Producto Individual */
.ns-summary-box form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.ns-summary-box form.cart .quantity {
    flex: 0 0 90px;
}

.ns-summary-box form.cart .quantity input.qty {
    background-color: #f8f9fa;
    border: 2px solid #e1e1e1;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 0 15px;
    height: 55px;
    width: 100%;
    font-size: 1.3em;
    font-weight: 800;
    text-align: center;
    -moz-appearance: textfield;
}

.ns-summary-box form.cart .quantity input.qty:focus {
    border-color: #005fb6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 95, 182, 0.1);
    outline: none;
}

.ns-summary-box form.cart button.button.alt {
    background-color: #005fb6 !important;
    color: #ffffff !important;
    border-radius: 8px;
    height: 55px;
    padding: 0 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    flex-grow: 1;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 95, 182, 0.3);
}

.ns-summary-box form.cart button.button.alt:hover {
    background-color: #1e3350 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 51, 80, 0.4);
}

/* Metadatos Producto */
.ns-summary-box .product_meta {
    font-size: 0.9em;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ns-summary-box .product_meta span {
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    display: inline-block;
}

.ns-summary-box .product_meta a {
    color: #005fb6;
    font-weight: 600;
    text-decoration: none;
}

/* Tabs / Descripción Inferior */
.ns-bottom-section .woocommerce-tabs {
    padding: 20px;
    border-top: 1px solid #eeeeee;
}

.ns-bottom-section .woocommerce-tabs ul.tabs {
    margin: 0 0 30px !important;
    padding: 0 !important;
    border-bottom: 2px solid #eeeeee;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ns-bottom-section .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.ns-bottom-section .woocommerce-tabs ul.tabs li a {
    color: #666666 !important;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 1.05em;
    border-bottom: 3px solid transparent;
}

.ns-bottom-section .woocommerce-tabs ul.tabs li.active a {
    color: #005fb6 !important;
    border-bottom: 3px solid #005fb6;
}

.ns-bottom-section .woocommerce-Tabs-panel {
    color: #333333;
    line-height: 1.8;
}

.ns-bottom-section .woocommerce-Tabs-panel h1,
.ns-bottom-section .woocommerce-Tabs-panel h2,
.ns-bottom-section .woocommerce-Tabs-panel h3 {
    color: #1a1a1a;
    margin-top: 25px;
}

/* Prevención Desborde Imagen */
.ns-gallery-column,
.woocommerce-product-gallery,
.woocommerce div.product div.images {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    display: block !important;
}

.woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* Tablas de Especificaciones B2B (Móvil Scroll) */
.ns-table-scroll-container {
    position: relative;
    width: 100%;
    margin: 35px 0;
    overflow-x: auto;
    border-radius: 4px;
    background: #253961;
    border: 1px solid #1e3350;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ns-table-scroll-container table {
    width: 100% !important;
    border-collapse: collapse;
    min-width: 600px;
}

.ns-table-scroll-container th {
    background: #1e3350;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 20px !important;
    text-align: left;
    border-bottom: 2px solid #0291d1;
}

.ns-table-scroll-container td {
    padding: 16px 20px !important;
    font-size: 13px;
    color: #cbd5e0;
    border-bottom: 1px solid rgba(30, 51, 80, 0.3);
    line-height: 1.5;
}

.ns-table-scroll-container td:first-child {
    color: #ffffff;
    font-weight: 600;
    background: rgba(30, 51, 80, 0.2);
    width: 35%;
    border-right: 1px solid rgba(30, 51, 80, 0.5);
}

.ns-table-scroll-container tr:hover td {
    background: rgba(2, 145, 209, 0.05);
    color: #ffffff;
}

.ns-scroll-hint {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: #0291d1;
    color: #fff;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10;
    animation: nsPulseHint 2s infinite;
}

.ns-table-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.ns-table-scroll-container::-webkit-scrollbar-thumb {
    background: #1e3350;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .ns-scroll-hint {
        display: none;
    }

    .ns-table-scroll-container {
        overflow-x: visible;
    }

    .ns-table-scroll-container table {
        min-width: 100%;
    }
}

/* Watermark Gigante Fondo Producto */
.novastar-giant-bg-title {
    position: absolute;
    top: 140px;
    left: -2%;
    width: 150%;
    font-size: 12vw;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.04;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    letter-spacing: -2px;
}

@media (max-width: 992px) {
    .novastar-giant-bg-title {
        font-size: 22vw;
        top: -40px;
        left: -5%;
    }
}


/* ==========================================================
   6. WOOCOMMERCE CARRITO Y CHECKOUT (GUTENBERG BLOCKS)
========================================================== */
.wc-block-cart__empty-cart__title {
    color: #ffffff !important;
    font-size: 2rem !important;
    margin-bottom: 20px;
}

.wp-block-woocommerce-cart .wc-block-components-button {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 600;
    padding: 15px 30px;
    transition: transform 0.3s ease;
}

.wp-block-woocommerce-cart .wc-block-components-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 95, 182, 0.3);
}

/* Textos oscuros a blancos */
.wp-block-woocommerce-cart * {
    color: #ffffff !important;
}

.wp-block-woocommerce-cart .wc-block-components-product-metadata * {
    color: #dcdcdc !important;
}

.wp-block-woocommerce-cart a {
    color: #4da6ff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.wp-block-woocommerce-cart a:hover {
    color: #ffffff !important;
}

.wp-block-woocommerce-cart .wc-block-cart-items td,
.wp-block-woocommerce-cart .wc-block-cart-items th,
.wp-block-woocommerce-cart .wc-block-components-totals-item,
.wp-block-woocommerce-cart .wc-block-cart-item {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Contenedores Carrito */
.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
    background: #132743 !important;
    padding: 4px;
    border-radius: 20px;
}

.wp-block-woocommerce-cart .wc-block-cart__totals-inner,
.wc-block-cart__totals {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Inputs y Botones Checkout/Carrito */
.wp-block-woocommerce-checkout input[type="radio"],
.wp-block-woocommerce-checkout input[type="checkbox"] {
    accent-color: #0291d1 !important;
}

.wp-block-woocommerce-checkout .wc-block-formatted-money-amount,
.wp-block-woocommerce-checkout .wc-block-components-product-price,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value * {
    color: #0291d1 !important;
    font-weight: 800 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-select-input select,
.wp-block-woocommerce-checkout textarea {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #cccccc !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input::placeholder {
    color: #888888 !important;
    opacity: 1 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input label {
    color: #888888 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus {
    border-color: #0291d1 !important;
    box-shadow: 0 0 0 3px rgba(2, 145, 209, 0.2) !important;
    outline: none !important;
}

.wp-block-woocommerce-checkout input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-cart .wc-block-components-checkout-button {
    background-color: #005fb6 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 18px 25px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 95, 182, 0.3) !important;
}

/* Padding para las páginas de Carrito, Checkout y Archivo/Tienda de WooCommerce (Evita que queden bajo el header o pegados a los bordes) */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-shop .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    padding: 140px 40px 80px !important;
}

@media (max-width: 768px) {

    .woocommerce-cart .site-main,
    .woocommerce-checkout .site-main,
    .woocommerce-shop .site-main,
    .tax-product_cat .site-main,
    .tax-product_tag .site-main {
        padding: 100px 20px 60px !important;
    }
}


/* ==========================================================
   7. FOOTER B2B Y TRANSLATEPRESS
========================================================== */
.ns-footer-pro,
.site-footer {
    background-color: #0d1726;
    color: #a0aec0;
    font-family: 'Montserrat', sans-serif;
    padding: 80px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.ns-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.ns-footer-brand {
    max-width: 400px;
}

.ns-footer-logo-link img,
.footer-logo .custom-logo {
    height: auto;
    max-width: 291px;
    margin-bottom: 20px;
}

.ns-footer-tagline {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.ns-footer-cta h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
}

.ns-btn-glow {
    display: inline-flex;
    align-items: center;
    background-color: #005fb6;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 95, 182, 0.4);
}

.ns-btn-glow .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.ns-btn-glow:hover {
    background-color: #0291d1;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(2, 145, 209, 0.5);
}

.ns-btn-glow:hover .arrow {
    transform: translateX(5px);
}

.ns-footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    margin: 0 0 50px 0;
}

.ns-footer-middle,
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 70px;
}

.ns-footer-heading,
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.ns-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #0291d1;
}

.ns-footer-menu-list,
.ns-footer-contact-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ns-footer-menu-list li,
.ns-footer-contact-list li,
.footer-links li {
    margin-bottom: 15px;
}

.ns-footer-menu-list a,
.ns-footer-contact-list a,
.footer-links a {
    color: #a0aec0;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.ns-footer-menu-list a:hover,
.ns-footer-contact-list a:hover,
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.ns-footer-contact-list .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #5a6a80;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ns-social-circles,
.social-icons {
    display: flex;
    gap: 15px;
}

.ns-social-circles a,
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ns-social-circles a:hover,
.social-icons a:hover {
    background-color: #0291d1;
    border-color: #0291d1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(2, 145, 209, 0.4);
}

.ns-footer-bottom,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

.ns-footer-legal {
    display: flex;
    gap: 20px;
}

.ns-footer-legal a {
    color: #5a6a80;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ns-footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .ns-footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .ns-footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* Selector TranslatePress */
.ns-footer-language {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ns-lang-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.ns-tp-switcher .trp-language-switcher {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    color: #fff;
}

.ns-tp-switcher .trp-language-switcher>div {
    display: flex !important;
    gap: 15px;
    background: transparent !important;
    border: none !important;
}

.ns-tp-switcher a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ns-tp-switcher a:hover,
.ns-tp-switcher a.trp-ls-disabled-language {
    color: #ffffff !important;
}

.ns-tp-switcher img.trp-flag-image {
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.trp-ls-shortcode-language {
    background-color: transparent !important;
    border: none !important;
}

.trp-language-item-name {
    color: #0291d1;
}

.trp-language-item:hover .trp-language-item-name {
    color: #c5c5c5;
}


/* ==========================================================
   FIX DEFINITIVO: ANTI CSS GRID BLOWOUT (DESFASE AJAX)
========================================================== */

/* 1. Blindar el contenedor principal de la tienda */
.ns-shop-main,
#ns-shop-ajax-target {
    width: 100% !important;
    min-width: 0 !important;
    /* VITAL: Evita que el hijo expanda al padre */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Blindar el Grid (ul.products) */
.ns-shop-main ul.products,
#ns-shop-ajax-target ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Evita el scroll horizontal fantasma */
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. Blindar las tarjetas individuales (li.product) */
.ns-shop-main ul.products li.product,
#ns-shop-ajax-target ul.products li.product {
    min-width: 0 !important;
    /* EL TRUCO MÁGICO: Fuerza a la tarjeta a encogerse si el grid lo manda */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;

}

/* 4. Blindar el contenido dentro de la tarjeta (Imágenes y Textos) */
.novastar-product-card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    /* Corta cualquier cosa que intente estirar la tarjeta */
    word-wrap: break-word !important;
    /* Evita que títulos largos rompan el grid */
}

.novastar-product-card img {
    max-width: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
}

/* ==========================================================
   GRID DE PRODUCTOS: 2 COLUMNAS ESTRICTAS SOLO EN MÓVILES
========================================================== */

/* 1. Desktop y Tablets grandes (Comportamiento normal responsivo) */
.ns-shop-main ul.products,
#ns-shop-ajax-target ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 30px !important;
}

.ns-footer-partners img {
    filter: brightness(0) invert(1);
}

/* 2. Dispositivos Móviles (Hasta 768px) */
@media (max-width: 768px) {
    .partner-logo {
        display: none !important;
    }

    .ns-shop-main ul.products,
    #ns-shop-ajax-target ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        /* Gap más pequeño para no desperdiciar espacio de pantalla */
        padding: 0 20px;
    }

    /* Ganar espacio dentro de la tarjeta */
    .novastar-product-card {
        padding: 12px 10px !important;
    }

    /* Imagen más compacta para que el texto respire */
    .novastar-product-card img {
        height: 120px !important;
        margin-bottom: 10px !important;
    }

    /* Reducir tipografía para que no se amontone ni se corte */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .novastar-product-card h2 {
        font-size: 0.8rem !important;
        /* Texto más pequeño pero en negrita */
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    /* Precio proporcionado al nuevo tamaño */
    .woocommerce ul.products li.product .price,
    .novastar-product-card .price {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }

    /* Achicar el botón (+) flotante para que no tape el precio de la izquierda */
    .novastar-add-button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 1.2rem !important;
        bottom: 10px !important;
        right: 10px !important;
    }

    /* Etiqueta de Oferta (On Sale) más discreta */
    .woocommerce span.onsale {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        top: 10px !important;
        left: 10px !important;
    }
}

/* ==========================================================
   RESTAURACIÓN: BREADCRUMBS, ANCHO DE PRODUCTO Y TABLAS
========================================================== */


/* --- 1. Breadcrumbs (El detalle verde #94cc21) --- */
.woocommerce-breadcrumb {
    color: #94cc21 !important;
    /* Restaura tu verde característico */
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(148, 204, 33, 0.2) !important;
    /* Borde sutil verdoso */
}

.woocommerce-breadcrumb a {
    color: #ffffff !important;
    font-weight: 600;
}

.woocommerce-breadcrumb a:hover {
    color: #94cc21 !important;
}

/* --- 2. Ancho Máximo en Página de Producto --- */
/* Le devolvemos el tope de 1300px para que no se vea estirada en monitores grandes */
.single-product .site-main,
.single-product #content,
.single-product #primary,
.single-product .ns-woo-clean-wrapper {
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;

}

/* --- 3. Tablas Técnicas B2B (Estilo Prussian Blue) --- */
.ns-table-scroll-container {
    position: relative;
    width: 100%;
    margin: 35px 0;
    overflow-x: auto;
    border-radius: 4px;
    background: #0f1115 !important;
    /* Fondo oscuro puro */
    border: 1px solid #1e3350 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ns-table-scroll-container table {
    width: 100% !important;
    border-collapse: collapse;
    min-width: 600px;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif;
}

.ns-table-scroll-container th {
    background: #1e3350 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 20px !important;
    text-align: left;
    border-bottom: 2px solid #0291d1 !important;
}

.ns-table-scroll-container td {
    padding: 16px 20px !important;
    font-size: 13px;
    color: #cbd5e0 !important;
    border-bottom: 1px solid rgba(30, 51, 80, 0.3) !important;
    line-height: 1.5;
}

.ns-table-scroll-container td:first-child {
    color: #ffffff !important;
    font-weight: 600;
    background: rgba(30, 51, 80, 0.2) !important;
    width: 35%;
    border-right: 1px solid rgba(30, 51, 80, 0.5) !important;
}

.ns-table-scroll-container tr:hover td {
    background: rgba(2, 145, 209, 0.05) !important;
    color: #ffffff !important;
}

table a {
    color: #2793cb;
}

/* Animación y Scroll de la Tabla */
.ns-scroll-hint {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: #0291d1;
    color: #fff;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10;
    animation: nsPulseHint 2s infinite;
}

@keyframes nsPulseHint {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.ns-table-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.ns-table-scroll-container::-webkit-scrollbar-thumb {
    background: #1e3350;
    border-radius: 10px;
}

.ns-table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0291d1;
}

@media (min-width: 1024px) {
    .ns-scroll-hint {
        display: none !important;
    }

    .ns-table-scroll-container {
        overflow-x: visible !important;
    }

    .ns-table-scroll-container table {
        min-width: 100% !important;
    }
}

.single_add_to_cart_button.button.alt {
    background: #1e67a1 !important;
}


.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    float: left;
    width: 100%;
}

.novastar-add-button {
    font-size: 16px !important;
}

/* --- Global Aesthetic Styles (1tecnoled look) --- */
:root {
    --primary-blue: #3b82f6;
    --primary-cyan: #06b6d4;
    /* Restaurado a cian de Tecnoled */
    --dark-bg: #0c112b;
    --glass-bg: rgba(12, 17, 43, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-color: #f3f4f6;
    /* light gray/white */
}

html,
body {
    background-color: var(--dark-bg) !important;
    font-family: 'Outfit', sans-serif !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
    color: var(--text-color) !important;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
}

p,
span,
a,
li,
div {
    font-family: 'Outfit', sans-serif;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-cyan) !important;
}

/* Gradients and Utility Classes */
.text-gradient {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Basic structural overrides to transparent if they had solid backgrounds */
.elementor-section:not(.elementor-inner-section) {
    background-color: transparent !important;
}

.glass-panel,
.novastar-header.scrolled,
.offcanvas-menu {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* --- Header Styling (Tecnoled Look) --- */
.novastar-header {
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    padding: 24px 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.4s ease-in-out !important;
    pointer-events: none !important;
}

.novastar-header .logo,
.novastar-header .header-right {
    pointer-events: auto !important;
}

/* Scrolled state overrides */
.novastar-header.scrolled {
    padding: 14px 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    pointer-events: auto !important;
}

/* Layout for header elements */
.novastar-header .logo {
    display: flex;
    align-items: center;
}

.novastar-header .logo img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
}

.novastar-header .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.novastar-header .desktop-nav {
    display: flex;
    align-items: center;
}

.novastar-header .header-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.novastar-header .header-menu-list li {
    display: inline-block;
}

.novastar-header .header-menu-list li a,
.novastar-header a {
    color: #d1d5db !important;
    /* text-gray-300 like Tecnoled */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.novastar-header .header-menu-list li a:hover,
.novastar-header a:hover {
    color: var(--primary-cyan) !important;
    /* text hover primary cyan like Tecnoled */
}

/* WooCommerce Cart Icon */
.novastar-header .header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db !important;
    transition: color 0.3s ease;
}

.novastar-header .header-cart:hover {
    color: var(--primary-cyan) !important;
}

.novastar-header .header-cart svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

.novastar-header .header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-blue);
    color: white !important;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Hamburger menu styling */
.novastar-header .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.novastar-header .menu-toggle .line {
    width: 24px;
    height: 2px;
    background-color: #d1d5db !important;
    transition: all 0.3s ease;
}

.novastar-header .menu-toggle:hover .line {
    background-color: #ffffff !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* --- Hero Slider Styles --- */
.ns-hero-slider {
    position: relative;
    width: 100vw !important;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--dark-bg);
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.ns-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-slide.active {
    opacity: 1;
    z-index: 1;
}

.ns-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.ns-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 17, 43, 0.5);
    z-index: -1;
}

.ns-slide-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.ns-slide-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
    font-weight: 800 !important;
    margin-bottom: 30px;
    line-height: 1.1;
    color: #ffffff !important;
}

.ns-btn-primary {
    display: inline-block;
    background: var(--primary-blue);
    color: white !important;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.ns-btn-primary:hover {
    background: var(--primary-cyan);
    color: #0c112b !important;
    /* Texto en azul oscuro para contraste contra fondo cian */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.ns-slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.ns-slider-controls button:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.ns-slider-prev {
    left: 5px;
}

.ns-slider-next {
    right: 5px;
}

.ns-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.ns-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.ns-dot.active {
    background: var(--primary-cyan);
    transform: scale(1.3);
}

/* --- Home Sections Styles --- */
.ns-home-content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bento Grid */
.novastar-categories {
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 0;
}

.bento-item:hover .bento-bg {
    opacity: 0.8;
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.bento-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    align-self: flex-start;
}

.item-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.item-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.item-small {
    grid-column: span 1;
    grid-row: span 1;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.item-regular {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .item-featured,
    .item-medium,
    .item-small,
    .item-wide,
    .item-regular {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* About Section */
.novastar-about {
    margin-bottom: 80px;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text-side {
    flex: 1;
}

.about-subtitle {
    color: var(--primary-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0 20px;
    line-height: 1.2;
}

.about-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: var(--glass-bg);
    border: 1px solid var(--primary-blue);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-cta:hover {
    background: var(--primary-blue);
    color: white !important;
}

.about-cta svg {
    width: 18px;
    height: 18px;
}

/* Custom Glow Button */
.ns-btn-glow {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-cyan));
    color: white !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.ns-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
    color: white !important;
}

.about-image-side {
    flex: 1;
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    border: 1px solid var(--glass-border);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-accent-box {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-cyan);
    border-radius: 20px;
    z-index: 1;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
}

/* Support Bar */
.novastar-support-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 80px;
    backdrop-filter: blur(10px);
}

.support-bar-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.support-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.support-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 15px;
    border-radius: 15px;
}

.support-icon svg {
    width: 24px;
    height: 24px;
}

.support-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.support-content p {
    color: var(--text-color);
    margin: 0 0 15px;
    font-size: 0.95rem;
}

.support-link {
    color: var(--primary-cyan);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .support-bar-container {
        grid-template-columns: 1fr;
    }
}

/* Trust Section */
.ns-trust-section {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.ns-trust-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.ns-trust-badges {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ns-badge-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ns-badge-card.highlight {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.ns-badge-icon {
    font-size: 2rem;
}

.ns-badge-label {
    font-weight: 700;
    line-height: 1.2;
}

.ns-trust-content {
    flex: 2;
}

.ns-trust-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.ns-trust-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ns-trust-notice {
    display: flex;
    gap: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ns-trust-notice p {
    margin: 0;
    font-size: 0.95rem;
}

.ns-trust-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ns-partner-logo {
    max-height: 30px;
}

.ns-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

.ns-partner-tag {
    color: var(--primary-cyan);
    font-weight: 700;
}

@media (max-width: 768px) {
    .ns-trust-container {
        flex-direction: column;
    }
}

/* --- Dropdown Menu Styles --- */
.novastar-header .header-menu-list .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 240px !important;
    background: rgba(12, 17, 43, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 3px solid var(--primary-cyan) !important;
    /* Premium Cyan top border */
    padding: 8px 0 !important;
    border-radius: 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px) scale(0.98) !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
    list-style: none !important;
    margin: 0 !important;
}

/* Hover Bridge to prevent premature closing */
.novastar-header .header-menu-list .sub-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -20px !important;
    left: 0 !important;
    width: 100% !important;
    height: 20px !important;
    background: transparent !important;
}

.novastar-header .header-menu-list li {
    position: relative !important;
}

.novastar-header .header-menu-list li:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(10px) scale(1) !important;
    /* Spaced slightly down, smooth scale-in */
}

.novastar-header .header-menu-list .sub-menu li {
    display: block !important;
    width: 100% !important;
}

.novastar-header .header-menu-list .sub-menu li a {
    display: block !important;
    padding: 10px 24px !important;
    color: #cbd5e1 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.novastar-header .header-menu-list .sub-menu li:last-child a {
    border-bottom: none !important;
}

.novastar-header .header-menu-list .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-cyan) !important;
    padding-left: 30px !important;
    /* Sleek slide-in effect */
}

/* Multi-level Dropdowns support */
.novastar-header .header-menu-list .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 5px !important;
    transform: translateX(15px) scale(0.98) !important;
}

.novastar-header .header-menu-list .sub-menu li:hover>.sub-menu {
    transform: translateX(5px) scale(1) !important;
}



/* --- Responsive Header --- */
@media (max-width: 1024px) {
    .novastar-header .desktop-nav {
        display: none !important;
    }
}

/* Mobile Header Layout & Paddings Overrides */
@media (max-width: 768px) {
    .novastar-header {
        padding: 12px 20px !important;
    }

    .novastar-header.scrolled {
        padding: 10px 20px !important;
        /* Prevent header padding jump on mobile scroll */
    }

    .novastar-header .logo {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .novastar-header .logo .header-partner-logos {
        display: flex !important;
        flex-direction: initial;
        align-items: flex-start !important;
        margin-left: 0 !important;
        gap: 6px !important;
    }

    .novastar-header .logo .header-partner-logos .ns-divider {
        display: none !important;
    }

    /* Override display: none from line 2063 for mobile header partner logos */
    .novastar-header .logo .header-partner-logos .partner-logo {
        display: flex !important;
        margin: 0 !important;
    }

    .novastar-header .logo img {
        max-height: 25px !important;
        width: auto !important;
    }

    .novastar-header .logo .header-partner-logos img {
        max-height: 18px !important;
        width: auto !important;
    }
}

/* Offcanvas Positioning & Layout below Header */
.offcanvas-menu {
    padding-top: 130px !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .offcanvas-menu {
        padding-top: 100px !important;
    }
}

/* --- Global Unified Premium Button Styles --- */
.ns-btn-primary,
.na-btn-primary,
.woocommerce button.button.alt,
.woocommerce-page button.button.alt,
.woocommerce a.button,
.woocommerce-page a.button,
.woocommerce input.button,
.woocommerce-page input.button,
input[type="submit"],
.wp-block-button__link,
.wc-block-components-button,
.ns-btn-load-more,
.about-cta,
.ns-btn-glow,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-cart .wc-block-components-checkout-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-cyan)) !important;
    color: #ffffff !important;
    height: 50px !important;
    padding: 0 30px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 50px !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.ns-btn-primary:hover,
.na-btn-primary:hover,
.woocommerce button.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce-page a.button:hover,
.woocommerce input.button:hover,
.woocommerce-page input.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.ns-btn-load-more:hover,
.about-cta:hover,
.ns-btn-glow:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-cart .wc-block-components-checkout-button:hover {
    transform: translateY(-3px) !important;
    background: var(--primary-cyan) !important;
    color: #0c112b !important;
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5) !important;
}

/* Outline / Secondary Buttons */
.na-btn-outline,
.ns-btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #ffffff !important;
    height: 50px !important;
    padding: 0 30px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.na-btn-outline:hover,
.ns-btn-outline:hover {
    border-color: var(--primary-cyan) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    color: var(--primary-cyan) !important;
    transform: translateY(-2px) !important;
}

/* Adjust single product quantity selector height to match the new button height */
.ns-summary-box form.cart .quantity input.qty {
    height: 50px !important;
}

/* Specific styling for Get Quote button in the product loop */
.novastar-add-button.ns-get-quote-btn {
    font-size: 8px !important;
}

/* ==========================================================
   HEADER SEARCH ICON AND OFFCANVAS
========================================================== */
.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #c2cddd !important;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.header-search-toggle svg {
    width: 100%;
    height: 100%;
}

.header-search-toggle:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.search-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 24, 0.98);
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(10px);
}

.search-offcanvas.active {
    opacity: 1;
    visibility: visible;
}

.search-offcanvas-close {
    position: absolute;
    top: 40px;
    right: 50px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0;
}

.search-offcanvas-close:hover {
    color: #005fb6;
    transform: rotate(90deg);
}

.search-offcanvas-content {
    width: 90%;
    max-width: 600px;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.search-offcanvas.active .search-offcanvas-content {
    transform: translateY(0);
}

.search-input-wrap {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease;
}

.search-input-wrap:focus-within {
    border-color: #005fb6;
}

.search-field {
    width: 100%;
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    padding: 15px 50px 15px 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    box-shadow: none !important;
    outline: none !important;
}

.search-submit {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-submit:hover {
    color: #005fb6;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .search-offcanvas-close {
        right: 20px;
        top: 25px;
    }
}

/* ==========================================================
   OFFCANVAS CART STYLE
========================================================== */
.cart-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: #111a2e;
    z-index: 100001 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.cart-offcanvas.active {
    right: 0;
}

.cart-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 24, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-offcanvas-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-offcanvas-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cart-offcanvas-close {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.cart-offcanvas-close svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.cart-offcanvas-close:hover {
    color: var(--accent-color) !important;
    transform: rotate(90deg) !important;
}

.cart-offcanvas-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

/* WooCommerce Mini-Cart custom styles */
.cart-offcanvas-content .woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cart-offcanvas-content .woocommerce-mini-cart-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    text-align: left !important;
}

.cart-offcanvas-content .woocommerce-mini-cart-item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cart-offcanvas-content .woocommerce-mini-cart-item a:not(.remove) {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: block !important;
}

.cart-offcanvas-content .woocommerce-mini-cart-item a.remove {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    color: #ff4d4d !important;
    font-size: 1.2rem !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background-color: rgba(255, 77, 77, 0.1) !important;
    transition: all 0.3s ease !important;
}

.cart-offcanvas-content .woocommerce-mini-cart-item a.remove:hover {
    background-color: #ff4d4d !important;
    color: #ffffff !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__total {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__buttons {
    margin-top: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__buttons a.checkout {
    background: linear-gradient(135deg, #005fb6, #0291d1) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 95, 182, 0.3) !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__buttons a:not(.checkout) {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__buttons a:hover {
    transform: translateY(-2px) !important;
}

.cart-offcanvas-content .woocommerce-mini-cart__empty-message {
    color: #a0aec0 !important;
    font-size: 1rem !important;
    text-align: center !important;
    margin-top: 40px !important;
}

/* ==========================================================
   DISCLAIMER FLOTANTE SIMPLIFICADO (SIN MODAL)
   ========================================================== */

/* Contenedor principal del Widget Flotante */
.ns-disclaimer-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: linear-gradient(145deg, rgba(30, 51, 80, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
    padding: 24px;
    z-index: 9999;
    font-family: var(--font-main);
    color: var(--text-color);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    pointer-events: none;
    box-sizing: border-box;
}

.ns-disclaimer-widget.ns-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header del Widget */
.ns-disclaimer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ns-disclaimer-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    color: #eab308; /* Color oro/ámbar para el aviso */
    flex-shrink: 0;
    animation: ns-pulse-glow 2.5s infinite ease-in-out;
}

@keyframes ns-pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.25);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(234, 179, 8, 0);
    }
}

.ns-disclaimer-title-wrap h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    font-family: var(--font-main);
}

.ns-disclaimer-title-wrap p {
    font-size: 0.7rem;
    margin: 2px 0 0 0;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cuerpo del Texto */
.ns-disclaimer-body {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 18px;
}

.ns-disclaimer-body p {
    margin: 0 0 10px 0;
}

.ns-disclaimer-body p:last-child {
    margin-bottom: 0;
}

.ns-disclaimer-bullet-list {
    margin: 10px 0;
    padding-left: 14px;
    list-style-type: none;
}

.ns-disclaimer-bullet-list li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 16px;
    font-size: 0.8rem;
}

.ns-disclaimer-bullet-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    color: #0291d1;
    font-weight: bold;
}

/* Acciones */
.ns-disclaimer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.ns-btn-disclaimer-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.ns-btn-disclaimer-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ns-btn-disclaimer-primary {
    background: linear-gradient(135deg, #005fb6, #0291d1);
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 95, 182, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ns-btn-disclaimer-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 95, 182, 0.5);
    filter: brightness(1.1);
}

/* Responsividad */
@media (max-width: 576px) {
    .ns-disclaimer-widget {
        bottom: 16px;
        right: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
        padding: 18px;
    }
    
    .ns-disclaimer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }
    
    .ns-btn-disclaimer-secondary,
    .ns-btn-disclaimer-primary {
        width: 100%;
        box-sizing: border-box;
    }
}