/* Updated design for the site with modern Qatari style */

/* Import modern Arabic font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* Enhanced color variables for clarity */
:root {
  --qatar-maroon: #8B1538;
  --qatar-gold: #FFD700;
  --qatar-white: #FFFFFF;
  --qatar-navy: #1B4B73;
  --qatar-light-gray: #F8F9FA;
  --qatar-dark-gray: #495057;
  --qatar-accent: #E9ECEF;
  
  /* Enhanced shadows for clarity */
  --shadow-light: 0 2px 8px rgba(139, 21, 56, 0.1);
  --shadow-medium: 0 4px 16px rgba(139, 21, 56, 0.15);
  --shadow-heavy: 0 8px 32px rgba(139, 21, 56, 0.2);
  
  /* Contrast improvement */
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --border-color: #DEE2E6;
  --hover-bg: #F8F9FA;
}

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

body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--qatar-dark-gray);
  background: linear-gradient(135deg, var(--qatar-light-gray) 0%, var(--qatar-white) 100%);
  direction: ltr;
  text-align: left;
}

/* Enhanced header design */
header {
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #A91B47 100%);
  box-shadow: var(--shadow-heavy);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--qatar-gold);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

.logo img {
  height: 50px;
  filter: brightness(1.2);
}

.logo-text {
  color: var(--qatar-white);
  font-size: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-nav {
  display: flex;
  gap: 25px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--qatar-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.search-button,
.account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--qatar-white);
  border: 2px solid rgba(255, 215, 0, 0.3);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-button:hover,
.account-button:hover {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  border-color: var(--qatar-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.search-button img {
  width: 18px;
  height: 18px;
  filter: brightness(1.2);
}

.search-button:hover img {
  filter: brightness(0.8);
}

.account-button span:first-child {
  font-size: 18px;
}

/* تصميم البانر */
.banner {
  position: relative;
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(0.9);
}

.discount-badges {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.discount,
.support {
  background: var(--qatar-maroon);
  color: var(--qatar-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-light);
}

.support {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
}

/* تفاصيل المتجر */
.store-details {
  background: var(--qatar-white);
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--qatar-accent);
}

.store-details h2 {
  color: var(--qatar-maroon);
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rating span {
  color: var(--qatar-dark-gray);
  font-size: 16px;
}

.stars {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-item {
  text-align: center;
  padding: 15px;
  background: var(--qatar-accent);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.info-item h3 {
  color: var(--qatar-maroon);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-item p {
  color: var(--qatar-dark-gray);
  font-weight: 600;
}

.open {
  color: #28a745 !important;
}

/* القسم الرئيسي */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  color: var(--qatar-maroon);
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  color: var(--qatar-dark-gray);
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* الفئات */
.categories {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);
}

.category img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 3px solid var(--qatar-gold);
  transition: all 0.3s ease;
}

.category img:hover {
  border-color: var(--qatar-maroon);
  box-shadow: var(--shadow-heavy);
}

.category span {
  margin-top: 15px;
  font-size: 18px;
  color: var(--qatar-maroon);
  font-weight: 600;
  text-align: center;
}

/* الميزات */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--qatar-white);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--qatar-gold);
}

.feature img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  filter: hue-rotate(340deg) saturate(1.2);
}

.feature span {
  color: var(--qatar-maroon);
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}

/* عروض اليوم */
.topoffers {
  margin: 50px 0;
}

.topoffers h2 {
  color: var(--qatar-maroon);
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
}

.topoffers h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--qatar-gold) 0%, var(--qatar-maroon) 100%);
  border-radius: 2px;
}

.topoffers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.topoffer {
  background: var(--qatar-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.topoffer:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--qatar-gold);
}

.topoffer img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.topoffer h3 {
  color: var(--qatar-maroon);
  font-size: 20px;
  margin: 15px;
  font-weight: 600;
}

.topoffer .price {
  color: var(--qatar-navy);
  font-weight: 700;
  font-size: 24px;
  margin: 0 15px 15px;
}

.topoffer .add-button {
  display: block;
  width: calc(100% - 30px);
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #A91B47 100%);
  color: var(--qatar-white);
  border: none;
  border-radius: 15px;
  padding: 12px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 15px 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
}

.topoffer .add-button:hover {
  background: linear-gradient(135deg, var(--qatar-gold) 0%, #FFE55C 100%);
  color: var(--qatar-maroon);
  transform: translateY(-2px);
}

/* السلايدر */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  overflow: hidden;
}

.product-slider {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product {
  background: var(--qatar-white);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  min-width: 280px;
  max-width: 300px;
  flex: 0 0 auto;
  padding: 25px 20px;
  margin: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--qatar-maroon) 0%, var(--qatar-gold) 100%);
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--qatar-gold);
}

.product img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  border: 2px solid var(--border-color);
}

.product img:hover {
  transform: scale(1.08);
  border-color: var(--qatar-gold);
}

.product h3 {
  font-size: 18px;
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product .price {
  color: var(--qatar-maroon);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--qatar-accent);
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid var(--border-color);
}

.add-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #A91B47 100%);
  color: var(--qatar-white);
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 15px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  position: relative;
  overflow: hidden;
}

.add-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.add-button:hover::before {
  left: 100%;
}

.add-button:hover {
  background: linear-gradient(135deg, var(--qatar-gold) 0%, #FFE55C 100%);
  color: var(--qatar-maroon);
  border-color: var(--qatar-maroon);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.slider-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--qatar-white) 0%, var(--qatar-light-gray) 100%);
  border: 2px solid var(--qatar-gold);
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  color: var(--qatar-maroon);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 10px;
  z-index: 2;
}

.slider-btn:hover {
  background: linear-gradient(135deg, var(--qatar-gold) 0%, #FFE55C 100%);
  border-color: var(--qatar-maroon);
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy);
}

.slider-btn.left {
  margin-right: 15px;
}

.slider-btn.right {
  margin-left: 15px;
}

/* عناوين الأقسام */
section h2 {
  color: var(--qatar-maroon);
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--qatar-gold) 0%, var(--qatar-maroon) 100%);
  border-radius: 2px;
}

/* الفوتر */
footer {
  margin-top: 50px;
}

.cart-footer {
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #A91B47 100%);
  padding: 0;
  border-radius: 0;
  position: sticky;
  bottom: 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(139, 21, 56, 0.3);
}

.checkout-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  color: var(--qatar-white);
  border: none;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
}

.checkout-button:hover {
  background: rgba(255, 215, 0, 0.1);
}

.checkout-button .total {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
  .top-bar {
    padding: 12px 15px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .categories {
    gap: 20px;
  }
  
  .category img {
    width: 90px;
    height: 90px;
  }
  
  .category span {
    font-size: 16px;
  }
  
  .features {
    gap: 20px;
  }
  
  .feature {
    padding: 15px;
  }
  
  .topoffers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-slider {
    gap: 15px;
  }
  
  .product {
    min-width: 200px;
    max-width: 220px;
    padding: 15px 10px;
  }
  
  .product img {
    width: 150px;
    height: 100px;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin: 0 5px;
  }
  
  .store-details {
    padding: 20px;
  }
  
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .menu-container button,
  .search-container button,
  .cart-container button {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .categories {
    /*flex-direction: column;*/
    align-items: center;
  }
  
  .features {
    /*flex-direction: column;*/
    align-items: center;
  }
  
  .product {
    min-width: 180px;
    max-width: 200px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* تأثيرات إضافية */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* تحسينات إضافية للتفاعل */
.product:hover .add-button {
  transform: translateY(-2px);
}

.topoffer:hover .add-button {
  transform: translateY(-2px);
}

/* خلفية بنمط قطري خفيف */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(139, 21, 56, 0.02) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 215, 0, 0.02) 50%, transparent 60%);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}



/* السلة العائمة */
.floating-cart {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  font-family: 'Cairo', sans-serif;
}

.cart-toggle {
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #A91B47 100%);
  color: var(--qatar-white);
  border: none;
  border-radius: 25px;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-heavy);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  min-width: 200px;
  border: 2px solid var(--qatar-gold);
}

.cart-toggle:hover {
  background: linear-gradient(135deg, var(--qatar-gold) 0%, #FFE55C 100%);
  color: var(--qatar-maroon);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139, 21, 56, 0.4);
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-emoji {
  font-size: 24px;
  transition: all 0.3s ease;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--qatar-white);
}

.cart-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cart-text {
  font-size: 14px;
  font-weight: 600;
}

.cart-total {
  font-size: 16px;
  font-weight: 700;
}

.cart-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.floating-cart.expanded .cart-arrow {
  transform: rotate(180deg);
}

.cart-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--qatar-white);
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  border: 2px solid var(--qatar-accent);
  margin-bottom: 10px;
  max-height: 500px;
  overflow-y: auto;
  min-width: 350px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--qatar-accent);
  background: linear-gradient(135deg, var(--qatar-accent) 0%, var(--qatar-light-gray) 100%);
  border-radius: 18px 18px 0 0;
}

.cart-header h3 {
  color: var(--qatar-maroon);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--qatar-maroon);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-cart:hover {
  background: var(--qatar-maroon);
  color: var(--qatar-white);
}

.cart-items {
  padding: 20px;
  max-height: 250px;
  overflow-y: auto;
}

.empty-cart-message {
  text-align: center;
  padding: 30px 20px;
  color: var(--qatar-dark-gray);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-cart-message p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--qatar-maroon);
}

.empty-cart-message span {
  font-size: 14px;
  color: var(--qatar-dark-gray);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--qatar-accent);
}

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

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--qatar-maroon);
  margin-bottom: 5px;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-controls button {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  background: var(--qatar-maroon);
  color: var(--qatar-white);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.item-controls button:hover {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
}

.item-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.item-price {
  font-weight: 600;
  color: var(--qatar-maroon);
  font-size: 14px;
}

.remove-item {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.remove-item:hover {
  background: #c82333;
}

.cart-footer {
  padding: 20px;
  border-top: 2px solid var(--qatar-accent);
  background: var(--qatar-accent);
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
}

.summary-row.delivery .free {
  color: #28a745;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.view-cart-btn,
.checkout-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.view-cart-btn {
  background: var(--qatar-white);
  color: var(--qatar-maroon);
  border: 2px solid var(--qatar-maroon);
}

.view-cart-btn:hover {
  background: var(--qatar-maroon);
  color: var(--qatar-white);
}

.checkout-btn {
  background: var(--qatar-maroon);
  color: var(--qatar-white);
  border: 2px solid var(--qatar-maroon);
}

.checkout-btn:hover {
  background: var(--qatar-gold);
  color: var(--qatar-maroon);
  border-color: var(--qatar-gold);
}

/* تصميم الفوتر المحسن */
footer {
  background: linear-gradient(135deg, var(--qatar-maroon) 0%, #1a1a1a 100%);
  color: var(--qatar-white);
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: var(--qatar-gold);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--qatar-gold);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--qatar-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.payment-methods img {
  height: 25px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.payment-methods img:hover {
  opacity: 1;
}

/* تصميم متجاوب للسلة العائمة */
@media (max-width: 768px) {
  .floating-cart {
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
  }
  
  .cart-toggle {
    min-width: auto;
    width: 100%;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 20px;
  }
  
  .cart-icon {
    order: 1;
  }
  
  .cart-info {
    order: 2;
    flex: 1;
    text-align: center;
  }
  
  .cart-arrow {
    order: 3;
  }
  
  .cart-dropdown {
    min-width: auto;
    left: 0;
    right: 0;
    max-width: 100%;
    margin-bottom: 15px;
    max-height: 70vh;
  }
  
  .cart-header {
    padding: 15px 20px;
  }
  
  .cart-items {
    padding: 15px 20px;
    max-height: 40vh;
  }
  
  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
  }
  
  .cart-item img {
    width: 60px;
    height: 60px;
  }
  
  .item-details {
    flex: 1;
    min-width: 150px;
  }
  
  .item-details h4 {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .item-controls {
    gap: 12px;
    margin-top: 8px;
  }
  
  .item-controls button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  .item-controls span {
    min-width: 25px;
    font-size: 16px;
  }
  
  .item-price {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--qatar-maroon);
    background: var(--qatar-accent);
    padding: 8px;
    border-radius: 10px;
    margin-top: 5px;
  }
  
  .remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .cart-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .view-cart-btn,
  .checkout-btn {
    padding: 15px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  .cart-footer {
    padding: 15px 20px;
  }
  
  .summary-row {
    font-size: 16px;
    padding: 8px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px 0;
  }
}

@media (max-width: 480px) {
  .floating-cart {
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: calc(100% - 16px);
  }
  
  .cart-toggle {
    padding: 10px 15px;
    gap: 8px;
    border-radius: 18px;
  }
  
  .cart-emoji {
    font-size: 20px;
  }
  
  .cart-count {
    width: 20px;
    height: 20px;
    font-size: 11px;
    top: -6px;
    right: -6px;
  }
  
  .cart-text {
    font-size: 13px;
  }
  
  .cart-total {
    font-size: 15px;
  }
  
  .cart-dropdown {
    max-height: 65vh;
    margin-bottom: 12px;
    border-radius: 15px;
  }
  
  .cart-header {
    padding: 12px 15px;
    border-radius: 13px 13px 0 0;
  }
  
  .cart-header h3 {
    font-size: 16px;
  }
  
  .cart-items {
    padding: 12px 15px;
    max-height: 35vh;
  }
  
  .cart-item {
    position: relative;
    padding: 12px 0;
    padding-right: 40px;
  }
  
  .cart-item img {
    width: 50px;
    height: 50px;
  }
  
  .item-details h4 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .item-controls {
    gap: 10px;
  }
  
  .item-controls button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .item-controls span {
    min-width: 22px;
    font-size: 14px;
  }
  
  .item-price {
    font-size: 14px;
    padding: 6px;
    margin-top: 8px;
  }
  
  .remove-item {
    width: 28px;
    height: 28px;
    font-size: 12px;
    top: 8px;
    right: 8px;
  }
  
  .cart-footer {
    padding: 12px 15px;
  }
  
  .summary-row {
    font-size: 14px;
    padding: 6px 0;
  }
  
  .cart-actions {
    gap: 10px;
  }
  
  .view-cart-btn,
  .checkout-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .empty-cart-message {
    padding: 20px 15px;
  }
  
  .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .empty-cart-message p {
    font-size: 14px;
  }
  
  .empty-cart-message span {
    font-size: 12px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h4 {
    font-size: 18px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .payment-methods {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .payment-methods img {
    height: 22px;
  }
}


/* تحسينات إضافية للسلة العائمة على الجوال */
@media (max-width: 480px) {
  .floating-cart {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 14px;
    position: fixed;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
  }
  
  .floating-cart .cart-count {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  
  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
  }
  
  .cart-header {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  .cart-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  
  .cart-content {
    padding: 10px 15px;
  }
  
  .cart-item {
    padding: 10px 0;
    gap: 10px;
  }
  
  .cart-item img {
    width: 45px;
    height: 45px;
  }
  
  .cart-item-name {
    font-size: 12px;
    line-height: 1.3;
  }
  
  .cart-item-price {
    font-size: 13px;
  }
  
  .cart-item-controls {
    gap: 8px;
  }
  
  .cart-item-controls button {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  
  .cart-item-quantity {
    font-size: 13px;
    min-width: 25px;
  }
  
  .cart-footer {
    padding: 12px 15px;
  }
  
  .cart-total {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .cart-checkout {
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
  }
  
  .cart-empty {
    padding: 30px 15px;
  }
  
  .cart-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
}

/* تحسين عام للسلة على جميع الأجهزة */
.floating-cart {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.cart-sidebar {
  -webkit-overflow-scrolling: touch;
}

.cart-content {
  -webkit-overflow-scrolling: touch;
}

/* تحسين الأزرار للمس */
.cart-item-controls button,
.cart-close,
.cart-checkout {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* تحسين الانتقالات للجوال */
@media (max-width: 768px) {
  .cart-sidebar {
    transition: right 0.25s ease-out;
  }
  
  .cart-overlay {
    transition: opacity 0.25s ease-out;
  }
  
  .floating-cart {
    transition: all 0.2s ease;
  }
}

