/**
 * CT Product Artists Widget Base Styles v2.1
 * Grid + Carousel with Loop Templates
 */

/* ========================================
   GRID LAYOUT
   ======================================== */
.ct-product-artists-grid {
    display: grid;
    width: 100%;
}

/* ========================================
   CAROUSEL LAYOUT
   ======================================== */
.ct-product-artists-carousel-wrapper {
    position: relative;
    width: 100%;
}

.ct-product-artists-carousel {
    width: 100%;
}

.ct-carousel-slide {
    outline: none;
}

/* ========================================
   ARTIST CARD (Grid Only)
   ======================================== */
.ct-artist-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-artist-card:hover {
    transform: translateY(-5px);
}

/* ========================================
   IMAGE (Grid Only)
   ======================================== */
.ct-artist-image-link {
    display: block;
    overflow: hidden;
}

.ct-artist-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ct-artist-image-link:hover .ct-artist-image {
    transform: scale(1.05);
}

.ct-artist-image-placeholder {
    width: 100%;
    padding-top: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ct-artist-image-placeholder .dashicons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ccc;
}

/* ========================================
   TITLE (Grid Only)
   ======================================== */
.ct-artist-title {
    margin: 0;
    line-height: 1.4;
}

.ct-artist-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ========================================
   MESSAGES
   ======================================== */
.ct-no-artists,
.ct-no-template {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* ========================================
   SLICK CAROUSEL CUSTOMIZATION
   ======================================== */
.ct-product-artists-carousel .slick-list {
    margin: 0 -15px;
}

.ct-product-artists-carousel .slick-slide {
    outline: none;
}

.ct-product-artists-carousel .slick-prev {
    left: -35px;
    z-index: 1;
}

.ct-product-artists-carousel .slick-next {
    right: -35px;
    z-index: 1;
}

.ct-product-artists-carousel .slick-dots {
    bottom: -40px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .ct-product-artists-carousel .slick-prev {
        left: 10px;
    }
    
    .ct-product-artists-carousel .slick-next {
        right: 10px;
    }
}