/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #292f36;
    --light-color: #f7f7f7;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
}

body {
    background-color: var(--light-color);   
}
.profile-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .profile-img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
    }

    .profile-name {
      font-size: 20px;
      font-weight: bold;
      margin-top: 10px;
    }

    .profile-email {
      color: #666;
      margin-bottom: 20px;
    }

    .settings {
      font-size: 18px;
      color: #888;
      cursor: pointer;
    }
      

    .logout-btn {
      display: block;
      width: 100%;
      padding: 10px;
      margin-top: 20px;
      background-color: #ff5252;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .logout-btn:hover {
      background-color: #c0392b;
    }

    .orders-section {
      margin-top: 25px;
      padding-top: 15px;
      border-top: 1px solid #eee;
    }

    .orders-title {
      font-weight: bold;
      margin-bottom: 10px;
    }

    .order-item {
      background: #f9f9f9;
      padding: 10px;
      border-radius: 5px;
      margin-bottom: 8px;
      font-size: 14px;
    }
    .profile-container {
      max-width: 400px;
      margin: 0 auto;
      background: white;
      padding: 20px;
      margin-top: 60px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

.web-footer{
    display: none !important;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ff5252;
    border-color: #ff5252;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.lead{
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    color: white !important;
    text-align: center !important;

}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-content-wrapper{
    /* padding: 0 !important; */
    width: 100% !important;
}

/* Header */
.announcement-bar {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
}

.navbar {
    
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.custom-navbar{
    display: block !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
            overflow: hidden;
            position: relative;
            height: 600px; /* Fixed height for the slider */
}
.hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
.hero-slide.active {
    opacity: 1;
}

.hero-content {
    width: 80%;
    max-width: 600px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-slide img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

/* Categories Section */
  /* Unique ID to increase specificity */
        #custom-categories-section {
            background-color: #ffffff !important;
            padding: 5rem 0 !important;
            text-align: center !important;
        }

        #custom-categories-section h2 {
            font-weight: 800 !important;
            color: #2c3e50 !important;
            margin-bottom: 3rem !important;
            letter-spacing: 1px !important;
            font-size: 2.5rem !important;
        }

        #custom-categories-section .container {
            max-width: 1200px !important;
            margin: 0 auto !important;
            padding: 0 1rem !important;
        }

        #custom-categories-section .row {
            display: grid !important;
            grid-template-columns: repeat(4, 1fr) !important;
            gap: 2rem !important;
        }

        #custom-categories-section .col {
            display: flex !important;
            justify-content: center !important;
        }

        #custom-categories-section .category-card {
            display: block !important;
            text-decoration: none !important;
            transition: transform 0.4s ease, box-shadow 0.4s ease !important;
            width: 100% !important;
            max-width: 250px !important;
        }

        #custom-categories-section .category-card:hover {
            transform: scale(1.05) !important;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
        }

        #custom-categories-section .card {
            background-color: #f9f9f9 !important;
            border-radius: 15px !important;
            overflow: hidden !important;
            border: 1px solid #e0e0e0 !important;
            text-align: center !important;
        }

        #custom-categories-section .card-img-top {
            width: 160px !important;
            height: 160px !important;
            object-fit: cover !important;
            margin: 2rem auto 1rem !important;
            border: 4px solid #ffffff !important;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
            transition: border-color 0.4s ease, box-shadow 0.4s ease !important;
            border-radius: 50% !important;
        }

        #custom-categories-section .category-card:hover .card-img-top {
            border-color: #ff5252 !important;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
        }

        #custom-categories-section .card-body {
            padding: 1.5rem 1rem !important;
        }

        #custom-categories-section .card-title {
            font-size: 1.3rem !important;
            font-weight: 700 !important;
            color: #2c3e50 !important;
            margin: 0 !important;
            transition: color 0.4s ease !important;
        }

        #custom-categories-section .category-card:hover .card-title {
            color: #ff5252 !important;
        }

        @media (max-width: 767px) {
            #custom-categories-section .row {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 1.5rem !important;
            }

            #custom-categories-section .category-card {
                max-width: 200px !important;
            }

            #custom-categories-section .card-img-top {
                width: 130px !important;
                height: 130px !important;
            }

            #custom-categories-section .card-title {
                font-size: 1.15rem !important;
            }

            #custom-categories-section {
                padding: 3rem 0 !important;
            }
        }

        @media (max-width: 480px) {
            #custom-categories-section .row {
                grid-template-columns: 1fr !important;
            }

            #custom-categories-section .category-card {
                max-width: 100% !important;
            }
        }

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.wishlist-icon button {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wishlist-icon button:hover {
    opacity: 1;
}

/* Banner Section */
.banner-section img {
    transition: transform 0.3s ease;
}

.banner-section:hover img {
    transform: scale(1.02);
}

/* Testimonials */
.testimonials-section .card {
    transition: transform 0.3s ease;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
}

/* Newsletter */
.newsletter-section {
    background-color: #f8f9fa;
}

.newsletter-form .form-control {
    height: 50px;
}

.newsletter-form .btn {
    height: 50px;
}

/* Footer */
footer {
    background-color: #f8f9fa;
}

footer h5 {
    font-weight: 600;
}

footer .social-icons a {
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .category-card img {
        height: 120px;
        width: 120px;
    }
     .category-card .card-img-top {
                width: 130px;
                height: 130px;
            }
            .category-card .card-title {
                font-size: 1.15rem;
            }
            .categories-section {
                padding: 3rem 0;
            }
    
    .product-card img {
        height: 150px;
    }
}

/* RTL Specific Styles */
html[data-lang="ar"] {
    direction: rtl;
}

html[data-lang="ar"] .navbar-nav {
    padding-right: 0;
}

html[data-lang="ar"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[data-lang="ar"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[data-lang="ar"] .me-2, 
html[data-lang="ar"] .me-3 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[data-lang="ar"] .ms-2, 
html[data-lang="ar"] .ms-3 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}