/* Phase 11: legible search and Arabic typography. Brand blue is retained. */
html, body, input, select, textarea, button {
    font-family: "Cairo", Tahoma, "Segoe UI", Arial, sans-serif;
}
.search-bar, .search-bar.compact, .search-bar.hero-search {
    background: #f4faff;
    border: 2px solid #69b9ea;
    box-shadow: 0 14px 38px rgba(2, 32, 59, .18);
}
.search-bar input[type="search"], .search-bar input:not([type="hidden"]) {
    color: #09253b !important;
    background: #fff !important;
    border: 1px solid #c3dbe9 !important;
    border-radius: 10px;
    min-width: 0;
}
.search-bar input::placeholder { color: #476579; opacity: 1; }
.search-bar input:focus-visible { outline: 3px solid #178acb; outline-offset: 1px; }
.registration-phone-input { display: flex; direction: ltr; gap: 8px; align-items: center; }
.registration-phone-input input { min-width: 0; flex: 1; direction: ltr; }
.registration-country-prefix {
    display: inline-flex; align-items: center; justify-content: center;
    background: #edf7ff; border: 1px solid #67b6e8; border-radius: 10px;
    min-height: 46px; min-width: 78px; padding: 0 9px;
    color: #0e4369; font-weight: 800; font-variant-numeric: tabular-nums;
}
.current-user-name { color: var(--text); font-weight: 800; font-size: .88rem; }
@media (max-width: 700px) { .current-user-name { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* A category tile is a primary category, with navigable subcategory chips below. */
.visual-category-group { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.visual-category-group .visual-category-tile { flex: 0 0 auto; min-height: 136px; }
.visual-category-tile small { font-size: .78rem; opacity: .9; font-weight: 600; }
.visual-subcategories { display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.visual-subcategories a { border: 1px solid #477797; background: #12354f;
    color: #e8f6ff; border-radius: 9px; padding: 5px 9px; font-weight: 700;
    font-size: .84rem; line-height: 1.5; }
.visual-subcategories a:hover, .visual-subcategories a:focus-visible {
    background: #205b82; border-color: #8cdaff; color: #fff; }
@media (max-width: 700px) { .visual-subcategories a { padding: 7px 10px; } }
