/* ===========================================
   Swiper Container
   =========================================== */
.vpc-swiper-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.vpc-swiper-wrapper {
    position: relative;
    width: 100%;
}

.vpc-product-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

/* ===========================================
   Product Card
   =========================================== */
.vpc-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease, border-color 0.3s ease;
}

.vpc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vpc-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.vpc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.vpc-product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
    /* prevent overflow */
}

.vpc-product-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vpc-product-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.vpc-add-to-cart {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
    transition: all 0.2s;
    text-align: center;
}

.vpc-add-to-cart:hover {
    opacity: 0.9;
}

/* ===========================================
   Swiper Navigation Arrows (vertical mode)
   =========================================== */
.vpc-swiper-btn.swiper-button-prev,
.vpc-swiper-btn.swiper-button-next {
    /* Rotate arrows for vertical direction */
    transform: rotate(90deg);
    width: 32px;
    height: 32px;
    color: inherit;
}

.vpc-swiper-btn.swiper-button-prev::after,
.vpc-swiper-btn.swiper-button-next::after {
    font-size: 16px;
}

/* ===========================================
   Swiper Pagination (vertical)
   =========================================== */
.vpc-swiper-container .swiper-pagination {
    right: 8px !important;
    left: auto !important;
    width: auto;
}

/* ===========================================
   Marquee Effect
   =========================================== */
.vpc-marquee-wrapper {
    overflow: hidden;
    /* clips the scrolling content */
    position: relative;
    width: 100%;
    height: 400px;
    /* fallback — overridden by Elementor selector */
}

.vpc-marquee-track {
    display: flex;
    flex-direction: column;
    animation: vpc-marquee-scroll 20s linear infinite;
    will-change: transform;
}

/* Pause on hover for usability */
.vpc-marquee-wrapper:hover .vpc-marquee-track {
    animation-play-state: paused;
}

.vpc-marquee-item {
    padding: 10px 0;
    flex-shrink: 0;
}

@keyframes vpc-marquee-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 1024px) {
    .vpc-product-card {
        gap: 14px;
        padding: 12px;
    }

    .vpc-product-image {
        width: 65px;
        height: 65px;
    }

    .vpc-product-title {
        font-size: 14px;
    }

    .vpc-product-price {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .vpc-product-card {
        gap: 10px;
        padding: 10px;
        flex-direction: row;
        /* keep row on mobile too */
    }

    .vpc-product-image {
        width: 55px;
        height: 55px;
    }

    .vpc-product-title {
        font-size: 13px;
    }

    .vpc-product-price {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .vpc-add-to-cart {
        font-size: 11px;
        padding: 6px 12px;
    }

    .vpc-marquee-wrapper {
        height: 250px !important;
        /* Tighter on mobile */
    }
}