/* ============================================================
   ASELAB Quote System — Styles
   Desarrollado por Blue Ark Solutions
   Colores: Azul #03325E | Turqueza #1891AE
   ============================================================ */

/* ============================================================
   BOTONES — Agregar a cotización
   ============================================================ */

.aselab-add-to-quote {
    display: block;
    width: 100%;
    margin-top: 10px;
    background-color: #03325E !important;
    color: #ffffff !important;
    border: 2px solid #03325E !important;
    padding: 11px 20px !important;
    border-radius: 50px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.aselab-add-to-quote:hover,
.aselab-add-to-quote:focus {
    background-color: #1891AE !important;
    border-color: #1891AE !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Estado: agregado / post-clic — regresa a azul */
.aselab-add-to-quote.added,
.aselab-add-to-quote.aselab-done {
    background-color: #03325E !important;
    border-color: #03325E !important;
    color: #ffffff !important;
    cursor: default;
}

/* Estado: cargando — eliminar spinner morado del tema */
.aselab-add-to-quote.loading,
.aselab-add-to-quote:disabled {
    background-color: #03325E !important;
    border-color: #03325E !important;
    color: #ffffff !important;
    opacity: 0.75;
    cursor: wait;
}
.aselab-add-to-quote.loading::after,
.aselab-add-to-quote:disabled::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

/* Botón en loop (listado de productos) */
.aselab-loop-btn {
    margin-top: 8px;
}

/* Botón en página individual de producto */
.single-product .aselab-add-to-quote {
    margin-top: 12px;
    width: auto;
    display: inline-block;
    padding: 12px 28px !important;
}

/* ============================================================
   PÁGINA DE COTIZACIÓN
   ============================================================ */
.aselab-quote-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.aselab-quote-title {
    font-size: 24px;
    margin-bottom: 28px;
    color: #03325E;
    border-bottom: 2px solid #03325E;
    padding-bottom: 10px;
}

/* ============================================================
   TABLA DE PRODUCTOS
   ============================================================ */
.aselab-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.aselab-quote-table thead tr {
    background: #f0f6fa;
}
.aselab-quote-table thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 12px;
    color: #03325E;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.aselab-quote-table tbody tr {
    border-bottom: 1px solid #eef2f5;
    transition: background 0.15s;
}
.aselab-quote-table tbody tr:last-child {
    border-bottom: none;
}
.aselab-quote-table tbody tr:hover {
    background: #f8fbfd;
}
.aselab-quote-table td {
    padding: 14px 16px;
    vertical-align: middle;
}
.aselab-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    vertical-align: middle;
    border: 1px solid #e8eef2;
}
.aselab-product-name {
    font-weight: 600;
    color: #222;
    vertical-align: middle;
}
.col-qty { width: 155px; text-align: center; }
.col-remove { width: 50px; text-align: center; }

/* Qty control */
.aselab-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.aselab-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #c8d8e4;
    background: #f0f6fa;
    color: #03325E;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    border-radius: 50px;
    transition: background 0.15s, border-color 0.15s;
    font-weight: 700;
}
.aselab-qty-btn:hover {
    background: #1891AE;
    border-color: #1891AE;
    color: #fff;
}
.aselab-qty-input {
    width: 50px !important;
    text-align: center;
    border: 1px solid #c8d8e4 !important;
    border-radius: 50px !important;
    padding: 5px 8px !important;
    font-size: 14px !important;
    color: #333;
}
.aselab-qty-input::-webkit-inner-spin-button,
.aselab-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Botón eliminar */
.aselab-remove-item {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 8px;
    border-radius: 50%;
    transition: background 0.15s;
}
.aselab-remove-item:hover { background: #fdecea; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.aselab-quote-form-wrap {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}
.aselab-quote-form-wrap h3 {
    font-size: 18px;
    color: #03325E;
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #03325E;
    padding-bottom: 8px;
}
.aselab-form-row { margin-bottom: 18px; }
.aselab-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) {
    .aselab-two-col { grid-template-columns: 1fr; }
    .aselab-add-to-quote { width: 100% !important; }
}
.aselab-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.aselab-field .req { color: #c0392b; }
.aselab-field input,
.aselab-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c8d8e4 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333;
    transition: border-color 0.2s;
    background: #fff;
}
.aselab-field input:focus,
.aselab-field textarea:focus {
    border-color: #1891AE !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 145, 174, 0.12);
}
.aselab-form-actions {
    margin-top: 24px;
    text-align: right;
}
.aselab-submit-btn {
    background-color: #03325E !important;
    color: #ffffff !important;
    border: 2px solid #03325E !important;
    padding: 13px 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.aselab-submit-btn:hover,
.aselab-submit-btn:focus {
    background-color: #1891AE !important;
    border-color: #1891AE !important;
    color: #ffffff !important;
}
.aselab-submit-btn:disabled {
    background-color: #7a9ab5 !important;
    border-color: #7a9ab5 !important;
    cursor: not-allowed;
}

/* ============================================================
   MENSAJES
   ============================================================ */
.aselab-error {
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 14px;
}
.aselab-quote-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
}
.aselab-quote-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.aselab-quote-empty .button,
.aselab-quote-success .button {
    background-color: #03325E !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    border: 2px solid #03325E !important;
    font-weight: 600 !important;
    transition: background-color 0.25s, border-color 0.25s !important;
    text-decoration: none !important;
    display: inline-block;
}
.aselab-quote-empty .button:hover,
.aselab-quote-success .button:hover {
    background-color: #1891AE !important;
    border-color: #1891AE !important;
}
.aselab-quote-success {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
}
.aselab-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #1891AE;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 18px;
}
.aselab-quote-success h2 {
    color: #03325E;
    margin: 0 0 10px;
    font-size: 22px;
}
.aselab-quote-success p {
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ============================================================
   ÍCONO FLOTANTE DE COTIZACIÓN
   ============================================================ */

.aselab-float-wrap {
    position: fixed !important;
    bottom: 32px !important;
    right: 32px !important;
    z-index: 99999 !important;
    width: 64px !important;
    height: 64px !important;
    /* Aislar del layout del tema */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    transform: none;
}

.aselab-float-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    background-color: #03325E !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(3, 50, 94, 0.35) !important;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
    position: relative !important;
    overflow: hidden;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    /* Evitar que GeneratePress o WooCommerce lo sobreescriban */
    font-size: 0 !important;
    line-height: 0 !important;
}

.aselab-float-btn:hover {
    background-color: #1891AE !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(24, 145, 174, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.aselab-float-icon {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    stroke: #ffffff !important;
    fill: none !important;
    display: block !important;
    flex-shrink: 0;
    pointer-events: none;
}

/* Neutralizar cualquier estilo del tema sobre SVG dentro del flotante */
.aselab-float-wrap svg,
.aselab-float-wrap svg *,
.aselab-float-btn svg,
.aselab-float-btn svg path,
.aselab-float-btn svg rect,
.aselab-float-btn svg line,
.aselab-float-btn svg polyline {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
}
.aselab-float-btn svg {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    display: block !important;
    overflow: visible;
}

.aselab-float-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1 !important;
    display: block !important;
}

/* Badge contador */
.aselab-float-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    width: 20px !important;
    height: 20px !important;
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-align: center !important;
    border: 2px solid #fff !important;
    display: none;
    transition: transform 0.2s ease;
    z-index: 10 !important;
    box-sizing: border-box !important;
    pointer-events: none;
}

.aselab-float-badge--visible {
    display: block;
}

/* Glow pulsante alrededor del badge */
.aselab-float-badge-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #e74c3c;
    opacity: 0.5;
    z-index: -1;
    animation: aselab-glow-pulse 1.8s ease-in-out infinite;
}

@keyframes aselab-glow-pulse {
    0%   { transform: scale(1);    opacity: 0.5; }
    50%  { transform: scale(1.9);  opacity: 0;   }
    100% { transform: scale(1);    opacity: 0.5; }
}

/* Animación bump al agregar */
.aselab-float-badge--bump {
    animation: aselab-bump 0.3s ease;
}
@keyframes aselab-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* ============================================================
   WRAPPER BOTÓN + CANTIDAD EN PRODUCTO INDIVIDUAL
   ============================================================ */
.aselab-single-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.aselab-single-qty {
    flex-shrink: 0;
}
.aselab-single-btn {
    flex: 1;
    min-width: 180px;
    width: auto !important;
    margin-top: 0 !important;
}

/* ============================================================
   WRAPPER BOTÓN + CANTIDAD EN LOOP
   ============================================================ */
.aselab-loop-wrap {
    padding: 0 4px;
}
.aselab-loop-qty {
    margin-bottom: 8px;
    justify-content: flex-start;
}

@media (max-width: 600px) {
    .aselab-float-wrap {
        bottom: 20px;
        right: 20px;
    }
    .aselab-float-btn {
        width: 56px;
        height: 56px;
    }
    .aselab-float-icon {
        width: 22px;
        height: 22px;
    }
    .aselab-single-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .aselab-single-btn {
        width: 100% !important;
    }
}

/* ============================================================
   CATÁLOGO DE PRODUCTOS — [aselab_catalogo]
   ============================================================ */

.aselab-catalog-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 60px;
    font-family: inherit;
}

/* --- Top bar --- */
.aselab-catalog-topbar {
    margin-bottom: 28px;
}
.aselab-search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.aselab-search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.aselab-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 42px 10px 16px !important;
    border: 1px solid #c8d8e4 !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    transition: border-color 0.2s !important;
    outline: none !important;
}
.aselab-search-input:focus {
    border-color: #1891AE !important;
    box-shadow: 0 0 0 3px rgba(24,145,174,0.12) !important;
}
.aselab-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #03325E;
    display: flex;
    align-items: center;
}
.aselab-search-btn:hover { color: #1891AE; }
.aselab-clear-search {
    font-size: 13px;
    color: #c0392b;
    text-decoration: none;
    white-space: nowrap;
}
.aselab-clear-search:hover { text-decoration: underline; }
.aselab-results-count {
    font-size: 13px;
    color: #888;
    margin-left: auto;
    white-space: nowrap;
}

/* --- Layout: sidebar + main --- */
.aselab-catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 768px) {
    .aselab-catalog-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Sidebar --- */
.aselab-catalog-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.aselab-catalog-sidebar-inner {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Scrollbar sutil */
    scrollbar-width: thin;
    scrollbar-color: #c8d8e4 transparent;
}
.aselab-catalog-sidebar-inner::-webkit-scrollbar {
    width: 4px;
}
.aselab-catalog-sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}
.aselab-catalog-sidebar-inner::-webkit-scrollbar-thumb {
    background: #c8d8e4;
    border-radius: 2px;
}
.aselab-sidebar-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #03325E !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #03325E;
    flex-shrink: 0;
}
.aselab-cat-list,
.aselab-subcat-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.aselab-cat-list > li {
    margin-bottom: 2px;
}
.aselab-cat-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #444 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
    line-height: 1.3 !important;
}
.aselab-cat-link:hover {
    background: #f0f6fa !important;
    color: #03325E !important;
    text-decoration: none !important;
}
.aselab-cat-link--active {
    background: #03325E !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.aselab-cat-link--active:hover {
    background: #1891AE !important;
    color: #fff !important;
}
.aselab-cat-count {
    background: rgba(0,0,0,0.08);
    border-radius: 20px;
    font-size: 11px;
    padding: 1px 7px;
    margin-left: 6px;
    flex-shrink: 0;
}
.aselab-cat-link--active .aselab-cat-count {
    background: rgba(255,255,255,0.25);
}
.aselab-subcat-list {
    margin: 2px 0 4px 10px !important;
    border-left: 2px solid #e0eaf2;
    padding-left: 8px !important;
    /* Accordion: collapsed by default via JS class */
}
/* Accordion toggle arrow on parent cat-link */
.aselab-cat-link--has-children {
    cursor: pointer;
}
.aselab-cat-link--has-children::after {
    content: '›';
    font-size: 16px;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s;
    transform: rotate(0deg);
    display: inline-block;
    margin-left: 4px;
    flex-shrink: 0;
}
.aselab-cat-link--has-children.aselab-cat-open::after {
    transform: rotate(90deg);
    opacity: 0.8;
}
/* Subcat list animation */
.aselab-subcat-list {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease, margin 0.2s ease;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.aselab-subcat-list--open {
    max-height: 600px; /* large enough for any subcat list */
    margin-top: 2px !important;
    margin-bottom: 4px !important;
}
.aselab-subcat-link {
    font-size: 12px !important;
    padding: 5px 8px !important;
}

/* --- Breadcrumb --- */
.aselab-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
    font-size: 12px;
    color: #888;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #f7f9fb;
    border-radius: 8px;
    border: 1px solid #e8eef3;
    min-height: 36px;
}
.aselab-bc-item {
    color: #555;
    text-decoration: none !important;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
a.aselab-bc-item:hover {
    color: #1891AE !important;
    text-decoration: underline !important;
}
.aselab-bc-root {
    font-weight: 600;
    color: #03325E !important;
}
a.aselab-bc-root:hover {
    color: #1891AE !important;
}
.aselab-bc-current {
    color: #03325E;
    font-weight: 600;
    cursor: default;
}
.aselab-bc-sep {
    color: #bbb;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 2px;
}

/* On mobile: breadcrumb below trigger bar */
@media (max-width: 768px) {
    .aselab-breadcrumb {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 10px;
        margin-top: -4px;
    }
    .aselab-bc-item {
        max-width: 130px;
    }
}

/* --- Product grid --- */
.aselab-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Full-width layout when no sidebar (category pages) */
.aselab-catalog-layout--full {
    grid-template-columns: 1fr;
}
.aselab-catalog-layout--full .aselab-product-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
    .aselab-catalog-layout--full .aselab-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1024px) {
    .aselab-product-grid { grid-template-columns: repeat(2, 1fr); }
    .aselab-catalog-layout--full .aselab-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .aselab-product-grid { grid-template-columns: 1fr; }
    .aselab-catalog-layout--full .aselab-product-grid { grid-template-columns: 1fr; }
}

/* --- Product card --- */
.aselab-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.aselab-product-card:hover {
    box-shadow: 0 6px 20px rgba(3,50,94,0.13);
    transform: translateY(-2px);
}

/* Image */
.aselab-card-img-link {
    display: block;
    text-decoration: none !important;
}
.aselab-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aselab-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.aselab-product-card:hover .aselab-card-img {
    transform: scale(1.04);
}

/* Body */
.aselab-card-body {
    padding: 14px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aselab-card-cat {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1891AE !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
}
.aselab-card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    flex: 1;
}
.aselab-card-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}
.aselab-card-title a:hover {
    color: #03325E !important;
}

/* Footer */
.aselab-card-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f4f7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aselab-card-qty {
    justify-content: flex-start;
}
.aselab-card-quote-btn {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
}

/* --- Empty state --- */
/* ── Group picker ── */
.aselab-group-picker { padding: 32px 0; }
.aselab-group-picker-title {
    font-size: 15px; font-weight: 600; color: #03325E;
    margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 2px solid #e8eef5;
    display: flex; align-items: center; gap: 8px;
}
.aselab-group-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .aselab-group-picker-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aselab-group-picker-grid { grid-template-columns: 1fr; } }

.aselab-group-picker-folder {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    overflow: hidden; text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    cursor: pointer;
}
.aselab-group-picker-folder:hover {
    box-shadow: 0 6px 24px rgba(3,50,94,0.12);
    transform: translateY(-3px); border-color: #c5d5f0;
    text-decoration: none;
}
.aselab-group-picker-icon-wrap {
    height: 180px; background: #f4f8fd;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #e8eef5; overflow: hidden;
}
.aselab-group-picker-icon-wrap svg { width: 52px; height: 52px; }
.aselab-group-picker-icon-wrap--photo { background: #fff; }
.aselab-group-picker-icon-wrap--photo img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.aselab-group-picker-body { padding: 16px 18px 20px; }
.aselab-group-picker-name {
    font-size: 14px; font-weight: 700; color: #03325E;
    line-height: 1.3; margin-bottom: 6px;
}
.aselab-group-picker-count { font-size: 12px; color: #888; }
.aselab-group-picker-btn {
    display: inline-block; margin-top: 12px;
    background: #03325E; color: #fff; font-size: 12px; font-weight: 600;
    padding: 7px 18px; border-radius: 50px; text-decoration: none;
    transition: background 0.15s;
}
.aselab-group-picker-folder:hover .aselab-group-picker-btn { background: #04427e; }

.aselab-catalog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    grid-column: 1 / -1;
}
.aselab-catalog-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.aselab-btn-primary {
    display: inline-block;
    background: #03325E !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 11px 28px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border: 2px solid #03325E !important;
    transition: background 0.25s, border-color 0.25s !important;
}
.aselab-btn-primary:hover {
    background: #1891AE !important;
    border-color: #1891AE !important;
}

/* --- Pagination --- */
.aselab-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.aselab-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #c8d8e4;
    color: #03325E !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    background: #fff;
}
.aselab-pagination .page-numbers:hover {
    background: #1891AE;
    border-color: #1891AE;
    color: #fff !important;
}
.aselab-pagination .page-numbers.current {
    background: #03325E;
    border-color: #03325E;
    color: #fff !important;
}
.aselab-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #03325E !important;
    cursor: default;
    font-weight: 700;
    letter-spacing: 1px;
}
.aselab-pagination .page-numbers.prev,
.aselab-pagination .page-numbers.next {
    width: auto;
    min-width: 90px;
    padding: 0 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}


/* Drawer y trigger — ocultos en desktop, solo móvil */
.aselab-mobile-cat-bar,
.aselab-drawer,
.aselab-drawer-overlay {
    display: none !important;
}
/* ============================================================
   MÓVIL — Responsive completo
   ============================================================ */

@media (max-width: 768px) {

    /* ── Catálogo: ocultar sidebar desktop ── */
    .aselab-catalog-sidebar {
        display: none !important;
    }

    /* ── Botón sticky de categorías (trigger) ── */
    .aselab-mobile-cat-bar,
    .aselab-drawer {
        display: flex !important;
    }
    /* When trigger bar is a direct child of catalog-layout grid, span full width */
    .aselab-catalog-layout > .aselab-mobile-cat-bar {
        grid-column: 1 / -1;
    }
    .aselab-mobile-cat-bar {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        padding: 4px 0;
    }
    .aselab-mobile-cat-trigger {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        background: #03325E !important;
        color: #fff !important;
        border: none !important;
        border-radius: 50px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        cursor: pointer;
        box-shadow: 0 3px 12px rgba(3,50,94,0.3);
        transition: background 0.2s !important;
        flex: 1;
        max-width: 100%;
    }
    .aselab-mobile-cat-trigger:hover {
        background: #1891AE !important;
    }
    .aselab-mobile-cat-trigger-icon { display: flex; align-items: center; flex-shrink: 0; }
    .aselab-mobile-cat-trigger-label {
        flex: 1;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .aselab-mobile-cat-trigger-arrow { flex-shrink: 0; font-size: 14px; opacity: 0.8; }
    .aselab-mobile-search-tag {
        font-size: 11px;
        background: #fff;
        border: 1px solid #c8d8e4;
        border-radius: 20px;
        padding: 4px 10px;
        white-space: nowrap;
        color: #555;
        flex-shrink: 0;
    }
    .aselab-mobile-search-tag a { color: #c0392b; text-decoration: none; margin-left: 4px; }

    /* ── Overlay ── */
    .aselab-drawer-overlay {
        display: none;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.55) !important;
        z-index: 9998 !important;
        backdrop-filter: blur(2px);
        animation: aselab-overlay-in 0.2s ease;
    }
    .aselab-drawer-overlay--open { display: block !important; }
    @keyframes aselab-overlay-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* ── Drawer (bottom sheet) ── */
    .aselab-drawer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: #fff !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.18) !important;
        max-height: 85vh !important;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1) !important;
        will-change: transform;
    }
    .aselab-drawer--open {
        transform: translateY(0) !important;
    }
    .aselab-drawer-handle {
        width: 40px;
        height: 4px;
        background: #dde4ea;
        border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    .aselab-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px 12px;
        border-bottom: 1px solid #eef2f5;
        flex-shrink: 0;
    }
    .aselab-drawer-title {
        font-size: 16px;
        font-weight: 700;
        color: #03325E;
        letter-spacing: 0.3px;
    }
    .aselab-drawer-close {
        background: #f0f4f7 !important;
        border: none !important;
        border-radius: 50% !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        color: #555 !important;
        cursor: pointer;
        line-height: 1 !important;
        padding: 0 !important;
    }
    .aselab-drawer-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 24px;
        flex: 1;
    }
    .aselab-drawer-cat {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #2a2a2a !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f5f7fa !important;
        transition: background 0.15s !important;
    }
    .aselab-drawer-cat:active { background: #f0f6fa !important; }
    .aselab-drawer-cat--active {
        color: #03325E !important;
        font-weight: 700 !important;
        background: #f0f6fa !important;
    }
    .aselab-drawer-cat--active::before {
        content: '✓ ';
        color: #1891AE;
    }
    .aselab-drawer-cat--child {
        padding-left: 36px !important;
        font-size: 13px !important;
        color: #555 !important;
    }

    /* Drawer group accordion */
    .aselab-drawer-group {}
    .aselab-drawer-group-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 700;
        color: #03325E;
        border-bottom: 1px solid #edf2f7;
        cursor: pointer;
        user-select: none;
    }
    .aselab-drawer-group-header:hover {
        background: #f7f9fb;
    }
    .aselab-drawer-group-arrow {
        font-size: 14px;
        opacity: 0.6;
        transition: transform 0.2s ease;
        display: inline-block;
    }
    .aselab-drawer-group--open .aselab-drawer-group-arrow {
        transform: rotate(180deg);
    }
    .aselab-drawer-group-body {
        display: none;
        background: #f9fbfc;
    }
    .aselab-drawer-group--open .aselab-drawer-group-body {
        display: block;
    }
    .aselab-drawer-group-body .aselab-drawer-cat--child {
        border-bottom: 1px solid #edf2f7 !important;
    }
    .aselab-drawer-cat-count {
        background: #eef2f5;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 9px;
        color: #666;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .aselab-drawer-cat--active .aselab-drawer-cat-count {
        background: #03325E;
        color: #fff;
    }

    /* ── Catálogo layout: una sola columna ── */
    .aselab-catalog-layout {
        grid-template-columns: 1fr !important;
    }

    /* ── Grid: 2 columnas en móvil ── */
    .aselab-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ── Cards más compactas ── */
    .aselab-card-body {
        padding: 10px 12px 6px !important;
        gap: 4px !important;
    }
    .aselab-card-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    .aselab-card-cat {
        font-size: 10px !important;
    }
    .aselab-card-footer {
        padding: 8px 12px 12px !important;
        gap: 7px !important;
    }
    .aselab-card-quote-btn {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
    .aselab-qty-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 15px !important;
    }
    .aselab-qty-input {
        width: 38px !important;
        height: 26px !important;
        font-size: 12px !important;
    }

    /* ── Buscador más compacto ── */
    .aselab-search-form {
        gap: 8px !important;
    }
    .aselab-search-input-wrap {
        max-width: 100% !important;
    }
    .aselab-results-count {
        display: none;
    }

    /* ── Tabla de cotización compacta ── */
    .aselab-quote-table {
        font-size: 12px !important;
    }
    .aselab-quote-table th {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
    .aselab-quote-table td {
        padding: 8px 6px !important;
        vertical-align: middle !important;
    }
    /* Ocultar columna de imagen en móvil */
    .aselab-quote-table .aselab-col-img {
        display: none !important;
    }
    .aselab-quote-table .aselab-product-name {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    /* Qty en tabla más pequeño */
    .aselab-quote-table .aselab-qty-btn {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 14px !important;
    }
    .aselab-quote-table .aselab-qty-input {
        width: 34px !important;
        height: 24px !important;
        font-size: 12px !important;
    }

    /* ── Formulario de cotización ── */
    .aselab-quote-form-grid {
        grid-template-columns: 1fr !important;
    }
    .aselab-form-group input,
    .aselab-form-group textarea {
        font-size: 14px !important;
    }

    /* ── Página de cotización: título ── */
    .aselab-quote-wrap h2 {
        font-size: 20px !important;
    }
}

/* Extra pequeño: 1 columna */
@media (max-width: 400px) {
    .aselab-product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Reload button en página vacía ── */
.aselab-quote-empty-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0 10px;
}
.aselab-btn-reload {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    background: #fff !important;
    color: #03325E !important;
    border: 2px solid #03325E !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s !important;
}
.aselab-btn-reload:hover {
    background: #03325E !important;
    color: #fff !important;
}
.aselab-quote-empty-hint {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 0 !important;
}

/* ── Quote table móvil: ocultar imagen, compactar ── */
@media (max-width: 768px) {
    .aselab-quote-table .aselab-thumb {
        display: none !important;
    }
    .aselab-quote-table td.col-product {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
}

/* =============================================================
   CATEGORY / BRAND HEADER CARD
   ============================================================= */

.aselab-cat-header-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 0;
    box-shadow: 0 2px 16px rgba(3,50,94,0.07);
}

/* Brand logo column */
.aselab-cat-header-logo-col {
    flex-shrink: 0;
    align-self: flex-start;
}

.aselab-brand-logo-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    max-width: 220px;
    min-height: 100px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.aselab-brand-logo-img {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Category image column */
.aselab-cat-header-img-col {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
}

.aselab-cat-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content column */
.aselab-cat-header-content-col {
    flex: 1;
    min-width: 0;
}

.aselab-cat-header-content-col.aselab-cat-header-full {
    width: 100%;
}

.aselab-cat-header-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #03325E !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}

.aselab-cat-header-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 14px;
}

.aselab-cat-header-desc p {
    margin: 0 0 8px;
}

.aselab-cat-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.aselab-cat-header-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #1891AE;
    font-weight: 600;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 4px 12px;
    border-radius: 50px;
}

.aselab-cat-header-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0 20px;
}

/* =============================================================
   INDEX GRIDS — [aselab_categorias] and [aselab_marcas]
   ============================================================= */

.aselab-index-grid {
    display: grid;
    gap: 20px;
}

.aselab-cat-index-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.aselab-brand-index-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.aselab-index-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(3,50,94,0.06);
}

.aselab-index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(3,50,94,0.13);
    border-color: #1891AE;
    text-decoration: none !important;
}

/* Category card image area */
.aselab-index-card-img-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aselab-index-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.aselab-index-card:hover .aselab-index-card-img {
    transform: scale(1.04);
}

.aselab-index-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #a0aec0;
}

/* Brand card logo area */
.aselab-brand-card-logo-wrap {
    width: 100%;
    height: 120px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
}

.aselab-brand-card-logo {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.aselab-index-card:hover .aselab-brand-card-logo {
    transform: scale(1.05);
}

.aselab-brand-card-name-fallback {
    font-size: 18px;
    font-weight: 700;
    color: #03325E;
    text-align: center;
    letter-spacing: 1px;
}

/* Card body */
.aselab-index-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.aselab-index-card-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.aselab-index-card-count {
    font-size: 12px;
    color: #718096;
}

.aselab-index-card-arrow {
    font-size: 12px;
    font-weight: 600;
    color: #1891AE;
    margin-top: auto;
    padding-top: 8px;
    transition: gap 0.2s;
}

.aselab-index-card:hover .aselab-index-card-arrow {
    letter-spacing: 0.3px;
}

/* =============================================================
   RESPONSIVE — Index grids & header card
   ============================================================= */
@media (max-width: 768px) {
    .aselab-cat-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .aselab-brand-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .aselab-cat-header-card {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        align-items: flex-start;
    }
    .aselab-brand-logo-box {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: 16px 20px;
    }
    .aselab-brand-logo-img {
        max-width: 140px;
        max-height: 70px;
    }
    .aselab-cat-header-img-col {
        width: 100%;
        height: 160px;
    }
    .aselab-cat-header-title {
        font-size: 18px !important;
    }
    .aselab-index-card-img-wrap {
        height: 120px;
    }
    .aselab-brand-card-logo-wrap {
        height: 100px;
    }
}

@media (max-width: 400px) {
    .aselab-cat-index-grid,
    .aselab-brand-index-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Quote page title row with reload button ── */
.aselab-quote-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.aselab-quote-title-row .aselab-quote-title {
    margin-bottom: 0 !important;
}
.aselab-btn-reload-subtle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    color: #1891AE !important;
    border: 1.5px solid #1891AE !important;
    border-radius: 50px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s !important;
    white-space: nowrap;
}
.aselab-btn-reload-subtle:hover {
    background: #1891AE !important;
    color: #fff !important;
}

/* ── Brand card description and button ── */
.aselab-brand-card-desc {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.6;
    margin: 4px 0 0;
}
.aselab-brand-card-btn {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #03325E 0%, #1891AE 100%);
    padding: 7px 16px;
    border-radius: 50px;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.aselab-index-card:hover .aselab-brand-card-btn {
    opacity: 0.88;
}
