 :root {
     --primary-color: #000000;
     --secondary-color: #f8f9fa;
     --accent-color: #e63946;
     --light-accent: #f8d7da;
     --dark-accent: #c82333;
     --text-color: #333333;
     --text-light: #777777;
 }

 body {
     font-family: 'Tajawal', sans-serif;
     color: var(--text-color);
     overflow-x: hidden !important;

 }

 /* Logo styles */
 .logo img {
     max-width: 180px;
     height: auto;
     max-height: 70px;
 }

 /* Header Styles */
 .top-header {
     padding: 10px 0;
     border-bottom: 1px solid #eee;
 }

 .search-box {
     max-width: 500px;
     width: 100%;
 }

 .search-box .input-group {
     border-radius: 50px;
     overflow: hidden;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }

 .search-input {
     border: none;
     padding: 12px 18px;
     font-size: 0.95rem;
 }

 .search-input:focus {
     box-shadow: none;
     outline: none;
 }

 .btn-search {
     background: #d20c0c;
     color: #fff;
     padding: 0 18px;
     border: none;
 }

 .btn-search:hover {
     background: #e63939;
 }

 /* Category Bar - Desktop */
 .category-bar {
     background-color: #000000;
     padding: 5px 0;
     font-size: 15px !important;
 }

 .navbar-nav {
     flex-wrap: wrap;
     /* تخلي العناصر تنزل سطر جديد لو مفيش مساحة */
 }

 .category-bar .nav-link {
     color: #ffffff;
     padding: 8px 12px;
 }

 .category-bar .nav-link:hover {
     color: #009a4e;
 }

 .dropdown-menu {
     min-width: 200px;
     border-radius: 0;
     border: 1px solid #ddd;
 }

 .dropdown-menu a {
     font-size: 0.9rem;
 }

 /* mobile-styles.css - تحسينات للهاتف المحمول */

 /* 1. تحسين زر الفئات (Navbar Toggler) للهواتف */
 @media (max-width: 991.98px) {
     .navbar-toggler {
         background-color: #ffffff !important;
         border-color: #ddd !important;
         color: #000000 !important;
         box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
         width: 100%;
         margin: 10px 0;
         padding: 10px 15px;
         border-radius: 8px !important;
         display: flex;
         align-items: center;
         justify-content: center;
     }

     .navbar-toggler:focus {
         box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
     }

     .navbar-toggler-icon {
         background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
         margin-left: 8px;
     }

     .navbar-toggler .ms-2 {
         color: #000000 !important;
         font-weight: 600;
         font-size: 1rem;
     }

     /* Remove dark background on mobile */
     .category-bar {
         background-color: transparent;
         padding: 0;
     }

     /* Make navbar toggler more visible */
     .navbar-toggler {
         background-color: #f8f9fa;
         border: 1px solid #ddd;
     }

     .navbar-toggler-icon {
         filter: none;
     }

     /* Style mobile menu items */
     #categoryMenu {
         background-color: white;
         padding: 15px;
         margin-top: 10px;
         border-radius: 5px;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     }

     .navbar-nav .nav-link {
         color: #333 !important;
         padding: 10px 15px;
         border-bottom: 1px solid #eee;
     }

     /* Right-to-left dropdown for mobile */
     .navbar-nav .dropdown-menu {
         position: static;
         float: none;
         width: 100%;
         border: none;
         box-shadow: none;
         padding-right: 1rem;
         margin-right: 15px;
         background-color: #f8f9fa;
     }

     .dropdown-item {
         padding: 8px 25px;
     }
 }

 /* 2. تحسين تخطيط الأيقونات في الهواتف */
 @media (max-width: 991.98px) {
     .top-header .row {
         flex-direction: column;
     }

     .top-header .col-lg-4 {
         width: 100%;
         justify-content: center !important;
         margin: 5px 0;
     }

     .icons-container {
         display: flex;
         justify-content: center;
         width: 100%;
         padding: 10px 0;
         border-top: 1px solid #eee;
         margin-top: 10px;
     }
 }

 /* 3. زيادة ارتفاع الـ carousel على الهواتف */
 @media (max-width: 991.98px) {
     .carousel-mobile {
         height: 250px !important;
     }

     .carousel-mobile .carousel-item,
     .carousel-mobile .carousel-item img {
         height: 250px;
         object-fit: cover;
     }
 }

 /* إخفاء التعديلات الخاصة بالموبايل في وضع الديسكتوب */
 @media (min-width: 992px) {
     .carousel-mobile {
         height: 400px !important;
     }

     .carousel-mobile .carousel-item,
     .carousel-mobile .carousel-item img {
         height: 400px;
     }
 }

 /* Background Utility */
 .changbg {
     background-color: #f5f5f5;
 }


 /* Default carousel height (desktop) */
 .carousel {
     max-height: 100%;
     /* Adjust this value for desktop height */
     overflow: hidden;
 }

 .carousel-inner,
 .carousel-item,
 .carousel-item img {
     height: 100%;
     object-fit: cover;
 }

 /* Cards */
 .category-card {
     background-color: white;
     border-radius: 10px;
     padding: 25px 20px;
     text-align: center;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
     height: 100%;
     border: 1px solid #eee;
 }

 .category-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     border-color: var(--light-accent);
 }

 .category-icon {
     font-size: 2.5rem;
     color: var(--accent-color);
     margin-bottom: 15px;
 }

 .medicine-card {
     background-color: white;
     border-radius: 10px;
     padding: 20px;
     margin-bottom: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
     border: 1px solid #eee;
     height: 100%;
 }

 .medicine-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     border-color: var(--light-accent);
 }

 .medicine-title {
     color: var(--primary-color);
     font-weight: 700;
     margin-bottom: 10px;
     min-height: 50px;
 }

 .medicine-price {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--text-color);
 }

 .medicine-discount {
     color: var(--accent-color);
     font-weight: 700;
     background-color: var(--light-accent);
     padding: 3px 8px;
     border-radius: 4px;
     font-size: 0.9rem;
 }

 /* Buttons */
 .btn-primary {
     background-color: var(--accent-color);
     border-color: var(--accent-color);
     border-radius: 30px;
     padding: 8px 15px;
     font-weight: 500;
     transition: all 0.3s ease;
 }

 .btn-primary:hover {
     background-color: var(--dark-accent);
     border-color: var(--dark-accent);
     transform: translateY(-2px);
 }

 .btn-outline-primary {
     border-color: var(--accent-color);
     color: var(--accent-color);
     border-width: 2px;
     padding: 8px 20px;
     border-radius: 30px;
     font-weight: 500;
     transition: all 0.3s ease;
 }

 .btn-outline-primary:hover {
     background-color: var(--accent-color);
     color: white;
 }

 /* Section Headers */
 .section-header {
     border-bottom: 3px solid var(--primary-color);
     padding-bottom: 10px;
     margin-bottom: 25px;
     display: inline-block;
     font-weight: 700;
     color: var(--primary-color);
 }

 .view-all {
     color: var(--primary-color);
     font-weight: 600;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 .view-all:hover {
     color: var(--accent-color);
     text-decoration: none;
     transform: translateX(-5px);
 }

 /* Special Offers */
 .offer-card {
     height: 100%;
     transition: all 0.3s ease;
     border: none;
     border-radius: 15px;
     overflow: hidden;
 }

 .offer-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
 }

 .discount-code {
     background-color: white;
     color: var(--accent-color);
     padding: 10px;
     border-radius: 8px;
     display: inline-block;
     font-weight: 700;
     box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
 }

 /* Footer */
 footer {
     background-color: var(--primary-color);
     color: white;
 }

 footer h5 {
     font-weight: 700;
     margin-bottom: 20px;
     position: relative;
     padding-bottom: 10px;
 }

 footer h5::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: 0;
     width: 50px;
     height: 2px;
     background-color: var(--accent-color);
 }

 footer a {
     color: white;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 footer a:hover {
     color: var(--light-accent);
     padding-right: 5px;
 }

 footer .list-unstyled li {
     margin-bottom: 10px;
 }

 /* Desktop hover dropdown */
 @media (min-width: 992px) {
     .dropdown:hover .dropdown-menu {
         display: block;
     }
 }