body, 
.navbar-brand, 
h1, h2, h3, h4, h5, h6, 
.btn, 
.nav-link,
.card-title,
.product-title,
.section-title,
.price {
    font-family: 'Cairo', sans-serif !important;
}

/* تحسينات القائمة العلوية */
.navbar {
    /* الحالة الافتراضية: شفاف */
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    position: sticky;
    top: 40px; /* ارتفاع الشريط الإعلاني */
    z-index: 1030;
    margin: 0;
    height: 70px;
}

.navbar.scrolled {
    /* تصميم Glassmorphism عند التمرير */
    background: rgba(255, 255, 255, 0.85); /* لون أبيض شبه شفاف */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* ظل ناعم */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar > .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    max-width: 100% !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #212529; /* تغيير لون النص ليكون داكناً */
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar.scrolled .navbar-brand {
    color: #212529; /* يبقى داكناً */
}

.navbar-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .navbar {
        height: 60px;
        padding: 0.25rem 0;
    }
    
    .navbar-logo {
        height: 45px;
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .container,
    .container-sm {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .container,
    .container-md,
    .container-sm {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 980px !important;
    }
}

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1220px !important;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1360px !important;
    }
}

@media (min-width: 1600px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1480px !important;
    }
}

main {
    flex: 1;
    margin: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    main {
        padding-top: 0;
    }
}

section {
    margin: 0;
    padding: 1rem 0;
}

.row {
    margin: 0;
}

.col, [class*="col-"] {
    padding: 0.5rem;
}

.navbar-brand:hover {
    color: #000;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: #495057 !important; /* تغيير لون النص ليكون داكناً */
}

.navbar.scrolled .nav-link {
    color: #495057 !important; /* يبقى داكناً */
}

.nav-link i {
    width: 24px;
    margin-left: 8px;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #212529 !important;
}

.navbar.scrolled .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background-color: #d20a11;
    color: white !important;
}

/* تحسينات الأزرار */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    color: #212529; /* تغيير لون النص ليكون داكناً */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
    transform: translateY(-2px);
}

.navbar.scrolled .header-icon-btn {
    color: #212529; /* يبقى داكناً */
}

.header-icon-btn:active {
    transform: translateY(0);
}

.header-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;    
    border: 2px solid #f8f9fa; /* تغيير لون الحد ليتناسب مع الخلفية البيضاء */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 50%;
}

.cart-count {
    background-color: #d20a11 !important;
    color: white !important;
}

.header-icon-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.header-icon-btn:hover i {
    transform: scale(1.1);
}

/* أزرار CTA بسيطة */
.cta-buttons-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0.85rem;
}

.header-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-link i {
    font-size: 0.95rem;
}

.header-cta-link .cta-call-text,
.header-cta-link .cta-call-number {
    display: inline-block;
}

.header-cta-link .cta-call-number {
    direction: ltr;
    unicode-bidi: isolate;
}

.header-cta-link-solid {
    background: #d20a11;
    color: #fff;
    border: 1px solid #d20a11;
    box-shadow: 0 6px 16px rgba(210, 10, 17, 0.14);
}

.header-cta-link-solid:hover {
    background: #b80b12;
    border-color: #b80b12;
    color: #fff;
}

.header-cta-link-outline {
    background: #fff;
    color: #d20a11;
    border: 1px solid rgba(210, 10, 17, 0.25);
}

.header-cta-link-outline:hover {
    background: rgba(210, 10, 17, 0.06);
    color: #b80b12;
    border-color: rgba(210, 10, 17, 0.4);
}

.mobile-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.mobile-cta-buttons .header-cta-link {
    width: 100%;
    justify-content: center;
    padding: 0.82rem 1rem;
}

@media (max-width: 1199px) {
    .cta-buttons-container {
        gap: 0.5rem;
        margin: 0 0.5rem;
    }

    .header-cta-link {
        padding: 0.58rem 0.82rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {
    .cta-buttons-container {
        display: none !important;
    }
}

/* تحسينات البحث */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1060;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.show {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.search-modal.show .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-modal-close:hover {
    color: var(--bs-primary);
}

.search-modal .search-form {
    margin: 0;
}

.search-modal .form-control {
    font-size: 1.2rem;
    padding: 1rem 3rem 1rem 1rem;
}

.search-live-results {
    margin-top: 0.9rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
}

.search-live-placeholder {
    padding: 1rem;
    color: #6c757d;
    text-align: center;
    font-size: 0.92rem;
}

.search-live-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1f2937;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.15s ease;
}

.search-live-item:last-child {
    border-bottom: 0;
}

.search-live-item:hover {
    background: #f8fafc;
    color: #d20a11;
}

.search-live-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eef1f5;
    flex-shrink: 0;
}

.search-live-meta {
    min-width: 0;
    flex: 1;
}

.search-live-name {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-live-sub {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.search-live-footer {
    padding-top: 0.55rem;
    text-align: center;
}

.search-live-footer a {
    color: #d20a11;
    font-weight: 700;
    text-decoration: none;
}

.search-live-footer a:hover {
    text-decoration: underline;
}

/* شارة عنصر التنقل */
.nav-item-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1.4;
    vertical-align: middle;
    margin-right: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.mobile-nav-link .nav-item-badge {
    float: left;
}

/* LICB clone header */
.licb-site-header {
    position: relative;
    z-index: 1025;
}

.top-navbar {
    background-color: #000000;
    color: #ffffff;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    column-gap: clamp(12px, 1.3vw, 22px);
    padding: 14px clamp(14px, 2.8vw, 56px);
    height: 90px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo-licb {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
    font-family: Arial Black, sans-serif;
    position: relative;
    line-height: 1;
    color: #fff;
}

.logo-licb .plus {
    color: #d3131a;
    font-size: 24px;
    position: absolute;
    top: -5px;
    right: -15px;
}

.logo-ar {
    font-size: 20px;
    font-weight: 700;
    margin-right: 15px;
    color: #fff;
}

.logo-image {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.top-navbar .search-container {
    width: 100%;
    max-width: 640px;
    background-color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 2px;
    height: 46px;
    justify-self: center;
    margin: 0;
    border: 1px solid #eceff4;
}

.top-navbar .search-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    background: transparent;
    cursor: pointer;
}

.top-navbar .search-container input::placeholder {
    color: #999;
}

.top-navbar .search-container button {
    background: none;
    border: none;
    padding: 0 15px;
    color: #d3131a;
    font-size: 18px;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.45vw, 26px);
    position: relative;
    z-index: 2;
}

.logo-container {
    position: relative;
    z-index: 2;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.action-item i {
    font-size: 22px;
}

.action-btn {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

.action-btn:hover {
    color: #fff;
}

.cart-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -10px;
    background-color: #d3131a;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

.bottom-navbar {
    background-color: #eceef2;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 clamp(12px, 2.4vw, 54px);
    justify-content: flex-start;
    border-bottom: 1px solid #d7dce5;
    gap: clamp(8px, 1vw, 16px);
    overflow: visible;
}

.categories-btn {
    background-color: #d3131a;
    color: #ffffff;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    margin-left: 0;
    text-decoration: none;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(211, 19, 26, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.categories-btn:hover,
.categories-btn.active {
    color: #ffffff;
    text-decoration: none;
    background-color: #bb0d13;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(187, 13, 19, 0.24);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(3px, 0.55vw, 8px);
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav-links li {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.06px;
    color: #000;
    flex: 0 0 auto;
}

.nav-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    font-weight: 650;
    letter-spacing: 0.05px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: color 0.3s;
}

.nav-links li a.active {
    color: #d3131a;
}

.nav-links li a:hover {
    color: #d3131a;
}

.nav-links .nav-item-wrap {
    display: flex;
    align-items: center;
}

.nav-links .nav-main-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    margin: 4px 0;
    border-radius: 8px !important;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links .nav-main-link:hover,
.nav-links .nav-main-link.active,
.nav-item-wrap.is-open > .nav-main-link {
    background: #d3131a !important;
    color: #ffffff !important;
}

.nav-links .nav-main-link:hover i,
.nav-links .nav-main-link.active i,
.nav-item-wrap.is-open > .nav-main-link i {
    color: #ffffff !important;
}

.nav-links li i {
    color: #d3131a;
    font-size: 16px;
}

.nav-emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    line-height: 1;
    min-width: 1.1em;
}

.pro-btn {
    background-color: transparent;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06px;
    color: #000;
    gap: 8px;
    cursor: pointer;
    margin-left: 0;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    margin: 4px 0;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pro-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: clamp(4px, 0.9vw, 12px);
    flex: 0 0 auto;
}

.pro-btn i {
    color: #d3131a;
}

.pro-btn:hover,
.pro-wrap.is-open > .pro-btn {
    background: #d3131a;
    color: #ffffff;
}

.pro-btn:hover i,
.pro-wrap.is-open > .pro-btn i {
    color: #ffffff !important;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.contact-link {
    min-height: 46px;
    padding: 0 12px;
    margin: 4px 0;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.contact-link:hover {
    color: #ffffff;
    background: #d3131a;
    transform: translateY(-1px);
    opacity: 0.98;
}

.contact-info i {
    font-size: 19px;
    color: #d3131a;
}

.contact-link:hover i {
    color: #ffffff;
}

.contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.phone-number {
    color: #c20f16;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 0.35px;
    font-family: Arial, sans-serif;
}

.contact-link:hover .phone-number,
.contact-link:hover .help-text {
    color: #ffffff;
}

.help-text {
    color: #4f5a67;
    font-size: 12px;
    font-weight: 700;
}

.mobile-contact-help {
    margin: 14px 16px 0;
    padding: 12px 14px;
    border: 1px solid #eceff5;
    border-radius: 12px;
    background: #f9fbff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}

.mobile-contact-help i {
    font-size: 1.5rem;
    color: #111827;
}

.mobile-contact-help .phone-number {
    font-size: 1rem;
}

.mobile-contact-help .help-text {
    color: #6b7280;
}

.licb-mobile-top {
    background: #000;
    color: #fff;
    min-height: 64px;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 1031;
}

.licb-mobile-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: 0.4px;
}

.licb-mobile-brand span {
    color: #d3131a;
}

.licb-mobile-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.licb-mobile-menu-btn,
.licb-mobile-search {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.licb-mobile-menu-btn:hover,
.licb-mobile-search:hover,
.licb-mobile-menu-btn:active,
.licb-mobile-search:active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.licb-mobile-top .cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.licb-mobile-top .cart-badge {
    top: -7px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid #000;
}

@media (max-width: 991.98px) {
    .licb-site-header {
        display: none !important;
    }

    .licb-mobile-top {
        display: flex;
    }
}

/* ديسكتوب ضيق: منع خروج العناصر خارج الإطار */
@media (min-width: 992px) and (max-width: 1460px) {
    .top-navbar {
        grid-template-columns: auto minmax(220px, 1fr) auto;
        padding: 12px 18px;
        column-gap: 12px;
        height: 82px;
    }

    .logo-image {
        height: 52px;
    }

    .logo-ar {
        font-size: 17px;
        margin-right: 8px;
    }

    .user-actions {
        gap: 14px;
    }

    .action-item {
        font-size: 14.5px;
        gap: 7px;
    }

    .action-item i {
        font-size: 20px;
    }

    .top-navbar .search-container {
        max-width: 500px;
        height: 42px;
    }

    .bottom-navbar {
        padding: 0 12px;
        gap: 10px;
    }

    .categories-btn,
    .pro-btn {
        padding: 0 13px;
        font-size: 13.5px;
        min-height: 50px;
    }

    .nav-links {
        gap: 16px;
        flex: 1 1 auto;
        min-width: 180px;
    }

    .nav-links li {
        font-size: 13.6px;
    }

    .contact-info {
        gap: 8px;
        flex-shrink: 0;
    }

    .contact-info i {
        font-size: 24px;
    }

    .phone-number {
        font-size: 17px;
    }

    .help-text {
        font-size: 11.5px;
    }
}

/* تحسينات القائمة المنسدلة للحساب */
.account-dropdown {
    position: relative;
}

.account-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
    transform-origin: top right;
}

.account-menu.show {
    display: block;
    animation: menuFadeIn 0.2s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px) translateY(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #444;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.account-menu-item:hover {
    background-color: rgba(210, 10, 17, 0.1);
    color: #d20a11;
}

.account-menu-item i {
    width: 24px;
    margin-left: 12px;
    font-size: 1.1rem;
}

.account-menu-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* تحسينات البحث */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
    position: relative;
}

.search-form {
    position: relative;
    width: 100%;
    z-index: 1;
}

.search-form .form-control {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-form .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(210, 10, 17, 0.25);
    outline: none;
}

/* إخفاء عناصر البحث الافتراضية */
.search-form .form-control::-webkit-search-decoration,
.search-form .form-control::-webkit-search-cancel-button,
.search-form .form-control::-webkit-search-results-button,
.search-form .form-control::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-form .btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.375rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.search-form .btn:hover {
    color: #d20a11;
}

/* إخفاء القوائم المنسدلة */
.search-form datalist,
.search-form list,
.search-suggestions,
.search-dropdown,
.navbar .dropdown-menu,
.search-results {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* القائمة الرئيسية للشاشات الكبيرة */
.main-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-item {
    margin: 0 0.5rem;
}

.main-nav .nav-link {
    color: #444;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-nav .nav-link i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: #d20a11;
    color: #ffffff !important;
}

@media (min-width: 1200px) and (max-width: 1366px) {
    .navbar > .container {
        padding: 0 0.8rem;
    }

    .main-nav .nav-item {
        margin: 0 0.22rem;
    }

    .main-nav .nav-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.9rem;
    }

    .cta-buttons-container {
        margin: 0 0.4rem;
        gap: 0.45rem;
    }

    .header-cta-link {
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }

    .header-cta-link .cta-call-number {
        display: none;
    }
}

/* تحسينات السلة الجانبية */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.show {
    left: 0;
}

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
    text-decoration: none;
}

.cart-item-price {
    color: #d20a11;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    color: #6c757d;
    font-size: 0.875rem;
}

.cart-item-remove {
    color: #dc3545;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.cart-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.cart-footer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: #d20a11;
}

.cart-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.cart-backdrop.show {
    display: block;
}

@media (max-width: 991.98px) {
    .cart-sidebar {
        width: 100%;
        left: -100%;
        height: 100dvh;
        max-height: 100dvh;
    }

    .cart-body {
        padding-bottom: 12px;
    }

    .cart-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* تحسينات التجاوب للموبايل */
@media (max-width: 991.98px) {
    .navbar {
        height: 60px;
        padding: 0;
    }
    
    .navbar > .container {
        padding: 0 1rem;
        position: relative;
    }

    .navbar-brand {
        font-size: 1.2rem;
        margin: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* تحسينات القائمة الجانبية للموبايل */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        max-height: 100dvh;
        background: white;
        z-index: 1050;
        transition: right 0.3s ease;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 1rem;
        display: block;
    }

    .mobile-menu.show {
        right: 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d;
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-search {
        margin-bottom: 1rem;
    }

    .mobile-nav {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav-item {
        margin-bottom: 0.5rem;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: #333;
        font-size: 0.9rem;
        font-weight: 650;
        letter-spacing: 0.04px;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background-color: rgba(210, 10, 17, 0.1);
        color: #d20a11;
    }

    .mobile-nav-link i {
        width: 24px;
        margin-left: 12px;
        font-size: 1.1rem;
    }

    .mobile-nav-link .nav-emoji-icon {
        width: 24px;
        margin-left: 12px;
        font-size: 1.12rem;
    }

    .mobile-backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }

    .mobile-backdrop.show {
        display: block;
    }

    /* تعديلات السلة للموبايل */
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-icon-btn {
        width: 35px;
        height: 35px;
    }
}

/* تحسينات التراكب عند فتح القائمة */
.navbar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .navbar-backdrop.show {
        display: block;
    }
}

/* تحسينات القائمة للشاشات الكبيرة */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-backdrop,
    .mobile-search {
        display: none !important;
    }
}

.cart-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background-color: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.cart-close i {
    font-size: 1.1rem;
    line-height: 1;
}

/* تنسيق الشريط الإعلاني */
.announcement-bar {
    background: var(--announcement-bg, #212529);
    color: var(--announcement-text, #ffffff);
    height: 40px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1031; /* يجب أن يكون أعلى من الـ navbar */
}

.announcement-container {
    height: 40px;
    position: relative;
}

.announcement-text {
    height: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.announcement-text.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* تحسينات قائمة التنقل */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    margin: 0;
}

/* تحسينات القائمة المنسدلة */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(210, 10, 17, 0.1);
    color: #d20a11;
}

.dropdown-item.active {
    background-color: #d20a11;
    color: white;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-label-stack {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.08;
    gap: 1px;
}

.nav-label-stack > span:first-child {
    font-weight: 700;
    letter-spacing: 0.06px;
}

.nav-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.nav-item-logo {
    display: block;
    height: 26px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-line-2 {
    font-size: 0.72em;
    opacity: 0.82;
    font-weight: 600;
}

.nav-dyn {
    color: var(--ni-text, inherit) !important;
    background: var(--ni-bg, transparent);
    border: var(--ni-border-size, 1px) solid var(--ni-border, transparent);
    border-radius: var(--ni-radius, 8px);
}

button.nav-dyn,
button.pro-btn,
button.mobile-nav-link {
    font: inherit;
    cursor: pointer;
}

.nav-dyn i {
    color: var(--ni-icon, currentColor) !important;
}

.nav-dyn:hover {
    color: var(--ni-hover-text, var(--ni-text, inherit)) !important;
    background: var(--ni-hover-bg, var(--ni-bg, transparent));
    border-width: var(--ni-hover-border-size, var(--ni-border-size, 1px));
    border-color: var(--ni-hover-border, var(--ni-border, transparent));
}

.nav-item-wrap,
.pro-wrap {
    position: relative;
}

.nav-dd-arrow {
    font-size: 0.78rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: none;
    z-index: 1040;
    margin-top: 2px;
}

.pro-dropdown-menu {
    left: 0;
    right: auto;
}

.nav-item-wrap.has-dropdown:hover .nav-dropdown-menu,
.pro-wrap.has-dropdown:hover .nav-dropdown-menu,
.nav-item-wrap.is-open .nav-dropdown-menu,
.pro-wrap.is-open .nav-dropdown-menu {
    display: block;
}

.nav-item-wrap.is-open > .nav-trigger .nav-dd-arrow,
.pro-wrap.is-open > .nav-trigger .nav-dd-arrow,
.mobile-nav-item.is-open > .nav-trigger .nav-dd-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    color: #111827;
    margin-bottom: 5px;
}

.nav-dropdown-item .nav-item-logo {
    height: 22px;
    max-width: 130px;
}

.nav-dropdown-item:last-child {
    margin-bottom: 0;
}

.mobile-subnav {
    list-style: none;
    margin: 5px 0 8px;
    padding: 0 8px 0 0;
    border-right: 2px dashed #e5e7eb;
    display: none;
}

.mobile-nav-item.is-open > .mobile-subnav {
    display: block;
}

.mobile-subnav-link {
    font-size: 0.92rem;
    margin-right: 6px;
}

.mobile-nav-link .nav-item-logo {
    height: 24px;
    max-width: 140px;
}

@keyframes navPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes navBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}

@keyframes navShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(1px); }
    40% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
    80% { transform: translateX(-1px); }
}

@keyframes navGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }
}

.anim-pulse { animation: navPulse 1.9s ease-in-out infinite; }
.anim-bounce { animation: navBounce 1.6s infinite; }
.anim-shake { animation: navShake 1.2s infinite; }
.anim-glow { animation: navGlow 2s ease-in-out infinite; }