/* ════════════════════════════════════════════════════════
   page-brands.css — نُقل من inline في page-brands.php للتخزين بالكاش.
   ════════════════════════════════════════════════════════ */
.brands-page-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    direction: rtl;
    box-sizing: border-box;
}

/* ── هيدر العنوان والنبذة — نفس تصميم page-news ── */
.brands-page-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.brands-page-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.brands-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(198,40,40,.12);
    color: #c62828;
}
.brands-page-icon svg {
    width: 19px;
    height: 19px;
}
.brands-page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}
.brands-page-header p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}
.brands-page-header strong { color: #cc0000; }

.brands-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}
.brand-page-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}
.brand-page-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: #ddd;
}
.brand-page-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    max-width: 100%;
}
.brand-page-item .brand-page-initial {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #ccc;
}
.brand-page-item span {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

/* شاشات صغيرة جدًا: حد أدنى أصغر لضمان عمودين بدل عمود واحد مهدر للمساحة */
@media (max-width: 420px) {
    .brands-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    .brands-page-header h1 {
        font-size: 18px;
    }
    .brand-page-item {
        padding: 14px 8px;
    }
    .brand-page-item img {
        width: 56px;
        height: 56px;
    }
    .brand-page-item .brand-page-initial {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    .brand-page-item span {
        font-size: 13px;
    }
}

/* Smart TV / شاشات كبيرة جدًا: تكبير المحتوى ليناسب مسافة المشاهدة البعيدة */
@media (min-width: 1900px) {
    .brands-page-wrap {
        max-width: 1600px;
    }
    .brands-page-header h1 {
        font-size: 28px;
    }
    .brands-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 28px;
    }
    .brand-page-item img {
        width: 90px;
        height: 90px;
    }
    .brand-page-item .brand-page-initial {
        width: 90px;
        height: 90px;
        font-size: 32px;
    }
    .brand-page-item span {
        font-size: 18px;
    }
}
