/* Woo Product Cards - Frontend Styles */

/* Grid Container */
.wpc-products-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--wpc-columns-desktop, 3), 1fr);
}

.wpc-products-grid.wpc-masonry {
    display: block;
    column-count: var(--wpc-columns-desktop, 4);
    column-gap: var(--wpc-column-gap, 20px);
}

.wpc-products-grid.wpc-masonry .wpc-product-card {
    break-inside: avoid;
    margin-bottom: var(--wpc-row-gap, 20px);
}

/* Product Card */
.wpc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.wpc-products-grid.wpc-same-height .wpc-product-card {
    height: 100%;
}

/* Image Wrapper */
.wpc-card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wpc-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wpc-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.wpc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wpc-product-card:hover .wpc-card-image img {
    transform: scale(1.05);
}

/* Category Overlay */
.wpc-category-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wpc-category-label,
.wpc-tag-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-transform: capitalize;
    transition: background 0.3s ease;
}

.wpc-category-label:hover,
.wpc-tag-label:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Share Icon */
.wpc-share-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.wpc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpc-share-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.wpc-share-btn i,
.wpc-share-btn svg {
    font-size: 16px;
    color: #333;
}

/* Card Content - FIXED LAYOUT */
.wpc-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.wpc-card-text {
    flex: 1;
    min-width: 0;
}

.wpc-card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wpc-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/*.wpc-card-title a:hover {
    color: #FFD700;
}*/

.wpc-card-price {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.wpc-card-price .woocommerce-Price-amount {
    font-weight: 600;
    color: #333;
}

/* Button Icon - NOW IN CONTENT AREA */
.wpc-button-icon {
    flex-shrink: 0;
    align-self: flex-start;
}

.wpc-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    /*background: #FFD700;*/
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    text-decoration: none;
}

.wpc-icon-btn:hover {
    /*background: #FFC700;*/
    transform: scale(1.1) rotate(45deg);
    /*box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);*/
}

.wpc-icon-btn i,
.wpc-icon-btn svg {
    font-size: 20px;
    color: #000;
    transition: transform 0.3s ease;
}

/* Pagination */
.wpc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 12px;
}

.wpc-pagination-left {
    justify-content: flex-start;
}

.wpc-pagination-right {
    justify-content: flex-end;
}

.wpc-pagination a,
.wpc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wpc-pagination a:hover,
.wpc-pagination span.current {
    background: #FFD700;
    border-color: #FFD700;
    color: #000;
}

.wpc-pagination .wpc-prev,
.wpc-pagination .wpc-next {
    padding: 8px 20px;
}

/* Load More Button */
.wpc-load-more {
    display: inline-block;
    padding: 12px 32px;
    background: #FFD700;
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpc-load-more:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.wpc-load-more.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Infinite Scroll */
.wpc-infinite-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.wpc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: wpc-spin 1s linear infinite;
}

@keyframes wpc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .wpc-products-grid {
        grid-template-columns: repeat(var(--wpc-columns-tablet, 2), 1fr);
    }

    .wpc-products-grid.wpc-masonry {
        column-count: var(--wpc-columns-tablet, 2);
    }

    .wpc-card-image {
        height: 250px;
    }

    .wpc-card-title {
        font-size: 16px;
    }

    .wpc-card-content {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .wpc-products-grid {
        grid-template-columns: repeat(var(--wpc-columns-mobile, 1), 1fr);
    }

    .wpc-products-grid.wpc-masonry {
        column-count: var(--wpc-columns-mobile, 1);
    }

    .wpc-card-image {
        height: 220px;
    }

    .wpc-category-overlay {
        top: 15px;
        left: 15px;
    }

    .wpc-share-icon {
        top: 15px;
        right: 15px;
    }

    .wpc-icon-btn {
        width: 44px;
        height: 44px;
    }

    .wpc-card-content {
        padding: 16px;
        gap: 12px;
    }

    .wpc-pagination {
        margin-top: 30px;
        gap: 8px;
    }

    .wpc-pagination a,
    .wpc-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wpc-card-image {
        height: 200px;
    }

    .wpc-category-label,
    .wpc-tag-label {
        padding: 6px 12px;
        font-size: 12px;
    }

    .wpc-share-btn {
        width: 36px;
        height: 36px;
    }

    .wpc-icon-btn {
        width: 40px;
        height: 40px;
    }

    .wpc-card-title {
        font-size: 15px;
    }

    .wpc-card-price {
        font-size: 14px;
    }
}

/* Elementor Hover Animations */
.elementor-animation-grow:hover {
    transform: scale(1.05);
}

.elementor-animation-shrink:hover {
    transform: scale(0.95);
}

.elementor-animation-pulse {
    animation: wpc-pulse 2s ease-in-out infinite;
}

@keyframes wpc-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.elementor-animation-bounce-in {
    animation: wpc-bounce-in 0.6s;
}

@keyframes wpc-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* ===================================
   CAROUSEL LAYOUT STYLES
   =================================== */

/* Carousel Container */
.wpc-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.wpc-carousel {
    width: 100%;
}

.wpc-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.wpc-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.wpc-carousel .swiper-slide .wpc-product-card {
    width: 100%;
    height: 100%;
}

/* Navigation Arrows */
.wpc-carousel .swiper-button-next,
.wpc-carousel .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.wpc-carousel .swiper-button-next:after,
.wpc-carousel .swiper-button-prev:after {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.wpc-carousel .swiper-button-next:hover,
.wpc-carousel .swiper-button-prev:hover {
    background: #FFD700;
    transform: scale(1.1);
}

.wpc-carousel .swiper-button-next.swiper-button-disabled,
.wpc-carousel .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Pagination */
.wpc-carousel .swiper-pagination {
    position: relative;
    margin-top: 30px;
    bottom: auto !important;
}

.wpc-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.wpc-carousel .swiper-pagination-bullet-active {
    background: #FFD700;
    transform: scale(1.3);
}

.wpc-carousel .swiper-pagination-fraction {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.wpc-carousel .swiper-pagination-progressbar {
    background: #f0f0f0;
    height: 4px;
}

.wpc-carousel .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {

    .wpc-carousel .swiper-button-next,
    .wpc-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .wpc-carousel .swiper-button-next:after,
    .wpc-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}