/* شبكة المنتجات */ .products-grid, .products-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; } /* كرت المنتج */ .product-card { background: #fff; border-radius: 14px; padding: 16px; text-align: center; transition: all 0.3s ease; border: 1px solid #f0f0f0; } /* حركة عند المرور */ .product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); } /* صورة المنتج */ .product-card img { width: 100%; height: 220px; object-fit: contain; border-radius: 10px; margin-bottom: 12px; } /* اسم المنتج */ .product-card .product-title { font-size: 14px; color: #222; margin-bottom: 6px; min-height: 38px; line-height: 1.4; } /* السعر */ .product-card .product-price { font-size: 15px; font-weight: bold; color: #000; } /* السعر قبل الخصم */ .product-card .product-old-price { font-size: 13px; color: #999; text-decoration: line-through; margin-right: 6px; } /* نسبة الخصم */ .product-card .discount-label { color: #d32f2f; font-size: 13px; font-weight: 600; } /* زر الإضافة للسلة */ .product-card .add-to-cart { margin-top: 12px; background: #000; color: #fff; border-radius: 30px; padding: 10px 0; font-size: 14px; transition: 0.3s; } .product-card .add-to-cart:hover { background: #333; } /* موبايل */ @media (max-width: 768px) { .products-grid, .products-list { grid-template-columns: repeat(2, 1fr); } } شبكة منتجات 4 أعمدة

منتج 1

50 ريال

منتج 2

75 ريال

منتج 3

120 ريال

منتج 4

90 ريال

.cart-grid { display: grid; grid-template-columns: repeat(4, 1fr); /* ديسكتوب */ gap: 12px; } /* المنتج */ .product { background: #f5f5f5; border-radius: 12px; height: 110px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; transition: box-shadow 0.2s ease, transform 0.2s ease; } /* ظل خفيف عند النقر */ .product:active { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transform: scale(0.96); } /* تابلت */ @media (max-width: 1024px) { .cart-grid { grid-template-columns: repeat(3, 1fr); } } /* موبايل */ @media (max-width: 600px) { .cart-grid { grid-template-columns: repeat(2, 1fr); } .product { height: 100px; } }
منتج 1
منتج 1
.cart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } /* المنتج */ .product { position: relative; background: #f5f5f5; border-radius: 14px; height: 110px; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-tap-highlight-color: transparent; transition: box-shadow 0.15s ease, transform 0.15s ease; } /* ظل أثناء الضغط فقط */ .product:active { box-shadow: 0 6px 14px rgba(0,0,0,0.18); transform: scale(0.97); } /* زر الإضافة */ .add-btn { position: absolute; bottom: 10px; right: 10px; opacity: 0; background: #000; color: #fff; border: none; border-radius: 18px; padding: 6px 12px; font-size: 13px; pointer-events: none; } /* يظهر الزر فقط أثناء الضغط */ .product:active .add-btn { opacity: 1; pointer-events: auto; } .cart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .product { position: relative; height: 110px; background: #f5f5f5; border-radius: 14px; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-tap-highlight-color: transparent; } .add-btn { position: absolute; bottom: 10px; right: 10px; opacity: 0; pointer-events: none; background: #000; color: #fff; border: none; border-radius: 18px; padding: 6px 12px; font-size: 13px; transition: opacity 0.1s ease; } .product.show .add-btn { opacity: 1; pointer-events: auto; }