select::-ms-expand {
    display: none;
}

/* Logo TREMA: tamaño profesional y responsive (imagen 393x289) */
.header-style-8 .header-middle > .row {
    align-items: center;
}

.header-style-8 .header-middle > .row > [class*="col-"]:first-child {
    display: flex;
    align-items: center;
}

.header-style-8 .header-middle .logo-wrapper {
    display: flex;
    align-items: center;
    max-width: 110px;
    width: 100%;
}

.header-style-8 .header-middle .logo-wrapper .logo-content {
    padding: 0 !important;
    margin: 0;
    line-height: 0;
    width: 100%;
}

.header-style-8 .header-middle .logo-wrapper .logo,
.header-style-8 .header-middle .logo-wrapper a.logo {
    display: block;
    line-height: 0;
}

.header-style-8 .header-middle .logo-wrapper .logo img,
.header-style-8 .header-middle .logo-wrapper a.logo img {
    width: auto !important;
    height: auto !important;
    max-width: 100px !important;
    max-height: 64px !important;
    object-fit: contain;
    display: block;
}

/* Desktop grande: un poco más de presencia de marca */
@media (min-width: 1200px) {
    .header-style-8 .header-middle .logo-wrapper {
        max-width: 120px;
    }

    .header-style-8 .header-middle .logo-wrapper .logo img,
    .header-style-8 .header-middle .logo-wrapper a.logo img {
        max-width: 110px !important;
        max-height: 70px !important;
    }
}

/* Tablet: sin padding extra del tema y alineado con iconos */
@media (min-width: 768px) and (max-width: 1199px) {
    .header-style-8 .header-middle .logo-wrapper {
        max-width: 96px;
    }

    .header-style-8 .header-middle .logo-wrapper .logo-content {
        padding-top: 0 !important;
    }

    .header-style-8 .header-middle .logo-wrapper .logo img,
    .header-style-8 .header-middle .logo-wrapper a.logo img {
        max-width: 90px !important;
        max-height: 56px !important;
    }
}

/* Móvil: logo e iconos en una sola barra compacta */
@media (max-width: 767px) {
    .header-style-8 .header-middle {
        padding: 8px 12px !important;
    }

    .header-style-8 .header-middle > .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        margin-left: 0;
        margin-right: 0;
    }

    .header-style-8 .header-middle > .row > [class*="col-"] {
        float: none;
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .header-style-8 .header-middle > .row > [class*="col-"]:first-child {
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 10px;
    }

    .header-style-8 .header-middle > .row > [class*="col-"]:last-child {
        flex: 0 0 auto;
    }

    .header-style-8 .header-middle .logo-wrapper {
        max-width: 86px;
    }

    .header-style-8 .header-middle .logo-wrapper .logo img,
    .header-style-8 .header-middle .logo-wrapper a.logo img {
        max-width: 78px !important;
        max-height: 44px !important;
    }

    .header-style-8 .header-navigation {
        padding: 0 !important;
        width: auto !important;
        display: flex;
        align-items: center;
    }

    .header-style-8 .middle-right-content {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        min-height: 44px;
    }

    .header-style-8 .middle-right-content .wishlist-header,
    .header-style-8 .middle-right-content .cart-wrapper,
    .header-style-8 .middle-right-content .search-btn,
    .header-style-8 .middle-right-content .btn-mobile {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .header-style-8 .header-middle .logo-wrapper {
        max-width: 72px;
    }

    .header-style-8 .header-middle .logo-wrapper .logo img,
    .header-style-8 .header-middle .logo-wrapper a.logo img {
        max-width: 66px !important;
        max-height: 38px !important;
    }
}

/* Oculta el subtítulo del buscador de vehículos (sin ocupar espacio) */
.smas-caption p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Marcas destacadas - oculta temporalmente */
.home-page-8 .block-main.block-brand,
.home-page-8 .featured-brands-hidden,
.block-main.block-brand.featured-brands-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product Tags - oculta temporalmente */
.home-page-8 .block.block-tags,
.home-page-8 .product-tags-hidden,
.block.block-tags.product-tags-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Deal Of The Day - button layout fix */
.block-deal .product-item .product-item-details .product-item-inner .product-item-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.block-deal .product-item .product-item-details .product-item-inner .actions-primary {
    float: none;
    width: 100%;
}

.block-deal .product-item .product-item-details .product-item-inner .actions-primary form {
    display: block;
    width: 100%;
}

.block-deal .product-item .product-item-details .product-item-inner .actions-primary .tocart {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px !important;
}

.block-deal .product-item .product-item-details .product-item-inner .actions-secondary {
    float: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.block-deal .product-item .product-item-details .product-item-inner .actions-secondary .action {
    float: none;
    margin-left: 0;
    flex: 0 0 40px;
}

@media (max-width: 767px) {
    .block-deal .product-item .product-item-details {
        padding: 10px 15px 20px;
    }

    .block-deal .product-item .product-item-details .product-item-inner .actions-primary .tocart {
        padding: 0 15px !important;
    }
}

