/* Product Container */
.animated-products-container {
    display: grid;
    grid-gap: 30px;
    margin: 30px 0;
    width: 100%;
}

/* Responsive Columns */
.animated-product-columns-1 { grid-template-columns: repeat(1, 1fr); }
.animated-product-columns-2 { grid-template-columns: repeat(2, 1fr); }
.animated-product-columns-3 { grid-template-columns: repeat(3, 1fr); }
.animated-product-columns-4 { grid-template-columns: repeat(4, 1fr); }
.animated-product-columns-5 { grid-template-columns: repeat(5, 1fr); }
.animated-product-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .animated-product-columns-5,
    .animated-product-columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .animated-product-columns-4,
    .animated-product-columns-5,
    .animated-product-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .animated-product-columns-3,
    .animated-product-columns-4,
    .animated-product-columns-5,
    .animated-product-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .animated-products-container {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-gap: 20px;
    }
}

/* Product Card */
.animated-product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Image Container */
.animated-product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    cursor: crosshair;
}

/* Dynamic slider width based on image count */
.animated-product-image-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Dynamic image width - will be set by JavaScript */
.animated-product-image {
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.animated-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover Hint */
.animated-hover-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
    display: none;
    pointer-events: none;
}

.animated-mobile-hint {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10;
    pointer-events: none;
}

/* Slider Dots */
.animated-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 5px;
    background: rgba(0, 0, 0, .5);
    padding: 9px;
    border-radius: 15px;
    transform: translate(-50%, -50%);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Product Info */
.animated-product-info {
    padding: 20px;
    text-align: center;
}

.animated-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.animated-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.animated-product-title a:hover {
    color: #999;
}

.animated-product-price {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
}

/* Add to Cart Button */
.animated-product-actions {
    margin-top: 15px;
}

.animated-product-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.animated-product-actions .button:hover {
    background: #999;
    transform: translateY(-2px);
}

/* Pagination */
.animated-products-pagination {
    margin-top: 50px;
    text-align: center;
}

.animated-products-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 5px;
}

.animated-products-pagination li {
    display: inline-block;
}

.animated-products-pagination a,
.animated-products-pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.animated-products-pagination a:hover {
    background: #999;
    color: #fff;
}

.animated-products-pagination .current {
    background: #000;
    color: #fff;
}

.animated-products-pagination .dots {
    background: transparent;
    color: #333;
}

/* Responsive hints */
@media (max-width: 768px) {
    .animated-hover-hint {
        display: block;
    }
    
    .animated-mobile-hint {
        display: block;
    }
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

.animated-product-card br { display:none;}
p:empty { display:none;}
.animated-product-title {
    font-weight: 600;
    font-size: 20px;
}