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

.slide-up { animation: fadeInUp 0.8s ease-out forwards; }
.delay-100 { animation-delay: 0.2s; }

/* Product Card Styling */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.card-img-container {
    overflow: hidden;
    position: relative;
    padding-top: 100%; /* Aspect Ratio 1:1 */
}

.card-img-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-img-container img {
    transform: scale(1.1);
}

/* Pagination Styles (Nút phân trang) */
.pagination-btn {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
}

.pagination-btn:hover {
    background: #f3f4f6;
    color: #7f1d1d;
}

.pagination-btn.active {
    background: #7f1d1d; /* Màu đỏ thương hiệu */
    color: white;
    border-color: #7f1d1d;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Active Filter Sidebar */
.active-filter {
    background-color: #fef2f2;
    color: #7f1d1d;
    font-weight: bold;
    border-left: 3px solid #7f1d1d;
}

/* Background Pattern */
.bg-pattern {
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 10px 10px;
    background-color: #450a0a;
}

.fade-in-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}