﻿html[dir="rtl"] html body {
    overflow-x: hidden;
}




.cart_down_area {
    position: absolute;
    right: 0;
}

.cart_down_area {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
}


html[dir="rtl"] .cart_down_area {
    right: auto !important;
    left: 0 !important;
}

.cart_down_area {
    max-width: calc(100vw - 20px); /* avoids going outside screen */
    overflow-x: auto; /* in case of too wide content */
}

.delete-btn {
    order: 2; /* default: right for LTR */
}

.rtl-order {
    order: -1; /* move to left in RTL */
}

#mobileSidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px;
    height: 100vh;
    background-color: #111;
    z-index: 1050;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

/* LTR: Sidebar opens from LEFT */
html[dir="ltr"] #mobileSidebar {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

    html[dir="ltr"] #mobileSidebar.active {
        transform: translateX(0);
    }

/* RTL: Sidebar opens from RIGHT */
html[dir="rtl"] #mobileSidebar {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

    html[dir="rtl"] #mobileSidebar.active {
        transform: translateX(0);
    }

/* Overlay always full screen */
#menuOverlay {
    position: fixed;
    inset: 0;
    background-color: transparent;
    z-index: 1040;
    display: none;
}

    #menuOverlay.active {
        display: block;
    }

.header-bottom {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: white; /* or your header background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optional shadow for effect */
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: white;
}


.gold-price-bar {
    background-color: #000;
    color: white;
    /*   padding: 8px 0; */
    font-weight: bold;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 99;
    white-space: nowrap;
    overflow: hidden;
}

.price-box {
    display: inline-block;
    margin-right: 50px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #111;
    border: 1px solid #444;
}

.price-up {
    color: lawngreen !important;
    margin-left: 8px;
}

.price-down {
    color: #ff4d4d; /* Red */
    margin-left: 8px;
}

.flash-up {
    background-color: #003300 !important;
    transition: background-color 0.5s ease;
}

.flash-down {
    background-color: #330000 !important;
    transition: background-color 0.5s ease;
}
.header-logo-img {
    max-height: 70px;
    max-width: 100px;
}


@@media (max-width: 767px) {
    .header-bottom {
        padding: 10px 0px 0px 0px !important;
    }

    .header-logo-img {
        max-height: 50px;
        max-width: 50px;
    }
}

.price-box {
    margin-right: 25px;
    font-weight: bold;
    font-size: 16px;
}

    .price-box.flash-up {
        background-color: rgba(0, 255, 0, 0.2);
        transition: background-color 0.5s ease;
    }

    .price-box.flash-down {
        background-color: rgba(255, 0, 0, 0.2);
        transition: background-color 0.5s ease;
    }

.price-up {
    color: green !important;
}

.price-down {
    color: red !important;
}