/* css/base.css */
:root {
    --bg:       #fafaf8;  /* الخلفية الفاتحة الأصلية للمشروع */
    --surface:  #ffffff;  /* البطاقات باللون الأبيض الناصع */
    --surface2: #f5f3ef;
    --text:     #1a1a18;  /* النصوص باللون الداكن */
    --text2:    #555555;
    --accent:   #c8960c;  /* اللون الذهبي الأصلي */
    --accent2:  #e8c547;
    --border:   #e0ddd6;  /* الحدود الأصلية الدافئة */
    --green:    #3a8c5c;
    --shadow:   0 2px 8px rgba(0, 0, 0, 0.06);
    --radius:   14px;
    --radius-sm: 8px;
    --font: system-ui, -apple-system, sans-serif;
    --transition: 0.15s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.header__status {
    font-size: 0.85rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}

.search-box:focus {
    border-color: var(--accent);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

/* Services/Categories List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.service-item:active {
    border-color: var(--accent);
    background: var(--surface2);
}

.service-item__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.service-item__name {
    font-size: 1.05rem;
    font-weight: 700;
}

.service-item__meta {
    font-size: 0.8rem;
    color: var(--text2);
}

.service-item__emoji {
    font-size: 1.5rem;
}

/* Items Grid for Results */
.items-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.product-row:last-child {
    border-bottom: none;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-name {
    font-weight: 700;
    font-size: 1rem;
}

.product-merchant {
    font-size: 0.8rem;
    color: var(--text2);
}

.product-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.product-price {
    font-weight: 700;
    color: var(--accent);
}

.call-btn {
    background: var(--green);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
}
