.header-call:hover .w-icon-call,
.header-call:hover .phone-number {
    color: var(--secondary-color) !important;
}

.sticky-content.fixed {
    z-index: 10 !important;
}

/* HEADER SEARCH DROPDOWN */
.search__dropdown {
    width: 100%;
    color: #262626;
    background-color: #fff;
    -webkit-box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 100%;
    border-radius: 1.5px;
    opacity: 0;
    -webkit-transform: translateY(26px);
    transform: translateY(26px);
    visibility: hidden;
    -webkit-transition:
        opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 0s 0.25s,
        -webkit-transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition:
        opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 0s 0.25s,
        -webkit-transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition:
        opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 0s 0.25s;
    transition:
        opacity 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
        visibility 0s 0.25s,
        -webkit-transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#search:focus~.search__dropdown--open,
.search__dropdown--open:hover {
    opacity: 1;
    z-index: 2;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    visibility: visible;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    border-radius: 9px;
    padding: 12px;
}

.header-search.hs-expanded {
    max-width: 100%;
}

.header-search input.form-control {
    border: 0px;
}

.header-search .btn-search {
    border-color: #f4f4f4;
}

.header-search.hs-round.hs-expanded .form-control {
    border-radius: 10px 0 0 10px;
    background: #ffffff !important;
}

/* MENU */
/* .menu>li:hover>a:not(.menu-title), .menu>li.active>a:not(.menu-title) {
    color: var(--secondary-color)!important;
} */
.menu>li:hover>.submenu,
.menu>li:hover .megamenu,
.menu>li.show>.submenu,
.menu>li.show .megamenu {
    top: 0% !important;
}

.mobile-menu li.expanded>a,
.mobile-menu li.show>a,
.mobile-menu li:hover>a {
    color: white !important;
}

/* BREADCRUMS */
.breadcrumb {
    background-color: transparent !important;
}

/* TABS */
.my-account .nav-link,
.my-account .link-item {
    padding: 6px !important;
}

/* PRODUCTOS */
.product-variations>.disabled,
button.color:disabled,
button[disabled].btn-cart {
    cursor: not-allowed;
    opacity: 0.3;
}

.category {
    font-size: 1.3rem;
}

select.form-control.type.input-sm {
    min-height: 3.7rem !important;
    padding: 0 12px 0 12px;
}

.widget-banner .banner-price-info {
    font-size: 2.6em;
}

.owl-theme .owl-nav .owl-prev {
    left: 5px;
}

.owl-theme .owl-nav .owl-next {
    right: 5px;
}

/* CATEGORIAS */
.category-wrapper img {
    min-height: auto;
}

/* GALLERY */
.instagram a::after {
    content: "" !important;
}

/* FORMS */
.form-control,
.shipping-address .form-control,
.shipping-address .select-box {
    background-color: #f4f4f4;
}

.select-box select,
.select-menu select {
    max-width: 100% !important;
}

.product-single .product-size-swatch .size {
    font-size: 1.2rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.1rem rgb(244 244 244);
}

/* POPUP */
.mfp-content {
    max-width: 760px;
}

.newsletter-popup {
    justify-content: center;
    text-align: center;
}

/* CART SIDEBAR */
.product.product-cart {
    width: 95%;
}

.cart-dropdown .products {
    max-height: 54rem;
    overflow: scroll;
}

.cart-dropdown .products::-webkit-scrollbar {
    width: 0px;
}

.cart-dropdown .products::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.cart-dropdown .products::-webkit-scrollbar-thumb {
    background-color: #e1dbdb00;
    border-radius: 0px;
}

.cart-dropdown.cart-offcanvas .dropdown-box {
    right: -40rem;
    max-width: 40rem;
}

.row.d-flex.align-items-center.menu-result-search {
    cursor: pointer;
}

.row.d-flex.align-items-center.menu-result-search:hover {
    background: #eaeaea;
}

.megamenu>li {
    list-style: none;
}

ul.categories ul.categories:not(:first-child) {
    padding-left: 20px;
}

ul.categories ul.categories ul.categories:not(:first-child) {
    padding-left: 20px;
}

/* SCROLL BODY */
body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-track {
    background: rgb(101, 98, 98);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 20px;
}

@media (max-width: 992px) {
    .line-right::after {
        display: none;
    }

    .intro-slide3 .banner-title {
        font-size: 2.2rem !important;
    }
}

/* BANNER HOME PAGE HEIGHT FIX */
.intro-slide {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 450px !important;
}

@media (min-width: 1200px) {
    .intro-slide {
        height: 450px !important;
        min-height: 450px !important;
    }
}

@media (min-width: 768px) {
    .product-single .product-details {
        padding: 10px;
        border-radius: 10px;
    }
}

@media (max-width: 767px) {
    .intro-slide {
        font-size: 0.9rem;
        min-height: 150px;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .logo img {
        margin-left: 10px;
    }

    .intro-slide3 .banner-title {
        font-size: 1.2rem !important;
    }

    .newsletter-popup {
        max-width: 100% !important;
    }
}

@media (max-width: 479px) {
    .product:not(.product-list) .product-label-group {
        top: 1rem;
        left: 0rem;
    }

    .cart-dropdown.cart-offcanvas .dropdown-box {
        max-width: 28rem !important;
    }
}

/* Comprehensive fix to hide product hover actions on mobile/tablet to allow direct link navigation */
@media (max-width: 1024px) {

    .product-wrap .product-action-horizontal,
    .product-wrap .product-action,
    .product-wrap .btn-product-icon,
    .product-wrap .btn-cart {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Normalização de Tamanho de Imagem de Produto (800x800 padrão) */
.product-wrap .product-media,
.product-deals-wrapper .product-media,
.viewed-products .product-media {
    position: relative;
    padding-top: 100% !important;
    /* Força aspecto 1:1 (quadrado) */
    background: #fff;
    overflow: hidden;
    display: block;
}

.product-wrap .product-media img,
.product-deals-wrapper .product-media img,
.viewed-products .product-media img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Garante que a imagem caiba sem cortar ou esticar */
    padding: 10px;
    /* Pequeno respiro para a imagem não tocar as bordas */
}

.product-wrap .product-media a,
.product-deals-wrapper .product-media a,
.viewed-products .product-media a {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Correção de Hover Actions (Botões) no modo 1:1 */
.product:hover .product-action-horizontal {
    bottom: 3.5rem !important;
    /* Move o botão mais para cima para não cortar */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 30;
}

/* Garante que o container de botões não suma no modo desktop e tenha sombra correta */
.product-action-horizontal {
    z-index: 25;
    background-color: #fff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.35s ease;
    border-radius: 5px !important;
}

/* SEARCH MOBILE OPTIMIZATION */
.header-search-container {
    flex: 1;
}

@media (max-width: 991px) {
    .header-middle .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding-bottom: 15px !important;
        justify-content: space-between !important;
    }

    .header-middle .header-left {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        max-width: 60% !important;
    }

    .header-middle .header-right {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Fix for overlapping icons on small screens */
    .header-middle .logo {
        margin-right: 10px !important;
        flex-shrink: 1 !important;
    }

    .header-middle .logo img {
        max-width: 150px !important;
        height: auto !important;
    }

    .header-search-container.d-block.d-lg-none {
        width: 100% !important;
        order: 3 !important;
        margin-top: 15px !important;
        margin-bottom: 5px !important;
        padding: 0 !important;
        flex: 0 0 100% !important;
    }

    .header-search.hs-expanded.hs-round {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .header-search.hs-round .form-control {
        border-radius: 25px !important;
        padding-left: 20px !important;
        padding-right: 50px !important;
        border: 1px solid #e1e1e1 !important;
        height: 45px !important;
    }

    .header-search.hs-round .btn-search {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: transparent !important;
        border: none !important;
        color: #666 !important;
        font-size: 1.8rem !important;
        padding: 0 !important;
        height: auto !important;
    }
}

/* PAGINATION MOBILE OPTIMIZATION */
@media (max-width: 767px) {
    .toolbox-pagination {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .pagination-wrapper-mobile {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px 0 !important;
        margin-top: 10px !important;
        display: block !important;
    }

    .pagination-wrapper-mobile .pagination {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        min-width: max-content !important;
        padding-bottom: 5px !important;
    }

    /* Ocultar barra de rolagem mas manter funcionalidade */
    .pagination-wrapper-mobile::-webkit-scrollbar {
        display: none !important;
    }

    .pagination-wrapper-mobile {
        -ms-overflow-style: none !important;
        /* IE and Edge */
        scrollbar-width: none !important;
        /* Firefox */
    }
}

/* FIX QUANTITY BUTTONS HIJACK - REFACTORED TO HORIZONTAL (Product & Cart) */
.product-single .product-qty-form .input-group,
.cart-table .product-quantity .input-group {
    display: flex !important;
    align-items: center !important;
    width: 120px !important;
    height: 42px !important;
    background-color: #f4f4f4 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #e1e1e1 !important;
    position: relative !important;
}

.product-single .btn-quantity-plus,
.product-single .btn-quantity-minus,
.cart-table .quantity-plus,
.cart-table .quantity-minus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    height: 100% !important;
    border: 0 !important;
    background-color: transparent !important;
    cursor: pointer !important;
    font-family: "wolmart" !important;
    color: #333 !important;
    z-index: 10 !important;
    transition: background 0.2s !important;
    padding: 0 !important;
    font-size: 1.6rem !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    width: 38px !important;
}

.product-single .btn-quantity-plus:hover,
.product-single .btn-quantity-minus:hover,
.cart-table .quantity-plus:hover,
.cart-table .quantity-minus:hover {
    background-color: #ebebeb !important;
}

/* Perfect icon alignment */
.product-single .btn-quantity-plus::before,
.product-single .btn-quantity-minus::before,
.cart-table .quantity-plus::before,
.cart-table .quantity-minus::before {
    display: block !important;
    line-height: 0 !important;
    margin: 0 !important;
}

.product-single .product-qty-form .quantity.form-control,
.cart-table .product-quantity .form-control {
    flex: 1 !important;
    padding: 0 !important;
    height: 100% !important;
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 1.6rem !important;
    appearance: none;
    -moz-appearance: textfield;
}

.product-single .product-qty-form .quantity.form-control::-webkit-outer-spin-button,
.product-single .product-qty-form .quantity.form-control::-webkit-inner-spin-button,
.cart-table .product-quantity .form-control::-webkit-outer-spin-button,
.cart-table .product-quantity .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}