:root {
  /* Colors - Primary (Green) */
  --primary-light: #86C561;
  --primary: #5EA32B;
  --primary-dark: #457A20;

  /* Colors - Secondary (Lighter Green) */
  --secondary-light: rgba(94, 163, 43, 0.15);
  --secondary: #5EA32B;
  --secondary-dark: #457A20;

  /* Colors - Neutral */
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-600: #4B5563;
  --neutral-800: #1F2937;

  /* Colors - Semantic */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Typography */
  --font-arabic: 'Tajawal', sans-serif;
  --font-english: 'Poppins', sans-serif;

  /* Border Radius - Soft and Round */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;

  /* Soft Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--neutral-50);
  color: var(--neutral-600);
  line-height: 1.6;
  direction: rtl; /* Right to Left for Arabic by default */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--neutral-800);
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-weight: 400;
  color: var(--neutral-600);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Utility */
.font-en {
  font-family: var(--font-english);
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-neutral-800 { color: var(--neutral-800); }
.text-neutral-600 { color: var(--neutral-600); }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* Components */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-600);
  transition: color var(--transition-fast);
}

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

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--neutral-100);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: var(--neutral-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background-color: var(--primary-light);
  opacity: 0.1;
  border-radius: var(--radius-full);
  filter: blur(50px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background-color: var(--secondary-light);
  opacity: 0.1;
  border-radius: var(--radius-full);
  filter: blur(50px);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 10;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-image-backdrop {
  position: absolute;
  top: 2rem;
  left: -2rem;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.1;
  border-radius: var(--radius-2xl);
  z-index: 1;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* Responsive */
/* Moved to bottom media query */

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--neutral-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition-normal);
  width: 100%;
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: var(--radius-full);
  background-color: rgba(94, 163, 43, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card > div:not(.contact-card-icon) {
  flex: 1;
  min-width: 0; /* Allows flex children to shrink below their content size */
}

.contact-card h4 {
  font-size: 0.95rem;
  color: var(--neutral-800);
  margin-bottom: 0.15rem;
}

.contact-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-link {
  color: var(--primary);
  font-size: 0.9rem;
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-dark);
}

.map-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  border: 1px solid var(--neutral-100);
}

.map-container iframe {
  display: block;
}

/* Footer */
.footer {
  background-color: var(--neutral-800);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background-color: white;
  padding: 4px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-right: 6px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary-light);
  font-size: 1.1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #BCBFC3;
  p{
  color: #BCBFC3;
    
  }
}

.developed-by {
  font-family: var(--font-english);
  color:#BCBFC3;
}

.developer-name {
  color: var(--primary-light);
  font-weight: 600;
}

/* ===================== */
/* Offers / Products     */
/* ===================== */
.offers-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, white 0%, var(--neutral-50) 100%);
}

.offers-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: white;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 163, 43, 0.15);
}

.search-box i {
  color: var(--neutral-600);
  font-size: 1.25rem;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--neutral-800);
  background: transparent;
}

.search-box input::placeholder {
  color: #9CA3AF;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-100);
  background-color: white;
  color: var(--neutral-600);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: white;
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 10;
}

.product-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background-color: rgba(94, 163, 43, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-img {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.product-img.has-image {
  height: 180px;
  background-color: #fff;
  border: 1px solid var(--neutral-100);
}

.product-img i {
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-img i {
  opacity: 1;
  transform: scale(1.15);
}

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

/* Show More */
.show-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.show-more-btn {
  padding: 0.75rem 2.5rem !important;
  font-size: 1rem !important;
  border-radius: var(--radius-full) !important;
  gap: 0.5rem;
}

.show-more-btn i {
  transition: transform var(--transition-fast);
}

.show-more-btn:hover i {
  transform: translateY(3px);
}

.product-card h4 {
  font-size: 1.1rem;
  color: var(--neutral-800);
  margin-bottom: 0.35rem;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-100);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-add {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--primary);
  color: white;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-add:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.btn-add.added {
  background-color: var(--success);
}

.product-card.hidden {
  display: none;
}

/* ===================== */
/* Consultation Modal    */
/* ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem 1.75rem 0;
  gap: 1rem;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: var(--radius-full);
  background-color: rgba(94, 163, 43, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--neutral-800);
  margin-bottom: 0.15rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.modal-close {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--neutral-100);
  color: var(--neutral-600);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--error);
  color: white;
}

.modal-form {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-800);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group label i {
  color: var(--primary);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 163, 43, 0.12);
  background-color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===================== */
/* Toast Notifications   */
/* ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-right: 4px solid var(--success);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.75rem;
  color: var(--success);
}

.toast-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--neutral-800);
  margin-bottom: 0.1rem;
}

.toast-content p {
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.cart-toast {
  border-right-color: var(--primary);
}

/* ===================== */
/* Responsive additions  */
/* ===================== */
@media (max-width: 768px) {
  .offers-section {
    padding: 3rem 0;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-card {
    padding: 1.25rem;
  }

  .modal {
    max-width: 100%;
    margin: 0.5rem;
  }

  .modal-header {
    padding: 1.25rem 1.25rem 0;
  }

  .modal-form {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  /* Layout Adjustments (Moved from top) */
  .container {
    padding: 0 1rem;
  }
  
  .hero, .features, .contact-section {
    padding: 3rem 0;
  }

  /* Navbar */
  .nav-links {
    display: none; /* Hide simple desktop nav on mobile */
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  /* Hero Section */
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    margin: 0 auto 1.5rem;
    font-size: 1rem;
  }

  .hero-text .flex {
    flex-direction: column;
    width: 100%;
  }

  .hero-text .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-text .flex.items-center.gap-6 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem !important;
  }

  .hero-image-backdrop {
    display: none;
  }

  /* Footer & Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .map-container {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* Cart Badge            */
/* ===================== */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--error);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-english);
  transition: transform var(--transition-fast);
}

.cart-badge.pulse {
  animation: badgePulse 0.4s ease;
}

.cart-badge.hidden {
  display: none;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ===================== */
/* Cart Sidebar          */
/* ===================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.cart-overlay.active .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
}

.cart-header h3 {
  font-size: 1.15rem;
  color: var(--neutral-800);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  text-align: center;
}

.cart-empty p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.cart-empty span {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--neutral-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-100);
  transition: all var(--transition-fast);
  animation: cartItemIn 0.3s ease;
}

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

.cart-item-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border-radius: var(--radius-lg);
  background-color: rgba(94, 163, 43, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--neutral-800);
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-100);
  background-color: white;
  color: var(--neutral-800);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.qty-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neutral-800);
  min-width: 1.25rem;
  text-align: center;
  font-family: var(--font-english);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--neutral-600);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  color: var(--error);
  background-color: rgba(239, 68, 68, 0.1);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.cart-total-price {
  font-size: 1.35rem;
  color: var(--primary);
}

/* ===================== */
/* Cart Responsive       */
/* ===================== */
@media (max-width: 480px) {
  .cart-sidebar {
    max-width: 100%;
  }
}

/* ===================== */
/* Order Summary         */
/* ===================== */
.order-summary {
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.order-summary h4 {
  font-size: 0.95rem;
  color: var(--neutral-800);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.order-summary h4 i {
  color: var(--primary);
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--neutral-100);
  font-size: 0.9rem;
}

.order-summary-item:last-of-type {
  border-bottom: none;
}

.order-summary-item-name {
  color: var(--neutral-800);
  font-weight: 500;
}

.order-summary-item-qty {
  color: var(--neutral-600);
  font-size: 0.85rem;
}

.order-summary-item-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--primary-light);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neutral-800);
}

.order-summary-total span:last-child {
  color: var(--primary);
  font-size: 1.2rem;
}
