/*=======================================================================
*** MARTIS_SUB STYLE***
========================================================================*/


/* Adjust noUi-slider height */
.noUi-horizontal {
    margin-top: 12px;
    height: 8px !important;
}

/* Adjust handle position for the reduced height slider */
.noUi-horizontal .noUi-handle {
    top: -10px;
}

/* Tiny Bar Styles */
.tiny-bar {
    background: #333;
    color: #fff;
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    cursor: pointer;
}

.tiny-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
    max-width: 100%;
}

.tiny-bar-rotating {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.tiny-bar-rotating-text {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.tiny-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    position: absolute;
    white-space: nowrap;
}

.tiny-bar-item.active {
    opacity: 1;
    animation: tiny-bar-wave 5s infinite;
}

.tiny-bar-icon i {
    font-size: 18px;
}

.tiny-bar-title {
    font-size: 14px;
}

.tiny-bar-toggle {
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.tiny-bar-toggle.open {
    transform: rotate(180deg);
}

@keyframes tiny-bar-wave {

    0%,
    100% {
        transform: translateY(0px);
    }

    25% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(2px);
    }

    75% {
        transform: translateY(-2px);
    }
}

.tiny-bar-overlay {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 9998;
}

.tiny-bar-overlay.open {
    max-height: 300px;
    opacity: 1;
}

.tiny-bar-overlay-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #555;
    font-size: 14px;
    cursor: pointer;
}

.tiny-bar-overlay-item:last-child {
    border-bottom: none;
}

/* Make the filter smaller */
@media (min-width: 768px) {
    .filter-container {
        width: 65% !important;
    }
}

/* Add fixed max height for the sliders */
.slider-main {
    width: 90% !important;
    padding-left: 10%;
    padding-right: 0;
    max-height: 600px;
    position: relative;
}

/* Center navigation buttons vertically */
#block-martis-sub-home01slider .owl-nav {
    position: absolute;
    top: 300px !important;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
}

/* Make slider full screen for smaller screens */
@media (max-width: 992px) {
    .slider-main {
        width: 96% !important;
        padding-left: 6%;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .slider-main {
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Adjust navigation buttons for mobile */
    #block-martis-sub-home01slider .owl-nav {
        top: 150px !important;
        /* Half of mobile height */
    }
}

/* Fix product teaser height expansion on hover */
.product-teaser .product-teaser-bg {
    margin-bottom: 0;
    bottom: 0;
}

/* Fix the huge top padding above action buttons */
.form-actions {
    top: 10px !important;
}

/* Style for the heart icon when favorited (action-unflag state) */
.product-teaser .product-icon.product-add-wishlist .action-unflag i.ti-heart {
    color: #ff0000 !important;
    background-color: #ffffff;
}

/* Use the filled heart icon when favorited */
.product-teaser .product-icon.product-add-wishlist .action-unflag i.ti-heart:before {
    font-family: 'Font Awesome 6 Free';
    content: "\f004";
    font-weight: 900;
}

/* Use the filled heart icon when favorited */
.product-teaser .product-icon.product-add-wishlist .action-flag i.ti-heart:before {
    font-family: 'Font Awesome 6 Free';
    content: "\f004";
    font-weight: 400;
}


/* Keep the heart icon visible and maintain its position */
.product-teaser .product-icon.product-add-wishlist .action-unflag i {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure smooth transition between states */
.product-teaser .product-icon.product-add-wishlist i {
    transition: color 0.3s ease, background-color 0.3s ease;
}