/* =========================================================
   BAB SHARQI - TYPOGRAPHY SYSTEM
   نظام خطوط موحد وواضح للموقع بالكامل
   ========================================================= */

:root {
    --bs-font: "Almarai", sans-serif;
    --bs-heading: "Almarai", sans-serif;

    --bs-brown: #24160d;
    --bs-brown-2: #3a2414;
    --bs-gold: #c9953c;
    --bs-gold-light: #d9ae61;
    --bs-cream: #f8f2e8;
    --bs-text: #2d2118;
    --bs-muted: #74685c;
}

/* ---------------------------------------------------------
   الخط الأساسي
   --------------------------------------------------------- */

html,
body {
    font-family: var(--bs-font) !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: var(--bs-text);
    font-weight: 400;
}

/* جميع العناصر تستخدم نفس الخط */

body,
button,
input,
textarea,
select,
option,
.btn,
.navbar,
.nav-link,
.card,
.card-title,
.card-text,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
label,
table,
th,
td {
    font-family: var(--bs-font) !important;
}

/* ---------------------------------------------------------
   العناوين
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bs-heading) !important;
    color: var(--bs-text);
    font-weight: 800 !important;
    line-height: 1.45 !important;
}

h1 {
    font-size: clamp(32px, 4vw, 52px) !important;
}

h2 {
    font-size: clamp(27px, 3vw, 38px) !important;
}

h3 {
    font-size: clamp(23px, 2.5vw, 30px) !important;
}

h4 {
    font-size: 24px !important;
}

h5 {
    font-size: 20px !important;
}

h6 {
    font-size: 18px !important;
}

/* ---------------------------------------------------------
   النصوص
   --------------------------------------------------------- */

p {
    font-size: 16px !important;
    line-height: 1.95 !important;
    font-weight: 400;
}

.text-muted {
    color: var(--bs-muted) !important;
    font-size: 15px !important;
}

.small {
    font-size: 14px !important;
}

/* ---------------------------------------------------------
   الهيدر والقائمة
   --------------------------------------------------------- */

.main-navbar .nav-link,
.navbar .nav-link {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.navbar-brand,
.brand-text {
    font-size: 20px !important;
    font-weight: 800 !important;
}

.top-bar {
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero-section h1 {
    font-size: clamp(34px, 5vw, 58px) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.hero-section p {
    font-size: 18px !important;
    line-height: 2 !important;
    font-weight: 400 !important;
}

.hero-section .btn {
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* ---------------------------------------------------------
   عناوين الأقسام
   --------------------------------------------------------- */

.section-title {
    font-size: clamp(27px, 3vw, 36px) !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin-bottom: 30px !important;
}

/* خط زخرفي أسفل عنوان القسم */

.section-title::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: var(--bs-gold);
    margin: 12px auto 0;
    border-radius: 5px;
}

/* ---------------------------------------------------------
   بطاقات المنتجات
   --------------------------------------------------------- */

.card-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
}

.card-text {
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* اسم المنتج */

.product-name,
.product-title {
    font-size: 18px !important;
    font-weight: 800 !important;
}

/* السعر */

.price {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--bs-gold) !important;
    line-height: 1.5 !important;
}

/* ---------------------------------------------------------
   الأزرار
   --------------------------------------------------------- */

.btn {
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    min-height: 44px;
    border-radius: 6px;
}

.btn-lg {
    font-size: 17px !important;
    min-height: 50px;
}

.btn-sm {
    font-size: 14px !important;
    min-height: 38px;
}

/* زر الذهبي */

.btn-gold {
    background: var(--bs-gold) !important;
    border-color: var(--bs-gold) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.btn-gold:hover {
    background: var(--bs-brown-2) !important;
    border-color: var(--bs-brown-2) !important;
    color: #fff !important;
}

/* ---------------------------------------------------------
   صفحة المنيو
   --------------------------------------------------------- */

.menu-page h1 {
    font-size: 40px !important;
    font-weight: 800 !important;
}

.menu-page h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
}

.menu-page .category-title {
    font-size: 24px !important;
    font-weight: 800 !important;
}

.menu-page .product-name {
    font-size: 18px !important;
}

.menu-page .product-description {
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.menu-page .price {
    font-size: 18px !important;
}

/* ---------------------------------------------------------
   صفحة المنتج
   --------------------------------------------------------- */

.product-page h1 {
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 800 !important;
}

.product-page .product-price {
    font-size: 25px !important;
    font-weight: 800 !important;
    color: var(--bs-gold) !important;
}

.product-page .product-description {
    font-size: 16px !important;
    line-height: 2 !important;
}

/* ---------------------------------------------------------
   الكمية
   --------------------------------------------------------- */

.quantity-control,
.quantity-control button,
.quantity-control input {
    font-family: var(--bs-font) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* ---------------------------------------------------------
   السلة
   --------------------------------------------------------- */

.cart-page h1 {
    font-size: 34px !important;
    font-weight: 800 !important;
}

.cart-page table {
    font-size: 15px !important;
}

.cart-page th {
    font-size: 15px !important;
    font-weight: 800 !important;
}

.cart-page td {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.cart-page .total,
.cart-total {
    font-size: 20px !important;
    font-weight: 800 !important;
}

/* ---------------------------------------------------------
   النماذج
   --------------------------------------------------------- */

.form-label {
    font-size: 15px !important;
    font-weight: 800 !important;
}

.form-control,
.form-select {
    font-family: var(--bs-font) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    min-height: 46px;
}

.form-control::placeholder {
    font-family: var(--bs-font) !important;
    font-size: 14px !important;
}

/* ---------------------------------------------------------
   التنبيهات
   --------------------------------------------------------- */

.alert {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
}

/* ---------------------------------------------------------
   الفوتر
   --------------------------------------------------------- */

.footer {
    font-family: var(--bs-font) !important;
}

.footer-title {
    font-size: 18px !important;
    font-weight: 800 !important;
}

.footer p,
.footer li,
.footer a {
    font-size: 14px !important;
    line-height: 1.9 !important;
    font-weight: 400 !important;
}

.footer a {
    text-decoration: none;
}

/* ---------------------------------------------------------
   أيقونات Bootstrap
   --------------------------------------------------------- */

.bi {
    line-height: 1;
}

/* ---------------------------------------------------------
   الجوال
   --------------------------------------------------------- */

@media (max-width: 768px) {

    html,
    body {
        font-size: 15px !important;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 27px !important;
    }

    h3 {
        font-size: 23px !important;
    }

    h4 {
        font-size: 21px !important;
    }

    h5 {
        font-size: 18px !important;
    }

    p {
        font-size: 15px !important;
    }

    .main-navbar .nav-link,
    .navbar .nav-link {
        font-size: 15px !important;
        padding: 10px 8px !important;
    }

    .hero-section h1 {
        font-size: 34px !important;
    }

    .hero-section p {
        font-size: 16px !important;
    }

    .section-title {
        font-size: 27px !important;
    }

    .card-title {
        font-size: 18px !important;
    }

    .price {
        font-size: 18px !important;
    }

    .btn {
        font-size: 15px !important;
    }
}

/* ---------------------------------------------------------
   الشاشات الكبيرة
   --------------------------------------------------------- */
/* =========================================================
   BAB SHARQI - MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 72px;

        display: flex;
        align-items: stretch;
        justify-content: space-around;

        background: rgba(255, 252, 247, 0.98);

        border-top: 1px solid rgba(102, 58, 25, 0.12);

        box-shadow:
            0 -4px 20px rgba(48, 28, 14, 0.10);

        z-index: 99999;

        padding:
            7px
            max(8px, env(safe-area-inset-right))
            calc(7px + env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-nav-item {
        position: relative;

        flex: 1;

        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        color: #4a2b18;

        text-decoration: none !important;

        font-family: "Almarai", sans-serif;

        font-size: 12px;
        font-weight: 700;

        line-height: 1;

        transition:
            color .25s ease,
            transform .25s ease;
    }

    .mobile-nav-item i {
        font-size: 22px;

        line-height: 1;

        transition:
            transform .25s ease,
            color .25s ease;
    }

    .mobile-nav-item span:not(.mobile-cart-icon):not(.mobile-cart-count) {
        white-space: nowrap;
    }

    /* الحالة النشطة */

    .mobile-nav-item.active {
        color: #a66a20;
    }

    .mobile-nav-item.active i {
        transform: translateY(-1px);
    }

    /* خط صغير أسفل العنصر النشط */

    .mobile-nav-item.active::after {
        content: "";

        position: absolute;

        bottom: 1px;
        left: 50%;

        width: 24px;
        height: 3px;

        transform: translateX(-50%);

        background: #b87927;

        border-radius: 10px;
    }

    /* أيقونة السلة */

    .mobile-cart-icon {
        position: relative;

        width: 28px;
        height: 24px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-icon i {
        font-size: 22px;
    }

    /* رقم السلة */

    .mobile-cart-count {
        position: absolute;

        top: -8px;
        right: -7px;

        min-width: 18px;
        height: 18px;

        padding: 0 4px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #6b3219;
        color: #fff;

        border: 2px solid #fffaf3;

        border-radius: 50%;

        font-family: "Almarai", sans-serif;

        font-size: 9px;
        font-weight: 800;

        line-height: 1;
    }

    /* تأثير الضغط */

    .mobile-nav-item:active {
        transform: scale(.92);
    }

    /* مساحة أسفل الصفحة حتى لا يغطي الشريط المحتوى */

    body {
        padding-bottom: 72px;
    }

    /*
     * إذا كان لديك عنصر آخر مثبت في الأسفل
     * يتم إلغاء تضاربه مع الشريط.
     */

    .mobile-bottom-nav ~ * {
        position: relative;
    }
}


/* =========================================================
   شاشات صغيرة جداً
   ========================================================= */

@media (max-width: 380px) {

    .mobile-bottom-nav {
        height: 68px;
    }

    .mobile-nav-item {
        font-size: 10px;
        gap: 3px;
    }

    .mobile-nav-item i {
        font-size: 20px;
    }

    body {
        padding-bottom: 68px;
    }
}


/* =========================================================
   أجهزة سطح المكتب
   ========================================================= */

@media (min-width: 992px) {

    .mobile-bottom-nav {
        display: none !important;
    }
}
@media (min-width: 1200px) {

    html,
    body {
        font-size: 17px !important;
    }

    .main-navbar .nav-link,
    .navbar .nav-link {
        font-size: 16px !important;
    }

    .card-title {
        font-size: 19px !important;
    }

    .card-text {
        font-size: 16px !important;
    }

    .price {
        font-size: 20px !important;
    }

    .btn {
        font-size: 16px !important;
    }
}