/* Custom Styles for Arabic (RTL) */

/* Product Thumbnails - Square Aspect Ratio */
.product-nav-thumbs .product-thumb {
    display: inline-block;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border: 2px solid #e7e7e7;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.product-nav-thumbs .product-thumb:hover,
.product-nav-thumbs .product-thumb.active {
    border-color: #D4AF37;
}

.product-nav-thumbs .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Main product image - also ensure proper aspect ratio */
.product-media .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* Product Action Buttons Layout */
.product-body .product-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.product-body .product-action .btn-product.btn-cart {
    width: 100% !important;
    flex: 1 1 100%;
    order: -1; /* Place Add to Cart first */
}

.product-body .product-action-vertical {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.product-body .product-action-vertical .btn-product-icon {
    flex: 1;
    max-width: calc(50% - 4px);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 24px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #D4AF37;
}

.star-rating-input input[type="radio"]:checked ~ label {
    color: #D4AF37;
}

.rating-form-wrapper {
    border-top: 1px solid #ebebeb;
    padding-top: 2rem;
    margin-top: 2rem;
}

.rating-form .form-group {
    margin-bottom: 1.5rem;
}

.rating-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.rating-form .required {
    color: #ff0000;
}


/* Header Middle RTL - match English layout exactly (mirrored) */
@media (min-width: 992px) {
    body[dir="rtl"] header.header-4 .header-middle .container {
        display: flex !important;
        /* Mirror English: keep template sizing, just reverse placement */
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    body[dir="rtl"] header.header-4 .header-middle .header-left {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* right side */
        margin: 0 !important;
    }

    body[dir="rtl"] header.header-4 .header-middle .header-center {
        min-width: 0 !important;
        margin: 0 2rem !important; /* same spacing as English */
    }

    body[dir="rtl"] header.header-4 .header-middle .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* left side */
        margin: 0 !important;
        gap: 2rem !important;
    }

    /* Keep logo sizing consistent with English */
    body[dir="rtl"] header.header-4 .header-middle .logo img {
        max-width: 105px !important;
        height: auto !important;
    }
}

/* Header Top RTL - mirror English distribution (left/right clusters) */
body[dir="rtl"] .header-top .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important; /* keep same side placement as English (left cluster stays left) */
    direction: ltr !important; /* lock physical left/right so RTL doesn't flip cluster placement */
}

body[dir="rtl"] .header-top .header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* left side (same as English) */
    margin: 0 !important;
    gap: 1rem !important;
    text-align: left !important;
    direction: rtl !important; /* keep Arabic text direction inside the cluster */
}

body[dir="rtl"] .header-top .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* right side (same as English) */
    margin: 0 !important;
    text-align: right !important;
    direction: rtl !important; /* Arabic dropdown/readability */
}

body[dir="rtl"] .header-top .top-menu {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body[dir="rtl"] .header-top .top-menu > li {
    margin: 0 !important;
}

/* Header-top fine tuning for RTL when using "English positions" */
body[dir="rtl"] .header-top .header-left a {
    margin-left: 0 !important; /* override arabic.css spacing that was meant for mirrored layout */
    margin-right: 0 !important;
}

body[dir="rtl"] .header-top .location-selector {
    margin-left: 1rem !important; /* match English ml-3 spacing */
    margin-right: 0 !important;
}

/* Reset icon margins (we use gap instead) */
body[dir="rtl"] .header-right > * {
    margin: 0 !important;
}

/* New Arrivals (RTL): Title on top, categories below for Arabic */
body[dir="rtl"] .new-arrivals .heading.heading-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body[dir="rtl"] .new-arrivals .heading-right.order-1 {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

body[dir="rtl"] .new-arrivals .heading-left.order-2 {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
}

body[dir="rtl"] .new-arrivals .heading-left.order-2 .nav {
    justify-content: center !important;
    direction: rtl !important;
    flex-wrap: wrap !important;
}

/* Trending Products + Recommendations (RTL): Title on top, options/links below for Arabic */
body[dir="rtl"] .trending-products .heading.heading-flex,
body[dir="rtl"] .for-you .heading.heading-flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

body[dir="rtl"] .trending-products .heading-right.order-1,
body[dir="rtl"] .for-you .heading-right.order-1 {
    order: 1 !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

body[dir="rtl"] .trending-products .heading-left.order-2,
body[dir="rtl"] .for-you .heading-left.order-2 {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
}

body[dir="rtl"] .trending-products .heading-left.order-2 .nav {
    justify-content: center !important;
    direction: rtl !important;
    flex-wrap: wrap !important;
}

/* Dark Mode Toggle - MUST BE VISIBLE */
body[dir="rtl"] .dark-mode-toggle-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body[dir="rtl"] .dark-mode-toggle {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Dark/Gold mode toggle - Arabic base styling (since custom.css isn't loaded in AR) */
body[dir="rtl"] .dark-mode-toggle-wrapper {
    align-items: center !important;
    flex: 0 0 auto !important;
}

body[dir="rtl"] .dark-mode-toggle {
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    position: relative !important;
    padding: 0 !important;
    transition: background-color 0.25s ease, transform 0.25s ease !important;
    box-shadow: none !important;
}

body[dir="rtl"] .dark-mode-toggle:hover {
    background-color: rgba(212, 175, 55, 0.12) !important;
}

body[dir="rtl"] .dark-mode-toggle:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* If the toggle is clicked (mouse), don't keep a visible ring like focus-visible */
body[dir="rtl"] .dark-mode-toggle:focus:not(:focus-visible) {
    box-shadow: none !important;
}

body[dir="rtl"] .dark-mode-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #D4AF37 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
}

body[dir="rtl"] .dark-mode-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

body[dir="rtl"] .dark-mode-icon.moon-icon {
    opacity: 1 !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
}

body[dir="rtl"] .dark-mode-icon.sun-icon {
    opacity: 0 !important;
    transform: translate(-50%, -50%) rotate(90deg) !important;
}

body[dir="rtl"].dark-mode .dark-mode-icon.moon-icon {
    opacity: 0 !important;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
}

body[dir="rtl"].dark-mode .dark-mode-icon.sun-icon {
    opacity: 1 !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
}

/* Remove per-icon spacing hacks (handled by gap on .header-right) */
body[dir="rtl"] .compare-dropdown,
body[dir="rtl"] .wishlist,
body[dir="rtl"] .cart-dropdown {
    margin: 0 !important;
}

/* Search Bar RTL - Mirror of English: Button (right), Input (middle), Dropdown (left) */
@media (min-width: 992px) {
    /* Gold theme forces LTR ordering with !important; override it for RTL */
    body[dir="rtl"] header.header-4 .header-search-wrapper.search-wrapper-wide,
    body[dir="rtl"] header.header-4 .header-search-wrapper {
        display: flex !important;
        align-items: flex-start !important;
        height: 45px !important;
        gap: 0 !important;
        /* Force mirrored layout: Button (right) - Input (middle) - Select (left) */
        direction: ltr !important;
        flex-direction: row-reverse !important;
    }

    /* Force visual order regardless of theme order hacks */
    body[dir="rtl"] header.header-4 .header-search-wrapper .search-btn-left,
    body[dir="rtl"] header.header-4 .header-search-wrapper .btn,
    body[dir="rtl"] header.header-4 .header-search-wrapper .btn-primary {
        order: 0 !important; /* right side in RTL (row-reverse) */
        flex: 0 0 55px !important;
        border-radius: 0 20px 20px 0 !important; /* rounded on RIGHT in RTL */
        border-right-width: 1px !important;
        border-right-style: solid !important;
        border-right-color: inherit !important;
        border-left: none !important;
    }

    body[dir="rtl"] header.header-4 .header-search-wrapper .search-input-field,
    body[dir="rtl"] header.header-4 .header-search-wrapper .form-control {
        order: 1 !important; /* middle */
        flex: 1 1 auto !important;
        min-width: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        text-align: right !important;
    }

    body[dir="rtl"] header.header-4 .header-search-wrapper .search-type-select,
    body[dir="rtl"] header.header-4 .header-search-wrapper select.search-type-select {
        order: 2 !important; /* left side in RTL (row-reverse) */
        flex: 0 0 140px !important;
        width: 140px !important;
        border-radius: 20px 0 0 20px !important; /* rounded on LEFT in RTL */
        border-left-width: 1px !important;
        border-left-style: solid !important;
        border-left-color: inherit !important;
        border-right: none !important;
        background-position: left 0.3rem center !important;
        padding-left: 1.3rem !important;
        padding-right: 0.5rem !important;
        text-align: right !important;
    }
}

/* (desktop RTL search rules moved into the media query above) */

/* Responsive (mobile/tablet) - keep existing template behavior */

/* Navigation Menu RTL */
body[dir="rtl"] .header-bottom .menu {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .header-bottom .menu>li {
    float: right;
    margin-right: 0;
    margin-left: 2.5rem;
}

body[dir="rtl"] .header-bottom .menu>li:first-child {
    margin-left: 0;
}

body[dir="rtl"] .header-bottom .menu>li:last-child {
    margin-right: 0;
}

/* Dropdown menus open to the LEFT in RTL */
body[dir="rtl"] .header-bottom .menu .dropdown-menu,
body[dir="rtl"] .header-bottom .menu .megamenu {
    left: auto;
    right: 0;
    text-align: right;
}

/* Sub-menus align right */
body[dir="rtl"] .header-bottom .menu .dropdown-menu .dropdown-menu {
    left: auto;
    right: 100%;
    margin-right: -1px;
    margin-left: 0;
}

/* Menu dropdown arrows */
body[dir="rtl"] .header-bottom .menu>li>a::after {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Megamenu RTL */
body[dir="rtl"] .megamenu {
    text-align: right;
}

body[dir="rtl"] .megamenu .row {
    direction: rtl;
}

body[dir="rtl"] .megamenu .menu-col {
    text-align: right;
}

/* Product Cards RTL */
body[dir="rtl"] .product-action-vertical {
    right: 1rem !important;
    left: auto !important;
}

body[dir="rtl"] .product-label {
    left: 0.5rem !important;
    right: auto !important;
}

/* Product Card Actions (Arabic) - match English wide button + animation (custom.css isn't loaded in AR) */
body[dir="rtl"] .product .product-action {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    visibility: visible !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body[dir="rtl"] .product:hover .product-action {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

body[dir="rtl"] .product .product-action form,
body[dir="rtl"] .product .product-action a,
body[dir="rtl"] .product .product-action button {
    width: 100% !important;
    display: block !important;
}

body[dir="rtl"] .product .product-action .btn-product.btn-cart {
    width: 100% !important;
    border-radius: 0 !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important; /* spacing between cart icon and text */
    background-color: #000 !important; /* default: black (before hover) */
    color: #fff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

body[dir="rtl"] .product:hover .product-action .btn-product.btn-cart {
    background-color: #000 !important; /* keep black when the bar appears */
    color: #fff !important;
}

body[dir="rtl"] .product .product-action .btn-product.btn-cart:hover {
    background-color: var(--gold-primary, #d4af37) !important;
    color: #fff !important;
}

/* Wishlist/compare expandable label should slide out towards the card center */
body[dir="rtl"] .btn-product-icon span {
    /* Arabic strings are longer than EN; widen the expandable label so text isn't clipped */
    width: 180px !important;
    left: -165px !important;
    right: auto !important;
    white-space: nowrap !important;
    padding: 0 14px !important; /* ensure breathing room for long Arabic */
    background-color: var(--gold-primary, #d4af37) !important; /* hover label background should be gold, not blue */
    color: #fff !important;
}

/* Ensure the expandable label background stays gold on hover/focus (theme files set it to blue) */
body[dir="rtl"] .btn-product-icon:hover span,
body[dir="rtl"] .btn-product-icon:focus span {
    background-color: var(--gold-primary, #d4af37) !important;
    color: #fff !important;
}

/* Active pills in RTL should be gold underline (not filled background) */
body[dir="rtl"] .nav.nav-pills .nav-link.active,
body[dir="rtl"] .nav.nav-pills .show > .nav-link {
    background-color: transparent !important;
    color: var(--gold-primary, #d4af37) !important;
    border-bottom: 2px solid var(--gold-primary, #d4af37) !important;
    border-radius: 0 !important;
}

/* Footer Newsletter RTL */
body[dir="rtl"] .footer-newsletter .input-group {
    /* Keep the same physical order as English: input (left) + button (right) */
    flex-direction: row !important;
    direction: ltr !important;
}

body[dir="rtl"] .footer-newsletter .btn {
    border-radius: 0 20px 20px 0 !important; /* round RIGHT side only */
    order: 2 !important;
}

body[dir="rtl"] .footer-newsletter .form-control {
    border-radius: 20px 0 0 20px !important;
    order: 1 !important;
    direction: rtl !important;
    text-align: right !important;
}

/* Footer CTA newsletter (layouts/footer.blade.php) RTL: same physical order/radius as English */
body[dir="rtl"] .footer .cta .input-group {
    flex-direction: row !important;
    direction: ltr !important;
}

body[dir="rtl"] .footer .cta .form-control,
body[dir="rtl"] .footer .cta .form-control-white {
    border-radius: 20px 0 0 20px !important;
    direction: rtl !important;
    text-align: right !important;
}

body[dir="rtl"] .footer .cta .btn {
    border-radius: 0 20px 20px 0 !important; /* round RIGHT side only */
}

/* Checkout payment method icons RTL spacing */
body[dir="rtl"] .payment-method-radio-wrapper .form-check-label {
    gap: 0.5rem;
}

/* Footer Bottom RTL */
body[dir="rtl"] .footer-bottom .container {
    flex-direction: row-reverse;
}

body[dir="rtl"] .footer-bottom .footer-copyright {
    text-align: right;
}

body[dir="rtl"] .footer-bottom .footer-payments {
    text-align: left;
}

/* ==========================
   Auth (Login/Register) RTL
   ========================== */

/* Checkbox alignment (Bootstrap custom-control) */
body[dir="rtl"] #signin-modal .custom-control,
body[dir="rtl"] .auth-page .custom-control {
    padding-left: 0 !important;
    padding-right: 2.25rem !important; /* space for checkbox box on the right */
}

body[dir="rtl"] #signin-modal .custom-control-label,
body[dir="rtl"] .auth-page .custom-control-label {
    padding-left: 0 !important;
    padding-right: .25rem !important;
}

body[dir="rtl"] #signin-modal .custom-control-label::before,
body[dir="rtl"] #signin-modal .custom-control-label::after,
body[dir="rtl"] .auth-page .custom-control-label::before,
body[dir="rtl"] .auth-page .custom-control-label::after {
    left: auto !important;
    right: 0 !important;
}

/* Modal footer row (button + remember + forgot) should mirror nicely in RTL */
body[dir="rtl"] #signin-modal .form-footer {
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

body[dir="rtl"] #signin-modal .forgot-link {
    white-space: nowrap !important;
}

/* Social login buttons (Google/Facebook) – add spacing between icon and text */
body[dir="rtl"] #signin-modal .btn.btn-login,
body[dir="rtl"] .auth-page .btn.btn-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row-reverse !important; /* put icon on the right in RTL */
    gap: .6rem !important;
    padding-inline: 1.2rem !important;
}

body[dir="rtl"] #signin-modal .btn.btn-login i,
body[dir="rtl"] .auth-page .btn.btn-login i {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

/* Primary action buttons in auth (adds consistent icon/text spacing) */
body[dir="rtl"] #signin-modal .btn.btn-outline-primary-2,
body[dir="rtl"] .auth-page .btn.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .6rem !important;
}

/* ==========================
   Location modal RTL (keep EN positions)
   ========================== */

body[dir="rtl"] #location-modal .modal-header,
body[dir="rtl"] #location-modal .modal-body,
body[dir="rtl"] #location-modal .modal-content {
    direction: ltr !important; /* keep close button on the right + caret on the right */
}

body[dir="rtl"] #location-modal .modal-title {
    direction: rtl !important;
    text-align: left !important; /* match EN title placement */
    flex: 1 1 auto !important;
    margin: 0 !important;
}

body[dir="rtl"] #location-modal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important; /* override arabic.css global modal-header row-reverse */
}

body[dir="rtl"] #location-modal .close {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body[dir="rtl"] #location-modal .modal-body {
    text-align: left !important; /* override arabic.css forcing right alignment */
}

body[dir="rtl"] #location-modal label {
    direction: rtl !important;
    text-align: left !important; /* match EN label placement */
    width: 100% !important;
}

body[dir="rtl"] #location-modal .modal-body {
    padding: 2rem !important; /* match the enhanced EN padding */
}

body[dir="rtl"] #location-modal .form-control {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Product card thumbs: rely on flex gap (don't double-space with RTL margins) */
body[dir="rtl"] .product-nav-thumbs a {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Product list action row RTL: keep buttons aligned and prevent clipping */
body[dir="rtl"] .product.product-list .product-action-list-row {
    justify-content: center;
}

/* RTL divider: flip to the other side */
body[dir="rtl"] .product.product-list .product-action-list-row .btn-product.btn-compare {
    margin-left: 0;
    padding-left: 0;
    margin-right: 1rem;
    padding-right: 1rem;
    border-right: 0 !important;
    position: relative;
}

body[dir="rtl"] .product.product-list .product-action-list-row .btn-product.btn-compare::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #d0d0d0;
}

body[dir="rtl"] #location-modal #judiciary-select-modal.form-control {
    direction: ltr !important; /* caret on right */
    text-align: left !important;
    unicode-bidi: plaintext !important;
    text-align-last: left !important; /* ensure selected option aligns like EN */
}

body[dir="rtl"] #location-modal select.form-control option {
    direction: rtl !important; /* show Arabic options correctly */
    text-align: right !important;
}

body[dir="rtl"] #location-modal #use-gps-btn-modal,
body[dir="rtl"] #location-modal #save-location-btn-modal {
    flex-direction: row !important; /* icon then text like EN */
    justify-content: center !important;
    gap: .6rem !important;
}

/* ==========================
   Floating Cart Button (Arabic) - Base styles from custom.css
   ========================== */
#floating-cart {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px;
    height: 56px;
    background-color: #d4af37;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
}

#floating-cart.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#floating-cart i {
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 10px !important;
}

#floating-cart:hover {
    background-color: #b8860b;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
    color: #fff;
    text-decoration: none;
}

#floating-cart .floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fff;
    color: #d4af37;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #d4af37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button (Arabic) - Base styles */
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border: 2px solid #333;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#scroll-top.show {
    display: flex;
}

#scroll-top:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

/* Ensure burger menu is always visible on mobile */
@media (max-width: 991.98px) {
    .mobile-menu-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Syncing Responsive Fixes from custom.css */
@media (max-width: 991.98px) {
    .header-middle .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .header-middle .header-left {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        order: 1 !important;
        margin-bottom: 0 !important;
        /* position: relative; */
        z-index: 5 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-height: 60px !important; /* Give space for logo */
    }

    /* Burger Menu - Left side for Arabic (RTL) */
    body[dir="rtl"] .header-middle .mobile-menu-toggler {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        font-size: 1.5rem !important;
        color: #333 !important;
        z-index: 15 !important;
        position: absolute !important;
        left: 0 !important; /* Extreme left edge for RTL */
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    .header-middle .mobile-menu-toggler:hover {
        color: var(--primary-color) !important;
    }

    .header-middle .mobile-menu-toggler i {
        font-size: 25px !important;
    }

    /* Logo - Centered, slightly larger */
    .header-middle .header-left .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
        max-width: 190px !important; /* Increased size */
        width: auto !important;
        order: 1 !important;
    }

    .header-middle .logo img {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: 190px !important; /* Match container max-width */
    }

    .header-middle .header-center {
        display: none !important; /* Hide search on mobile in header-middle */
    }

    .header-middle .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* Center the icons */
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important; /* Icons come after logo */
        margin-top: 40px !important; /* Increased space between logo and icons for Arabic */
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-wrap: wrap !important;
        position: relative !important;
        z-index: 5 !important;
        padding-left: 40px !important; /* Account for burger menu on left */
        padding-right: 40px !important; /* Balance for RTL */
        box-sizing: border-box !important;
    }

    .header-middle .header-right .dark-mode-toggle-wrapper,
    .header-middle .header-right .dropdown.compare-dropdown,
    .header-middle .header-right .wishlist,
    .header-middle .header-right .cart-dropdown {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .header-middle .header-right p {
        font-size: 0.9rem !important; /* Increased label font size */
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    .header-middle .header-right .icon {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-middle .header-right .icon i {
        font-size: 20px !important; /* Icon font size 20px */
    }

    .mobile-filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100% !important;
        max-width: 400px !important;
        background-color: #fff;
        z-index: 20000 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        visibility: hidden;
        display: block !important; /* Ensure it overrides any theme-level display: none */
        overflow-y: auto;
        padding: 0; /* Changed from 20px - padding will be handled by internal widgets */
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .mobile-filter-sidebar.active {
        transform: translateX(0);
        visibility: visible;
    }
}

/* Extra Small Devices - Header Icons */
@media (max-width: 576px) {
    /* Logo size for small screens */
    .header-middle .header-left .logo {
        max-width: 100px !important;
        margin-top: 30px !important;
    }

    .header-middle .logo img {
        max-width: 100px !important;
    }

    .header-middle .header-right {
        gap: 0.75rem !important;
        justify-content: center !important; /* Center the icons */
    }

    .header-middle .header-right .dark-mode-toggle-wrapper,
    .header-middle .header-right .dropdown.compare-dropdown,
    .header-middle .header-right .wishlist,
    .header-middle .header-right .cart-dropdown {
        flex: 0 0 auto !important;
    }

    .dark-mode-toggle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .header-middle .header-right .icon {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-middle .header-right .icon i {
        font-size: 20px !important; /* Icon font size 20px */
    }

    .header-middle .header-right p {
        font-size: 0.85rem !important; /* Increased label font size for small screens */
    }

    .mobile-filter-sidebar .sidebar-wrapper {
        padding: 2.5rem 2rem 2rem; /* Add consistent padding inside the wrapper */
        overflow-x: hidden; /* Prevent horizontal overflow */
    }

    .mobile-filter-sidebar .widget {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid #eee;
        width: 100%; /* Ensure widgets don't exceed container width */
    }

    .mobile-filter-sidebar .widget:last-child {
        border-bottom: none;
    }

    body.sidebar-filter-active {
        overflow: hidden;
    }

    .sidebar-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 10000; /* Just below sidebar (10001) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        pointer-events: none; /* Allow clicks to pass through when inactive */
    }

    .sidebar-filter-overlay.active {
        pointer-events: auto; /* Block clicks when active */
    }

    .sidebar-filter-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* RTL Support for Mobile Sidebar */
    html[dir='rtl'] .mobile-filter-sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    html[dir='rtl'] .mobile-filter-sidebar.active {
        transform: translateX(0);
    }

    /* Mobile Filter Toggle Button */
    .btn-filter-mobile {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        border: 1px solid #D4AF37;
        border-radius: 30px;
        background-color: #D4AF37;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    }

    .btn-filter-mobile:hover, .btn-filter-mobile:focus {
        background-color: #b8860b;
        border-color: #b8860b;
        color: #fff;
        box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    }

    /* Close Button in Sidebar */
    .btn-close-filter {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 2rem;
        line-height: 1;
        color: #333;
        padding: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 11; /* Higher than sidebar content */
        transition: color 0.3s ease;
    }

    .btn-close-filter:hover {
        color: #D4AF37;
    }

    html[dir='rtl'] .btn-close-filter {
        right: auto;
        left: 15px;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 767px) {
    /* Restore padding for grid items */
    .stores-grid-item, .product-item {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
}


/* Cart & Wishlist Sidebar Styles */
.cart-sidebar, .wishlist-sidebar {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    width: 350px;
    max-width: 85vw;
    background-color: #fff;
    z-index: 10001 !important; /* Higher than overlay (10000) */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    pointer-events: none; /* Disable when hidden */
}

.cart-sidebar.active, .wishlist-sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    z-index: 10001 !important;
}

/* RTL Support for Cart/Wishlist */
body[dir="rtl"] .cart-sidebar,
body[dir="rtl"] .wishlist-sidebar,
html[dir='rtl'] .cart-sidebar,
html[dir='rtl'] .wishlist-sidebar {
    right: auto !important;
    left: 0 !important;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

body[dir="rtl"] .cart-sidebar.active,
body[dir="rtl"] .wishlist-sidebar.active,
html[dir='rtl'] .cart-sidebar.active,
html[dir='rtl'] .wishlist-sidebar.active {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    z-index: 10001 !important;
}

/* Ensure sidebar content is clickable in RTL */
body[dir="rtl"] .cart-sidebar,
body[dir="rtl"] .wishlist-sidebar {
    pointer-events: auto !important;
}

body[dir="rtl"] .cart-sidebar.active *,
body[dir="rtl"] .wishlist-sidebar.active * {
    pointer-events: auto !important;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.btn-sidebar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-sidebar-close:hover {
    color: var(--primary-color);
}

/* Global Responsive Fixes */
html, body {
    overflow-x: hidden;
}

/* Completely disable cart dropdown menu - using sidebar instead */
.cart-dropdown .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.cart-dropdown:hover .dropdown-menu,
.cart-dropdown:focus .dropdown-menu,
.cart-dropdown.show .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Prevent Bootstrap dropdown from interfering */
.cart-dropdown .dropdown-toggle {
    pointer-events: auto;
    cursor: pointer;
}

/* Age Confirmation Modal RTL Support */
html[dir='rtl'] .age-confirmation-box {
    text-align: right;
}

html[dir='rtl'] .age-confirmation-header,
html[dir='rtl'] .age-confirmation-body {
    text-align: right;
}

html[dir='rtl'] .age-restriction-content {
    text-align: right;
}

/* Ensure sidebars don't cause overflow even when hidden */
.cart-sidebar, .wishlist-sidebar, .mobile-filter-sidebar {
    max-width: 100%; /* Changed from 85vw to allow full-screen on mobile */
}

/* Fix product gallery width on mobile */
@media (max-width: 767px) {
    .product-gallery, .product-details {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .product-details-top .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-6 {
        /* Ensure 2 columns for grid items, but reset for other col-6 usage if needed */
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* Mobile Menu Info Section - RTL */
html[dir="rtl"] .mobile-menu-info .info-item a {
    flex-direction: row;
}

html[dir="rtl"] .mobile-menu-info .info-item i {
    margin-right: 0;
    margin-left: 1.2rem;
}

/* Mobile Menu Info Section (Arabic) */
.mobile-menu-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    background-color: #D4AF37; /* Gold Primary */
    border-radius: 8px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 2rem;
}

.mobile-menu-info .info-item {
    margin-bottom: 1.5rem;
}

.mobile-menu-info .info-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-info .info-item a {
    display: flex;
    align-items: center;
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 500;
    flex-direction: row; /* Ensure icon is on the right/left as per RTL */
}

.mobile-menu-info .info-item i {
    font-size: 1.8rem;
    margin-left: 1.2rem; /* Spacing for RTL */
    margin-right: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
}

.mobile-menu-info .info-item span {
    color: #fff;
}

/* Adjust social icons spacing to match */
.mobile-menu-wrapper .social-icons {
    justify-content: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

/* ============================================
   RESPONSIVE MOBILE FIXES FOR PAGES (ARABIC)
   ============================================ */

/* Mobile Container Padding Fix */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Page Content Responsive */
    .page-content {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .page-content .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }

    /* Remove max-width restrictions on mobile */
    .page-content .container[style*="max-width"] {
        max-width: 100% !important;
    }

    /* Page Header Responsive */
    .page-header {
        padding: 2rem 0;
    }

    .page-header .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-title span {
        display: block;
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    /* Breadcrumb Responsive */
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }

    .breadcrumb-nav .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        word-break: break-word;
    }

    /* Page Content Typography */
    .page-content h1,
    .page-content h2 {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        margin-top: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-content ul,
    .page-content ol {
        padding-right: 1.5rem;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .page-content li {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Icon Box Responsive (for how-to-shop page) */
    .icon-box {
        margin-bottom: 1.5rem;
    }

    .icon-box-side {
        flex-direction: column;
        text-align: center;
    }

    .icon-box-icon {
        margin-bottom: 1rem;
        margin-left: 0 !important;
    }

    .icon-box-content {
        text-align: center;
    }

    .icon-box-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* Center icon boxes text in Arabic mobile view */
    body[dir="rtl"] .icon-boxes-container .icon-box {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-content {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-title {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box p {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-side {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-icon {
        margin-bottom: 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Button Responsive */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        white-space: normal;
        word-wrap: break-word;
    }

    .btn-round {
        margin-bottom: 0.5rem;
    }

    /* Row and Column Responsive */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Global reset rules - commented out as not needed */
    /* * { max-width: 100%; box-sizing: border-box; } */

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra Small Devices */
@media (max-width: 575.98px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-content .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-header .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .breadcrumb-nav .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-content h1,
    .page-content h2 {
        font-size: 1.5rem;
    }

    .page-content h3 {
        font-size: 1.25rem;
    }

    .page-content p {
        font-size: 0.9rem;
    }

    .row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .row > [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Center icon boxes text in Arabic mobile view */
    body[dir="rtl"] .icon-boxes-container .icon-box {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-content {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-title {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box p {
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-side {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    body[dir="rtl"] .icon-boxes-container .icon-box-icon {
        margin-bottom: 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Center newsletter form and add border radius in Arabic mobile */
    body[dir="rtl"] .newsletter-form-footer {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body[dir="rtl"] .newsletter-form-footer .input-group,
    body[dir="rtl"] .footer .cta .input-group {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    body[dir="rtl"] .newsletter-form-footer .form-control,
    body[dir="rtl"] .newsletter-form-footer .form-control-white,
    body[dir="rtl"] .footer .cta .form-control,
    body[dir="rtl"] .footer .cta .form-control-white {
        border-radius: 25px !important;
        border-top-right-radius: 25px !important;
        border-bottom-right-radius: 25px !important;
        border-top-left-radius: 25px !important;
        border-bottom-left-radius: 25px !important;
        padding: 0.75rem 1.5rem !important;
        text-align: center !important;
        margin-right: 0.5rem !important;
    }

    body[dir="rtl"] .newsletter-form-footer .input-group-append,
    body[dir="rtl"] .footer .cta .input-group-append {
        margin-left: 0 !important;
    }

    body[dir="rtl"] .newsletter-form-footer .btn,
    body[dir="rtl"] .footer .cta .btn {
        border-radius: 25px !important;
        border-top-left-radius: 25px !important;
        border-bottom-left-radius: 25px !important;
        border-top-right-radius: 25px !important;
        border-bottom-right-radius: 25px !important;
        padding: 0.75rem 1.5rem !important;
        white-space: nowrap !important;
    }

    /* For input-group-round class - separate input and button with border radius on both sides */
    body[dir="rtl"] .input-group-round {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    body[dir="rtl"] .input-group-round .form-control {
        border-radius: 25px !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    body[dir="rtl"] .input-group-round .input-group-append {
        width: 100% !important;
        margin-left: 0 !important;
    }

    body[dir="rtl"] .input-group-round .btn {
        border-radius: 25px !important;
        width: 100% !important;
    }

    /* Brands Carousel Responsive - Arabic */
    body[dir="rtl"] .brands-carousel {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    body[dir="rtl"] .brands-carousel.owl-carousel {
        display: block;
    }

    body[dir="rtl"] .brands-carousel .owl-stage-outer {
        overflow: hidden;
        position: relative;
    }

    body[dir="rtl"] .brands-carousel .owl-stage {
        display: flex;
        align-items: center;
    }

    body[dir="rtl"] .brands-carousel .owl-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body[dir="rtl"] .brands-carousel .brand {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px;
        min-height: 140px;
        height: 100%;
        width: 100%;
    }

    body[dir="rtl"] .brands-carousel .brand img {
        max-width: 85%;
        height: auto;
        max-height: 140px;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Container adjustments for brands carousel - Arabic */
    body[dir="rtl"] .container .brands-carousel {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Brands Carousel - Small Mobile (480px+) - Arabic */
@media (min-width: 480px) {
    body[dir="rtl"] .brands-carousel .brand {
        min-height: 140px;
        padding: 25px;
    }

    body[dir="rtl"] .brands-carousel .brand img {
        max-height: 140px;
    }
}

/* Brands Carousel - Tablet and Desktop - Arabic */
@media (min-width: 768px) {
    body[dir="rtl"] .brands-carousel .brand {
        min-height: 80px;
        padding: 15px;
    }

    body[dir="rtl"] .brands-carousel .brand img {
        max-height: 80px;
    }
}

@media (min-width: 1024px) {
    body[dir="rtl"] .brands-carousel .brand {
        min-height: 100px;
        padding: 20px;
    }

    body[dir="rtl"] .brands-carousel .brand img {
        max-height: 100px;
    }
}
