﻿ 
body {
    font-family: 'Cairo', 'Inter', sans-serif; /* Prioritize Cairo, fallback to Inter */
    direction: rtl; /* Default to RTL for Arabic */
    text-align: right; /* Default text alignment for Arabic */
    background-color: #f8f8f8; /* Lighter background for a cleaner look */
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}
/* Hide scrollbar for category strip and banner carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* Custom styles for language buttons */
.language-button {
    display: flex;
    align-items: center;
    gap: 6px; /* Increased space for better visual separation */
    padding: 8px 12px; /* Increased padding for larger touch target */
    border-radius: 12px; /* More rounded corners */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out; /* Add transform for hover effect */
    font-size: 0.95rem; /* Slightly larger font */
    font-weight: 600; /* Semi-bold by default */
    color: #4a5568; /* Darker gray for better contrast */
}

    .language-button:hover {
        background-color: #edf2f7; /* Lighter hover background */
        transform: translateY(-2px); /* Subtle lift effect */
    }

    .language-button.active {
        background-color: #e2e8f0; /* Slightly darker gray for active */
        font-weight: 700; /* Bold for active */
        color: #2d3748; /* Even darker text for active */
    }

    .language-button img {
        width: 20px; /* Flag size, slightly smaller for header */
        height: 14px;
        border-radius: 2px;
        border: 0.5px solid #cbd5e0; /* Very light border for flags */
    }

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    background-color: white;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Stronger, softer shadow */
    z-index: 1000;
    min-width: 180px; /* Slightly wider */
    top: 100%; /* Position below the trigger */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for true centering */
    margin-top: 10px; /* More space below the trigger */
    overflow: hidden; /* For rounded corners */
    border: 1px solid #e2e8f0; /* Subtle border */
}

.dropdown-menu-item {
    padding: 12px 20px; /* More padding */
    cursor: pointer;
    color: #2d3748; /* Darker text for better readability */
    transition: background-color 0.2s ease-in-out;
    text-align: right; /* For RTL */
    font-weight: 500; /* Medium font weight */
}

    .dropdown-menu-item:hover {
        background-color: #f0f4f8; /* Lighter hover background */
    }

/* Card styles for categories and offers */
.card {
    background-color: white;
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .card:hover {
        transform: translateY(-5px); /* Lift effect on hover */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    }

/* Specific adjustments for mobile layout */
@media (max-width: 639px) { /* Tailwind's 'sm' breakpoint */
    .header-mobile-stack > div {
        width: 100%;
        justify-content: center; /* Center items in stacked layout */
    }

        .header-mobile-stack > div:not(:last-child) {
            margin-bottom: 1rem; /* Space between stacked items */
        }

    .language-button {
        font-size: 0.9rem; /* Slightly smaller font for mobile buttons */
        padding: 6px 10px;
    }
    /* Adjust Category Icons Section for 5 items on mobile */
    .category-icon-item {
        flex-shrink: 0;
        /* Calculate width to show 5 items with space-x-4 (16px) */
        width: calc(20% - 0.8rem); /* 0.8rem = 12.8px (16px / 5 * 4) */
        aspect-ratio: 1 / 1; /* Make it square */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Remove padding to let image fill */
        overflow: hidden; /* Ensure image doesn't overflow rounded corners */
    }

        .category-icon-item img {
            width: 100%; /* Image fills its container */
            height: 100%; /* Image fills its container */
            object-fit: cover; /* Cover the area, cropping if necessary */
            border-radius: 12px; /* Apply rounded corners directly to image */
            margin-bottom: 0; /* No margin below image as text is removed */
        }

    .category-icon-container {
        justify-content: flex-start; /* Align items to start for horizontal scroll */
        padding-left: 1rem; /* Add padding to show half of the first item */
        padding-right: 1rem; /* Add padding to show half of the last item */
        box-sizing: border-box; /* Ensure padding is included in total width */
    }

        .category-icon-container > .category-icon-item {
            scroll-snap-align: start;
        }
}
 
