/* =====================================================
   AulaElite Shop Enhancer – Styles v1.0.0
   Author: Samuel Leyva · https://t.me/GeekZone_Studio
   ===================================================== */


:root {
    --ase-accent:       #FACC15;
    --ase-accent-dark:  #ca9f0a;
    --ase-text:         #1a1a2e;
    --ase-text-gray:    #6B7280;
    --ase-bg-pill:      #f1f3f7;
    --ase-drawer-w:     300px;
    --ase-radius:       12px;
    --ase-shadow:       0 8px 32px rgba(0,0,0,.18);
    --ase-transition:   0.32s cubic-bezier(.4,0,.2,1);
    --ase-transition-close: 0.32s cubic-bezier(.4,0,.2,1);
}

.ase-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ase-text-gray);
    background: var(--ase-bg-pill);
    padding: 8px 8px 5px 8px;
    border-radius: 999px;
    margin-left: auto;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
    align-self: center !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
}

.jet-checkboxes-list__button {
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

.jet-checkboxes-list__item {
    align-items: center !important;
}

.jet-checkboxes-list__input:checked
~ .jet-checkboxes-list__button .ase-cat-count {
    background: var(--ase-accent);
    color: var(--ase-text);
}


@media (max-width: 767px) {
    .elementor-element-38a7084,
    .elementor-element-3f1475b {
        display: none !important;
    }
}

.ase-filter-btn {
    display: none;
}

@media (max-width: 767px) {
    body.woocommerce-shop .ase-mobile-toolbar,
    body.tax-product_cat .ase-mobile-toolbar,
    body.tax-product_tag .ase-mobile-toolbar {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 16px;
    }

    body.woocommerce-shop .ase-filter-btn,
    body.tax-product_cat .ase-filter-btn,
    body.tax-product_tag .ase-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex-shrink: 0;

        background: #fff !important;
        color: #1a1a1a !important;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        cursor: pointer;
        white-space: nowrap;

        transition: background var(--ase-transition), box-shadow var(--ase-transition), border-color var(--ase-transition);
    }

    body.woocommerce-shop .ase-filter-btn svg,
    body.tax-product_cat .ase-filter-btn svg,
    body.tax-product_tag .ase-filter-btn svg {
        color: var(--e-global-color-primary);
        fill: var(--e-global-color-primary);
        flex-shrink: 0;
    }

    body.woocommerce-shop .ase-filter-btn:hover,
    body.woocommerce-shop .ase-filter-btn:focus-visible,
    body.tax-product_cat .ase-filter-btn:hover,
    body.tax-product_cat .ase-filter-btn:focus-visible,
    body.tax-product_tag .ase-filter-btn:hover,
    body.tax-product_tag .ase-filter-btn:focus-visible {
        border-color: var(--e-global-color-primary);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        outline: none;
    }
}

.ase-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 99998; 
    opacity: 0;
    transition: opacity var(--ase-transition);
}

.ase-drawer-overlay.ase-active {
    display: block;
    opacity: 1;
}


.ase-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--ase-drawer-w);
    max-width: 88vw;
    height: 100%;   
    height: 100dvh; 
    z-index: 99999;
    background: #fff;
    box-shadow: var(--ase-shadow);
    border-radius: 0 var(--ase-radius) var(--ase-radius) 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    transform: translateX(-100%);
    transition: transform var(--ase-transition-close), visibility 0s linear var(--ase-transition-close);
    visibility: hidden;
}

.ase-drawer.ase-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--ase-transition), visibility 0s linear 0s;
}

.ase-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.ase-drawer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ase-text);
    letter-spacing: 0.01em;
}


.ase-drawer-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.ase-drawer-apply {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--e-global-color-primary) !important; 
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
}

.ase-drawer-apply:hover,
.ase-drawer-apply:focus-visible {
    opacity: 0.88;
    transform: translateY(-1px);
    outline: none;
}


.ase-drawer-body .jet-checkboxes-list-wrapper,
.ase-drawer-body .jet-checkboxes-list {
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 1024px) {
    .ase-drawer-body .jet-checkboxes-list-wrapper {
        max-height: none !important;
        overflow: visible !important;
    }

    .ase-drawer-body .jet-checkboxes-list {
        max-height: none !important;
        overflow: visible !important;
    }
}

.ase-drawer-body {
    flex: 1 1 0;      
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 0;
    -webkit-overflow-scrolling: touch;
    min-height: 0;     
    height: 0;       
}


.xoo-wsc-basket,
.xoo-wsc-cart,
#xoo-wsc-container,
.xoo-wsc-modal,
[class*="xoo-wsc"],
.joinchat,
.joinchat__button,
.joinchat__balloon {
    z-index: 9998 !important;
}

.ase-drawer-body::-webkit-scrollbar {
    width: 4px;
}
.ase-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}
.ase-drawer-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.ase-drawer-loading {
    color: var(--ase-text-gray);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 24px;
}



.ase-drawer-body .elementor-element-46f7d2a,
.ase-drawer-body .elementor-element-05ac002,
.ase-drawer-body .elementor-element-1773319,
.ase-drawer-body .elementor-element-e5e648a,
.ase-drawer-body .elementor-element-377739c {
    display: none !important;
}

.ase-drawer-body .e-con,
.ase-drawer-body .e-con-full {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: unset !important;
}

.ase-drawer-body .elementor-element-cc6d617 .elementor-heading-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ase-text-gray);
    margin: 0 0 12px 0;
    display: block;
}

.ase-drawer-body .jet-checkboxes-list__row {
    border-radius: 8px;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.ase-drawer-body .jet-checkboxes-list__row .jet-checkboxes-list__item {
    padding: 10px 8px;
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.ase-drawer-body .jet-checkboxes-list__row:hover {
    background: #fafafa;
}

.ase-drawer-body .jet-checkboxes-list__label {
    font-size: 0.9rem;
    color: var(--ase-text);
    flex: 1;
}

.ase-drawer-body fieldset.jet-checkboxes-list-wrapper {
    border: none;
    padding: 0;
    margin: 0;
}

body.ase-drawer-open {
    overflow: hidden;
    touch-action: none;
}


@media (prefers-reduced-motion: reduce) {
    .ase-drawer,
    .ase-drawer-overlay,
    .ase-filter-btn {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .elementor-heading-title.ewww-lcp-element {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .elementor-widget-jet-ajax-search,
    .elementor-jet-ajax-search,
    .jet-ajax-search,
    .jet-ajax-search__form {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .jet-ajax-search__fields-holder {
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .jet-ajax-search__field-wrapper {
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .jet-ajax-search__field {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        flex: 1 1 auto !important;
    }
}


[data-id="6f3dd9f"],
[data-id="f86a56a"],
[data-id="3d7e696"],
[data-id="1563cb1"],
[data-id="eb99753"],
.product-rating,
.product-rating-number,
.product-review-count {
    display: none !important;
}


.ase-img-wrapper {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    display: block !important;
    background: #111 !important;
}

.ase-img-bg {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    filter: blur(20px) !important;
    transform: scale(1.15) !important;
    opacity: 0.75 !important;
    z-index: 0 !important;
}

.ase-img-wrapper > a {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.ase-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    max-height: 100% !important;
}



.ase-turnstile-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}


.ase-turnstile-wrap .cf-turnstile,
.ase-turnstile-wrap .cf-turnstile > div,
.ase-turnstile-wrap iframe {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
}

.ase-turnstile-reload {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transition: border-color 0.15s, color 0.15s, background 0.15s !important;
}

.ase-turnstile-reload:hover {
    border-color: #9ca3af !important;
    color: #374151 !important;
    background: #f9fafb !important;
}

.ase-turnstile-reload svg {
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: unset !important;
    transform: none !important;
}

.ase-turnstile-reload--hidden {
    display: none !important;
}

.ase-turnstile-reload:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

.ase-turnstile-reload:active svg {
    transform: rotate(180deg);
    transition: transform 0.35s ease;
}

[data-id="bbb4fb7"] {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 8px 12px !important;
    margin: 0 !important;
    width: 100% !important;
}

[data-id="bbb4fb7"] .elementor-add-to-cart {
    display: block !important;
}

[data-id="bbb4fb7"] .e-loop-add-to-cart-form-container {
    display: block !important;
}

[data-id="bbb4fb7"] .quantity {
    display: none !important;
}

[data-id="bbb4fb7"] .add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 14px !important;
    padding: 13px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    border-radius: 50px !important;
    border: none !important;
    background: var(--e-global-color-primary) !important;
    color: #1a1a1a !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    transition: opacity 0.3s, transform 0.3s !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-decoration: none !important;
}

[data-id="bbb4fb7"] .add_to_cart_button:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
}

[data-id="bbb4fb7"] .add_to_cart_button::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #1a1a1a !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") !important;
    mask-size: contain !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    flex-shrink: 0 !important;
}


/* =====================================================
   AUTOR DEL PRODUCTO
   ===================================================== */

.ase-product-author {
    display: block;
    font-size: 0.78rem;
    color: var(--ase-text-gray);
    line-height: 1.4;
    margin-top: 2px;
}

.ase-product-author__label {
    font-weight: 400;
}

.ase-product-author__name {
    font-weight: 600;
    color: var(--ase-text);
}

.ase-product-author__count {
    font-weight: 400;
    color: var(--ase-text-gray);
}


/* =====================================================
   LOOP ITEM - PADDING TOP MOBILE (contenedor de texto)
   ===================================================== */

@media (max-width: 767px) {
    .elementor-element.elementor-element-7919f3b {
        --padding-top: 50px !important;
    }
}



/* =====================================================
   TIENDA - RESULTADOS BÚSQUEDA AJAX MOBILE
   ===================================================== */

@media (max-width: 767px) {
    .jet-ajax-search__results-area {
        top: 40px !important;
        width: 100% !important;
    }
}



/* ── ATC Button – Single Product (ase_inject_add_to_cart_button) ── */

/* Ocultar el quantity input que viene con el form inyectado */
.ase-atc-wrapper .quantity {
    display: none !important;
}

/* Botón estilo pill amarillo/dorado – solo en single product */
.ase-atc-btn.single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 32px !important;
    margin-top: 16px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    background: var(--e-global-color-primary) !important;
    border: none !important;
    border-radius: 50px !important;   /* pill shape */
    cursor: pointer !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    box-shadow: none !important;
}

.ase-atc-btn.single_add_to_cart_button:hover {
    opacity: 0.88 !important;
    transform: translateY(-2px) !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* Animación de sacudida (izquierda–derecha) */
@keyframes ase-shake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-6px); }
    30%  { transform: translateX(6px); }
    45%  { transform: translateX(-4px); }
    60%  { transform: translateX(4px); }
    75%  { transform: translateX(-2px); }
    90%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.ase-atc-btn.ase-atc-shake {
    animation: ase-shake 0.6s ease !important;
}

/* ── Botón favoritos – single product ── */
.ase-fav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px 24px !important;
    margin-top: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #fff !important;
    background: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.ase-fav-btn svg {
    display: block !important;
    flex-shrink: 0 !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    top: auto !important;
}
.ase-fav-btn:hover {
    color: #fff !important;
    background: #222 !important;
    border-color: #222 !important;
}
.ase-fav-btn--saved {
    color: #e74c3c !important;
    background: #fff5f5 !important;
}
.ase-fav-btn--saved svg {
    fill: #e74c3c !important;
    stroke: #e74c3c !important;
}

/* spinner dentro del botón favoritos */
.ase-fav-btn--loading {
    pointer-events: none !important;
    opacity: 0.75 !important;
}
.ase-fav-spinner {
    display: block !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid currentColor !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: ase-spin 0.7s linear infinite !important;
}
@keyframes ase-spin {
    to { transform: rotate(360deg); }
}

/* ── Grid de favoritos en mi-cuenta ── */
.ase-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.ase-fav-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.ase-fav-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.ase-fav-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.ase-fav-card__body {
    padding: 12px;
}
.ase-fav-card__title {
    font-weight: 700;
    font-size: 0.9rem;
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}
.ase-fav-card__price {
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.ase-fav-card__btn {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--e-global-color-primary);
    color: #1a1a1a;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.ase-fav-card__btn:hover {
    opacity: 0.85;
    color: #1a1a1a;
}