/* Rider Zone - ajustes de tienda */

/* Evitar scroll horizontal innecesario (barra inferior roja = thumb del tema) */
html {
    overflow-x: hidden;
}

main#wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* Scrollbar más discreto (vertical y horizontal) */
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #c4c4c4;
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #a3a3a3;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

/* Hero / slider: altura más acorde a e-commerce */
.tf-slideshow .slideshow-wrap {
    height: 420px;
}

@media (max-width: 767px) {
    .tf-slideshow .slideshow-wrap {
        height: 340px;
    }
}

@media (max-width: 575px) {
    .tf-slideshow .slideshow-wrap {
        height: 280px;
    }
}

/* Fallback con logo de marca (no banner fotográfico) */
.tf-slideshow.slider-hero-brand .sld_image {
    background-color: #0a0a0a;
}

.tf-slideshow.slider-hero-brand .sld_image img {
    object-fit: contain;
    object-position: center;
}

/* Slider sin texto superpuesto */
.tf-slideshow .sld_content {
    display: none;
}

/* Inicio: botón bajo el bloque de ofertas */
#div_ofertas .sect-heading.type-2 .home-offers-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    text-align: center;
    line-height: 1;
}

/* Auth pages: registro/login */
.section-log .auth-form-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 24px 28px;
}

.section-log .auth-form-card label {
    font-weight: 500;
    margin-bottom: 6px;
}

.section-log .auth-form-card .form-control,
.section-log .auth-form-card .form-select {
    min-height: 44px;
}

/* Login: card centrada */
.section-log-login {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.section-log-login .auth-form-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.section-log-login .auth-form-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

.section-log .auth-form-card__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line, #e8e8e8);
}

.section-log .auth-form-card__footer-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-2, #666);
    margin: 0 0 0.35rem;
}

/* Registro: menos espacio entre título de página y formulario */
.section-log-register {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.section-log .auth-form-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

/* SweetAlert por encima del offcanvas del carrito (offcanvas z-index: 3000) */
.swal2-container {
    z-index: 3100 !important;
}

/* Carrito lateral (offcanvas #shoppingCart) */
#shoppingCart .canvas-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100vh;
}

#shoppingCart #dvCarrito.wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.rz-mini-cart {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.rz-mini-cart .cart-threshold {
    margin: 0 24px 12px;
}

.rz-mini-cart .cart-threshold .text {
    line-height: 1.45;
    color: var(--text-2, #666);
}

.rz-mini-cart .tf-progress-ship.rz-ship--pending .value {
    background: #ffc107;
}

.rz-mini-cart .tf-progress-ship.rz-ship--near .value {
    background: var(--primary, #dc4646);
}

.rz-mini-cart .tf-progress-ship.rz-ship--done .value {
    background: var(--success, #1caa23);
}

.rz-mini-cart-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0 24px 8px;
}

.rz-mini-cart-clear {
    font-size: 13px;
    color: var(--text-2, #888);
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.rz-mini-cart-clear:hover {
    color: var(--primary, #dc4646);
}

.rz-mini-cart .tf-mini-cart-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

.rz-mini-cart .tf-mini-cart-main {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: min(52vh, 420px);
}

.rz-mini-cart .tf-mini-cart-item {
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line, #eee);
}

.rz-mini-cart .tf-mini-cart-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rz-mini-cart .tf-mini-cart-item .tf-mini-cart-image {
    flex: 0 0 88px;
    max-width: 88px;
    width: 88px;
    border-radius: 8px;
    background: #f5f5f5;
}

.rz-mini-cart .tf-mini-cart-item .tf-mini-cart-image img {
    aspect-ratio: 1;
    object-fit: contain;
}

.rz-mini-cart .tf-mini-cart-info .name {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rz-mini-cart-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rz-mini-cart-qty {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #111);
}

.rz-cart-stock-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--primary, #dc4646);
    color: #fff;
}

.rz-mini-cart .tf-mini-cart-price {
    flex: 0 0 auto;
    place-items: start;
}

.rz-mini-cart-remove {
    padding: 0;
    border: 0;
    background: transparent;
}

.rz-mini-cart .tf-mini-cart-bottom-wrap {
    border-top: 1px solid var(--line, #eee);
    padding-top: 4px;
}

.rz-mini-cart .tf-mini-cart-total {
    padding: 4px 0 12px;
}

.rz-mini-cart .tf-mini-cart-view-checkout {
    display: grid;
    gap: 10px;
}

.rz-mini-cart--empty .box-text_empty {
    padding: 24px 0;
}

@media (max-width: 767px) {
    .rz-mini-cart .cart-threshold {
        margin: 0 16px 12px;
    }

    .rz-mini-cart-toolbar {
        padding: 0 16px 8px;
    }

    .popup-shopping-cart .tf-mini-cart-sroll {
        padding: 0 16px;
    }

    .rz-mini-cart .tf-mini-cart-main {
        max-height: min(45vh, 360px);
    }
}

/* Checkout Amerce */
.section-checkout .box-ip-checkout,
.section-checkout .box-ip-payment {
    margin-bottom: 24px;
}
.section-checkout .form-content .form-control,
.section-checkout .form-content .form-select {
    min-height: 44px;
}
.section-checkout .box-your-order .list-order-product {
    margin-bottom: 20px;
}
/* Mi cuenta Amerce */
.my-account-nav button.link-account {
    cursor: pointer;
}
.my-account-content .box-order-summary {
    background: var(--bg-2, #f8f8f8);
    border-radius: 12px;
}

/* Badge contador favoritos en header */
.nav-icon-list .shop-wishlist {
    position: relative;
}

.nav-icon-list .shop-wishlist .count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    line-height: 10px;
    color: var(--white);
    background: var(--primary);
}

/* Buscador header sin select de categorías */
.form_search-product--solo {
    max-width: 560px;
    gap: 0;
}

.form_search-product--solo .fieldset-search {
    width: 100%;
    min-width: 0;
}

/* Modal buscar mobile */
.modal-search-mobile {
    padding: 8px 4px 4px;
}

.rz-search-mobile-form.form_search-product {
    max-width: none;
    padding: 10px 16px;
}

.rz-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    max-height: 50vh;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.rz-suggest-list {
    padding: 8px;
}

.rz-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.rz-suggest-item:hover {
    background: #f5f5f5;
}

.rz-suggest-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

.rz-suggest-title {
    font-weight: 500;
    font-size: 14px;
}

.rz-suggest-price {
    color: var(--primary, #e43131);
    font-weight: 700;
    font-size: 14px;
}

/* Buscador menú mobile (offcanvas) */
.canvas-mb .rz-search-menu-fieldset {
    position: relative;
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    min-width: 0;
}

.canvas-mb .rz-search-suggestions--menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 45vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#bgCarritoToolbar:empty {
    display: none;
}

/* Footer oscuro: iconos sociales visibles sin hover */
.tf-footer.footer-s2 .tf-social-icon-2 a {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.tf-footer.footer-s2 .tf-social-icon-2 a .icon {
    color: #fff;
}
.tf-footer.footer-s2 .tf-social-icon-2 a:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
}
.tf-footer.footer-s2 .tf-social-icon-2 a:hover .icon {
    color: #fff;
}
