/* RTL Support */
body {
    direction: rtl;
}

/* Navigation Bar Styling */
.navbar {
    position: sticky;
    top: 0;                       /* Sticks at the top of the viewport */
    z-index: 1040;                /* Ensures it's above most elements */
    background-color: #870E85;    /* Purple background for visibility */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    color: white;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: white;
    font-size: 1.1rem;
    padding-left: 15px;
}

.navbar-nav .nav-link:hover {
    color: #DDA0DD; /* Lighter purple for hover */
}

/* Navbar Toggler Styling */
.navbar-toggler {
    border: none;
    outline: none;
    margin-left: 10px;
}

.navbar-toggler-icon {
    position: relative;
    width: 30px;
    height: 3px;
    background-color: gold;
    display: block;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: gold;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Cart Icon Styling */
.cart-icon {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    margin-right: auto;
}

.cart-icon .badge {
    margin-right: 5px;
    background-color: #DDA0DD; /* Light purple badge */
}

.navbar-brand img {
    height: 50px; /* Adjust height of the logo */
    max-height: 100%; /* Ensure it doesn't exceed the navbar height */
    width: auto;
    background-color: #870E85; /* Keep the logo aspect ratio */
}

/* Footer Styling */
footer {
    background-color: #870E85; /* Deep purple */
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin: 0 10px;
}

.social-icons a:hover {
    color: #DDA0DD; /* Hover with lighter purple */
}

/* Toast Notification Styling */
#toast-container {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1050;
}
