.product-card {
    transition: transform 0.2s ease-in-out;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Добавляем задержку для каждой карточки */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

#cartSidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

#cartSidebar.open {
    transform: translateX(0);
}

#productModal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cart-item-quantity {
    width: 40px;
    text-align: center;
    -moz-appearance: textfield;
}

.cart-item-quantity::-webkit-outer-spin-button,
.cart-item-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Добавляем эффект пульсации для кнопки корзины при добавлении товара */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-pulse {
    animation: pulse 0.3s ease-in-out;
}

/* Добавляем эффект для кнопок */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover-effect:hover::after {
    width: 300px;
    height: 300px;
}

/* Стили для селекта сортировки */
#sortSelect {
    @apply bg-white border border-gray-300 rounded-md px-3 py-2 text-gray-700 focus:outline-none focus:ring-2 focus:ring-belarus-green focus:border-transparent transition-all duration-200;
}

/* Стили для кнопок пагинации */
.pagination-btn {
    @apply bg-white border border-gray-300 rounded-md px-4 py-2 text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-belarus-green focus:border-transparent transition-all duration-200;
}

.pagination-btn:disabled {
    @apply opacity-50 cursor-not-allowed;
}

/* Стили для информации о странице */
#pageInfo {
    @apply text-gray-600 font-medium;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    #sortSelect {
        width: 100%;
        margin-top: 1rem;
    }
    
    .pagination-btn {
        padding: 0.5rem;
    }
    
    #pageInfo {
        font-size: 0.9rem;
    }
} 