﻿/* تحريك نقاط السلايدر لتحت */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px !important; /* مسافة مناسبة تحت الكروت */
}

/* توسيط النقاط */
 .swiper-pagination-bullets {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

 .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 24px;
    border-radius: 5px;
}
.swiper-slide {
    height: auto;
    display: flex;
}
/* ✨ Fade In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-in-out forwards;
}

/* 🧭 Filter hover animation */
.filter-group {
    transition: all 0.3s ease;
}

    .filter-group:hover {
        transform: scale(1.02);
    }

/* 🌊 Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade + Move Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article {
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-fill-mode: both;
}

    article:nth-child(1) {
        animation-delay: 0.1s;
    }

    article:nth-child(2) {
        animation-delay: 0.2s;
    }

    article:nth-child(3) {
        animation-delay: 0.3s;
    }

    article:nth-child(4) {
        animation-delay: 0.4s;
    }

.filter-group {
    transition: all 0.3s ease;
}

    .filter-group:hover {
        transform: scale(1.02);
    }

html {
    scroll-behavior: smooth;
}
.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* عدد الأسطر المسموح */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    transition: all 0.3s ease;
    max-height: 4.5em; /* تقريبا 3 أسطر */
}

    /* عند الهوفر على الكارد أو النص */
    /*.product-card:hover .truncate-text,
    .truncate-text:hover {
        -webkit-line-clamp: unset;
        max-height: none;
        white-space: normal;
        background: white;
        z-index: 10;
        position: relative;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 4px;
        border-radius: 6px;
    }*/
