/* === WISHLIST === */
.mark3d-wishlist-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mark3d-wishlist-button svg {
    width: 26px;
    height: 26px;
    color: #e91e63;
    stroke: #e91e63;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.mark3d-wishlist-button:hover {
    transform: scale(1.2);
}

.mark3d-wishlist-button:hover svg {
    color: #c2185b;
    stroke: #c2185b;
    filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.4));
}

.mark3d-wishlist-button.in-wishlist svg {
    fill: #e91e63;
    color: #e91e63;
    stroke: #e91e63;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

.woocommerce ul.products li.product {
    position: relative;
}

.menu-item-type-wishlist-primary {
    display: flex;
    align-items: center;
    margin-right: 5px !important;
    margin-top: 5px;
}

.menu-wishlist-link-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    padding: 5px;
    transition: all 0.3s ease;
}

.menu-wishlist-icon-primary {
    width: 28px;
    height: 28px;
    fill: #ffffff;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.menu-wishlist-link-primary:hover .menu-wishlist-icon-primary {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

.menu-wishlist-count-primary {
    position: absolute;
    top: 0.8rem;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--mark3d-secondary-color, #e95D2c);
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
}

.menu-item-type-wishlist-primary::after {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .mobile-menu-icons-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mobile-menu-search {
        display: none;
        align-items: center;
    }
    .mobile-menu-search button {
        background: none;
        border: none;
        padding: 0 0.5rem;
        cursor: pointer;
    }
    .mobile-menu-search svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff;
    }
    .mobile-menu-wishlist {
        display: flex;
        align-items: center;
    }
    .mobile-wishlist-link {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-decoration: none;
        transition: transform 0.2s ease;
        text-align: left;
    }
    .mobile-wishlist-link:hover {
        transform: scale(1.1);
    }
    .mobile-wishlist-link svg {
        width: 28px;
        height: 28px;
        stroke: #ffffff;
        fill: none;
        transition: all 0.3s ease;
    }
    .mobile-wishlist-link:hover svg {
        fill: rgba(255, 255, 255, 0.2);
    }
    .mobile-wishlist-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: #ffffff;
        color: #e95D2c;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 0.75rem;
        font-weight: bold;
        min-width: 18px;
        text-align: center;
    }
    #mobile-menu .menu-item-type-wishlist-primary {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .mobile-menu-search {
        display: flex !important;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .mobile-menu-search {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu-wishlist,
    .mobile-menu-icons-left,
    .mobile-menu-search {
        display: none !important;
    }
}

/* === WOOCOMMERCE (view cart, product-in-cart) === */
.woocommerce ul.products li.product .added_to_cart:not(.view-cart-button),
a.added_to_cart:not(.view-cart-button) {
    display: none !important;
}

body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button,
body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button {
    display: none !important;
}

span[data-wp-bind--hidden] .added_to_cart.wc-forward,
span[data-wp-bind--hidden] a.added_to_cart.wc-forward,
.added_to_cart.wc-forward,
a.added_to_cart.wc-forward {
    display: none !important;
}

.woocommerce ul.products li.product .added_to_cart.view-cart-button svg {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
}

.woocommerce ul.products li.product.product-in-cart,
body.home .woocommerce ul.products li.product.product-in-cart,
body.front-page .woocommerce ul.products li.product.product-in-cart,
body.home ul.products li.product.product-in-cart,
body.front-page ul.products li.product.product-in-cart,
.wc-block-product.product-in-cart,
.wc-block-grid__product.product-in-cart,
li[data-wp-interactive].product-in-cart {
    position: relative !important;
}

.woocommerce ul.products li.product.product-in-cart::after,
body.home .woocommerce ul.products li.product.product-in-cart::after,
body.front-page .woocommerce ul.products li.product.product-in-cart::after,
body.home ul.products li.product.product-in-cart::after,
body.front-page ul.products li.product.product-in-cart::after,
.wc-block-product.product-in-cart::after,
.wc-block-grid__product.product-in-cart::after,
li[data-wp-interactive].product-in-cart::after {
    content: "" !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    background: #28a745 !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>') !important;
    background-size: 20px 20px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
}

body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button,
body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button {
    background-color: #b0cee2 !important;
    color: #e95D2c !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    padding: 8px 8px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 10px 0px 8px 0px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 5px 0 0 0 !important;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button:hover,
body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5) !important;
    background-color: #9ab8d0 !important;
    transform: translateY(-2px) !important;
}

@media screen and (min-width: 500px) and (max-width: 767px) {
    body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button,
    body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button {
        width: 110px !important;
    }
}

@media screen and (min-width: 768px) {
    body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button,
    body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button {
        width: 150px !important;
    }
}

@media screen and (min-width: 1024px) {
    body.home .woocommerce ul.products li.product .added_to_cart.view-cart-button,
    body.front-page .woocommerce ul.products li.product .added_to_cart.view-cart-button {
        width: 200px;
    }
}

body.single-product .woocommerce ul.products li.product .added_to_cart.view-cart-button {
    background-color: #b0cee2 !important;
    color: #e95D2c !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    padding: 8px 8px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 10px 0px 8px 0px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 5px 0 0 0 !important;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
}

body.single-product .woocommerce ul.products li.product .added_to_cart.view-cart-button:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5) !important;
    background-color: #9ab8d0 !important;
    transform: translateY(-2px);
}

@media screen and (min-width: 768px) {
    body.single-product .woocommerce ul.products li.product .added_to_cart.view-cart-button {
        width: 150px !important;
    }
}

@media screen and (min-width: 1024px) {
    body.single-product .woocommerce ul.products li.product .added_to_cart.view-cart-button {
        width: 200px;
    }
}
