@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --brand-blue: #1A73E8;
    --brand-orange: #FF7A00;
    --brand-dark: #202124;
    --brand-light: #F8F9FA;
    --brand-gray: #5F6368;
    --brand-white: #FFFFFF;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f7f9fc;
    color: var(--brand-dark);
    direction: rtl;
    text-align: right;
    margin-bottom: 0;
}

/* Navbar Enhancements */
.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 800;
    color: var(--brand-blue) !important;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--brand-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-blue) !important;
    opacity: 1;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #e8b92d 0%, #1f8437 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 1.5rem;
    text-align: center;
}

.welcome-image-link {
    display: block;
}

.welcome-image {
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 16px;
    background: white;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.welcome-image:hover {
    transform: scale(1.05);
}

.welcome-text {
    color: white;
    text-align: center;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-text {
        text-align: center;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .welcome-image {
        max-height: 140px;
    }
}
/* Hero Section */
.hero-carousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
}

.hero-slide {
    height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Default LTR, RTL handling below */
}

/* RTL Support for Hero */
body[dir="rtl"] .hero-slide {
    justify-content: flex-start; /* In RTL flex-start is Right */
}

/* Removed global overlay in favor of card */
.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    max-width: 45%;
    margin-right: 5%;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    color: var(--brand-dark);
    text-align: right;
    border: 1px solid rgba(255,255,255,0.4);
}

@media (max-width: 991px) {
    .hero-slide {
        height: auto;
        min-height: 450px;
    }
    .hero-content {
        max-width: 90%;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        /* background: rgba(255, 255, 255, 0.85); */
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
}

.hero-content h1 {
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    color: var(--brand-dark);
}

.hero-content h1 span {
    color: var(--brand-orange);
    position: relative;
    display: inline-block;
}

.hero-content p {
    color: var(--brand-white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Product Section */
.section-title {
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-orange);
    border-radius: 2px;
}

.product-card {
    background: var(--brand-white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.price-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.badge-sale {
    position: absolute;
    top: 15px; right: 15px;
    background-color: var(--brand-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.85rem;
    color: var(--brand-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
    text-decoration: none;
}

/* Buttons */
.btn-brand {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-brand-primary {
    background: var(--brand-blue);
    color: white;
    border: none;
}

.btn-brand-primary:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
    color: white;
}

.btn-brand-outline {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    background: transparent;
}

.btn-brand-white {
    background: white;
    color: var(--brand-blue);
    border: none;
    font-weight: 700;
}

.btn-brand-white:hover {
    background: var(--brand-light);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Categories Section */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.category-card:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 115, 232, 0.15);
}

/* Soft Sidebar Style */
.category-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-orange);
}

.category-card:hover i {
    color: white;
}

/* Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

/* Footer */
footer {
    background: var(--brand-dark);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 2rem;
    color: var(--brand-blue);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 10px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--brand-orange);
    color: white;
    transform: rotate(360deg);
}
