/* هوية وألوان (أبيض/أزرق/أخضر) */
:root {
    --bg: #f7fbff;
    --card: #ffffff;
    --text: #0b2845;
    --muted: #5c738b;
    --primary: #1677ff;
    --success: #17a473;
    --ring: rgba(22, 119, 255, .35)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "NotoSansArabic", sans-serif
}

[dir="rtl"] {
    direction: rtl
}

a {
    text-decoration: none;
    color: inherit
}

.site-header {
    height: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .85));
    border-bottom: 1px solid #e6eef7;
    position: sticky;
    top: 0;
    z-index: 10
}

.site-header.small {
    padding: 10px 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.brand img {
    width: 90px;
    height: 50px;
    object-fit: contain
}

.brand-title {
    margin: 0;
    font-size: 20px
}

.brand-tag {
    margin: 0;
    color: var(--muted)
}

.lang-switch .btn {
    margin-inline-start: 6px
}

.hero {
    height: calc(100vh - 100px - 40px);
    padding: 36px 20px;
    text-align: center
}

.container {
    padding: 24px 20px;
    max-width: 1100px;
    margin: 0 auto
}

.container.narrow {
    max-width: 680px
}

.card {
    background: var(--card);
    border: 1px solid #e6eef7;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(14, 30, 60, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.card h3 {
    margin: 4px 0 0 0
}

.btn {
    background: #fff;
    border: 1px solid #d7e6fb;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer
}

.btn.small {
    padding: 6px 10px;
    border-radius: 8px
}

.btn.primary {
    background: linear-gradient(180deg, var(--primary), #0e63d8);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px var(--ring)
}

.btn:focus {
    outline: 3px solid var(--ring)
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px
}

input,
textarea,
select {
    padding: 10px 12px;
    border: 1px solid #d7e6fb;
    border-radius: 10px;
    background: #fff
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--ring)
}

.hint {
    color: var(--muted);
    margin: .3rem 0 1rem
}

.msg {
    margin-top: 10px;
    color: var(--success)
}

.table {
    width: 100%;
    border-collapse: collapse
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #eef3fb;
    text-align: start
}

.table th {
    background: #f3f8ff
}

.tabs {
    display: flex;
    gap: 10px
}

.tab {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d7e6fb
}

.tab.active {
    background: #e9f2ff;
    border-color: #bcd7ff
}

.panel.hidden {
    display: none
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

/* الأزرار الرأسية + أنيميشن */
.cta-vertical {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.button {
    position: relative
}

.button:hover {
    transform: scale(1.10);
    box-shadow: 0 10px 30px rgba(23, 164, 115, .18);
    border-color: #b9e6d3
}

.button.active {
    transform: scale(1.10);
    box-shadow: 0 10px 30px rgba(23, 164, 115, .18);
    border-color: #b9e6d3
}

.button::after {
    content: attr(data-label);
    position: absolute;
    inset-inline-end: 10px;
    top: -10px;
    background: #e6f7f1;
    color: #0f895f;
    border: 1px solid #98dfc0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px
}

.input-anim:focus {
    outline: 3px solid rgba(23, 164, 115, .35);
    box-shadow: 0 6px 18px rgba(23, 164, 115, .18)
}

/* المتجر: تصميم نظيف */
.store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 14px
}

.search {
    display: flex;
    gap: 8px;
    align-items: center
}

.search input {
    min-width: 240px
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px
}

.card.product {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.card.product .price {
    font-weight: 700;
    color: #0e63d8
}

.card.product .stock {
    color: #5c738b
}

.card.product .actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.sticky-cart {
    position: sticky;
    top: 76px
}

.total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    padding-top: 8px;
    border-top: 1px dashed #e6eef7;
    margin-top: 6px
}

.badge {
    background: #e6f7f1;
    color: #0f895f;
    border: 1px solid #98dfc0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px
}
.site-footer{
    height: 40px;
    
    width: auto;
    text-align: center;
    /* display:flex; */
    /* justify-content: center;
    align-items: center; */
}

@media(max-width:720px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr
    }
}