

.xc-product-three__item {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.xc-product-three__item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.xc-product-three__img {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 3/4;
    width: 100%;
}

.xc-product-three__img img.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background-color: #f8f8f8;
}

.xc-product-three__item:hover .xc-product-three__img img {
    transform: scale(1.08);
}

.xc-product-three__hover-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.xc-product-three__item:hover .xc-product-three__hover-icons {
    opacity: 1;
    visibility: visible;
}

.xc-product-three__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.xc-product-three__item:hover .xc-product-three__icon-btn {
    transform: translateY(0);
    opacity: 1;
}

.xc-product-three__icon-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.xc-product-three__icon-btn:nth-child(3) {
    transition-delay: 0.2s;
}

.xc-product-three__icon-btn:hover {
    background: #007bff;
    color: white;
}

.xc-product-three__tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.xc-product-three__icon-btn:hover .xc-product-three__tooltip {
    opacity: 1;
    visibility: visible;
}

.xc-product-three__title {
    font-size: 16px;
    margin: 10px 0;
    text-align: center;
}

.xc-product-three__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.xc-product-three__title a:hover {
    color: #007bff;
}

.xc-product-three__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.xc-product-three__price del {
    color: #999;
    margin-right: 10px;
    font-size: 0.9rem;
}

.xc-product-three__deal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 1;
}

/* Quick View Modal Styles */
.modal-quick-view {
    padding: 20px;
}

.modal-quick-view__img {
    max-width: 100%;
    height: auto;
}

.modal-quick-view__content {
    padding: 20px;
}

.col {
    padding: 8px;
}


.wishlist-active {
    background: #007bff;
    color: white;
    /* border: none; */
}

/* Ensure hover icons are visible and usable on mobile */
@media (max-width: 767px) {
    .xc-product-three__hover-icons {
        opacity: 1;
        visibility: visible;
        background: none;
        padding: 5px;
    }

    .xc-product-three__icon-btn {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .xc-product-three__item:active .xc-product-three__img img {
        transform: scale(1.08);
    }

    .xc-product-three__hover-icons {
        background: rgba(255, 255, 255, 0.9);
        padding: 10px;
        width: 100%;
        justify-content: center;
    }

    .xc-product-three__icon-btn {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Consistent styling for all screen sizes */
@media (max-width: 767px) {
    .xc-product-three__img {
        aspect-ratio: 3/4;
        /* Keep same aspect ratio as desktop */
    }

    .xc-product-three__icon-btn {
        width: 40px;
        /* Keep same size as desktop */
        height: 40px;
    }

    .xc-product-three__title {
        font-size: 16px;
        /* Keep same size as desktop */
    }

    .xc-product-three__price {
        font-size: 1.1rem;
        /* Keep same size as desktop */
    }
}

/* Back to Top Button Styling */
.xc-back-to-top-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.xc-back-to-top-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.xc-back-to-top-btn {
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-back-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.xc-back-to-top-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Hide progress bar since it's not needed */
.xc-back-to-top-progress {
    display: none;
}

/* Mobile optimization */
@media (max-width: 767px) {
    .xc-back-to-top-wrapper {
        right: 20px;
        bottom: 20px;
    }

    .xc-back-to-top-btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}