/* ✅ إلغاء أي خطوط/Underlines تحت العناوين نهائيًا */
.section-title::after,
.features-section .section-title::after,
.products-section .section-title::after {
    content: none !important;
    display: none !important;
}

/* أنماط خاصة بصفحة عرض المنتجات */

.products-section {
    padding: 30px 0;
    background: #fff;
    width: 100%;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    color: #049b44;
    padding: 0 20px;
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px 0;
}

/* كارت المنتج */
.product-card {
    width: 100%;
    height: 380px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
    user-select: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    background: #ededed;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* صورة المنتج */
.product-card-img-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* ✅ جزء النصوص تحت الصورة (يفصل الاسم عن الصورة تمامًا) */
.product-card-info {
    background: #f5f5f5;
    border-top: 1px solid #eee;
    padding: 18px 0 16px 0;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    transition: transform 0.3s ease;
}

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

/* ✅ اسم المنتج (في جزء منفصل تحت الصورة) */
.product-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 15px 8px 15px;
    text-align: center;
    color: #222;
    padding: 0;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ✅ نوع المنتج */
.product-card-type {
    display: block;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 0 15px;
    margin: 0;
    line-height: 1.4;
}

/* تفاصيل مخفية */
.product-details {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 2;
}

.product-card.active .product-details {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.product-details h5 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #049b44;
    text-align: right;
    padding: 0;
    font-weight: 600;
}

.product-details p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    text-align: right;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details a {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #049b44;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #049b44;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
}

.product-details a:hover {
    background: #049b44;
    color: white;
}

.no-products {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
    width: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 800px;
}

/* ريسبونسيف */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
    .product-card { height: 360px; }
    .product-card-img-container { height: 230px; }
    .product-card-title { margin: 0 12px 8px 12px; }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    .product-card { height: 340px; }
    .product-card-img-container { height: 210px; }
    .product-card-title { font-size: 16px; margin: 0 12px 7px 12px; }
    .product-card-type { font-size: 13px; padding: 0 12px; }
}

@media (max-width: 768px) {
    .products-section { padding: 25px 0; }
    .section-title { font-size: 20px; margin-bottom: 20px; padding: 0 15px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
    .product-card { height: 320px; }
    .product-card-img-container { height: 190px; }
    .product-card-info { padding: 16px 0 14px 0; }
    .product-card-title { font-size: 15px; margin: 0 10px 6px 10px; }
    .product-card-type { font-size: 12px; padding: 0 10px; }
    .product-details { padding: 15px; }
    .product-details h5 { font-size: 16px; margin-bottom: 10px; color: #049b44; }
    .product-details p { font-size: 13px; line-height: 1.5; margin-bottom: 15px; }
    .product-details a {
        bottom: 15px; right: 15px;
        padding: 7px 14px; font-size: 13px;
        color: #049b44; border: 2px solid #049b44;
    }
    .product-details a:hover { background: #049b44; color: #fff; }
}

@media (max-width: 576px) {
    .products-section { padding: 20px 0; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .product-card { height: 300px; }
    .product-card-img-container { height: 170px; }
    .product-card-info { padding: 14px 0 12px 0; }
    .product-card-title { font-size: 14px; margin: 0 8px 5px 8px; }
    .product-card-type { font-size: 11px; padding: 0 8px; }
    .product-details { padding: 12px; }
    .product-details h5 { font-size: 15px; margin-bottom: 8px; color: #049b44; }
    .product-details p { font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
    .product-details a {
        bottom: 12px; right: 12px;
        padding: 6px 12px; font-size: 12px;
        color: #049b44; border: 2px solid #049b44;
    }
    .product-details a:hover { background: #049b44; color: #fff; }
}

@media (max-width: 480px) {
    .section-title { font-size: 18px; margin-bottom: 15px; padding: 0 10px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { height: 280px; }
    .product-card-img-container { height: 150px; }
    .product-card-info { padding: 12px 0 10px 0; }
    .product-card-title { font-size: 13px; margin: 0 8px 4px 8px; }
    .product-card-type { font-size: 10px; }
}