/**
 * Abouhamar Mall -  CSS File
 */

/* ==================== General Styles ==================== */
:root {
  --primary-color: #0d3d56;
  --secondary-color: #ff6b6b;
  --accent-color: #ffd166;
  --text-color: #333333;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --white-color: #FFFFFF;
  --gray-color: #F5F5F5;
  --dark-gray-color: #333333;
  --light-gray-color: #EEEEEE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Cairo', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  background-color: #fff;
  padding-top: 0 !important;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow-x: clip;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: #0a2c3e;
  color: var(--white-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: #ff5252;
  color: var(--white-color);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--white-color);
  color: var(--white-color);
}

.btn-outline:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== Header Styles ==================== */
/* Top Bar */
.top-bar {
  background-color: #fff;
  color: #333;
  padding: 8px 0;
  font-size: 12px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #eee;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background-color: #f5f5f5;
}

.lang-btn i {
  font-size: 10px;
  margin-left: 3px;
}

.rtl .lang-btn i {
  margin-left: 0;
  margin-right: 3px;
}

.top-bar-item {
  margin-left: 15px;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.top-bar-item i {
  margin-right: 5px;
}

.rtl .top-bar-item i {
  margin-right: 0;
  margin-left: 5px;
}

/* Top bar adjustments for mobile */
@media (max-width: 768px) {
  .top-bar {
    padding: 8px 0;
  }
  
  .top-bar .row {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  
  .top-bar .col-md-6 {
    width: auto;
    justify-content: center !important;
    margin-bottom: 0;
  }
  
  .top-bar .col-md-6:first-child {
    display: flex;
    justify-content: center !important;
    width: 100%;
  }
  
  .top-bar .col-md-6:last-child {
    display: none;
  }
  
  .language-switcher {
    margin: 0 !important;
    display: flex;
    justify-content: center;
  }
  
  .lang-btn {
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .lang-btn:hover {
    background-color: #e9e9e9;
  }
  
  .lang-btn i {
    font-size: 10px;
    transition: transform 0.2s ease;
  }
  
  .top-bar-item {
    display: none;
  }
}

@media (max-width: 576px) {
  .top-bar {
    padding: 5px 0;
  }
  
  .top-bar .row {
    margin: 0;
    justify-content: center;
  }
  
  .top-bar-contact {
    display: none;
  }
  
  .top-bar-actions {
    display: none;
  }
}

/* Main Header */
.site-header {
  background-color: #fff;
  padding: 15px 0;
  position: relative;
  z-index: 9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Main Navigation */
.main-nav {
  background-color: #df4500;
  padding: 0;
  position: relative;
  z-index: 1040 !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
  position: relative;
}

.nav-link {
  color: #fff;
  font-weight: 500;
  padding: 12px 20px;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
}

.nav-link.active {
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Search Form */
.search-form {
  display: flex;
  width: 100%;
}

.search-form .form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 8px 15px;
  height: 40px;
}

.search-form .form-select {
  border-radius: 0;
  border: 1px solid #ddd;
  border-left: none;
  height: 40px;
  min-width: 120px;
  background-color: #f8f9fa;
}

.search-form .btn {
  border-radius: 0;
  background-color: #e84c3d;
  color: #fff;
  height: 40px;
  padding: 0 15px;
}

/* User Actions */
.user-actions {
  display: flex;
  align-items: center;
}

.user-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  text-decoration: none;
  margin-left: 15px;
  font-size: 12px;
}

.user-action-btn i {
  font-size: 20px;
  margin-bottom: 5px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #df4500;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RTL Support */
.rtl .cart-count {
  right: auto;
  left: -5px;
}

/* ==================== Hero Banner ==================== */
.hero-banner {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white-color);
  margin-bottom: 50px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ==================== Category Grid ==================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}


.browse-link {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px;
  background-color: var(--secondary-color);
  color: var(--white-color);
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
  z-index: 2;
}

.browse-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* ==================== Footer Styles ==================== */
.site-footer {
  background-color: #0d2436;
  color: #ffffff;
  padding: 60px 0 20px;
  position: relative;
  z-index: 10;
  clear: both;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.site-footer h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.site-footer h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.site-footer h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-contact li {
  margin-bottom: 15px;
}

.footer-contact .icon-wrapper {
  width: 30px;
  text-align: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  /* Remove the padding */
  padding-left: 0;
}

.rtl .footer-links a:hover {
  /* Remove the padding */
  padding-left: 0;
  padding-right: 0;
}

/* Update for mobile view */
@media (max-width: 576px) {
  .footer-links a:hover {
    padding-left: 0;
  }
  
  .rtl .footer-links a:hover {
    padding-right: 0;
  }
}

.newsletter-form .form-control {
  height: 45px;
  border-radius: 4px 0 0 4px;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  height: 45px;
  border-radius: 0 4px 4px 0;
  padding: 0 15px;
  font-weight: 600;
}

.rtl .newsletter-form .form-control {
  border-radius: 0 4px 4px 0;
}

.rtl .newsletter-form .btn {
  border-radius: 4px 0 0 4px;
}

/* RTL Support for Footer */
.rtl .footer-contact .icon-wrapper {
  margin-right: 0;
  margin-left: 15px;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 992px) {
  .site-footer {
    padding: 40px 0 20px;
  }
}

@media (max-width: 768px) {
  .site-footer h4 {
    margin-top: 20px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-contact {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 30px 0 20px;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.rtl .back-to-top {
    right: auto;
    left: 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 1200px) {
  .container {
      max-width: 992px;
  }
}

@media (max-width: 992px) {
  .container {
      max-width: 768px;
  }
  
  .footer-widgets {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
      font-size: 36px;
  }
  
  .category-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
      max-width: 576px;
  }
  
  .main-nav {
      display: none; /* Hide main navigation on mobile */
  }
  
  /* Top bar adjustments for mobile */
  .top-bar {
      padding: 5px 0;
      text-align: center;
      z-index: 99999;
  }
  
  .top-bar .row {
      justify-content: center;
  }
  
  .top-bar-item {
      margin: 0 8px;
      font-size: 11px;
  }
  
  /* Header adjustments for mobile */
  .site-header {
      padding: 10px 0;
  }
  
  .logo img {
      max-height: 35px;
  }
  
  .mobile-menu-toggle {
      display: block;
  }
  
  .user-action-btn {
      margin-left: 15px;
  }
  
  .rtl .user-action-btn {
      margin-left: 0;
      margin-right: 15px;
  }
  
  .action-text {
      display: none;
  }
  
  .hero-title {
      font-size: 28px;
  }
  
  .hero-subtitle {
      font-size: 16px;
  }
  
  .category-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom-content {
      flex-direction: column;
      text-align: center;
  }
  
  .footer-links {
      margin-top: 10px;
  }
  
  .footer-links a {
      margin: 0 7px;
  }
}

@media (max-width: 576px) {
  .footer-widgets {
      grid-template-columns: 1fr;
  }
  
  .hero-banner {
      height: 400px;
  }
  
  .hero-title {
      font-size: 24px;
  }
  
  .category-grid {
      grid-template-columns: 1fr;
  }
  
  .user-action-btn {
      margin-left: 10px;
  }
  
  .rtl .user-action-btn {
      margin-left: 0;
      margin-right: 10px;
  }
  
  /* Further optimize top bar for small screens */
  .top-bar-contact {
      justify-content: center;
  }
  
  .top-bar-actions {
      justify-content: center;
      margin-top: 5px;
  }
}

/* Main Style CSS */

:root {
    --primary-color: #0d3d56;
    --secondary-color: #ff6b6b;
    --white-color: #FFFFFF;
    --black-color: #000000;
    --gray-color: #F5F5F5;
    --dark-gray-color: #333333;
    --light-gray-color: #EEEEEE;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark-gray-color);
    background-color: var(--white-color);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0a2c3e;
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #ff5252;
    color: var(--white-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.main-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
}

.user-action-btn {
    margin-left: 20px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 10;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 5px 10px;
    white-space: nowrap;
}

.lang-dropdown a.active {
    background-color: var(--light-gray-color);
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark-gray-color);
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99999; /* Ensure highest z-index */
    transition: all 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Add padding at the bottom */
}

.mobile-nav.active {
    right: 0;
}

/* RTL support */
.rtl .mobile-nav {
    right: auto;
    left: -300px;
}

.rtl .mobile-nav.active {
    right: auto;
    left: 0;
}

/* Mobile menu overlay */
.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Just below the mobile nav */
}

/* Mobile submenu toggle improvements */
.mobile-menu-item.has-submenu .submenu-toggle {
    float: right;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.rtl .mobile-menu-item.has-submenu .submenu-toggle {
    float: left;
}

.mobile-menu-item.has-submenu.active .submenu-toggle i {
    transform: rotate(180deg);
}

/* Ensure mobile submenu is visible */
.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.02);
}

.rtl .mobile-submenu {
    padding-left: 0;
    padding-right: 20px;
}

.mobile-menu-item.has-submenu.active .mobile-submenu {
    display: block;
}

/* Improve mobile submenu items */
.mobile-submenu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--dark-color);
}

.mobile-submenu-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
}

/* Main navigation dropdown improvements */
@media (min-width: 768px) {
    .nav-item.has-dropdown {
        position: relative;
    }
    
    .nav-item.has-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1050;
        min-width: 200px;
        display: none;
        border-radius: 4px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .rtl .nav-item.has-dropdown .dropdown-menu {
        left: auto;
        right: 0;
    }
    
    .nav-item.has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile dropdown handling */
@media (max-width: 767px) {
    .main-nav .nav-menu {
        flex-direction: column;
    }
    
    .nav-item.has-dropdown {
        position: relative;
    }
    
    .nav-item.has-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 0;
        margin-top: 0;
        display: none;
    }
    
    .nav-item.has-dropdown.mobile-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-link {
        padding: 12px 20px;
    }
    
    .nav-item.has-dropdown .nav-link i {
        float: right;
        transition: transform 0.3s ease;
    }
    
    .rtl .nav-item.has-dropdown .nav-link i {
        float: left;
    }
    
    .nav-item.has-dropdown.mobile-open .nav-link i {
        transform: rotate(180deg);
    }
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray-color);
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Added to make menu take available space */
}

.mobile-menu-item {
    border-bottom: 1px solid var(--light-gray-color);
}

.mobile-menu-link {
    display: block;
    padding: 15px;
    font-weight: 500;
}

.mobile-menu-link.active {
    color: var(--secondary-color);
    background-color: var(--light-gray-color);
}

.mobile-nav-footer {
    padding: 15px;
    border-top: 1px solid var(--light-gray-color);
    margin-top: auto; /* Added to push footer to bottom */
}

.language-switcher-mobile {
    display: flex;
    justify-content: center;
}

.lang-btn-mobile {
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
}

.lang-btn-mobile.active {
    background-color: var(--light-gray-color);
}

/* RTL Styles */
body.rtl .user-action-btn {
    margin-left: 0;
    margin-right: 20px;
}

body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .mobile-nav {
    right: auto;
    left: -300px;
}

body.rtl .mobile-nav.active {
    right: auto;
    left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .action-text {
        display: none;
    }
}

/* Featured Products Section */
.featured-products-section {
    padding-top: 20px;
    margin-top: 0;
}

.section-header {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: none !important;
    padding-bottom: 0;
}

.section-title {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    color: var(--primary-color);
    display: inline-block;
    border: none !important;
}

/* Remove the :before pseudo-element and use :after for the line below */
.section-title:before {
    display: none !important;
    content: none !important;
}

.section-title:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: var(--secondary-color) !important;
    border-radius: 2px !important;
    display: block !important;
}

.rtl .section-title:before {
    left: auto;
    right: 0;
}

/* Brands Section */
.brands-section {
    padding: 50px 0;
    background-color: var(--gray-color);
}

.brand-item {
    display: block;
    padding: 15px;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-width: 100%;
    max-height: 70px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

/* Newsletter Section */
.newsletter-section {
    padding: 50px 0;
    color: var(--white-color);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-btn {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #e58b3d;
}

/* Footer */
.site-footer {
    color: var(--white-color);
    padding: 50px 0 20px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white-color);
}

.footer-links a:hover {
    color: var(--secondary-color);
    /* Remove the padding */
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    margin: 0 5px;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.rtl .back-to-top {
    right: auto;
    left: 0;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

/* RTL specific styles */
.rtl .newsletter-input {
    border-radius: 0 5px 5px 0;
}

.rtl .newsletter-btn {
    border-radius: 5px 0 0 5px;
}

/* Auth Styles - Consolidated from auth.css */
/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 0;
    background-image: url('../images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Auth Box - Glass Effect */
.auth-box {
    width: 100%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Auth Modal */
.auth-modal {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1300;
}

.modal-header {
    border-bottom: none;
}

.modal-header .btn-close {
    color: #fff;
    opacity: 0.8;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tab.active {
    color: var(--secondary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Auth Content */
.auth-content {
    padding: 30px;
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Auth Title */
.auth-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    outline: none;
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Remember Me & Forgot Password */
.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox input {
    margin-right: 8px;
}

.custom-checkbox label {
    margin-bottom: 0;
    cursor: pointer;
}

.forgot-password {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

/* Button */
.btn-block {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Login */
.social-login {
    margin-top: 30px;
}

.social-login p {
    color: #fff;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.google {
    background-color: #db4437;
}

.social-button.twitter {
    background-color: #1da1f2;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Account Styles - Consolidated from account.css */
/* Account Container */
.account-container {
    padding: 40px 0;
    min-height: 600px;
}

/* Account Sidebar */
.account-sidebar {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
}

.user-info {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(18, 43, 64, 0.02);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 5px solid var(--white-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.user-email {
    font-size: 14px;
    color: var(--dark-gray-color);
    opacity: 0.8;
    margin-bottom: 0;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu-item {
    border-bottom: 1px solid var(--border-color);
}

.account-menu-link {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.account-menu-link i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rtl .account-menu-link i {
    margin-right: 0;
    margin-left: 10px;
}

.account-menu-item.active .account-menu-link {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.account-menu-link:hover {
    background-color: rgba(18, 43, 64, 0.05);
    color: var(--primary-color);
}

.account-content {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    padding: 30px;
}

.account-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.account-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

.welcome-message {
    margin-bottom: 30px;
}

.welcome-message h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-message p {
    color: var(--dark-gray-color);
    opacity: 0.8;
}

.dashboard-card {
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.dashboard-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(18, 43, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.rtl .dashboard-card-icon {
    margin-right: 0;
    margin-left: 15px;
}

.dashboard-card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.dashboard-card-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dashboard-card-content p {
    font-size: 14px;
    color: var(--dark-gray-color);
    margin-bottom: 0;
}

.recent-orders {
    margin-top: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .account-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .account-content {
        padding: 20px;
    }
    
    .account-title {
        font-size: 20px;
    }
    
    .welcome-message h3 {
        font-size: 18px;
    }
}

/* Payment Integration Styles */
/* PayMob Styles */
.paymob-container {
    margin: 20px 0;
}

.payment-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.payment-method-item {
    flex: 0 0 calc(33.333% - 10px);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-method-item.active {
    border-color: var(--secondary-color);
    background-color: rgba(var(--secondary-color-rgb), 0.05);
}

.payment-method-icon {
    height: 40px;
    margin-bottom: 10px;
}

.payment-method-icon img {
    height: 100%;
    width: auto;
}

.payment-method-name {
    font-size: 14px;
    font-weight: 500;
}

.paymob-iframe-container {
    width: 100%;
    height: 600px;
    border: none;
    margin-top: 20px;
}

/* Browse button fix for categories */
.browse-link {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 1;
    visibility: visible;
}

.browse-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ==================== Product Card Styles ==================== */
.product-card {
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  height: 100%;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  width: 100%;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
  left: 10px;
  margin-bottom: 5px;
}

/* LTR Layout (English) */
html:not(.rtl) .product-badge.discount,
html:not(.rtl) .product-badge.featured,
html:not(.rtl) .product-badge.new {
  left: 10px;
}

html:not(.rtl) .product-badge.discount {
  background-color: var(--secondary-color);
  color: var(--white-color);
  top: 10px;
}

html:not(.rtl) .product-badge.new {
  background-color: var(--success-color);
  color: var(--white-color);
  top: 45px;
}

html:not(.rtl) .product-badge.featured {
  background-color: var(--primary-color);
  color: var(--white-color);
  top: 80px;
}

/* RTL Layout (Arabic) */
html.rtl .product-badge.discount,
html.rtl .product-badge.featured,
html.rtl .product-badge.new,
body.rtl .product-badge.discount,
body.rtl .product-badge.featured,
body.rtl .product-badge.new {
  left: auto;
  right: 10px;
}

html.rtl .product-badge.discount,
body.rtl .product-badge.discount {
  background-color: var(--secondary-color);
  color: var(--white-color);
  top: 10px;
}

html.rtl .product-badge.new,
body.rtl .product-badge.new {
  background-color: var(--success-color);
  color: var(--white-color);
  top: 45px;
}

html.rtl .product-badge.featured,
body.rtl .product-badge.featured {
  background-color: var(--primary-color);
  color: var(--white-color);
  top: 80px;
}

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-actions button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--white-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.product-actions button:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: var(--secondary-color);
}

.product-price {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 10px;
}

.rtl .old-price {
  margin-left: 0;
  margin-right: 10px;
}

.product-rating {
  display: flex;
  align-items: center;
}

.product-rating i {
  color: #FFD700;
  font-size: 14px;
  margin-right: 2px;
}

.rtl .product-rating i {
  margin-right: 0;
  margin-left: 2px;
}

.rating-count {
  font-size: 12px;
  color: #777;
  margin-left: 5px;
}

.rtl .rating-count {
  margin-left: 0;
  margin-right: 5px;
}

/* Products Container */
.products-container {
  margin-bottom: 30px;
}

/* Responsive adjustments for 4 products per row */
@media (max-width: 1200px) {
  .col-lg-3.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 992px) {
  .col-lg-3.col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .col-lg-3.col-md-4 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .product-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }
  
  .product-price .price {
    font-size: 14px !important;
  }
  
  .product-price .old-price {
    font-size: 12px !important;
  }
  
  .product-rating i {
    font-size: 12px !important;
  }
  
  .rating-count {
    font-size: 10px !important;
  }
  
  .product-card {
    margin-bottom: 10px !important;
  }
  
  .product-info {
    padding: 8px !important;
  }
}

/* Shop header and sorting */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.shop-title h1 {
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.shop-title p {
  margin-bottom: 0;
  color: var(--dark-gray-color);
  opacity: 0.7;
}

.sort-by {
  display: flex;
  align-items: center;
}

.sort-by label {
  margin-right: 10px;
  margin-bottom: 0;
  font-weight: 500;
}

.rtl .sort-by label {
  margin-right: 0;
  margin-left: 10px;
}

.form-select {
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

/* Category Page Styles */
.categories-container {
    padding: 40px 0;
}

.categories-grid {
    margin-bottom: 30px;
}


.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-description {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.browse-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: #fff !important;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: none;
    position: relative;
    z-index: 10;
    width: 80%;
    max-width: 180px;
    text-align: center;
}

.browse-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.subcategories {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.subcategory-item {
    margin: 3px;
}

.subcategory-link {
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.subcategory-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Fixing filter sidebar height */
.shop-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    position: sticky;
    top: 85px;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 30px;
}

/* Fixing view mode buttons */
.view-mode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active, .view-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

/* Additional styling improvements */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.shop-title h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.shop-title p {
    margin-bottom: 0;
    color: var(--dark-gray-color);
    opacity: 0.7;
}

.sort-by {
    display: flex;
    align-items: center;
}

.sort-by label {
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: 500;
}

.rtl .sort-by label {
    margin-right: 0;
    margin-left: 10px;
}

.form-select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}



.filter-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow-y: visible;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-link {
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-link i {
    margin-right: 8px;
    font-size: 12px;
}

.rtl .filter-link i {
    margin-right: 0;
    margin-left: 8px;
}

.filter-link.active, .filter-link:hover {
    color: var(--secondary-color);
}

.filter-actions {
    margin-top: 20px;
}


.shop-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    position: sticky;
    top: 85px;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 30px;
}





.no-products {
    padding: 40px 0;
    text-align: center;
    background-color: transparent;
}

.no-products .alert {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: var(--dark-gray-color);
}

.no-products .alert i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--info-color);
}


.shop-by-category {
    margin-bottom: 40px;
}


/* Category page styles */
.category-container {
    padding: 30px 0;
    background-color: #fff;
    min-height: calc(100vh - 300px);
}

.category-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.category-header .category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-header .category-description {
    color: var(--dark-gray-color);
    opacity: 0.8;
}

/* Fix for the gray line at the bottom */
.category-footer-banner {
    display: none;
}

/* Category Title Banner */
.category-title-banner {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    position: relative;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-main-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fix for footer */
.site-footer {
    margin-top: 50px;
    position: relative;
    z-index: 10;
    clear: both;
}

/* Remove any bottom gray bar */
.category-footer-banner,
.footer-banner,
.jackets {
    display: none !important;
} 

/* Media query fixes for language dropdown */
@media (max-width: 768px) {
    .language-switcher {
        position: relative;
        margin: 0;
    }
    
    .rtl .language-switcher {
        margin: 0;
    }
    
    .lang-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 120px;
        z-index: 1050;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 8px 0;
        text-align: center;
    }
    
    .rtl .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Fix for language dropdown in RTL mode */
body.rtl .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

@media (max-width: 768px) {
    body.rtl .language-switcher {
        margin-right: 0;
    }
}

/* Fix for category title banner buttons */
.category-title-banner button,
.category-title-banner .btn,
.category-title-banner .btn-group,
.category-title-banner [class*="btn-"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Fix for the category title banner */
.category-title-banner {
    position: relative;
    overflow: hidden !important;
}

.category-title-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px; /* Width to cover the buttons */
    background-color: var(--primary-color);
    z-index: 10;
}

/* Remove scrollbars from all relevant elements */
.shop-sidebar, .filter-list, .filter-section, .category-title-banner {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    scrollbar-width: none !important; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.shop-sidebar::-webkit-scrollbar, 
.filter-list::-webkit-scrollbar, 
.filter-section::-webkit-scrollbar,
.category-title-banner::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* Fix for the buttons in the category header */
.category-title-banner .container {
    position: relative;
}

.category-title-banner .btn-group {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.category-title-banner .btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title-banner .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* RTL support */
body.rtl .category-title-banner .btn-group {
    right: auto;
    left: 15px;
}


.category-title-banner button,
.category-title-banner .btn-group,
.category-title-banner .btn {
    display: none !important;
}

.category-title-banner {
    overflow: hidden !important;
} 

.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}


body::after,
body::before {
  content: none !important;
  display: none !important;
  position: static !important;
  z-index: -1 !important;
}

/* Reset body styles when modal is closed */
body:not(.modal-open) {
  overflow: auto !important;
  padding-right: 0 !important;
  pointer-events: auto !important;
} 


#productQuickViewModal {
  z-index: 1050 !important;
}

#productQuickViewModal .modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#productQuickViewModal .close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 16px;
  z-index: 100;
}

#productQuickViewModal .close-btn:hover {
  background-color: #ff5252;
}

/* Prevent invisible elements from blocking interaction */
div[style*="z-index"][style*="position: fixed"],
div[style*="z-index: 1040"],
div[style*="z-index: 1050"],
div[style*="z-index: 1060"],
div[style*="z-index: 1070"] {
  pointer-events: none;
}

div[style*="z-index"][style*="position: fixed"] .modal-content,
div[style*="z-index"][style*="position: fixed"] .close-btn,
div[style*="z-index"][style*="position: fixed"] button,
div[style*="z-index"][style*="position: fixed"] a {
  pointer-events: auto;
}

/* Fix for any invisible overlays */
.modal-backdrop,
.modal-backdrop.fade.show {
  pointer-events: none !important;
}

/* Force body to be interactive */
html, body {
  pointer-events: auto !important;
  min-height: 100%;
  height: auto;
} 

/* Order Details Page */
.product-image {
  width: 100%;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image.no-image {
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

/* تحسين عرض صور المنتجات في صفحة تفاصيل الطلب */
.order-product-image {
  width: 45px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-image.no-image {
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.product-details {
  min-width: 0;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* تقليل المساحات في جدول المنتجات */
.table > :not(caption) > * > * {
  padding: 0.5rem;
}

/* Avatar placeholder for account pages */
.avatar-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
  margin: 0 auto 15px;
} 

/* Cart Page Styles */
.cart-page {
    padding: 40px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-no-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
}

.quantity-input {
    display: flex;
    align-items: center;
}

.quantity-value {
    width: 60px;
    text-align: center;
}

.cart-summary {
    margin-bottom: 20px;
}

/* Checkout Success Page Styles */
.checkout-success-container {
    padding: 40px 0;
}

.success-icon {
    font-size: 80px;
    color: #28a745;
}

.order-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.bank-details {
    text-align: left;
}

.buttons {
    margin-top: 20px;
} 

/* Circular Category Slider */
.category-circles-section {
    padding: 40px 0;
    background-color: #f9f5eb;
    text-align: center;
}

.category-circles-title {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: var(--primary-color);
    display: inline-block;
}

.category-circles-title:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: var(--secondary-color) !important;
    border-radius: 2px !important;
}

.rtl .category-circles-title:after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.category-circles-slider {
    position: relative;
    padding: 0 40px;
}

.category-circle-item {
    text-align: center;
    padding: 10px;
}

.category-circle-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-circle-item:hover .category-circle-image {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-circle-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.rtl .category-circle-name {
    font-family: 'Cairo', sans-serif;
}

.category-circle-item:hover .category-circle-name {
    color: var(--secondary-color);
}

/* Owl Carousel Navigation for Category Circles */
.category-circles-slider .owl-nav button.owl-prev,
.category-circles-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333 !important;
    font-size: 20px !important;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-circles-slider .owl-nav button.owl-prev {
    left: -5px;
}

.category-circles-slider .owl-nav button.owl-next {
    right: -5px;
}

.rtl .category-circles-slider .owl-nav button.owl-prev {
    left: auto;
    right: -5px;
}

.rtl .category-circles-slider .owl-nav button.owl-next {
    right: auto;
    left: -5px;
}

.category-circles-slider .owl-nav button:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .category-circle-image {
        width: 120px;
        height: 120px;
    }
    
    .category-circle-name {
        font-size: 16px;
    }
} 

/* Mobile Filter Button - Sticky */
.mobile-filter-btn {
    display: flex;
    position: fixed;
    top: 50%;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        top: auto;
        bottom: 140px; /* Move up from bottom to avoid pagination */
        transform: none;
    }
}

.mobile-filter-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.mobile-filter-btn i {
    font-size: 18px;
}

.mobile-filter-btn .filter-text {
    display: none;
    margin-left: 8px;
    font-weight: 500;
}

.rtl .mobile-filter-btn {
    right: auto;
    left: 15px;
}

.rtl .mobile-filter-btn .filter-text {
    margin-left: 0;
    margin-right: 8px;
}

.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.rtl .mobile-filter-sidebar {
    right: auto;
    left: -320px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

.mobile-filter-sidebar.active {
    right: 0;
    z-index: 9999;
}

.rtl .mobile-filter-sidebar.active {
    right: auto;
    left: 0;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-filter-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Expanded button style */
.mobile-filter-btn.expanded {
    width: auto;
    padding: 0 20px;
    border-radius: 25px;
}

.mobile-filter-btn.expanded .filter-text {
    display: block;
}

/* Hide shop sidebar in all views */
.shop-sidebar {
    display: none;
}

/* ==================== Hero Slider  ==================== */
#heroSlider {
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item {
    height: 500px;
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    max-width: 100%;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: visible !important;
}


body, html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}


#heroSlider.carousel.slide {
    width: 100vw;
    position: relative;

    max-width: 100vw;
}

/* Hero slider wrapper to ensure full width */
.hero-slider-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow: hidden;
}

/* Fix for any potential container restrictions */
.hero-slider-wrapper #heroSlider {
    width: 100%;
    max-width: none;
}

/* Main content container */
.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ==================== Mobile Bottom Navigation ==================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.mobile-bottom-nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}


.mobile-bottom-nav-menu ul , .rtl ul {
  padding-right: 0rem !important;
}

.mobile-bottom-nav-item {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.mobile-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 5px;
    width: 100%;
    position: relative;
}

.mobile-bottom-nav-link.active {
    color: #df4500;
}

.mobile-bottom-nav-link i {
    font-size: 18px;
    margin-bottom: 3px;
}

.mobile-bottom-nav-link span {
    display: block;
    line-height: 1;
}

/* RTL support for mobile bottom nav */
body.rtl .mobile-bottom-nav-link {
    flex-direction: column;
}

/* Fix for hero slider on mobile */
@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
        min-height: 200px;
        max-height: 300px;
        width: 100vw;
    }
    
    #heroSlider .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Fix for carousel on mobile */
    #heroSlider.carousel.slide {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .hero-slider-wrapper {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow: hidden;
    }
}

/* Make sure the slider takes up full width on all screens */
#heroSlider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item {
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure cart badge is visible in bottom nav */
.mobile-bottom-nav-link .cart-badge {
    position: absolute;
    top: 0;
    right: 30%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RTL support for cart badge */
body.rtl .mobile-bottom-nav-link .cart-badge {
    right: auto;
    left: 30%;
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
        min-height: 200px;
        max-height: 300px;
        width: 100vw;
    }
    
    #heroSlider .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to main content to prevent overlap with bottom nav */
    .main-content {
        padding-bottom: 70px;
    }
    
    /* Fix for carousel on mobile */
    #heroSlider.carousel.slide {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .hero-slider-wrapper {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
        overflow: hidden;
    }
}

/* Slide-in Cart */
.slide-in-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide-in-cart.active {
    right: 0;
}

.rtl .slide-in-cart {
    right: auto;
    left: -400px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

.rtl .slide-in-cart.active {
    left: 0;
}

.slide-in-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slide-in-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-in-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.slide-in-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.slide-in-cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.slide-in-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.slide-in-cart-items {
    margin-bottom: 20px;
}

.slide-in-cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.slide-in-cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.rtl .slide-in-cart-item-image {
    margin-right: 0;
    margin-left: 15px;
}

.slide-in-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.slide-in-cart-item-details {
    flex: 1;
    min-width: 0;
}

.slide-in-cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-in-cart-item-price {
    font-size: 14px;
    color: #666;
}

.slide-in-cart-item-remove {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.rtl .slide-in-cart-item-remove {
    margin-left: 0;
    margin-right: 5px;
}

.slide-in-cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.slide-in-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.slide-in-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-in-cart-buttons .btn {
    width: 100%;
}

.slide-in-cart-empty {
    text-align: center;
    padding: 30px 15px;
}

.slide-in-cart-empty p {
    margin-bottom: 20px;
    color: #666;
}

/* Product Quick Options Modal */
.product-options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
}

.product-options-modal.active {
    display: flex;
}

.product-options-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.product-options-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.product-options-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

.product-options-body {
    margin-bottom: 20px;
}

.product-options-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.size-variation, .color-variation {
    margin-bottom: 20px;
}

.size-variation label, .color-variation label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    margin: 0;
}

.size-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    position: relative;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-option label {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #ddd;
    margin: 0;
}

.color-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.product-options-quantity {
    margin-top: 20px;
}

.product-options-quantity label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

.quantity-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
}

.quantity-input input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
}

.rtl .product-options-footer {
    justify-content: flex-start;
}

@media (max-width: 576px) {
    .product-options-content {
        width: 95%;
        padding: 15px;
    }
    
    .size-option label {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .color-option label {
        width: 25px;
        height: 25px;
    }
}

#heroSlider .carousel-item {
    height: 500px;
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
        min-height: 200px;
        max-height: 300px;
        width: 100vw;
    }
    
    #heroSlider .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Hero Slider Full Width Fix */
.hero-slider-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow: hidden;
}

#heroSlider.carousel.slide {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    width: 100%;
    height: 100%;
}

#heroSlider .carousel-item {
    height: 500px;
    width: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
    }
}

/* Hero Slider Full Width Fix - UPDATED */
.hero-slider-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#heroSlider.carousel.slide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    width: 100%;
    max-width: 100%;
}

#heroSlider .carousel-item {
    height: 500px;
    width: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .hero-slider-wrapper {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw;
    }
    
    #heroSlider.carousel.slide {
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100vw;
    }
    
    #heroSlider .carousel-item {
        height: 300px;
        min-height: 200px;
        max-height: 300px;
        width: 100vw;
    }
    
    #heroSlider .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Hero Slider Styles - FIXED */
.hero-slider-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

#heroSlider.carousel.slide {
    width: 100%;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    width: 100%;
}

#heroSlider .carousel-item {
    height: 500px;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#heroSlider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 50px;
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

#heroSlider .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#heroSlider .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#heroSlider .carousel-caption .btn {
    font-weight: 600;
    padding: 10px 25px;
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
    }
    
    #heroSlider .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    #heroSlider .carousel-caption {
        bottom: 20px;
        padding: 15px;
        max-width: 90%;
    }
    
    #heroSlider .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    #heroSlider .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    #heroSlider .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.9rem;
    }
}

/* Hero Slider Styles - FINAL FIX */
.hero-slider-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    display: block !important;
}

#heroSlider.carousel.slide {
    width: 100%;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
}

#heroSlider .carousel-inner {
    width: 100%;
    display: block !important;
}

#heroSlider .carousel-item {
    height: 500px;
    display: none;
}

#heroSlider .carousel-item.active {
    display: block !important;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

#heroSlider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 50px;
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

#heroSlider .carousel-indicators {
    z-index: 15;
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    z-index: 15;
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
    }
    
    #heroSlider .carousel-caption {
        bottom: 20px;
        padding: 15px;
        max-width: 90%;
    }
}

/* Hero Slider Styles - DESKTOP FIX */
.hero-slider-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    display: block !important;
    position: relative;
    max-height: 500px;
}

#heroSlider.carousel.slide {
    width: 100%;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    position: relative;
    max-height: 500px;
}

#heroSlider .carousel-inner {
    width: 100%;
    display: block !important;
    position: relative;
    overflow: hidden;
}

#heroSlider .carousel-item {
    height: 500px;
    display: none;
    position: relative;
    float: left;
    width: 100%;
    margin-right: -100%;
}

#heroSlider .carousel-item.active {
    display: block !important;
    z-index: 10;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

#heroSlider .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 50px;
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
    z-index: 15;
}

#heroSlider .carousel-indicators {
    z-index: 15;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    z-index: 15;
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

#heroSlider .carousel-control-prev {
    left: 0;
}

#heroSlider .carousel-control-next {
    right: 0;
}

@media (min-width: 768px) {
    #heroSlider .carousel-item {
        height: 500px;
    }
}

@media (max-width: 767px) {
    #heroSlider .carousel-item {
        height: 300px;
    }
    
    #heroSlider .carousel-caption {
        bottom: 20px;
        padding: 15px;
        max-width: 90%;
    }
}

/* ==================== Search Dropdown Styles ==================== */
.search-container {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background-color: var(--white-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 10px;
  z-index: 1000;
  display: none;
  margin-top: 10px;
}

.search-dropdown.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.rtl .search-dropdown {
  right: auto;
  left: 0;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-form .input-group {
  width: 100%;
}

.search-form .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--border-color);
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.rtl .search-form .form-control {
  border-radius: 0 5px 5px 0;
}

.rtl .search-form .btn {
  border-radius: 5px 0 0 5px;
}

@media (max-width: 576px) {
  .search-dropdown {
    width: 250px;
    right: -70px;
  }
  
  .rtl .search-dropdown {
    left: -70px;
    right: auto;
  }
}

/* Mobile Search Form */
.mobile-search-form {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-search-form .input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.mobile-search-form .form-control {
  border-radius: 0;
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  width: 80%;
  height: 40px;
  border-right: 0;
}

.mobile-search-form .btn {
  border-radius: 0;
  padding: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  background-color: var(--primary-color);
}

.mobile-search-form .btn i {
  font-size: 16px;
}

.rtl .mobile-search-form .form-control {
  border-radius: 0;
  border-right: 1px solid var(--border-color);
  border-left: 0;
}

.rtl .mobile-search-form .btn {
  border-radius: 0;
}

/* Fullscreen Hero Slider Styles */
.fullscreen-hero-slider {
    position: relative;
    width: 100vw;
    height: 70vh;
    overflow: hidden;
    margin-bottom: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    max-width: 100vw;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 1;
}

#heroSlider.carousel.slide {
    height: 100%;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

#heroSlider .carousel-inner {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

#heroSlider .carousel-item {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.fullscreen-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
}

/* Fix for container padding issues */
.fullscreen-hero-slider .container {
    padding-left: 30px;
    padding-right: 30px;
}

.slide-content {
    color: #fff;
    padding: 30px;
    text-align: left;
    max-width: 600px;
}

.rtl .slide-content {
    text-align: right;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#heroSlider .carousel-control-prev {
    left: 20px;
}

#heroSlider .carousel-control-next {
    right: 20px;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
    opacity: 1;
}

#heroSlider .carousel-indicators {
    bottom: 20px;
}

#heroSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
}

#heroSlider .carousel-indicators button.active {
    background-color: #fff;
}

/* RTL Support for Fullscreen Hero Slider */
body.rtl .slide-content-wrapper {
    background: linear-gradient(-90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

body.rtl .slide-content {
    text-align: right;
    margin-right: auto;
    margin-left: 0;
    direction: rtl;
}

body.rtl .slide-title,
body.rtl .slide-subtitle {
    font-family: 'Cairo', sans-serif;
}

body.rtl #heroSlider .carousel-control-prev {
    right: 20px;
    left: auto;
}

body.rtl #heroSlider .carousel-control-next {
    left: 20px;
    right: auto;
}

/* Responsive styles */
@media (max-width: 992px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .fullscreen-hero-slider {
        height: 60vh;
        width: calc(100% + 30px);
    }
    
    .fullscreen-hero-slider .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .slide-content {
        padding: 20px;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .slide-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .slide-content-wrapper {
        background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    }
    
    body.rtl .slide-content-wrapper {
        background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    }
    
    body.rtl .slide-content {
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .fullscreen-hero-slider {
        height: 50vh;
    }
    
    .fullscreen-hero-slider .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

body.rtl .slide-content-wrapper {
    background: linear-gradient(-90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

body.rtl .slide-content {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
    direction: rtl;
}


.categories-showcase {
    padding: 50px 0;
    background-color: #f8f9fa;
    margin-top: 0;
    margin-bottom: 10px;
}

.categories-showcase .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}

.categories-showcase .section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0d6efd, #6610f2);
    border-radius: 2px;
}

.categories-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 50px;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 0;
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.categories-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    flex: 0 0 auto;
    width: 220px;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-align: center;
}

.category-link {
    display: block;
    text-decoration: none;
    color: #333;
    text-align: center;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    color: #666;
    display: block;
}

.categories-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.categories-slider-nav:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.categories-slider-prev {
    left: 0;
}

.categories-slider-next {
    right: 0;
}

/* RTL Support */
body.rtl .categories-slider-prev {
    left: auto;
    right: 0;
}

body.rtl .categories-slider-next {
    right: auto;
    left: 0;
}

body.rtl .category-name {
    font-family: 'Cairo', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-item {
        width: 180px;
    }
    
    .category-image {
        width: 150px;
        height: 150px;
    }
    
    .category-name {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .categories-slider-container {
        padding: 0 30px;
    }
    
    .category-item {
        width: 150px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
    
    .category-name {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .categories-slider-container {
        padding: 0 20px;
    }
    
    .category-item {
        width: 130px;
    }
    
    .category-image {
        width: 100px;
        height: 100px;
    }
    
    .category-name {
        font-size: 14px;
    }
}



.category-item {
    flex: 0 0 auto !important;
    width: 220px !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    padding: 10px !important;
}

.category-item:hover .category-image {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.category-item:hover img {
    transform: scale(1.1) !important;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 0;
    gap: 20px;
}

.categories-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.categories-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 50px;
}

.categories-slider-prev,
.categories-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.categories-slider-prev {
    left: 5px;
}

.categories-slider-next {
    right: 5px;
}

.categories-slider-prev:hover,
.categories-slider-next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.rtl .categories-slider-prev {
    left: auto;
    right: 5px;
}

.rtl .categories-slider-next {
    right: auto;
    left: 5px;
}

@media (max-width: 768px) {
    .category-image {
        width: 150px;
        height: 150px;
    }
    
    .category-item {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .category-image {
        width: 120px;
        height: 120px;
    }
    
    .category-item {
        width: 150px;
    }
}


.categories-showcase .category-image {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 15px !important;
    background-color: #fff !important;
    position: relative !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 5px solid #fff !important;
}

.categories-showcase .category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s ease !important;
    border-radius: 50% !important;
}

.categories-showcase .category-item {
    flex: 0 0 auto !important;
    width: 220px !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    padding: 10px !important;
}


.categories-slider .category-image,
#categoriesSlider .category-image {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50% !important;
}

.categories-slider .category-image img,
#categoriesSlider .category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Notification styles */
#notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1400 !important;
  max-width: 350px;
}

.notification {
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  padding: 12px 15px;
  opacity: 0;
  transform: translateX(50px);
  animation: slideIn 0.3s forwards;
}

.notification.alert-success {
  border-left-color: var(--success-color);
}

.notification.alert-danger {
  border-left-color: var(--danger-color);
}

.notification.alert-warning {
  border-left-color: var(--warning-color);
}

.notification.alert-info {
  border-left-color: var(--info-color);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rtl #notification-container {
  right: auto;
  left: 20px;
}

.rtl .notification {
  transform: translateX(-50px);
  border-left: none;
  border-right: 4px solid;
}

/* Unified Notification System */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: auto;
}

.notification {
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 250px;
    max-width: 450px;
    animation: fadeIn 0.3s ease;
    opacity: 1;
}

.notification.hiding {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    background: transparent;
    border: 0;
    appearance: none;
}

.notification .btn-close:focus {
    outline: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rtl #notification-container {
    right: auto;
    left: 20px;
}

.rtl .notification .btn-close {
    right: auto;
    left: 0.5rem;
}

/* Alert styles */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-dismissible {
    padding-right: 4rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* RTL Support */
.rtl .alert-dismissible {
    padding-right: 1.25rem;
    padding-left: 4rem;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    #notification-container {
        width: 100%;
        padding: 0 10px;
        top: 60px; /* زيادة المسافة من الأعلى لتظهر تحت الهيدر */
        right: 0;
        left: 0; /* تأكيد أنها تمتد للحافة اليسرى أيضاً */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .notification {
        min-width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        padding: 12px 35px 12px 15px; /* زيادة المساحة لزر الإغلاق */
        border-radius: 8px;
    }
    
    .notification .btn-close {
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
        padding: 8px;
    }
    
    .rtl #notification-container {
        left: 0;
        right: 0;
    }
    
    .rtl .notification {
        padding: 12px 15px 12px 35px; /* تعديل المساحة لزر الإغلاق في RTL */
    }
    
    .rtl .notification .btn-close {
        left: 10px;
        right: auto;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background-color: #0d2436;
    color: #ffffff;
    position: relative;
    margin-top: 50px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-site-name h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
}

.rtl .footer-site-name h3 {
    text-align: right;
}

.footer-about .footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-newsletter {
    margin-top: 25px;
}

.footer-newsletter .form-control {
    height: 45px;
    border-radius: 4px 0 0 4px;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .btn {
    height: 45px;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact .contact-item i {
    color: #ffffff;
    margin-right: 15px;
    font-size: 18px;
    margin-top: 3px;
}

.footer-contact .contact-item span,
.footer-contact .contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: var(--primary-color);
}

.footer-heading {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}



.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    /* Remove the padding */
    padding-left: 0;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff;
}

.social-icon.facebook:hover {
    background-color: #1877f2;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icon.twitter:hover {
    background-color: #1da1f2;
}

.social-icon.youtube:hover {
    background-color: #ff0000;
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
}

.social-icon.tiktok:hover {
    background-color: #000000;
}

.social-icon.whatsapp:hover {
    background-color: #25d366;
}

.payment-title {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-methods img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 14px;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* RTL Support */
.rtl .footer-contact .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

.rtl .footer-heading:after {
    left: auto;
    right: 0;
}

.rtl .footer-links a:hover {
    /* Remove the padding */
    padding-left: 0;
    padding-right: 0;
}

.rtl .footer-bottom-links a {
    margin-left: 0;
    margin-right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-main {
        padding: 40px 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-heading {
        margin-top: 20px;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 10px;
    }
    
    .social-icons {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 30px 0 10px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-links {
        margin-top: 10px;
    }
    
    .footer-bottom-links a {
        margin-left: 10px;
    }
    
    .rtl .footer-bottom-links a {
        margin-right: 10px;
    }
    
    /* Mobile Footer Layout */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links li {
        margin: 0 10px 10px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 5px 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .rtl .footer-links a:hover {
        padding-right: 0;
    }
    
    .social-icons {
        justify-content: center;
        margin: 20px 0;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rtl .footer-heading:after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
    
    .footer-site-name {
        text-align: center;
    }
    
    .rtl .footer-site-name h3 {
        text-align: center;
    }
    
    .footer-about .footer-description {
        text-align: center;
    }
    
    .footer-newsletter {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Payment Methods in Footer */
.payment-methods {
  margin-top: 25px;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.payment-icon {
  height: 30px;
  width: auto;
  background-color: #fff;
  border-radius: 4px;
  padding: 5px;
  filter: grayscale(0);
  transition: all 0.3s ease;
}

.payment-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* RTL Support for Payment Icons */
.rtl .payment-icons {
  justify-content: flex-end;
}

/* Mobile Responsiveness for Payment Icons */
@media (max-width: 768px) {
  .payment-icons {
    justify-content: center;
  }
  
  .rtl .payment-icons {
    justify-content: center;
  }
}

/* Footer Logo */
.footer-logo {
  margin-bottom: 20px;
  max-width: 200px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

/* Payment Methods in Footer */
.payment-methods {
  margin-top: 25px;
}

.payment-icons {
  margin-top: 15px;
}

.payment-icons img {
  max-width: 100%;
  height: auto;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* RTL Support for Footer Logo and Payment Icons */
.rtl .footer-logo {
  margin-right: 0;
  margin-left: auto;
}

/* Mobile Responsiveness for Footer Logo and Payment Icons */
@media (max-width: 768px) {
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .payment-icons {
    text-align: center;
  }
  
  .rtl .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================== Newsletter Section Above Footer ==================== */
.newsletter-section {
  background-color: #fff;
  padding: 0;
  position: relative;
  margin-bottom: 50px;
}

.newsletter-container {
  background-color: #fff;
  border: 2px solid #df4500;
  border-radius: 25px;
  padding: 30px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.newsletter-text {
  flex: 1;
  text-align: right;
  padding-right: 20px;
}

.newsletter-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #df4500;
}

.newsletter-text p {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 0;
}

.newsletter-form {
  flex: 1;
  max-width: 400px;
}

.newsletter-form .input-group {
  display: flex;
  flex-direction: row-reverse;
}

.newsletter-form .form-control {
  height: 50px;
  border-radius: 0;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  flex: 1;
  background-color: rgba(223, 69, 0, 0.1);
  text-align: right;
}

.newsletter-form .form-control::placeholder {
  color: #999;
}

.newsletter-form .newsletter-btn {
  height: 50px;
  min-width: 100px;
  border-radius: 0;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  padding: 0 20px;
  background-color: #df4500;
  color: #fff;
  border: none;
}

.newsletter-form .newsletter-btn:hover {
  background-color: #c23e00;
}

.newsletter-image {
  margin-left: 20px;
}

.newsletter-image img {
  max-width: 100px;
  height: auto;
}

.rtl .newsletter-container {
  flex-direction: row;
}

.rtl .newsletter-content {
  flex-direction: row;
}

.rtl .newsletter-text {
  text-align: right;
  padding-right: 10px;
  padding-left: 20px;
}

.rtl .newsletter-form .input-group {
  flex-direction: row;
}

.rtl .newsletter-form .form-control {
  border-radius: 0;
  text-align: left;
}

.rtl .newsletter-form .newsletter-btn {
  border-radius: 0;
}

.rtl .newsletter-image {
  margin-left: 0;
  margin-right: 20px;
}

@media (max-width: 992px) {
  .newsletter-container {
    padding: 20px;
  }
  
  .newsletter-text h2 {
    font-size: 2.4rem;
  }
  
  .newsletter-text p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: 0 15px;
    margin-bottom: 30px;
  }
  
  .newsletter-container {
    flex-direction: column;
    padding: 20px;
  }
  
  .newsletter-content {
    flex-direction: column;
    width: 100%;
  }
  
  .newsletter-text {
    text-align: center;
    padding-right: 0;
    margin-bottom: 15px;
  }
  
  .newsletter-text h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }
  
  .newsletter-text p {
    font-size: 1rem;
  }
  
  .newsletter-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .newsletter-form .input-group {
    display: flex;
    flex-direction: row;
  }
  
  .newsletter-form .form-control {
    border-radius: 0;
    text-align: center;
  }
  
  .newsletter-form .newsletter-btn {
    border-radius: 0;
  }
  
  .newsletter-image {
    margin: 0 auto;
    margin-bottom: 15px;
  }
  
  .rtl .newsletter-container {
    flex-direction: column;
  }
  
  .rtl .newsletter-content {
    flex-direction: column;
  }
  
  .rtl .newsletter-text {
    text-align: center;
    padding-left: 0;
  }
  
  .rtl .newsletter-form .input-group {
    flex-direction: row-reverse;
  }
  
  .rtl .newsletter-form .form-control {
    border-radius: 0;
    text-align: center;
  }
  
  .rtl .newsletter-form .newsletter-btn {
    border-radius: 0;
  }
  
  .rtl .newsletter-image {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 576px) {
  .newsletter-container {
    padding: 15px;
  }
  
  .newsletter-text h2 {
    font-size: 1.5rem;
  }
  
  .newsletter-text p {
    font-size: 0.9rem;
  }
  
  .newsletter-form .form-control {
    height: 45px;
    font-size: 14px;
    padding: 8px 15px;
  }
  
  .newsletter-form .newsletter-btn {
    height: 45px;
    min-width: 80px;
    font-size: 14px;
    padding: 0 15px;
  }
  
  .newsletter-image img {
    max-width: 70px;
  }
}

/* ==================== FAQ Section ==================== */
.faq-section {
  padding: 50px 0;
  background-color: #f8f9fa;
  position: relative;
}

.faq-section .section-title {
  position: relative;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #122B40;
  text-align: center;
}

.faq-section .section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #df4500;
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #122B40;
  background-color: #fff;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #df4500;
  background-color: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23122B40'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23df4500'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 20px 25px;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* RTL Support for FAQ Section */
.rtl .faq-section .section-title:after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.rtl .accordion-button {
  text-align: right;
}

.rtl .accordion-button::after {
  margin-left: 0;
  margin-right: auto;
}

/* Mobile Responsiveness for FAQ Section */
@media (max-width: 992px) {
  .faq-section {
    padding: 40px 0;
  }
  
  .faq-section .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 30px 0;
  }
  
  .faq-section .section-title {
    font-size: 1.8rem;
  }
  
  .accordion-button {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .accordion-body {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .faq-section .section-title {
    font-size: 1.5rem;
  }
  
  .accordion-button {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .accordion-body {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* ==================== Newsletter Section Above Footer ==================== */

/* Promotional Banners Styles */
.promotional-banners {
    margin-top: 50px;
    margin-bottom: 60px;
}

.promo-banner {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.promo-banner img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.promo-banner:hover img {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .promotional-banners .row {
        margin-bottom: 20px;
    }
}

/* ==================== Hero Slider Styles - FIXED ==================== */
.hero-slider-wrapper {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    padding: 0 !important;
}

#heroSlider.carousel.slide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#heroSlider .carousel-inner {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
}

#heroSlider .carousel-item {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
}

#heroSlider .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Fix for RTL version */
.rtl .hero-slider-wrapper {
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}


body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}


.main-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ==================== Sticky Header Styles ==================== */
.sticky-header {
  position: fixed;
  top: -100px; /* Initially hidden above the viewport */
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease-in-out;
  width: 100%;
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px); /* Blur effect for modern browsers */
  -webkit-backdrop-filter: blur(5px);
}
#productTabs{
    z-index: 1;
}
.sticky-header.visible {
  top: 0; /* Slide down when visible */
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.sticky-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  width: 100%;
}

.sticky-header .logo-container {
  flex: 0 0 auto;
}

.sticky-header .logo img {
  height: 40px  !important;
}

.sticky-header .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.sticky-header .nav-item {
  margin: 0;
}

.sticky-header .nav-link {
  color: var(--primary-color);
  padding: 10px 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sticky-header .nav-link:hover,
.sticky-header .nav-link.active {
  color: var(--secondary-color);
}

.sticky-header .user-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}

.sticky-header .user-action-btn {
  margin-left: 15px;
  color: black;
  position: relative;
  font-size: 18px;
  cursor: pointer;
}

.sticky-header .user-action-btn:hover {
  color: var(--secondary-color);
}

.sticky-header .user-action-btn .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RTL support for sticky header */
body.rtl .sticky-header .user-actions {
  margin-right: auto;
  margin-left: 0;
}

body.rtl .sticky-header .user-action-btn {
  margin-right: 15px;
  margin-left: 0;
}

body.rtl .sticky-header .user-action-btn .cart-count {
  right: auto;
  left: -8px;
}

/* Responsive styles for sticky header */
@media (max-width: 992px) {
  .sticky-header .nav-menu {
    display: none;
  }
  
  .sticky-header .container {
    justify-content: space-between;
  }
  
  .sticky-header .logo-container {
    flex: 0 0 auto;
  }
  
  .sticky-header .user-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .sticky-header .logo img {
    height: 30px;
  }
  
  .sticky-header .user-action-btn {
    margin-left: 15px;
    font-size: 22px; /* Larger icons on mobile */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .sticky-header .user-action-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  body.rtl .sticky-header .user-action-btn {
    margin-right: 15px;
    margin-left: 0;
  }
}

/* RTL Support for mobile top bar */
@media (max-width: 768px) {
  .rtl .top-bar .row {
    flex-direction: row;
    justify-content: center;
  }
  
  .rtl .top-bar .col-md-6:first-child {
    display: flex;
    justify-content: center !important;
    width: 100%;
  }
  
  .rtl .language-switcher {
    margin: 0 !important;
    display: flex;
    justify-content: center;
  }
  
  .rtl .lang-btn {
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .rtl .lang-btn i {
    margin-left: 0;
    margin-right: 5px;
  }
}

/* ==================== Featured Categories Section ==================== */
.featured-categories-section {
  padding: 50px 0;
}

.featured-categories-section .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.featured-categories-section .section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}



/* Hide category info section */
.category-info {
  display: none;
}

/* RTL Support for Featured Categories */
.rtl .category-info {
  display: none;
}

/* Responsive styles for Featured Categories */
@media (max-width: 768px) {
  .category-image {
    height: 200px;
  }
  
  .featured-categories-section {
    padding: 30px 0;
  }
}

/* ==================== Products Section ==================== */
.products-section {
    padding: 30px 0;
    background-color: #fff;
}

.products-section .section-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.products-section .section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.products-section .section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e94e24;
}

/* Tabs styling */
.products-section .nav-tabs {
    border-bottom: none;
}

.products-section .nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
}

.products-section .nav-tabs .nav-link:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.products-section .nav-tabs .nav-link.active {
    color: #e94e24;
    background-color: transparent;
}

.products-section .nav-tabs .nav-link.active:after {
    background-color: #e94e24;
}

/* Product card styling */
.product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}



.product-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 42px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #e94e24;
}

.product-category {
    font-size: 12px;
    color: #999;
}

.product-price {
    margin-top: 10px;
    font-weight: 600;
}

.product-price .price {
    color: #e94e24;
    font-size: 16px;
}

.product-price .price-before {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 5px;
}

.product-rating {
    margin-top: 5px;
    font-size: 12px;
}

.product-rating .rating-count {
    color: #999;
    margin-left: 5px;
}

/* 5-column layout */
.col-lg-1-5 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Explore more button */
.products-section .btn-danger {
    background-color: #e94e24;
    border-color: #e94e24;
    transition: all 0.3s ease;
}

.products-section .btn-danger:hover {
    background-color: #d44320;
    border-color: #d44320;
}

/* Dropdown Menu Styles */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown .nav-link {
    padding-right: 1.5rem;
}

.nav-item.has-dropdown .nav-link i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--light-gray-color);
    color: var(--primary-color);
}

/* RTL Dropdown Menu */
.rtl .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

.rtl .nav-item.has-dropdown .nav-link {
    padding-right: 1rem;
    padding-left: 1.5rem;
}

.rtl .nav-item.has-dropdown .nav-link i {
    margin-left: 0;
    margin-right: 5px;
}

/* Mobile Menu Dropdown Styles */
@media (max-width: 767px) {
    .mobile-menu-item.has-submenu .mobile-submenu {
        display: none;
        padding-left: 20px;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .mobile-menu-item.has-submenu.active .mobile-submenu {
        display: block;
    }
    
    .mobile-menu-item.has-submenu .submenu-toggle {
        float: right;
        padding: 0 10px;
        transition: transform 0.3s ease;
    }
    
    .rtl .mobile-menu-item.has-submenu .submenu-toggle {
        float: left;
    }
    
    .mobile-menu-item.has-submenu.active .submenu-toggle i {
        transform: rotate(180deg);
    }
    
    .mobile-submenu-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-submenu-item:last-child {
        border-bottom: none;
    }
    
    .mobile-submenu-link {
        display: block;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Fix for dropdown menus on mobile */
    .nav-item.has-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        padding: 0;
        margin-top: 0;
        display: none;
    }
    
    .nav-item.has-dropdown.mobile-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-link {
        padding: 12px 20px;
    }
    
    /* Ensure mobile menu is scrollable */
    .mobile-nav {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100vh;
    }
}

/* Fix for dropdown menus on small screens but not mobile menu */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-item.has-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1050;
    }
    
    .rtl .nav-item.has-dropdown .dropdown-menu {
        left: auto;
        right: 0;
    }
}

/* Footer Collapsible Styles */
.footer-heading {
  cursor: pointer;
  position: relative;
}

.footer-toggle-icon {
  transition: transform 0.3s ease;
}

.footer-toggle-icon.rotate {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .footer-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
  }
  
  .footer-collapsible.active {
    max-height: 300px; /* Adjust based on content */
    margin-bottom: 1.5rem;
  }
  
  .footer-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Footer Links - No Underlines */
.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: block;
  border-bottom: none !important;
}

.footer-links a:hover, .footer-contact a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: none !important;
  padding-left: 0 !important;
}

.rtl .footer-links a:hover, .rtl .footer-contact a:hover {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* WhatsApp Button Styling */
.btn-success.w-100 {
  background-color: #25D366;
  border-color: #25D366;
  font-weight: 600;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.btn-success.w-100:hover {
  background-color: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}