﻿

/* ====== Box-sizing global ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}



/* ====== Header (barra superior) ====== */
:root {
    --header-h: 72px;
    --brand-gap: 14px;
    --border-soft: #e5e7eb;
    --text-1: #0f172a;
    --text-2: #6b7280;
    --accent: #e11d48; /* rojo del screenshot */
    --accent-600: #be123c;
    --bg-1: #ffffff;
    --bg-2: #f8fafc; /* pill search */
}

body, html, input, button, select, textarea {
    font-family: 'Roboto', sans-serif !important;
}


.site-header {
    background: var(--bg-1);
    border-bottom: 1px solid #eef1f5;
    position: relative;
    z-index: 100;
    width: 100%;
}

    .site-header .bar {
        max-width: 1400px;
        height: var(--header-h);
        margin: 0 auto;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: relative;
    }

        /* Asegurar que el header-right mantenga su layout */
        .site-header .bar .header-right,
        .site-header .bar .ois-header-right {
            display: flex !important;
            align-items: center !important;
            gap: 14px !important;
            flex-shrink: 0;
            flex-wrap: nowrap;
            white-space: nowrap;
        }

/* izquierda */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--brand-gap);
    flex-shrink: 0;
    min-width: 0;
}

    .header-left .logo img {
        height: 55px;
        width: auto;
        display: block;
    }

    .header-left .customer-name {
        color: var(--text-2);
        font-size: 14px;
    }

/* centro: buscador pill */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    flex-shrink: 1;
}

.searchbox {
    position: relative;
    width: 100%;
    max-width: 620px;
    z-index: 100;
}

    .searchbox input {
        width: 100%;
        height: 40px;
        border-radius: 21px;
        /*background: #f3f4f6;*/
        border: 1px solid #e5e7eb;
        padding: 0 38px 0 14px;
        font-size: 14px;
        color: var(--text-1);
        outline: 0;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }

        .searchbox input::placeholder {
            color: #9ca3af;
        }

        .searchbox input:focus {
            background: #fff;
            border-color: #d1d5db;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
        }

    .searchbox button {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        border: 0;
        background: transparent;
        cursor: pointer;
        color: #6b7280;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

        .searchbox button:hover {
            color: var(--accent);
        }

/* Dropdown de resultados de búsqueda */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

    .search-results-dropdown .search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
        cursor: pointer;
        transition: background-color 0.15s ease;
        text-decoration: none;
        color: inherit;
    }

        .search-results-dropdown .search-result-item:last-child {
            border-bottom: none;
        }

        .search-results-dropdown .search-result-item:hover {
            background: #f9fafb;
        }

    .search-results-dropdown .search-result-image {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        object-fit: cover;
        background: #f3f4f6;
        flex-shrink: 0;
    }

    .search-results-dropdown .search-result-info {
        flex: 1;
        min-width: 0;
    }

    .search-results-dropdown .search-result-code {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .search-results-dropdown .search-result-name {
        font-size: 14px;
        color: #111827;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-results-dropdown .search-no-results {
        padding: 16px;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
    }

    .search-results-dropdown .search-loading {
        padding: 16px;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
    }

.searchbox button:hover {
    color: #374151;
}

.searchbox button:active {
    color: #111827;
}

.searchbox button i {
    font-size: 16px;
    pointer-events: none;
}

/* derecha: iconos circulares */
.header-right,
.ois-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-shrink: 0;
    min-width: 0;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--accent);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
    padding: 0;
}

    .icon-btn:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(225,17,72,.12);
    }

    .icon-btn i {
        font-size: 18px;
        line-height: 1
    }

/* badges (contador carrito / idioma) */
.cart-count, .cart-language {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.profile-menu-wrapper {
    position: relative;
}

/* Botón de Profile con texto y flecha */
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .profile-btn:hover {
        background: #f9fafb;
        /*        border-color: #d1d5db;*/
    }

.profile-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.profile-text {
    font-weight: 500;
    color: #111827;
}

.profile-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

    .profile-chevron svg {
        width: 16px;
        height: 16px;
        stroke: #ef4444;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.profile-btn[aria-expanded="true"] .profile-chevron svg {
    transform: rotate(180deg);
}

.profile-menu-wrapper .dropdown-menu-profile {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
    overflow: hidden;
    z-index: 30;
}

    .profile-menu-wrapper .dropdown-menu-profile.open {
        display: block;
    }

/* Eliminar hover antiguo - ahora se controla con JS */
.profile-menu-wrapper:hover .dropdown-menu-profile:not(.open) {
    display: none;
}

.dropdown-menu-profile li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

    .dropdown-menu-profile li a:hover {
        background: #f1f5f9
    }

/* Ensure children don't overflow on narrow screens */
.site-header .bar > * {
    min-width: 0;
}

/* Asegurar que los elementos del header-right no se desordenen */
.site-header .header-right > *,
.site-header .ois-header-right > * {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Asegurar que los elementos específicos mantengan su orden */
.site-header .ois-order--lang,
.site-header .ois-order--profile,
.site-header .ois-order--cart {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Dropdown list reset */
.profile-menu-wrapper .dropdown-menu-profile,
.profile-menu-wrapper .dropdown-menu-profile li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-menu-wrapper .dropdown-menu-profile {
    padding: 6px 0;
}

/* Language select */
.language-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.language-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.language-select {
    width: 80px;
    height: 40px;
    padding: 8px 28px 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    transition: border-color .2s, box-shadow .2s;
}

    .language-select:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(225,17,72,.12);
    }

    .language-select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(225,17,72,.12);
    }

    .language-select option {
        padding: 8px 12px;
        font-size: 14px;
        color: #111827;
    }

/* Better focus states (a11y) */
.icon-btn:focus-visible,
.searchbox button:focus-visible,
.searchbox input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Avoid odd native styling in Safari/iOS */
.searchbox input {
    -webkit-appearance: none;
    appearance: none;
}

/* Asegurar que el header se vea igual en todas las pantallas */
.site-header .bar {
    box-sizing: border-box;
}

.site-header .header-left,
.site-header .header-center,
.site-header .header-right,
.site-header .ois-header-right {
    box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .header-left .customer-name {
        display: none;
    }

    .searchbox {
        max-width: 100%;
    }
}


/* ====== Secondary nav (light gray bar) ====== */
.main-nav {
    background: #f3f6f9;
    border-top: 1px solid #e9eef5;
    border-bottom: 1px solid #e9eef5;
}

    .main-nav nav {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 16px;
    }

.main-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 44px;
    gap: 32px;
}

.main-nav__item {
    position: relative
}

    .main-nav__item > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #6b7280;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        padding: 8px 6px;
        border-radius: 6px;
    }

        .main-nav__item > a:hover {
            color: #111827
        }

    /* “Categories” with red caret */
    .main-nav__item:first-child > a {
        color: #111827;
    }

        .main-nav__item:first-child > a .iconfont-arrow-down {
            display: inline-block;
            margin-left: 6px;
            width: 0;
            height: 0; /* triángulo con bordes */
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid var(--accent, #ef4444); /* usa --accent si existe, si no rojo */
            line-height: 0;
            font-size: 0; /* anulamos cualquier icon font */
            vertical-align: middle;
            transform: translateY(-1px);
            transition: transform .18s ease;
        }

    .main-nav__item:first-child:hover > a .iconfont-arrow-down {
        transform: translateY(1px) rotate(180deg);
    }

/* Submenu */
.main-nav__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-width: 220px;
    max-height: 400px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    z-index: 20;
    box-shadow: 0 14px 40px rgba(2,6,23,.14);
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

    /* Scrollbar styling for submenu - Make it more visible */
    .main-nav__submenu::-webkit-scrollbar {
        width: 8px !important;
    }

    .main-nav__submenu::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 10px;
    }

    .main-nav__submenu::-webkit-scrollbar-thumb {
        background: #888 !important;
        border-radius: 10px;
    }

        .main-nav__submenu::-webkit-scrollbar-thumb:hover {
            background: #555 !important;
        }

/* Firefox scrollbar */
.main-nav__submenu {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

    .main-nav__submenu li a {
        display: block;
        padding: 10px 12px;
        color: #111827;
        text-decoration: none;
        font-size: 14px;
    }

        .main-nav__submenu li a:hover {
            background: #f8fafc
        }

.main-nav__item:hover .main-nav__submenu {
    display: block
}


/* Responsive */
@media (max-width: 900px) {
    .main-nav__list {
        overflow: auto;
        gap: 18px;
        justify-content: flex-start;
    }
}


/* ====== Home Carousels ====== */
.home-row {
    margin: 24px 0 -10px;
}

.row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}

    .row-head h3 {
        font-size: 18px;
        font-weight: 800;
        margin: 0;
        color: #0f172a;
    }

.row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

    .row-link:hover {
        text-decoration: underline;
    }

/* Card */
.p-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    width: 210px;
    height: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 6px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    position: relative;
    overflow: hidden;
}

    .p-card:hover {
        border-color: #d1d5db;
        box-shadow: 0 8px 24px rgba(2,6,23,.06);
        transform: translateY(-1px);
    }

.p-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Imagen - Tamaño fijo independiente del descuento */
.p-thumb {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    padding: 8px; /* Padding consistente para todas las imágenes */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* No se encoge nunca */
    border: none; /* Sin contorno */
    outline: none; /* Sin outline */
}

    .p-thumb img {
        max-width: calc(100% - 16px); /* Respeta el padding de 8px a cada lado */
        max-height: calc(100% - 16px); /* Respeta el padding de 8px arriba y abajo */
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        border: none; /* Sin contorno */
        outline: none; /* Sin outline */
    }


.p-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
    background: #fdecec;
    border-radius: 999px;
    border: 1px solid #fecaca;
    z-index: 2;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Texto */
.p-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* ocupa todo lo disponible */
    min-height: 0;
}

/*.p-title {
    font-size: 14px;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;*/ /* asegura dos líneas */
/*}*/

.p-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.p-price {
    font-weight: 900;
    color: #0f172a;
    font-size: 16px;
}

.p-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 13px;
}



/* Slick arrows (estilo discreto) */
.slick-slider {
    padding: 0 6px;
}

.slick-prev, .slick-next {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
}

.slick-prev {
    left: -12px;
}

.slick-next {
    right: -12px;
}

    .slick-prev:before, .slick-next:before {
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 8px;
        height: 8px;
        border-top: 2px solid #6b7280;
        border-right: 2px solid #6b7280;
        transform: rotate(45deg);
    }

.slick-prev:before {
    transform: rotate(225deg);
    left: 11px;
}

.slick-next:before {
    right: 11px;
}

/* Dots (si los activas) */
.slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

    .slick-dots li {
        width: 8px;
        height: 8px;
    }

        .slick-dots li button {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #e5e7eb;
            text-indent: -9999px;
        }

        .slick-dots li.slick-active button {
            background: #ef4444;
        }

/* Responsive ancho tarjeta */
@media (max-width: 1200px) {
    .p-card {
        width: 200px;
    }
}

@media (max-width: 900px) {
    .p-card {
        width: 190px;
    }
}

@media (max-width: 640px) {
    .p-card {
        width: 220px;
    }
}
/* un poco más ancha en mobile */



/* === Slick core === */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block
}

    .slick-track:before, .slick-track:after {
        content: "";
        display: table
    }

    .slick-track:after {
        clear: both
    }

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px
}

[dir='rtl'] .slick-slide {
    float: right
}

.slick-initialized .slick-slide {
    display: block
}

.slick-slide img {
    display: block
}

/* (Opcional) que los slides no hereden espacios raros */
.slick-slide > div {
    outline: 0
}


/* ===== Footer (_Footer.cshtml) ===== */
:root {
    --footer-top-bg: #eef3f6;
    --footer-top-border: #e7edf2;
    --footer-text-1: #1f2937;
    --footer-text-2: #4b5563;
    --footer-muted: #64748b;
}

/* contenedor 1400px como el resto del sitio */
.site-footer .shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* franja superior */
.site-footer__top {
    background: var(--footer-top-bg);
    border-top: 1px solid var(--footer-top-border);
    border-bottom: 1px solid var(--footer-top-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 220px 1fr 200px 260px; /* logo | contacto | phones | links */
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}

.footer-brand img {
    max-height: 44px;
    width: auto;
    display: block;
    filter: saturate(.9);
}

.footer-contact h6 {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--footer-text-1);
    text-transform: uppercase;
}

.footer-contact p {
    margin: 0;
    color: var(--footer-text-2);
    font-size: 14px;
    line-height: 1.5;
}

.footer-phones {
    color: var(--footer-text-1);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.footer-links {
    text-align: right;
}

    .footer-links a {
        display: block;
        color: var(--footer-text-1);
        text-decoration: none;
        font-size: 14px;
        margin: 2px 0;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

/* franja inferior */
.site-footer__bottom {
    background: #fff;
}

.footer-bottom__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* centra el “Powered by” */
    gap: 16px;
    min-height: 44px;
    padding: 6px 0;
}

.footer-powered {
    color: var(--footer-muted);
    font-size: 13px;
    margin: 0;
}

    .footer-powered a {
        color: var(--footer-muted);
        text-decoration: none;
    }

        .footer-powered a:hover {
            text-decoration: underline;
        }

/* GoDaddy seal a la derecha en desktop */
.godaddy-seal {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsivo */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 200px 1fr 1fr; /* logo | contacto | mix phones/links */
    }

    .footer-phones {
        text-align: left;
    }

    .footer-links {
        text-align: left;
    }
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 10px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-phones {
        text-align: left;
    }

    .footer-brand img {
        max-height: 36px;
    }

    .footer-bottom__row {
        flex-direction: column;
        gap: 8px;
    }

    .godaddy-seal {
        position: static;
        transform: none;
    }
}


/* ===== Products Table (ProductTable.cshtml) ===== */
.ptbl .shell {
    max-width: 1400px;
    /*    margin: 0 auto;*/
    padding: 0 16px;
}

.ptbl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px auto 12px;
}

    .ptbl-toolbar h1 {
        font-size: 28px;
        font-weight: 800;
        margin: 0;
    }
/*
.ptbl-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}*/

.ptbl-search {
    position: relative;
    width: 360px;
    max-width: 48vw;
}

    .ptbl-search input {
        width: 100%;
        height: 40px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f8fafc;
        padding: 0 14px 0 42px;
        outline: 0;
    }
    /* Lupa */
    .ptbl-search:before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid #94a3b8;
    }

    .ptbl-search:after {
        content: "";
        position: absolute;
        left: 28px;
        top: 50%;
        transform: translate(0,3px) rotate(-45deg);
        width: 8px;
        height: 2px;
        background: #94a3b8;
        border-radius: 1px;
    }

.ptbl-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
}

    .ptbl-iconbtn:hover {
        border-color: #e11d48;
        box-shadow: 0 0 0 3px rgba(225,29,72,.12);
    }

/* Tarjeta/table */
.ptbl-card .tabulator {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2,6,23,.06);
}

.tabulator .tabulator-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.tabulator .tabulator-col {
    border-right: 1px solid #eef2f6;
}

.tabulator-row {
    border-bottom: 1px solid #f2f4f7;
}

    .tabulator-row:hover {
        background: #fbfbfd;
    }

/* Celda de nombre + imagen */
.ptbl-namecell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ptbl-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg,#fafafa,#f5f7fb);
    display: grid;
    place-items: center;
    border: 1px solid #eef2f6;
}

    .ptbl-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.ptbl-nametxt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/*.ptbl-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
    max-width: 640px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}*/

.ptbl-new {
    background: #e6f7ea;
    color: #1a7f37;
    border: 1px solid #b7e2c1;
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 6px;
    font-weight: 700;
    width: max-content;
}

/* Chips de stock */
.ptbl-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    border: 1px solid;
}

    /*  .ptbl-chip.ok {
        background: #e6f7ea;
        color: #1a7f37;
        border-color: #b7e2c1;
    }*/

    .ptbl-chip.out {
        background: #f3f4f6;
        color: #6b7280;
        border-color: #e5e7eb;
    }

/* Precio y “SPECIAL” */
/*.ptbl-price {
    font-weight: 700;
    color: #111827;
}*/

.ptbl-compare {
    font-size: 12px;
    color: #6b7280;
}

    .ptbl-compare s {
        color: #9ca3af;
    }

.ptbl-special {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 999px;
    padding: 0 6px;
    font-weight: 800;
    margin-right: 6px;
}

/* Cantidad (±) — versión limpia */
.ptbl-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.qbtn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .15s, transform .05s, border-color .15s, background .15s;
}

    .qbtn:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    /* halo suave */
    .qbtn:active {
        transform: scale(.96);
    }

    .qbtn:focus-visible {
        outline: 3px solid rgba(59,130,246,.35);
        outline-offset: 2px;
    }

    /* específicos */
    .qbtn.minus {
        border-color: #0f172a;
    }

    .qbtn.plus {
        border-color: #ef4444;
    }
    /* único .plus, sin duplicados */
    .qbtn svg {
        width: 16px;
        height: 16px;
        display: block;
    }

/* Valor */
.qval {
    min-width: 34px;
    text-align: center;
    color: #374151;
    font-weight: 700;
    user-select: none;
}

/* Subtotal más marcado */
.tabulator-cell[tabulator-field="subTotal"] {
    font-weight: 400;
    color: #0f172a;
}

/* Panel total + CTA */
.ptbl-checkout {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin: 18px auto 60px;
}

.ptbl-total .label {
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 4px;
}

.ptbl-total .amount {
    font-weight: 900;
    font-size: 20px;
    color: #111827;
}

.ptbl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(239,68,68,.25);
}

    .ptbl-cta:hover {
        filter: brightness(.98);
    }

.qbtn img {
    width: 16px;
    height: 16px;
    display: block;
}


/* Footer de paginación */
.tabulator-footer {
    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   PRODUCT PAGE — FINETUNE PARA MATCH DEL MOCK
   ========================================================= */

/* Título grande y compacto */
.pd-title {
    font-size: 32px;
    line-height: 1.2;
}

/* Badge de precio gris claro */
.pd-price .value.badge {
    background: #eef2f5; /* un toque más claro */
    border-color: #e3e7ee;
    border-radius: 20px;
    padding: 6px 12px;
}

/* Total más marcado */
.pd-total .value {
    font-size: 22px;
    font-weight: 800;
}

/* Precio tachado y % descuento naranja */
.pd-compare .compare {
    color: #a0aec0;
    text-decoration: line-through;
}

.pd-compare .discount {
    color: #ff7a00;
    font-weight: 700;
}

/* Stepper: anillos como en el mock */
.pd-qty-row .qty-btn {
    border-width: 2px;
}

    .pd-qty-row .qty-btn:first-child { /* botón "−" */
        border-color: #111827;
    }

    .pd-qty-row .qty-btn:last-child { /* botón "+" */
        border-color: #ef4444;
    }

        .pd-qty-row .qty-btn:last-child:hover {
            background: rgba(239, 68, 68, 0.06);
        }

/* Input cantidad bien grande */
.qty-input {
    width: 84px;
    height: 48px;
    font-size: 20px;
}

/* Pastilla de stock verde */
.pd-stock.ok {
    background: #e9fceb;
    border-color: #b8efc3;
    color: #116d3b;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Card de especificaciones redondeada, con borde sutil */
.pd-specs.card {
    border-radius: 16px;
    border-color: #e6ecf1;
    background: #fff;
}

/* Media container con sombra y borde como la muestra */
.pd-media-main {
    border-color: #e6ecf1;
    box-shadow: 0 1px 0 rgba(17,24,39,0.02);
    border-radius: 16px;
}

/* Miniaturas con borde y active bien marcado */
.pd-media-thumbs .thumb {
    border-color: #e6ecf1;
    border-radius: 14px;
}

    .pd-media-thumbs .thumb.is-active {
        outline: 2px solid #ff4d4f;
    }

/* Botón checkout rojo redondeado */
.btn-checkout {
    height: 50px;
    border-radius: 999px;
    background: #f44336; /* rojo más vivo */
    font-weight: 800;
}

    .btn-checkout:hover {
        filter: brightness(0.98);
    }


/* =========================================================
   MINI CART (DROPDOWN DEL HEADER)
   ========================================================= */
#dropdownCart {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none; /* el JS lo abre/cierra */
    z-index: 10000; /* sobre todo */
}

#headerCart {
    position: relative;
}

.miniCart {
    padding: 12px;
    width: 360px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

/* Lista de ítems */
.miniCart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 58vh;
    overflow: auto;
    padding-right: 4px;
}

/* Ítem */
.miniCart-item {
    display: grid;
    grid-template-columns: 90px 1fr 28px;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    align-items: center;
}

/* Imagen */
.miniCart-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef2f5;
    background: #fff;
}

    .miniCart-thumb img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        display: block;
    }

/* Cuerpo */
.miniCart-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.miniCart-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
    max-height: 38px;
    overflow: hidden;
}

.miniCart-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.miniCart-label {
    color: #6b7280;
    font-weight: 700;
}

.miniCart-unit {
    color: #111;
}

/* Qty stepper (igual lenguaje de la ficha de producto) */
.miniCart-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qtyBtn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

    .qtyBtn:active {
        transform: scale(0.98);
    }

.qtyInput {
    width: 64px;
    height: 34px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
}

/* Subtotal línea */
.miniCart-sub {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

    .miniCart-sub span {
        color: #6b7280;
    }

    .miniCart-sub strong {
        font-weight: 800;
    }

/* Eliminar */
.miniCart-remove {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .miniCart-remove:hover {
        filter: brightness(0.9);
    }

/* Errores (stock, etc.) */
.miniCart-error {
    color: #ef4444;
    font-size: 12px;
}

/* Total */
.miniCart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

    .miniCart-total span {
        color: #6b7280;
        font-weight: 700;
    }

    .miniCart-total strong {
        font-weight: 900;
        font-size: 18px;
    }

/* Footer (botones) */
.miniCart-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

    .miniCart-footer .btn {
        height: 42px;
        border-radius: 999px;
        padding: 0 16px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: none;
        cursor: pointer;
    }

    .miniCart-footer .btn-primary {
        background: #f44336;
        color: #fff;
    }

        .miniCart-footer .btn-primary:hover {
            filter: brightness(0.98);
        }

    .miniCart-footer .btn-secondary {
        background: #111827;
        color: #fff;
    }

        .miniCart-footer .btn-secondary:hover {
            filter: brightness(0.98);
        }

/* Estado vacío */
.miniCart--empty .miniCart-emptyMsg {
    text-align: center;
    padding: 12px;
    color: #111;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

/* Responsive */
@media (max-width: 420px) {
    .miniCart {
        width: 94vw;
    }

    .miniCart-item {
        grid-template-columns: 72px 1fr 24px;
    }

    .miniCart-thumb img {
        width: 72px;
        height: 72px;
    }
}

/* ===============================
   Cart popover: tamaño y overflow
   =============================== */
#dropdownCart {
    width: min(360px, 92vw); /* mismo criterio del JS, y topes en móviles */
    max-width: 92vw;
    overflow-x: hidden !important; /* cinturón de seguridad extra */
    box-sizing: border-box;
}

    /* Evitar que algún hijo fuerce ancho */
    #dropdownCart * {
        box-sizing: border-box;
    }

    /* Imágenes siempre dentro del contenedor */
    #dropdownCart img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Layout de cada ítem del carrito */
    #dropdownCart .productItem {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }

    #dropdownCart .productImg {
        flex: 0 0 72px; /* miniatura fija */
        max-width: 72px;
    }

    #dropdownCart .productDetails {
        flex: 1 1 auto;
        min-width: 0; /* clave para que text-overflow funcione */
    }

    /* Títulos: elipsis si son largos */
    #dropdownCart .productName {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Totales: evitar que una cifra larguísima genere overflow */
    #dropdownCart .productTotal,
    #dropdownCart .total {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Input de cantidad: tamaño razonable */
    #dropdownCart .ProductQty {
        width: 56px;
        text-align: center;
    }

    /* Footer de acciones pegado y responsive */
    #dropdownCart .footerCart {
        display: flex;
        gap: 10px;
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
    }

        #dropdownCart .footerCart .btn {
            flex: 1 1 0;
        }


/* Centrar título y precio dentro de cada card */
.p-card .p-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    text-align: center; /* centra textos */
    gap: 6px; /* separación entre título y precios */
    flex: 1; /* Ocupa el espacio disponible */
    min-height: 0; /* Permite que se ajuste */
}

/*.p-card .p-title {
    text-align: center;
    line-height: 1.25;*/
/* opcional: limitar a 2 líneas para que no se desborde */
/*display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}*/

.p-card .p-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center; /* centra los precios */
    gap: 8px;
}

.p-card .p-old {
    text-decoration: line-through;
    opacity: .6;
}

.p-card .p-price {
    font-weight: 800;
    font-size: 18px; /* ajusta a tu gusto */
}


/* Gutters laterales del carrusel */
/*.home-row .slick-list {
    padding-inline: 16px;*/ /* 16px a izquierda y derecha */
/*}*/

/* separa cada tarjeta un poco más */
/*.js-carousel-new .p-card,
.js-carousel-top .p-card,
.js-carousel-specials .p-card {
    margin-inline: 8px;*/ /* 8px a cada lado de la card */
/*}*/

/* opcional: en pantallas grandes aumentamos el gutter */
/*@media (min-width: 1280px) {
    .home-row .slick-list {
        padding-inline: 24px;
    }
}*/

/* quitar estilos de slick que ya no aplican */
.home-row .slick-list,
.home-row .slick-track,
.home-row .slick-slide {
    all: unset;
}

/* el wrapper de Glide */
.home-row .glide {
    position: relative;
}

/* spacing entre slides */
.home-row .glide__slide {
    padding: 0 8px;
}

/* flechas estilo “pill” */
.home-row .glide__arrow {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: var(--shadow);
    top: 40%;
    position: absolute;
    transform: translateY(-50%);
}

.home-row .glide__arrow--left {
    left: -10px;
}

.home-row .glide__arrow--right {
    right: -10px;
}

.home-row .glide__arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin: auto;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.home-row .glide__arrow--left::before {
    border-right: 8px solid #0f172a;
}

.home-row .glide__arrow--right::before {
    border-left: 8px solid #0f172a;
}


/*PRODUCTS table CSHTML*/

/* ====== Paleta base ====== */
.ptbl {
    --brand: #ef4444;
    --ink: #0f172a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f7fb;
    --ok: #22c55e;
}

/* ===== Toolbar ===== */
.ptbl-toolbar.shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 8px;
}

.ptbl-toolbar h1 {
    font-size: 24px;
    margin: 0;
    color: var(--ink);
}

/*.ptbl-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}*/

.ptbl-search {
    position: relative;
}

    .ptbl-search input {
        width: 280px;
        height: 36px;
        padding: 0 40px 0 14px;
        background: #f8fbfd;
        border: 1px solid var(--line);
        border-radius: 999px;
        outline: none;
        font-size: 14px;
    }

    .ptbl-search::after {
        content: "";
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%234b5563" d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') center/16px 16px no-repeat;
    }

/* Botones redondos "icon" de la derecha (placeholders) */
.ptbl-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

    .ptbl-iconbtn:hover {
        background: #f8fafc;
    }

/* ===== Card del grid ===== */
.ptbl-card .tabulator {
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

/* Header */
.ptbl-card .tabulator-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.ptbl-card .tabulator-col {
    background: transparent;
    border-right: none;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
}

/* Filas */
.ptbl-card .tabulator-row {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

    .ptbl-card .tabulator-row:nth-child(even) {
        background: #fbfdff;
    }

    .ptbl-card .tabulator-row:hover {
        background: #f8fafc;
    }

/* Célula nombre con thumb */
.ptbl-namecell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ptbl-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .ptbl-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.ptbl-nametxt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/*.ptbl-title {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
}*/

/* Chips de stock */
.ptbl-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
}

    /*    .ptbl-chip.ok {
        background: #ecfdf5;
        color: #0f766e;
        border-color: #99f6e4;
    }*/

    .ptbl-chip.out {
        background: #f8fafc;
        color: #64748b;
    }

/* Precio + compare + SPECIAL */
/*.ptbl-price {
    line-height: 1.1;
}*/

.ptbl-compare {
    font-size: 12px;
    color: #9ca3af;
}

.ptbl-special {
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    margin-right: 6px;
}

/* Stepper cantidad */
.ptbl-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qbtn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .qbtn.minus::before, .qbtn.plus::before {
        content: "";
        display: block;
        width: 12px;
        height: 12px;
        mask-size: contain;
        mask-repeat: no-repeat;
        background: #475569;
    }

    .qbtn.minus::before {
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23475569" d="M19 13H5v-2h14v2z"/></svg>');
    }

    .qbtn.plus {
        border-color: #fecaca;
        background: #fff;
    }

        .qbtn.plus::before {
            background: #ef4444;
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ef4444" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"/></svg>');
        }

.qval {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

/* Footer/paginación de Tabulator */
.ptbl-card .tabulator-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.tabulator-paginator label, .tabulator-page-size {
    font-size: 12px;
    color: #6b7280;
}

.tabulator-pages .tabulator-page {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    margin: 0 4px;
    padding: 4px 8px;
}

    .tabulator-pages .tabulator-page.active {
        background: #111827;
        color: #fff;
        border-color: #111827;
    }

/* ===== Panel total + CTA ===== */
.ptbl-checkout.shell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 16px 0 40px;
}

.ptbl-total {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .ptbl-total .label {
        color: #9ca3af;
        font-weight: 800;
    }

    .ptbl-total .amount {
        font-weight: 800;
        font-size: 18px;
        color: #111827;
    }

.ptbl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

    .ptbl-cta:hover {
        filter: brightness(.95);
    }

.ptbl-namecell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ptbl-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .ptbl-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

.ptbl-nametxt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/*.ptbl-title {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
}*/

.ptbl-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e5e7eb;
}

    /*   .ptbl-chip.ok {
        background: #ecfdf5;
        color: #0f766e;
        border-color: #99f6e4;
    }*/

    .ptbl-chip.out {
        background: #f8fafc;
        color: #64748b;
    }

/*.ptbl-price {
    line-height: 1.1;
}*/

.ptbl-compare {
    font-size: 12px;
    color: #9ca3af;
}

.ptbl-special {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    margin-right: 6px;
}

.ptbl-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qbtn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .qbtn.minus::before, .qbtn.plus::before {
        content: "";
        width: 12px;
        height: 12px;
        display: block;
        background: #475569;
        mask-size: contain;
        mask-repeat: no-repeat;
    }

    .qbtn.minus::before {
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23475569" d="M19 13H5v-2h14v2z"/></svg>');
    }

    .qbtn.plus {
        border-color: #fecaca;
    }

        .qbtn.plus::before {
            background: #ef4444;
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ef4444" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"/></svg>');
        }

.qval {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}


/* ===== FIX: eliminar halos/segundas circunferencias en ± ===== */
.tabulator .tabulator-cell .qbtn,
.tabulator .tabulator-cell .qbtn:hover,
.tabulator .tabulator-cell .qbtn:focus,
.tabulator .tabulator-cell .qbtn:active {
    box-shadow: none !important;
    outline: none !important;
    background: #fff !important;
    border-color: #e5e7eb !important;
}

    /* Si algún CSS viejo dibuja el +/− con pseudo-elementos, anúlalo */
    .tabulator .tabulator-cell .qbtn::before,
    .tabulator .tabulator-cell .qbtn::after {
        content: none !important;
    }

    /* === Qty buttons SIN NINGÚN BORDE/ANILLO dentro de Tabulator === */
    .tabulator .tabulator-cell .qbtn,
    .tabulator .tabulator-cell .qbtn:hover,
    .tabulator .tabulator-cell .qbtn:focus,
    .tabulator .tabulator-cell .qbtn:active {
        appearance: none;
        -webkit-appearance: none;
        all: unset; /* borra todo lo heredado */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
        cursor: pointer !important;
        background: transparent !important;
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important; /* nada de círculos */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

        /* Por si algún CSS viejo dibuja pseudo-elementos */
        .tabulator .tabulator-cell .qbtn::before,
        .tabulator .tabulator-cell .qbtn::after {
            content: none !important;
        }

        /* Tamaño del ícono/imagen; el clic sigue en el botón */
        .tabulator .tabulator-cell .qbtn img,
        .tabulator .tabulator-cell .qbtn svg {
            width: 28px;
            height: 28px;
            display: block;
            pointer-events: none;
        }

/* ===============================
   Checkout V3 — Layout + Cards
   =============================== */
.checkout-v3 {
    --bg: #f6f7f9;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #6c7786;
    --line: #e5e7eb;
    --brand: #ef4444;
    --ok: #16a34a;
    --soft-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 30px rgba(15,23,42,.06);
}

/* Fondo general */
.checkout-v3 {
    color: var(--ink);
}

    /* ---------- GRID de 2 columnas (izq items / der resumen) ---------- */
    .checkout-v3 .checkout-grid {
        display: grid;
        grid-template-columns: minmax(620px, 1fr) 360px;
        gap: 20px;
    }

@media (max-width: 1200px) {
    .checkout-v3 .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Ignora el sistema anterior de columnas */
.checkout-v3 .col-left,
.checkout-v3 .col-right {
    width: 100% !important;
    float: none !important;
}

/* ---------- Filtros ---------- */
.checkout-v3 #form_review table {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--soft-shadow);
}

.checkout-v3 #form_review input[type="text"] {
    height: 40px;
    border-radius: 999px;
    padding: 0 14px;
    border: 1px solid var(--line);
}

.checkout-v3 .btn_Aplicar {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f3f4f6;
    cursor: pointer;
    transition: .2s;
}

    .checkout-v3 .btn_Aplicar:hover {
        background: #eef2f7;
    }

/* ---------- Tabla -> "Cards" ---------- */
.checkout-v3 table.center-align {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.checkout-v3 tr.white {
    display: none;
}
/* oculta el header */

/* Fila como tarjeta */
.checkout-v3 tr.solid {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
}

    .checkout-v3 tr.solid td {
        padding: 16px 14px;
        border: 0 !important;
        vertical-align: middle !important;
        font-size: 14px;
        color: var(--ink);
    }

        /* Imagen */
        .checkout-v3 tr.solid td:first-child img {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 10px;
            border: 1px solid var(--line);
        }

        /* Nombre + SKU */
        .checkout-v3 tr.solid td:nth-child(2) a {
            color: var(--ink);
            text-decoration: none;
            font-weight: 800;
        }

        .checkout-v3 tr.solid td:nth-child(2) b {
            display: block;
            margin-top: 4px;
            color: var(--muted);
            font-weight: 600;
        }

/* Precio / Ahorro / Subtotal */
.checkout-v3 td:nth-child(3),
.checkout-v3 td:nth-child(5),
.checkout-v3 td:nth-child(6) {
    font-weight: 800;
}

.checkout-v3 td:nth-child(5) {
    color: #059669;
}
/* ahorro en verde sutil */

/* Stepper visual (solo estilo del número y bono) */
.checkout-v3 .buttonsContainer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
}

    .checkout-v3 .buttonsContainer p {
        margin: 0;
        font-weight: 800;
        min-width: 20px;
        text-align: center;
    }

.checkout-v3 .bonus-pill {
    background: #eafff0;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

/* Botón Remove */
.checkout-v3 .deleteItem a {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #ef4444;
    background: #fff;
    transition: .2s;
    text-decoration: none;
}

    .checkout-v3 .deleteItem a:hover {
        background: #fff1f2;
        border-color: #fecdd3;
    }

/* Chip “in stock” (opcional) */
.checkout-v3 .stock-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
}

/* Totales fila inferior */
.checkout-v3 tr.tfo {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--soft-shadow);
}

    .checkout-v3 tr.tfo td {
        padding: 14px 16px;
        font-weight: 800;
    }

/* ---------- Panel derecho (tarjetas sticky) ---------- */
.checkout-v3 .summary-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    padding: 14px;
    margin-bottom: 12px;
}

.checkout-v3 .col-right {
    position: sticky;
    top: 18px;
}

/* Campos del resumen */
.checkout-v3 .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 8px 0;
    color: var(--muted);
}

    .checkout-v3 .summary-row b {
        color: var(--ink);
    }

.checkout-v3 .summary-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 6px;
}

/* Cuadro de comentarios y PO */
.checkout-v3 .summary-card textarea {
    width: 100%;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    color: var(--muted);
}

.checkout-v3 .summary-card input[type="text"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
}

/* Total grande + botón rojo */
.checkout-v3 .grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 18px;
    padding: 6px 2px;
}

.checkout-v3 .cta-send {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    letter-spacing: .3px;
    cursor: pointer;
    transition: .2s;
}

    .checkout-v3 .cta-send:hover {
        filter: brightness(.93);
    }

/* Ajustes finos / móviles */
.checkout-v3 td[width="100px"], .checkout-v3 td[width="120px"] {
    width: auto !important;
}

/* === Overrides para que las filas se vean como "cards" === */
.checkout-v3 tr.solid {
    display: table-row !important; /* anula display raro del CSS anterior */
    border: 1px solid var(--line) !important;
    background: var(--card) !important;
    border-radius: 16px !important;
    box-shadow: var(--soft-shadow) !important;
}

/* quita líneas/separadores heredados entre celdas/filas */
.checkout-v3 table.center-align > tbody > tr > td {
    border-bottom: 0 !important;
}

/* asegura el espacio entre “cards” */
.checkout-v3 table.center-align {
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: transparent !important;
}

/* header oculto, por si otra regla lo vuelve a mostrar */
.checkout-v3 tr.white {
    display: none !important;
}

/* mejora “card” de filtros para que no quede pegada a los bordes */
.checkout-v3 #form_review table {
    margin-bottom: 12px;
}

/* un poco más de ancho a la izquierda y sidebar más cómodo */
.checkout-v3 .checkout-grid {
    grid-template-columns: minmax(720px, 1fr) 380px;
}

/*
.ptbl-iconbtn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}*/


.ptbl-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
}

/*.ptbl-tools {
    display: flex;
    align-items: center;
    gap: 10px;*/ /* espacio entre buscador e iconos */
/*}*/

.ptbl-search input {
    height: 36px;
    min-width: 280px; /* ajusta el ancho del buscador */
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: 0;
}

.ptbl-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: .15s box-shadow,.15s transform;
}

    .ptbl-iconbtn:hover {
        box-shadow: 0 1px 3px rgba(16,24,40,.15);
        transform: translateY(-1px);
    }
/*
    .ptbl-iconbtn img {
        width: 18px;
        height: 18px;
        display: block;
    }*/

@media (max-width:640px) {
    .ptbl-search input {
        min-width: 160px;
    }
}


.ptbl-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ptbl-search input {
        height: 36px;
        padding: 0 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        outline: 0;
    }

    .ptbl-search button {
        width: 36px;
        height: 36px;
        border: none;
        background: #ef4444; /* color de fondo */
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .ptbl-search button i {
            color: #fff; /* color del ícono */
            font-size: 16px;
        }


.search-box {
    display: flex;
    align-items: center;
    background: #f9fbfd;
    border: 1px solid #e5e7eb;
    border-radius: 999px; /* redondeado */
    padding: 2px 6px 2px 14px;
    width: 100%; /* ajusta al ancho que necesites */
    max-width: 600px;
}

    .search-box input {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        color: #374151;
    }

        .search-box input::placeholder {
            color: #9ca3af;
        }

    .search-box .search-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s, box-shadow .2s;
    }

        .search-box .search-btn:hover {
            background: #f3f4f6;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .search-box .search-btn i {
            color: #374151; /* color del ícono */
            font-size: 14px;
        }


.miniCart-qty .qtyBtn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .miniCart-qty .qtyBtn img {
        width: 12px;
        height: 12px;
    }


/* POPUP FILTER */
.ptbl-filter-pop {
    position: absolute;
    z-index: 50;
    right: 12px;
    top: 76px;
    width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15,23,42,.12);
    padding: 12px;
}

.pf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pf-title {
    font-weight: 800;
    color: var(--ink);
}

.pf-close {
    border: 0;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.pf-section {
    margin: 10px 0;
}

.pf-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.pf-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
}

.pf-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    width: 100%;
}

    .pf-chip.active {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c;
    }

    .pf-chip .pf-name {
        pointer-events: none;
    }

    .pf-chip.l1 {
        padding-left: 14px;
    }

    .pf-chip.l2 {
        padding-left: 24px;
    }

    .pf-chip.l3 {
        padding-left: 34px;
    }

    .pf-chip.l4 {
        padding-left: 44px;
    }

.pf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
}

.pf-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.pf-btn {
    background: var(--red);
    color: #fff;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
}

    .pf-btn.ghost {
        background: #fff;
        color: var(--ink);
        border: 1px solid var(--line);
    }


.main-nav__item i.fa-sort-down {
    font-size: 0.75em; /* flecha más pequeña */
    vertical-align: 2px; /* la sube ligeramente */
    margin-left: 4px; /* deja un pequeño espacio respecto al texto */
    color: #00000080; /* opcional: un gris suave */
}

/* ===== Sticky footer base ===== */
html, body {
    height: 100%;
}

.layout-sticky-footer {
    min-height: 100dvh; /* usa 100vh si prefieres */
    display: flex;
    flex-direction: column;
}

/* El contenedor principal ocupa el espacio disponible */
.page-main {
    flex: 1 0 auto;
}

/* El footer no se encoge y queda pegado abajo cuando el contenido es corto */
.site-footer {
    flex-shrink: 0;
    margin-top: auto; /* empuja al fondo */
}

/* Si tu topbar fuese fixed, puedes compensar con padding: */
:root {
    --topbar-h: 0px;
}
/* ajusta si tu header es fixed */
body.has-fixed-top .page-main {
    padding-top: var(--topbar-h);
}


.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-address {
    color: #374151;
    font-size: 14px;
}

.company-phone {
    color: #6b7280;
    font-size: 12px;
}



/* ====== Page Loader - Indicador de carga global ====== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

    .page-loader.active {
        opacity: 1;
        pointer-events: all;
    }

/* Efecto blur en el contenido cuando el loader está activo */
body.loading {
    overflow: hidden;
}

    body.loading #main,
    body.loading header,
    body.loading footer {
        filter: blur(5px);
        -webkit-filter: blur(5px);
        transition: filter 0.3s ease-in-out, -webkit-filter 0.3s ease-in-out;
        pointer-events: none;
    }

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent, #e11d48);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: var(--text-1, #0f172a);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Versión alternativa con spinner más moderno */
.page-loader .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(225, 29, 72, 0.1);
    border-top-color: var(--accent, #e11d48);
    border-right-color: var(--accent, #e11d48);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive: ajustar tamaño en móviles */
@media (max-width: 768px) {
    .loader-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .loader-text {
        font-size: 14px;
    }
}


/* ===== Selector de idioma estilo bandera + EN + chevron rojo ===== */
.ois-lang {
    position: relative;
}

.ois-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
}

    .ois-lang__btn:focus-visible {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

.ois-lang__flag {
    width: 32px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: none;
}

.ois-lang__flag--sm {
    width: 24px;
    height: 16px;
}

.ois-lang__code {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
    color: #0f172a;
}

.ois-lang__chev {
    display: inline-flex;
    align-items: center;
}

    .ois-lang__chev svg {
        width: 16px;
        height: 16px;
        stroke: #ef4444;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        transform: translateY(1px);
    }

.ois-lang__btn[aria-expanded="true"] .ois-lang__chev svg {
    transform: rotate(180deg) translateY(1px);
}

/* Loading state para cambio de idioma */
.ois-lang__btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

    .ois-lang__btn.loading .ois-lang__flag,
    .ois-lang__btn.loading .ois-lang__code,
    .ois-lang__btn.loading .ois-lang__chev {
        opacity: 0;
    }

    .ois-lang__btn.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid rgba(239, 68, 68, 0.2);
        border-radius: 50%;
        border-top-color: #ef4444;
        animation: spin 0.6s linear infinite;
    }


/* Dropdown */
.ois-lang__menu {
    position: absolute;
    margin-top: 8px;
    min-width: 190px;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15,23,42,.12);
    padding: 6px;
    display: none;
    z-index: 50;
}

    .ois-lang__menu.open {
        display: block;
    }

.ois-lang__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 500;
}

    .ois-lang__item:hover {
        background: #f8fafc;
    }

.ois-lang__hint {
    margin-left: auto;
    color: #64748b;
    font-weight: 400;
    font-size: .85em;
}


/* ===== Fixes visuales para el selector de idioma ===== */

/* Asegura que el botón quede alineado y sin fondos/bordes heredados */
.head-ico .ois-lang__btn {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: 24px; /* alto compacto del botón */
}

/* Chevron rojo: evitar que reglas globales lo pinten negro o cambien tamaño */
.head-ico .ois-lang__chev svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #ef4444 !important; /* rojo */
    stroke-width: 2 !important;
    fill: none !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    transform: translateY(1px);
}

.head-ico .ois-lang__btn[aria-expanded="true"] .ois-lang__chev svg {
    transform: rotate(180deg) translateY(1px);
}

/* Bandera + código alineados */
.ois-lang__flag {
    width: 28px !important;
    height: 18px !important;
    border-radius: 2px;
    object-fit: cover;
}

.ois-lang__code {
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
    color: #0f172a;
}

/* Menu: ancho, borde y sombra sutiles; encima del carrusel */
.ois-lang__menu {
    right: 0;
    min-width: 180px;
    border: 1px solid #e5e7eb !important; /* gris claro */
    box-shadow: 0 8px 20px rgba(15,23,42,.12) !important;
    background: #fff !important;
    z-index: 2000; /* sobre tarjetas */
}

/* Items compactos, sin bordes heredados ni backgrounds grises */
.ois-lang__item {
    padding: 8px 10px !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
}

    .ois-lang__item:hover {
        background: #f8fafc !important; /* hover suave */
    }

/* Bandera pequeña en items */
.ois-lang__flag--sm {
    width: 22px !important;
    height: 14px !important;
}

/* Código a la derecha del item */
.ois-lang__hint {
    margin-left: auto;
    color: #64748b;
    font-weight: 500;
    font-size: .85em;
}

/* Si hay alguna regla global que ponga triángulos o rellene SVGs, neutralízala aquí */
.ois-lang .fa,
.ois-lang i,
.ois-lang .nav-arrow {
    display: none !important; /* asegura que no aparezca un caret extra negro */
}

/* Opcional: disminuir el gap general del header derecho */
.header-right .head-ico {
    margin-left: 10px;
}


/* Orden explícito: idioma (1) → usuario (2) → carrito (3) */
.ois-order--lang {
    order: 1 !important;
    flex-shrink: 0;
}

.ois-order--profile {
    order: 2 !important;
    flex-shrink: 0;
}

.ois-order--cart {
    order: 3 !important;
    flex-shrink: 0;
}

/* Asegurar que el orden se mantenga en todas las vistas */
.site-header .header-right .ois-order--lang,
.site-header .ois-header-right .ois-order--lang {
    order: 1 !important;
}

.site-header .header-right .ois-order--profile,
.site-header .ois-header-right .ois-order--profile {
    order: 2 !important;
}

.site-header .header-right .ois-order--cart,
.site-header .ois-header-right .ois-order--cart {
    order: 3 !important;
}


/* --- Ajustes generales de los iconos del header derecho --- */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* diámetro del círculo */
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--border-soft, #e5e7eb); /* gris sutil */
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    padding: 0;
}

    .icon-btn:hover {
        border-color: var(--accent, #ef4444);
        box-shadow: 0 0 0 3px rgba(225,17,72,.12);
        background-color: #fff;
    }

    /* --- Imagen dentro del botón (user y cart) --- */
    .icon-btn .icon-img {
        width: 18px;
        height: 18px;
        object-fit: contain; /* evita distorsión */
        display: block;
    }

/* Botón del carrito con texto */
.cart-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    /*    border: 1px solid #e5e7eb;*/
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

    .cart-btn-link:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        text-decoration: none;
    }

.cart-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.cart-text {
    font-weight: 500;
    color: #111827;
}

/* --- Contador del carrito --- */
.cart-count.nbProductsHeader {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444; /* rojo brand */
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    min-width: 18px;
    height: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    /* Ocultar badge cuando el contador es 0 */
    .cart-count.nbProductsHeader:empty,
    .cart-count.nbProductsHeader[data-count="0"],
    .cart-count.nbProductsHeader:has-text("0") {
        display: none;
    }



/* Ocultar flechas nativas de inputs number (spinners) */
/* Chrome, Edge (Chromium), Safari, Opera */
.qty-hero-input::-webkit-outer-spin-button,
.qty-hero-input::-webkit-inner-spin-button,
.ck3-stepper-val-input::-webkit-outer-spin-button,
.ck3-stepper-val-input::-webkit-inner-spin-button,
.qtyInput::-webkit-outer-spin-button,
.qtyInput::-webkit-inner-spin-button,
.ProductQty::-webkit-outer-spin-button,
.ProductQty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.qty-hero-input[type="number"],
.ck3-stepper-val-input[type="number"],
.qtyInput[type="number"],
.ProductQty[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield; /* estándar */
}
