:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Arabic Font Support */
body.arabic {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* RTL Support */
[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .start-0 {
    left: auto !important;
    right: 0 !important;
}

[dir="rtl"] .start-100 {
    left: auto !important;
    right: 100% !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

/* Header Logo - SVG */
.header-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navbar Styles */
.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%) !important;
}

/* Search Container - FIXED */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: white;
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-button {
    border: none;
    background: white;
    color: var(--primary-color);
    padding: 0 20px;
    font-size: 1.1rem;
}

.search-button:hover {
    background: #f8f9fa;
    color: #0056b3;
}

/* Search Results Dropdown - FIXED */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:first-child {
    border-radius: 12px 12px 0 0;
}

.search-result-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

/* Login/Register Button */
.login-register-btn {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.login-register-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Header Icons - FIXED */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    position: relative;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.header-icon-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.icon-wrapper {
    position: relative;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Favorite Button - VISIBLE */
.favorite-btn {
    background: rgba(255, 255, 255, 0.1);
}

.favorite-btn:hover {
    background: rgba(220, 53, 69, 0.3);
}

.favorite-btn:hover i {
    color: #ff6b6b;
}

/* Notification Button */
.notification-btn {
    background: rgba(255, 255, 255, 0.1);
}

.notification-btn:hover {
    background: rgba(255, 193, 7, 0.3);
}

/* Cart Button */
.cart-btn {
    background: rgba(255, 255, 255, 0.1);
}

.cart-btn:hover {
    background: rgba(40, 167, 69, 0.3);
}

/* Badge Count - FIXED */
.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-count.bg-warning {
    background: #ffc107 !important;
    color: #000;
    border-color: #ffc107;
}

/* Category Navigation */
.category-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 56px;
    z-index: 1020;
}

.category-nav .nav-link {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 0 2px;
    color: #555 !important;
}

.category-nav .nav-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Categories Section */
.categories-section {
    padding: 2rem 0;
    background: #fff;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover .category-circle {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 1.8rem;
}

.category-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* Product Section */
.product-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.view-all-btn {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Product Cards */
.product-card {
    border: none;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 12px;
    aspect-ratio: 1;
    margin-bottom: 0.75rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Best Seller Badge */
.badge-best-seller {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .badge-best-seller {
    left: auto;
    right: 10px;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 1rem;
}

[dir="rtl"] .wishlist-btn {
    right: auto;
    left: 10px;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--danger-color);
    color: white;
}

.wishlist-btn.active i {
    font-weight: 900;
}

/* Add to Cart Button */
.add-to-cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--success-color);
    font-size: 1.1rem;
}

[dir="rtl"] .add-to-cart {
    right: auto;
    left: 10px;
}

.add-to-cart:hover {
    background: var(--success-color);
    color: white;
    transform: scale(1.1);
}

.add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Product Info */
.product-info {
    padding: 0.5rem;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.product-description {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Price with SAR Symbol */
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sar-symbol-img {
    height: 1em !important;
    width: auto !important;
    max-width: 20px !important;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    flex-shrink: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.25rem;
    border-radius: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
}

.remove-btn {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    color: #a71d2a;
    transform: scale(1.05);
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-cart i {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

/* Wishlist Page */
.wishlist-item {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--danger-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

[dir="rtl"] .remove-wishlist {
    right: auto;
    left: 10px;
}

.remove-wishlist:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 0.5s ease;
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Toast Customization */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .header-logo {
        height: 35px;
    }

    .login-register-btn span {
        display: none;
    }

    .header-icon-btn {
        width: 40px;
        height: 40px;
    }

    .icon-wrapper {
        font-size: 1.1rem;
    }

    .nav-icons {
        gap: 4px;
    }

    .category-circle {
        width: 55px;
        height: 55px;
    }

    .category-icon {
        font-size: 1.4rem;
    }

    .category-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        margin: 0 10px;
    }

    .product-image-wrapper {
        aspect-ratio: 1;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cart-item-image {
        width: 150px;
        height: 150px;
    }

    .quantity-control {
        justify-content: center;
    }

    .hero-banner {
        min-height: 250px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .badge-best-seller {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .wishlist-btn,
    .add-to-cart {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .header-logo {
        height: 30px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .icon-wrapper {
        font-size: 1rem;
    }

    .badge-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
    }

    .product-title {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Hide scrollbar for category nav */
.category-nav .nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-nav .nav::-webkit-scrollbar {
    display: none;
}

/* Language Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item.active {
    background-color: var(--primary-color);
}

/* Sticky effects */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: auto;
}

.social-icons .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Heart animation */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.favorite-btn:hover i {
    animation: heartbeat 0.8s ease infinite;
}
/* Payment Methods */
.payment-methods {
    margin-bottom: 1rem;
}

.payment-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-icon {
    height: 35px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

/* RTL Support for Payment Icons */
[dir="rtl"] .payment-icons {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-icon {
        height: 30px;
        padding: 3px 6px;
    }

    .payment-icons {
        gap: 6px;
    }
}

/* Blue Footer Styles */
.footer-blue {
    background: linear-gradient(135deg, #f3f4f8 0%, #f3f4f8 100%);
    color: rgb(83, 83, 83);
    margin-top: auto;
}

.footer-main {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgb(59, 59, 59);
    opacity: 0.9;
}

/* App Buttons */
.app-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4e4e4e;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 40px;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.app-btn img {
    height: 24px;
    width: auto;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 35px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0c71fd;
    /* Yellow like in screenshot */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #333;
    text-decoration: none;
}

/* Specific social colors on hover */
.social-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-btn.twitter:hover {
    background: #000;
    color: white;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Footer Links Bar */
.footer-links {
    background: rgba(221, 221, 221, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgb(48, 47, 47);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: rgb(53, 53, 53);
    opacity: 1;
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgb(53, 66, 104);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(235, 234, 234, 0.2);
}

.company-info {
    font-size: 0.8rem;
    opacity: 0.8;
    color: rgba(46, 46, 46, 0.9);
}

/* RTL Support */
[dir="rtl"] .footer-blue .text-lg-end {
    text-align: left !important;
}

[dir="rtl"] .footer-blue .justify-content-md-end {
    justify-content: flex-start !important;
}

[dir="rtl"] .social-icons,
[dir="rtl"] .payment-icons {
    flex-direction: row-reverse;
}

[dir="rtl"] .app-buttons {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-blue .text-lg-end {
        text-align: center !important;
    }

    .footer-blue .justify-content-md-end {
        justify-content: center !important;
    }

    .social-icons,
    .payment-icons {
        justify-content: center !important;
    }

    .app-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-title {
        text-align: center;
    }

    .payment-icon {
        height: 30px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-nav {
        justify-content: center !important;
        gap: 15px;
    }

    .copyright {
        text-align: center;
        display: block;
    }

    .company-info {
        font-size: 0.75rem;
    }
}


/* EMERGENCY FIX - Language Dropdown */
.dropdown-menu.show {
    display: block !important;
    z-index: 99999 !important;
    position: absolute !important;
    inset: 0px 0px auto auto !important;
    transform: translate(0px, 40px) !important;
}

.navbar .dropdown {
    position: relative !important;
    z-index: 9999 !important;
}

/* Categories with PNG Images */
.categories-section {
    padding: 2rem 0;
    background: #fff;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.category-item:hover .category-circle {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* PNG Icon Image */
.category-icon-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon-img {
    transform: scale(1.1);
}

/* Font Awesome Fallback Icon */
.category-icon-fallback {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon-fallback {
    transform: scale(1.1);
}

.category-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 991px) {
    .category-circle {
        width: 60px;
        height: 60px;
    }

    .category-icon-img {
        width: 70px;
        height: 70px;
    }

    .category-icon-fallback {
        font-size: 1.5rem;
    }

    .category-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .category-circle {
        width: 55px;
        height: 55px;
    }

    .category-icon-img {
        width: 80px;
        height: 80px

    .category-icon-fallback {
        font-size: 1.4rem;
    }

    .category-label {
        font-size: 0.65rem;
    }
}

/* Fix Language Dropdown - Must be on top */
.dropdown {
    position: relative;
    z-index: 9999 !important;
}

.dropdown-menu {
    z-index: 10000 !important;
    position: absolute !important;
    top: 100% !important;
    margin-top: 5px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 12px !important;
    min-width: 150px !important;
}

/* Ensure navbar doesn't block dropdown */
.navbar {
    z-index: 1030;
    position: relative;
}

.category-nav {
    z-index: 1020;
    position: relative;
}

.hero-banner {
    z-index: 1;
    position: relative;
}

/* Fix any overflow hidden issues */
.navbar .container-fluid {
    overflow: visible !important;
}

/* LARGER Hero Banner */
.hero-banner {
    position: relative;
    min-height: 500px !important;
    /* INCREASED from 400px */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner .container-fluid {
    position: relative;
    z-index: 2;
}

/* Hero Image - Right Side */
.hero-banner .col-md-6:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner img {
    max-height: 400px !important;
    /* INCREASED */
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Better text sizing */
.hero-content h1 {
    font-size: 3.5rem !important;
    /* Larger title */
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.3rem !important;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-banner {
        min-height: 400px !important;
    }

    .hero-banner img {
        max-height: 250px !important;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 350px !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-banner img {
        max-height: 200px !important;
    }
}

/* BIGGER Category Images */
.categories-section {
    padding: 40px 0;
    background: #fff;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-circle {
    width: 100px !important;
    /* INCREASED from 70px */
    height: 100px !important;
    /* INCREASED from 70px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: #f8f9fa;
    border: 3px solid #e0e0e0;
    /* Thicker border */
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-icon-img {
    width: 55px !important;
    /* INCREASED from 35px */
    height: 55px !important;
    /* INCREASED from 35px */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-label {
    font-size: 14px !important;
    /* INCREASED from 12px */
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Hover effect */
.category-item:hover .category-circle {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.category-item:hover .category-icon-img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991px) {
    .category-circle {
        width: 85px !important;
        height: 85px !important;
    }

    .category-icon-img {
        width: 45px !important;
        height: 45px !important;
    }

    .category-label {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .category-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .category-icon-img {
        width: 40px !important;
        height: 40px !important;
    }

    .category-label {
        font-size: 11px !important;
    }
}
/* LARGER Hero Banner */
.hero-banner {
    position: relative;
    min-height: 500px !important;
    /* INCREASED from 400px */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner .container-fluid {
    position: relative;
    z-index: 2;
}

/* Hero Image - Right Side */
.hero-banner .col-md-6:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner img {
    max-height: 400px !important;
    /* INCREASED */
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Better text sizing */
.hero-content h1 {
    font-size: 3.5rem !important;
    /* Larger title */
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.3rem !important;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-banner {
        min-height: 400px !important;
    }

    .hero-banner img {
        max-height: 250px !important;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 350px !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-banner img {
        max-height: 200px !important;
    }
}