/* style.css - تنسيقات CSS العامة */

/* إعداد الخط العام للموقع */
body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background-color: #f8f6f2;
    color: #333;
    scroll-behavior: smooth;
}

/* الحاوية العامة */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* العناوين */
h1, h2, h3 {
    color: #7b3f00;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* عند التحويم على العنوان */
h1:hover, h2:hover, h3:hover {
    color: #a55b10;
}

/* كروت العرض */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 15px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* صور الأصناف */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* محتوى البطاقة */
.card-content {
    padding: 15px;
}

.card-content h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #5c2d00;
}

.card-content p {
    font-size: 14px;
    line-height: 1.5;
}

/* أزرار عامة */
.btn {
    background-color: #7b3f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #a55b10;
    transform: scale(1.05);
}

/* تخطيط الشبكة للأصناف */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* شريط التنقل (مستقبلي) */
.navbar {
    background-color: #5c2d00;
    padding: 15px;
    color: #fff;
    text-align: center;
    font-size: 18px;
}

/* حركات الانتقال العامة */
a, button {
    transition: all 0.3s ease;
}

/* الحقول */
input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #a55b10;
    outline: none;
}

/* ملاحظات */
.note {
    background-color: #fff3cd;
    padding: 10px;
    border-left: 5px solid #ffecb5;
    margin-bottom: 20px;
    color: #856404;
    border-radius: 4px;
}
table {
  border-collapse: collapse;
  margin: 20px auto;
  width: 90%;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 16px;
  border: 1px solid #ddd;
}

table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

h3 {
  color: #5c2d06;
  margin-top: 30px;
}

