:root {
    --primary-color: #F6400E;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #ffffff;
    --accent-color: #d1350b;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --section-bg: #fdfdfd;
    --border-color: #eeeeee;
    --input-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body.dark-mode {
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --bg-color: #121212;
    --secondary-color: #ffffff;
    --header-bg: rgba(18, 18, 18, 0.95);
    --card-bg: #1e1e1e;
    --section-bg: #181818;
    --border-color: #333333;
    --input-bg: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.action-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.action-btn:hover {
    color: var(--primary-color);
    background: rgba(246, 64, 14, 0.1);
    transform: translateY(-2px);
}

.action-btn.location-toggle {
    color: var(--primary-color);
    background: rgba(246, 64, 14, 0.12);
    border: 1.5px solid rgba(246, 64, 14, 0.2);
    animation: locationPulse 2s infinite;
}

.action-btn.location-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

@keyframes locationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 64, 14, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(246, 64, 14, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(246, 64, 14, 0);
    }
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
}

.profile-dropdown-menu {
    position: absolute;
    top: 60px;
    left: 0;
    /* Changed from right:0 to left:0 for RTL layout */
    background: var(--card-bg);
    min-width: 220px;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    display: none;
    z-index: 1001;
    animation: dropdownFade 0.3s ease;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    /* Start slightly above to slide DOWN */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
    /* Ensure it's displayed when active */
    flex-direction: column;
    /* Restore flex direction */
}

.profile-dropdown-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.profile-dropdown-menu a i {
    font-size: 1.1rem;
    color: var(--text-muted);
    /* Updated to use variable */
    transition: color 0.2s ease;
}

.profile-dropdown-menu a:hover {
    background: rgba(246, 64, 14, 0.1);
    color: var(--primary-color);
}

.profile-dropdown-menu a:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    /* Updated to use variable */
    margin: 8px 12px;
}

[dir="rtl"] .profile-dropdown-menu {
    left: 0;
    right: auto;
}

@media (max-width: 480px) {
    .profile-dropdown-menu {
        left: -10px;
        /* Slight offset to ensure it's comfortably on screen */
        min-width: 250px;
        width: calc(100vw - 40px);
        /* Responsive width on very small screens */
        max-width: 300px;
    }
}

/* Modern Slider - Renamed Classes to Bypass Cache */
.leo-slider-main {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 500px;
    margin: 120px auto 40px;
    overflow: hidden;
    background: #000;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    direction: ltr !important;
    /* Slider logic must stay LTR */
}

.leo-slider-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100%;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.leo-slide-item {
    flex: 0 0 100% !important;
    /* DO NOT SHRINK */
    width: 100% !important;
    min-width: 100% !important;
    height: 100%;
    position: relative;
}

.leo-slide-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 1.5s ease;
}

.leo-slide-item:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
    color: #fff;
    text-align: center;
    z-index: 5;
}

.slide-text {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    animation: fadeInUp 0.8s ease-out;
}

.leo-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.leo-dot.active {
    background: var(--primary-color);
    width: 35px;
    border-radius: 10px;
}

.leo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.leo-arrow:hover {
    background: var(--primary-color);
    color: #000;
}

.leo-arrow.prev {
    left: 20px;
}

.leo-arrow.next {
    right: 20px;
}

/* Categories Section */
.categories-section {
    padding: 50px 5%;
    background: #fff;
}

.categories-section .section-title {
    text-align: start;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Increased min-width */
    gap: 30px;
    max-width: 1200px;
    margin: 40px 0 0 0;
    margin-inline-end: auto;
    /* Push to the right in RTL, left in LTR */
    justify-items: flex-start;
    /* Consistent in RTL */
    direction: rtl;
    /* Ensure grid starts from the right */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-image-wrapper {
    width: 140px;
    /* Increased size from 110px */
    height: 140px;
    /* Increased size from 110px */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-item:hover .category-image-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(246, 64, 14, 0.2);
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(246, 64, 14, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(246, 64, 14, 0.6);
}

/* Offers Section */
.offers-section {
    padding: 50px 5%;
    background: var(--section-bg);
}

.offers-section .section-title {
    text-align: right;
    margin-bottom: 30px;
}

.offers-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 20px;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

.offers-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.offer-card {
    flex: 0 0 450px;
    /* Increased width to accommodate the new layout */
    min-height: 160px;
    border-radius: 25px;
    display: flex;
    align-items: stretch;
    /* Make children take full height */
    overflow: hidden;
    /* For rounded corners with image */
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.offer-icon-wrapper {
    width: 33.33%;
    height: 100%;
    overflow: hidden;
}

.offer-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the 1/3 width area */
}

.offer-details {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.offer-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
    width: fit-content;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.offer-vendor img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.offer-vendor span {
    font-size: 0.8rem;
    font-weight: 700;
}

.offer-details h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.offer-details p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Shops Section */
.shops-section {
    padding: 60px 5%;
    background: var(--bg-color);
}

.shops-section .section-title {
    text-align: start;
    margin-bottom: 40px;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
}

.auth-modal {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.3s ease-out;
    color: var(--text-color);
}

.shop-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-10px);
}

.shop-header {
    height: 140px;
    position: relative;
}

.shop-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-logo-wrapper {
    position: absolute;
    bottom: -35px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.shop-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.shop-body {
    padding: 45px 20px 20px;
    text-align: right;
}

.shop-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.shop-address {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-rating {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-rating i {
    font-size: 0.9rem;
}

.shop-meta {
    font-size: 0.85rem;
    color: #999;
}

/* Products Section */
.products-section {
    padding: 60px 5%;
    background: var(--section-bg);
}

.products-section .section-title {
    text-align: start;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-vendor-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--card-bg);
    padding: 5px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    z-index: 2;
}

.vendor-mini-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.vendor-mini-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price-box {
    display: flex;
    flex-direction: column;
}

.sale-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e74c3c;
}

.base-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.base-price.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
}

.add-to-cart-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: rotate(90deg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 50px 5%;
    text-align: center;
}

.footer-social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.feature-icon i {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(10deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.about {
    padding: 100px 5%;
    background: var(--bg-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image::after {
    content: 'LEO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
}

.contact {
    padding: 100px 5%;
    background: var(--section-bg);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    padding: 1rem;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 4%;
    }

    .nav-left-group {
        gap: 0.8rem;
    }

    .logo img {
        height: 35px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .action-btn {
        font-size: 1.1rem;
        padding: 5px;
    }

    .leo-slider-main {
        height: 300px;
        margin-top: 100px;
        border-radius: 20px;
        width: 92%;
    }

    .slide-text {
        font-size: 1.4rem;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Horizontal scrolling for categories on mobile */
    .categories-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 5% 20px;
        margin: 0 -5% 0 -5%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start !important;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        flex: 0 0 120px;
        scroll-snap-align: start;
    }

    .category-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: 0.85rem;
    }

    /* Horizontal scrolling for shops on mobile */
    .shops-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 5% 20px;
        margin: 0 -5% 0 -5%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .shops-grid::-webkit-scrollbar {
        display: none;
    }

    .shop-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .offer-card {
        flex: 0 0 320px;
        /* Slightly wider to keep text readable with 1/3 image */
        padding: 0;
        /* Remove padding to keep image edge-to-edge */
        min-height: 140px;
    }

    .offer-details {
        padding: 15px;
    }

    .offer-details h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .offer-details p {
        font-size: 0.85rem;
    }

    /* Horizontal scrolling for products on mobile */
    .products-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 5% 20px;
        margin: 0 -5% 0 -5%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }
}

/* Shimmer Animation */
.shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: block;
    position: relative;
    animation: shimmerEffect 1.5s linear infinite;
}

@keyframes shimmerEffect {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton-slider {
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.skeleton-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.skeleton-category-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.skeleton-category-text {
    width: 80px;
    height: 20px;
    border-radius: 4px;
}

.skeleton-offer {
    flex: 0 0 350px;
    height: 180px;
    border-radius: 20px;
}

.skeleton-shop {
    height: 350px;
    border-radius: 20px;
    width: 100%;
}

.skeleton-product {
    height: 380px;
    border-radius: 20px;
    width: 100%;
}

.skeleton-sub-category {
    flex: 0 0 140px;
    height: 120px;
    border-radius: 20px;
}

.skeleton-tab {
    width: 100px;
    height: 40px;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .skeleton-category-circle {
        width: 100px;
        height: 100px;
    }

    .skeleton-offer {
        flex: 0 0 280px;
    }

    .skeleton-shop {
        flex: 0 0 280px;
    }

    .skeleton-product {
        flex: 0 0 260px;
    }
}

/* Vendor Profile Styles */
.vendor-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.vendor-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.vendor-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 5%;
}

.back-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 80px;
    align-self: flex-start;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.vendor-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.vendor-profile-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #fff;
    flex-shrink: 0;
}

.vendor-titles {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vendor-page-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.vendor-page-address {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.vendor-page-address i {
    color: var(--primary-color);
}

.vendor-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Vendor Menu Section */
.vendor-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 5%;
}

.menu-tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tab-btn {
    flex: 0 0 auto;
    padding: 12px 28px;
    border: 2px solid #eee;
    border-radius: 50px;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
    white-space: nowrap;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.menu-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.menu-tab-btn.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-products-display {
    width: 100%;
}

.no-menu,
.no-products {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .vendor-hero {
        height: 350px;
    }

    .vendor-profile-logo {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .vendor-page-name {
        font-size: 1.5rem;
    }

    .vendor-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .vendor-actions-row {
        width: 100%;
        justify-content: flex-start;
    }

    .back-btn {
        margin-top: 70px;
    }

    .map-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .menu-products-display {
        width: 100%;
    }
}

/* Price Filter Styles - Dual Range Slider */
.price-filter-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-values-display {
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    gap: 10px;
    direction: ltr;
    /* Prices should be LTR even in RTL page */
}

.range-slider-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.range-slider-fill {
    position: absolute;
    height: 6px;
    background: var(--primary-color);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: none;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    z-index: 3;
    margin: 0;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.dual-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-color);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    padding-top: 5px;
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.close-modal:hover {
    background: #eee;
    color: #000;
}

.auth-toggle {
    display: flex;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.toggle-btn {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    color: #777;
}

.toggle-btn.active {
    background: #fff;
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInForm 0.4s ease;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(246, 64, 14, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Profile UI Styles */
.profile-header-modal {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 4px solid #f8b40020;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-modal h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
}

.profile-header-modal p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0 0;
}

.profile-details-list {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
}

.profile-upload-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
}

.edit-profile-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.upload-icon-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--secondary-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.upload-icon-btn:hover {
    transform: scale(1.1);
}

/* Product Popup Styles */
#productDetailsModal .auth-modal {
    max-width: 850px;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 30px;
}

.product-popup-content {
    display: flex;
    flex-direction: column !important;
    background: #fff;
    width: 100%;
}

.product-popup-image-wrapper {
    flex: 1.1;
    min-width: 300px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.product-popup-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 25px;
}

.product-popup-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-popup-vendor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-popup-vendor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.product-popup-vendor span {
    color: #888;
    font-size: 0.95rem;
    font-weight: 700;
}

.product-popup-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-popup-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.product-popup-price-row {
    margin-bottom: 35px;
}

.product-popup-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.product-popup-price.has-sale {
    color: #ff4d4d;
}

.product-popup-old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1.2rem;
    margin-right: 12px;
}

.product-popup-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    height: 60px;
    padding: 0 10px;
}

.quantity-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e5e5e5;
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 800;
    font-size: 1.2rem;
    pointer-events: none;
}

.add-cart-main-btn {
    flex: 1;
    height: 60px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.add-cart-main-btn:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .product-popup-content {
        flex-direction: column !important;
    }

    .product-popup-info {
        padding: 30px;
    }

    .product-popup-image-wrapper {
        padding: 20px;
    }
}

/* Cart Page Styles */
.cart-page-wrapper {
    padding-top: 100px;
    min-height: 100vh;
    background: #fdfdfd;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

.cart-header {
    margin-bottom: 40px;
    text-align: center;
}

.cart-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.vendor-tabs-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 25px;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.vendor-tabs-container::-webkit-scrollbar {
    display: none;
}

.vendor-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 50px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.vendor-tab.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vendor-tab img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.vendor-tab span {
    font-weight: 700;
    font-size: 1rem;
}

.cart-items-section {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    background: #fff;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.cart-item-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    background: #f9f9f9;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.remove-item-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff5f5;
    color: #ff4d4d;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.remove-item-btn:hover {
    background: #ff4d4d;
    color: #fff;
}

.checkout-summary {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #666;
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #f0f0f0;
    font-weight: 800;
    color: #16a34a;
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    height: 65px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #000;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-state i {
    font-size: 5rem;
    color: #eee;
    margin-bottom: 25px;
}

.empty-cart-state h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-cart-state a {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .cart-items-section {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

/* Address Section in Cart */
.address-section {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.add-address-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.add-address-btn:hover {
    background: var(--secondary-color);
}

.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.address-card {
    border: 2px solid #f5f5f5;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.address-card.active {
    border-color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.01);
}

.address-card .label {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.address-card .details {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

.address-card .check-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--secondary-color);
    display: none;
}

.address-card.active .check-icon {
    display: block;
}

/* Modal for Add Address */
.address-modal-content {
    max-width: 600px;
    padding: 40px;
}

.address-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.address-form .form-group {
    margin-bottom: 15px;
}

.address-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.address-form input,
.address-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfdfd;
}

.address-form input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* My Orders Page Styles */
.orders-page-wrapper {
    padding-top: 100px;
    min-height: 100vh;
    background: #fdfdfd;
}

.orders-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 5%;
}

.order-card {
    background: #fff;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-vendor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-vendor-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.order-vendor-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.order-status-badge {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
}

/* Status Colors */
.status-pending {
    background: #fff7ed;
    color: #9a3412;
}

.status-accepted {
    background: #f0fdf4;
    color: #166534;
}

.status-ready {
    background: #eff6ff;
    color: #1e40af;
}

.status-cancelled {
    background: #fef2f2;
    color: #991b1b;
}

.status-ongoing {
    background: #f5f3ff;
    color: #5b21b6;
}

.status-finished {
    background: #ecfdf5;
    color: #065f46;
}

.status-rated {
    background: #fdf2f8;
    color: #9d174d;
}

.order-card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-label {
    font-size: 0.8rem;
    color: #999;
}

.order-detail-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.view-order-btn {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Order Details Modal */
.order-details-modal-content {
    max-width: 650px;
    padding: 40px !important;
}

.order-items-list {
    margin-top: 20px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.order-item-meta {
    font-size: 0.9rem;
    color: #888;
}

/* LTR OVERRIDES FOR BILINGUAL SUPPORT */
[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .categories-section .section-title,
[dir="ltr"] .offers-section .section-title,
[dir="ltr"] .shops-section .section-title,
[dir="ltr"] .products-section .section-title,
[dir="ltr"] .shop-body,
[dir="ltr"] .product-body,
[dir="ltr"] .footer-brand p,
[dir="ltr"] .nav-links,
[dir="ltr"] .profile-dropdown-menu,
[dir="ltr"] .cart-summary h2,
[dir="ltr"] .checkout-container label,
[dir="ltr"] .search-section-title,
[dir="ltr"] .vendor-info-content h1,
[dir="ltr"] .vendor-info-content p,
[dir="ltr"] .vendor-info-content .shop-meta,
[dir="ltr"] .cart-item-info,
[dir="ltr"] .checkout-summary-item {
    text-align: left !important;
}

[dir="ltr"] .categories-grid,
[dir="ltr"] .shops-grid,
[dir="ltr"] .products-grid,
[dir="ltr"] .menu-categories,
[dir="ltr"] .vendor-products-grid {
    direction: ltr !important;
}

[dir="ltr"] .shop-logo-wrapper {
    right: auto !important;
    left: 20px !important;
}

[dir="ltr"] .leo-arrow.prev {
    left: auto !important;
    right: 20px !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

[dir="ltr"] .leo-arrow.next {
    right: auto !important;
    left: 20px !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

[dir="ltr"] .search-icon {
    left: 20px !important;
    right: auto !important;
}

[dir="ltr"] .search-input {
    padding-left: 50px !important;
    padding-right: 20px !important;
}

[dir="ltr"] .category-search-input {
    padding-left: 50px !important;
    padding-right: 20px !important;
}

[dir="ltr"] .search-icon-inside {
    left: 20px !important;
    right: auto !important;
}

[dir="ltr"] .cart-item-img {
    margin-right: 15px !important;
    margin-left: 0 !important;
}

[dir="ltr"] .cart-item-remove {
    left: auto !important;
    right: 15px !important;
}

[dir="ltr"] .order-item-img {
    margin-right: 15px !important;
    margin-left: 0 !important;
}

[dir="ltr"] .offer-vendor {
    direction: ltr !important;
}