.category-info {
            position: absolute;
            bottom: 12px;
            left: 12px;
            right: 12px;
            z-index: 2;
            text-align: center;
            padding: 8px 12px;
            border-radius: 12px;
            background: linear-gradient(to top,
                    rgba(97, 2, 2, 0.9),
                    rgba(97, 2, 2, 0.6),
                    rgba(255, 255, 255, 0.0));

            color: #fff;
            /* للتأكيد على وضوح النص */
            font-weight: 500;
            backdrop-filter: blur(2px);
            /* Optional: يعطي إحساس بالشفافية مع تمويه الخلفية */
        }

        /* =========================
   Container
========================= */
        .categories-section .container {
            max-width: 1680px;
            padding-inline: 16px;
            margin: 0 auto;
        }

        /* =========================
   Grid
========================= */
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            /* مسافة متناسقة بين الكاردات */
        }

        /* =========================
   Card
========================= */
        .category-card {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            background: #000;
            isolation: isolate;

            aspect-ratio: 4 / 3;
            /* طول نسبي للعرض */
            transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
        }

        .category-card:hover {
            transform: translateY(-6px) scale(1.03);
            box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
        }

        .category-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transform: scale(1.2);
            filter: brightness(.9) contrast(1.05) saturate(1.15);
            transition: transform 1.3s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
        }

        .category-card:hover img {
            transform: scale(1.3);
        }

        /* =========================
   Overlay + Title
========================= */
        .category-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .15) 100%);
            z-index: 1;
        }

        .category-info {
            position: absolute;
            bottom: 12px;
            left: 12px;
            right: 12px;
            z-index: 2;
            text-align: center;
        }

        .category-info h3 {
            font-size: 16px;
            font-weight: 500;
            color: #fff;
            opacity: .9;
            transform: translateY(6px);
            transition: all .5s ease;
            font-weight: bold;
        }

        .category-card:hover .category-info h3 {
            opacity: 1;
            transform: translateY(0);
        }

        /* =========================
   Red accent line
========================= */
        .category-card::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #ff1a1a, transparent);
            transform: translateX(-50%);
            z-index: 2;
            transition: width .6s ease;
        }

        .category-card:hover::before {
            width: 70%;
        }

        /* =========================
   Responsive
========================= */
        @media (max-width: 1400px) {
            .categories-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 1100px) {
            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .categories-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .categories-grid {
                grid-template-columns: 1fr;
            }
        }
        .category-card:hover img {
    transform: scale(1.3) translateZ(20px);
    transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.category-info {
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.category-card:hover .category-info {
    transform: translateY(-5px);
    opacity: 1;
}
.category-card:hover {
    box-shadow:
      0 10px 20px rgba(255, 1, 1, 0.358),
      0 20px 40px rgba(0,0,0,0.2),
      0 30px 60px rgba(0, 0, 0, 0.1);
}
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}