/* Add custom CSS styles below */ 
:root {
  --main-brand-color: #f4762f; 
}

.btn-tab-primary.city-tab.active{
color:white!important
}
button.s-button-btn.s-button-solid,
#coupon_form_submit, #submit_form_btn,
.more-info-tabs__nav-link.mobile
{
  color:white!important
}

@media (max-width: 991px) {
    .simplified-products .offer-slide, .simplified-products .s-products-slider-card {
        width: 200px !important;
    }
}


.s-metadata-row {
  display: none !important
}

.s-slider-horizontal .bg-primary {
  background-color: white !important
}

.text-3xl {
    font-size: 1.20em !important;
}

.enhanced-title-border:after,
.enhanced-title-border:before{
  height: 1px !important
}

.enhanced-title-border {
 height: 10px !important;
 width: 10px !important;
}

.store-footer__contacts-row a[aria-label="الجوال"] {
  display: none !important
}

.product-card__promotion {
  font-size: 10px !important;
  font-weight: normal;
  right: 0 !important;
  left: auto !important;
  background-color: #66bf5a !important
}

.s-count-down-item {
    font-size: 12px !important;
    line-height: 1.85 !important;
}

.scroll-to-top {
  bottom: 18px !important
}

.scroll-to-top.right {
    right: 10px !important;
}

.wa-s-n {
    left: 10px !important;
}

.s-trust-badges-label, .s-trust-badges-number,
div.footer-badges .text-sm {
    font-size: 0.675rem;
    line-height: 1.025rem;
}

div.footer-badges .s-trust-badges-image,
div.footer-badges a[data-modal-id="modal-value-tax"]
{
  width: 25%;
}

div.branch-detail .bd-working-hours {
  display: none !important
}

/* FAQ*/
.tab-list-custom {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    direction: rtl; /* لضمان الاتجاه العربي */
}

.tab-item-custom {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* لتغطية خط الحدود السفلي للقائمة */
}

.tab-item-custom:hover {
    color: var(--main-brand-color);
}

.tab-item-custom.active {
    color: var(--main-brand-color);
    color: var(--main-brand-color);
}

/* تنسيق محتوى التبويبات */
.tab-content-custom {
    display: none; /* إخفاء الكل افتراضياً */
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    direction: rtl;
}

.tab-content-custom.active {
    display: block; /* إظهار التبويب النشط فقط */
    animation: fadeIn 0.4s ease;
}

.tab-content-custom ul {
    list-style: none;
    padding: 0;
}

.tab-content-custom li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-content-custom li strong {
    display: block;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.tab-content-custom li p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}


/* Branches */
    :root {
        --text-dark-rm: #333;
        --bg-light-rm: #f9f9f9;
        --card-shadow-rm: 0 4px 12px rgba(0,0,0,0.08);
    }

    .contacts-wrapper-rm {
        direction: rtl;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        background-color: #fff;
    }

    .section-title-rm {
        color: var(--main-brand-color);
        border-bottom: 2px solid var(--main-brand-color);
        display: inline-block;
        padding-bottom: 5px;
        margin: 40px 0 20px;
        font-size: 1.8rem;
    }

    .contacts-grid-rm {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .contact-card-rm {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 24px;
        box-shadow: var(--card-shadow-rm);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .contact-card-rm:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    .contact-card-rm h4 {
        margin-top: 0;
        color: var(--text-dark-rm);
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .info-item-rm {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: #666;
        line-height: 1.5;
    }

    .info-item-rm .icon-rm {
        color: var(--main-brand-color);
        margin-left: 10px;
        width: 20px;
        text-align: center;
        margin-top: 3px;
    }

    .timing-block-rm {
        background: var(--bg-light-rm);
        padding: 10px;
        border-radius: 8px;
        margin: 10px 0;
        font-size: 0.85rem;
    }

    .btn-map-rm {
        display: inline-block;
        margin-top: auto;
        padding: 10px 20px;
        background-color: var(--main-brand-color);
        color: white !important;
        text-decoration: none;
        border-radius: 6px;
        text-align: center;
        font-weight: bold;
        transition: opacity 0.2s;
    }

    .btn-map-rm:hover {
        opacity: 0.9;
    }

    .contact-links-rm a {
        color: var(--text-dark-rm);
        text-decoration: none;
    }

    .contact-links-rm a:hover {
        color: var(--main-brand-color);
    }

    @media (max-width: 768px) {
        .contacts-grid-rm {
            grid-template-columns: 1fr;
        }
    }

/* Force phone numbers to stay LTR even in RTL layout */
.phone-rm {
    direction: ltr !important;
    unicode-bidi: isolate; /* Ensures the number doesn't "leak" its directionality to surrounding text */
    display: inline-block;
    text-align: left;
}

</style>