/* الحاوية */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
    color: #333;
}

/* 🔹 ناف بار الأقسام */
.category-navbar {
    background: linear-gradient(90deg, #5bc6e0, #4aaac0);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(91, 198, 224, 0.4);
}
.category-navbar ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-navbar li {
    margin: 0;
}
.category-navbar a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    border-radius: 12px;
}
.category-navbar a:hover,
.category-navbar a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 🔹 أدوات التحكم */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}
.controls label {
    font-weight: bold;
    margin-right: 8px;
}
.controls input,
.controls select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}
.controls input:focus,
.controls select:focus {
    border-color: #5bc6e0;
    box-shadow: 0 0 8px rgba(91,198,224,0.4);
}

/* 🔹 شبكة المنتجات */
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 0fr));
    gap: 30px;
    justify-content: center;
}

/* 🔹 بطاقة المنتج */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(91,198,224,0.3);
}

/* صورة المنتج */
.product-card .image {
    height: 200px;
    background: #eaf8fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.product-card .content {
    padding: 16px;
}
.product-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}
.product-card p {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
}
.product-card h3 {
    position: relative;
    display: inline-block;
}
.product-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: #5bc6e0;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.product-card:hover h3::after {
    width: 100%;
}
.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
