/* Product Ticker Frontend Styles */
.wc-product-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

.wc-product-ticker-block {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-content {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    cursor: grab;
    user-select: none;
    transition: none;
}

.ticker-content.grabbing {
    cursor: grabbing;
}

.ticker-content.paused {
    animation-play-state: paused !important;
}

.ticker-product {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.product-title {
    font-size: 14px;
    margin: 10px 0;
    font-weight: normal;
    color: #666;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    color: #333;
    font-weight: normal;
    margin: 10px 0;
}

.shop-now-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.ticker-product:hover .shop-now-button {
    background: #005a87;
}

.wc-product-ticker-placeholder {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    color: #666;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .ticker-product {
        min-width: 150px;
        max-width: 200px;
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 52px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .shop-now-button {
        padding: 6px 16px;
        font-size: 12px;
    }
}