
/* ============================================
   CROSS SELLING / PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    /* link reset — works when element is <a> */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 157px;
    height: 132px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: var(--fs-base);
}

.product-subtitle {
    color: #666;
    font-size: var(--fs-sm);
}


/* ============================================
   PACKAGING SECTION
   — Same card style as .product-card
   ============================================ */
.packaging-grid {
    display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    display: grid;
/* الحل السحري هنا هو تحديد أقصى عرض للصف ليناسب 4 كروت فقط */
}
@media (min-width: 900px) {
    .packaging-grid {
        /* نثبت عدد الأعمدة هنا بـ 4 فقط */
        grid-template-columns: repeat(4, 1fr);
    }
}
/* الكارد الأساسي — نفس .product-card */
.pack-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}
        
        .pack-badge {
            font-size: 0.7rem;
            background: var(--nature-green);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            margin-top: 5px;
            display: inline-block;
        }

#pack-item-industrial {
width: 95px;
  height: 132px;
}

.pack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* الصورة — نفس .product-card img */

.pack-item img {
    width: 157px;
    height: 132px;
    object-fit: cover;
}

/* الـ Caption — مثل .product-info */
.pack-caption {
    padding: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: var(--fs-base);
    margin-top: 0;
}

.pack-caption small {
    display: block;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    font-size: var(--fs-sm);
}