/* ===== JEBLI.CO OPTIMIZED DESIGN ===== */

/* Brand System Variables */
:root {
  /* Enhanced Color Palette */
  --sand-50: #F8F6F4;
  --sand-100: #F1EDE8;
  --sand-200: #E8E2DC;
  --sand-300: #D4CCC2;
  --sand-400: #B8ADA3;
  --sand-500: #9C8F84;
  --taupe-400: #A0968F;
  --taupe-500: #837C76;
  --taupe-600: #6B645E;
  --taupe-700: #534D47;
  --white: #FFFFFF;
  --charcoal-500: #6B645E;
  --charcoal-600: #4A453F;
  --charcoal-700: #3A3631;
  --charcoal-800: #2A2622;
  --charcoal-900: #1A1612;
  --black: #000000;
  --accent-red: #DC2626;
  --accent-red-light: #FEE2E2;
  --accent-red-dark: #B91C1C;
  --success-green: #059669;
  --success-light: #D1FAE5;
  --warning-amber: #D97706;
  --warning-light: #FEF3C7;

  /* Enhanced Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Enhanced Border Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Enhanced Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.05);

  /* Typography */
  --heading-font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body-font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --arabic-font: "Cairo", "IBM Plex Arabic", Tahoma, sans-serif;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

/* Global Box Sizing */
* {
  box-sizing: border-box;
}

/* Global Typography & Layout */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  font-weight: var(--font-normal);
  color: var(--charcoal-700);
  background: var(--white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  min-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Typography Hierarchy */
h1 {
  font-family: var(--heading-font);
  font-weight: var(--font-bold);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--charcoal-800);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg) 0;
}

h2 {
  font-family: var(--heading-font);
  font-weight: var(--font-semibold);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--charcoal-700);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md) 0;
}

h3 {
  font-family: var(--heading-font);
  font-weight: var(--font-semibold);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
  color: var(--charcoal-700);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm) 0;
}

h4 {
  font-family: var(--heading-font);
  font-weight: var(--font-medium);
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--charcoal-600);
  margin: 0 0 var(--space-sm) 0;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-600);
  margin: 0 0 var(--space-md) 0;
}

.muted {
  color: var(--taupe-600);
  font-size: 0.95rem;
}

/* Enhanced Layout System */
.section {
  padding: var(--space-4xl) 0;
}

.section--tint {
  background: var(--sand-50);
}

.section--dark {
  background: var(--charcoal-800);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

.center {
  text-align: center;
}

/* Ensure header container has proper spacing */
.header .container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Enhanced Card System */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  border: 1px solid var(--sand-200);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--elevated {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-300);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--sand-300);
}

/* Enhanced Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--charcoal-700);
  color: var(--white);
  font-weight: var(--font-semibold);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--charcoal-800);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: var(--sand-100);
  color: var(--charcoal-700);
  border: 1px solid var(--sand-300);
}

.btn--ghost:hover {
  background: var(--sand-200);
  color: var(--charcoal-800);
  border-color: var(--sand-400);
}

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

.btn--primary:hover {
  background: var(--accent-red-dark);
}

.btn--large {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.125rem;
  min-height: 56px;
}

.btn--small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  min-height: 36px;
}


.btn:focus {
  outline: 2px solid var(--taupe-500);
  outline-offset: 2px;
}

/* Enhanced Input System */
.input, .select, textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  border: 2px solid var(--sand-300);
  background: var(--white);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: var(--font-normal);
  color: var(--charcoal-700);
  box-sizing: border-box;
  min-height: 48px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus, .select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  transform: translateY(-1px);
}

.input::placeholder, textarea::placeholder {
  color: var(--taupe-500);
  font-weight: var(--font-normal);
}

.input[required], textarea[required] {
  border-left: 4px solid var(--accent-red);
}

.input[required]:focus, textarea[required]:focus {
  border-left-color: var(--accent-red-dark);
}

.section--tint {
  background: var(--sand-50);
}

/* Utility Classes */
.center {
  text-align: center;
}

.muted {
  color: #6b6763;
  margin-top: 8px;
}

.mt16 {
  margin-top: 16px;
}

.mt24 {
  margin-top: 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--4 {
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Enhanced Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sand-200);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--sand-300);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  min-height: 72px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: var(--font-bold);
  color: var(--charcoal-800);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.02em;
  position: relative;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--accent-red);
  transform: scale(1.05);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
  position: relative;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  min-width: 30px;
  min-height: 25px;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--charcoal-600);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu close button */
.mobile-menu-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: var(--charcoal-600);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 10001;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.mobile-menu-close:hover {
  background: var(--charcoal-700);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1000;
}

.nav-link {
  color: var(--charcoal-600);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--black);
  background: var(--sand-50);
}

.nav-link.active {
  color: var(--white);
  background: var(--charcoal-600);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 10000;
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
    box-sizing: border-box;
  }
  
  .nav.active {
    left: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-menu-close {
    display: block;
  }
  

  
  .nav-link {
    font-size: 24px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--sand-50);
    color: var(--charcoal-600);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    max-width: 300px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: var(--charcoal-600);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .actions {
    position: relative;
    z-index: 1001;
  }
  
  /* Ensure logo doesn't get cut off */
  .logo {
    margin-left: 0;
    padding-left: 0;
  }
  
  /* Ensure proper header spacing */
  .header__row {
    padding: 16px 20px;
  }
  
  /* Ensure logo stays on the left */
  .logo {
    font-size: 20px;
    flex-shrink: 0;
  }
  
  /* Show language selector on mobile, positioned next to menu button */
  .actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    margin-left: 0;
    flex-shrink: 0;
  }
  
  /* Language selector on mobile */
  .language-selector {
    position: relative;
  }
  
  .lang-dropdown {
    font-size: 14px;
    padding: 6px 8px;
    min-width: 50px;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
  }
  
  /* RTL Support for Arabic Mobile Header */
  [dir="rtl"] .header__row {
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .logo {
    margin-left: auto;
    margin-right: 0;
  }
  
  [dir="rtl"] .actions {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
  }
  
  [dir="rtl"] .mobile-menu-btn {
    margin-right: 0;
  }
  
  /* Ensure proper spacing in RTL */
  [dir="rtl"] .lang-dropdown {
    margin-left: 8px;
  }
  
  [dir="rtl"] .mobile-menu-btn {
    margin-right: 8px;
  }
  
  /* Ensure container doesn't overflow */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0;
  }
  
  /* Ensure header container doesn't overflow */
  .header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0;
  }
}

/* Enhanced Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sand-50) 0%, var(--white) 100%);
  padding: var(--space-4xl) 0 var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
    linear-gradient(45deg, transparent 0%, rgba(220, 38, 38, 0.02) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-decoration {
  margin-bottom: 20px;
}

.shopping-bag-icon {
  font-size: 64px;
  color: var(--accent-red);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.3));
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.shopping-bag-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(220, 38, 38, 0.4));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  color: var(--charcoal-800);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.muted {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--taupe-600);
  font-weight: var(--font-normal);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__cta .btn {
  min-width: 180px;
  font-size: 1.125rem;
  padding: var(--space-lg) var(--space-xl);
}

.backlink {
  margin-bottom: 12px;
  color: #8a857f;
}

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

.backlink a:hover {
  text-decoration: underline;
}

/* Order Section */
.order-section {
  background: var(--white);
  position: relative;
}

.order-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500), var(--accent-red));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.order-section .grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .order-section .grid {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
}

/* Price Lines */
.price-lines {
  display: grid;
  gap: 8px;
  background: var(--sand-50);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--sand-300);
}

.price-lines .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ece9e7;
  padding: 12px 0;
  font-size: 16px;
}

.price-lines .total {
  font-weight: var(--font-extrabold);
  font-size: 1.75rem;
  border-top: 3px solid var(--taupe-500);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  color: var(--charcoal-700);
  background: var(--sand-50);
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 2px solid var(--sand-300);
}

.price-lines .discount {
  color: #10b981;
  font-weight: 600;
  background: #d1fae5;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0;
  border: 1px solid #6ee7b7;
}

/* Product Items */
.product-item {
  background: var(--white);
  border: 2px solid var(--sand-300);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-red);
  position: relative;
}

.product-item-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-red);
}

.product-item-title {
  font-weight: 600;
  color: var(--charcoal-600);
  font-size: 16px;
}

.remove-item {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.remove-item:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.product-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-grid label {
  font-weight: 600;
  color: var(--charcoal-600);
  margin-bottom: 8px;
  font-size: 14px;
  display: block;
}

.product-grid .input {
  border: 2px solid var(--sand-300);
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.product-grid .input:focus {
  border-color: var(--taupe-500);
  box-shadow: 0 0 0 3px rgba(131, 124, 118, 0.1);
}

/* Required field styling */
.input[required], textarea[required] {
  border-left: 4px solid var(--accent-red);
}

.input[required]:focus, textarea[required]:focus {
  border-left-color: var(--accent-red);
}

/* Additional form field improvements */
.input, .select, textarea {
  box-sizing: border-box;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
}

.input::placeholder {
  color: var(--sand-300);
  opacity: 1;
}

/* Ensure proper spacing in product forms */
.product-item .input {
  margin-bottom: 0;
}

/* Enhanced Submit Button */
#submitSheet {
  background: linear-gradient(135deg, var(--taupe-500), var(--charcoal-600));
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(131, 124, 118, 0.3);
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#submitSheet:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(131, 124, 118, 0.4);
  background: linear-gradient(135deg, #2a2520, #1a1612);
  color: white;
}

#submitSheet:active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1a1612, #0f0d0a);
  color: white;
}

/* Start Options Grid */
.start-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .start-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.start-option-card {
  text-align: center;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.start-option-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* FAQ Grid Layout */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.faq-card {
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.faq-card h4 {
  margin-bottom: 12px;
  color: var(--charcoal-600);
  font-size: 18px;
}

/* Trust Indicators Section */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.trust-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
}

.trust-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  display: block;
}

.trust-item h4 {
  color: var(--charcoal-700);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
}

.trust-item p {
  color: var(--taupe-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Enhanced How It Works Section */
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.grid--4 .card {
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid--4 .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.grid--4 .card:hover::before {
  transform: scaleX(1);
}

.grid--4 .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-300);
}

.grid--4 .icon {
  font-size: 32px;
  margin-bottom: var(--space-sm);
  color: var(--accent-red);
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.grid--4 .card:hover .icon {
  transform: scale(1.1);
  color: var(--accent-red-dark);
}


.grid--4 h3 {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  font-weight: var(--font-semibold);
  color: var(--charcoal-700);
  line-height: 1.3;
}

.grid--4 p {
  font-size: 0.85rem;
  color: var(--taupe-600);
  line-height: 1.4;
  margin: 0;
}

/* Mobile Responsive for How It Works */
@media (max-width: 768px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .grid--4 .card {
    min-height: 160px;
    padding: var(--space-md);
  }
  
  .grid--4 .icon {
    font-size: 28px;
  }
  
  .grid--4 h3 {
    font-size: 0.9rem;
  }
  
  .grid--4 p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .grid--4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Discount Section */
.discount-section {
  background: var(--sand-50);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--sand-300);
}

.discount-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.discount-input-group .input {
  flex: 1;
  min-width: 0;
}

.discount-input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.discount-message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
}

.discount-message.success {
  background: var(--accent-red-light);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.discount-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.discount-message.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.discount-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--sand-300);
}

.discount-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discount-info .icon {
  font-size: 20px;
  color: #10b981;
  margin: 0;
}

.btn--small {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

/* Enhanced Footer */
.footer {
  background: 
    linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal-900) 100%),
    linear-gradient(45deg, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500), var(--accent-red));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  position: relative;
}

.footer-section h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-section h3::after,
.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), #B91C1C);
  border-radius: 1px;
}

.footer-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--sand-300);
}

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

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

.footer-section a {
  color: var(--sand-300);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* Fanari Labs Section */
.fanari-labs-btn {
  background: linear-gradient(135deg, var(--charcoal-600), var(--black));
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 30px;
}

.fanari-labs-btn:hover {
  background: linear-gradient(135deg, var(--black), var(--charcoal-600));
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.fanari-labs-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 14px;
}

.btn-text {
  font-family: var(--heading-font);
}

/* Fanari Labs Popup */
.fanari-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.fanari-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fanari-popup-content {
  background: var(--white);
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slideInUp 0.4s ease;
  border: 3px solid var(--charcoal-600);
}

.popup-header {
  background: linear-gradient(135deg, var(--charcoal-600), var(--black));
  color: var(--white);
  padding: 28px;
  text-align: center;
  position: relative;
}

.popup-header h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  font-family: var(--heading-font);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



.popup-body {
  padding: 36px 28px;
  background: var(--white);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 2px solid var(--sand-50);
  transition: all 0.3s ease;
  border-radius: 12px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

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

.contact-item:hover {
  background: var(--sand-50);
  margin: 0 -8px;
  padding: 20px 8px;
  border-radius: 12px;
  transform: translateX(4px);
}

.contact-icon {
  font-size: 28px;
  width: 48px;
  text-align: center;
  background: var(--sand-50);
  border-radius: 12px;
  padding: 12px;
  border: 2px solid var(--sand-300);
}

.contact-link {
  color: var(--charcoal-600);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.contact-link:hover {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.popup-footer {
  background: var(--charcoal-600);
  padding: 24px 28px;
  text-align: center;
  border-top: 2px solid var(--sand-300);
}

.popup-description {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  opacity: 0.9;
}

/* Popup Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced Focus States */
*:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, select, textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(135deg, var(--sand-50) 0%, var(--white) 100%);
  padding: var(--space-4xl) 0 var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--charcoal-800);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
}

.contact-hero p {
  font-size: 1.25rem;
  color: var(--taupe-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
  align-items: start;
}

/* Contact Info Cards */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  height: fit-content;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-md);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
}

.contact-icon {
  font-size: 48px;
  display: block;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
  padding: var(--space-sm);
  background: var(--sand-50);
  border-radius: var(--radius);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-card h3 {
  color: var(--charcoal-700);
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

.contact-card p {
  color: var(--charcoal-600);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-card p:last-child {
  color: var(--taupe-600);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
}

.contact-card a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent-red-dark);
  text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
  position: sticky;
  top: 100px;
}

.contact-form-section .card {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-300);
}

.contact-form-section h2 {
  color: var(--charcoal-700);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
  font-weight: var(--font-bold);
}

.contact-form-section p {
  color: var(--taupe-600);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-weight: var(--font-semibold);
  color: var(--charcoal-700);
  font-size: 0.95rem;
}

.form-group .input {
  min-height: 48px;
  font-size: 1rem;
  border: 2px solid var(--sand-300);
  transition: all 0.3s ease;
}

.form-group .input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--body-font);
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
}

.faq-item h4 {
  color: var(--charcoal-700);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  font-weight: var(--font-semibold);
}

.faq-item p {
  color: var(--taupe-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Social Media Section */
.social-section {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.social-section h2 {
  color: var(--charcoal-700);
  margin-bottom: var(--space-sm);
  font-size: 2rem;
  font-weight: var(--font-bold);
}

.social-section p {
  color: var(--taupe-600);
  margin-bottom: var(--space-2xl);
  font-size: 1.125rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  text-decoration: none;
  color: var(--charcoal-600);
  transition: all 0.3s ease;
  min-width: 120px;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
  color: var(--accent-red);
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-link:hover .social-icon {
  transform: scale(1.1);
}

.social-link span {
  font-weight: var(--font-medium);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .contact-info {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .contact-card {
    padding: var(--space-lg);
    min-height: 220px;
    gap: var(--space-sm);
  }
  
  .contact-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
  }
  
  .contact-card h3 {
    font-size: 0.9rem;
  }
  
  .contact-card p {
    font-size: 0.8rem;
  }
  
  .contact-card p:last-child {
    font-size: 0.75rem;
  }
  
  .contact-form-section {
    position: static;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .social-links {
    gap: var(--space-md);
  }
  
  .social-link {
    min-width: 100px;
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: var(--space-3xl) 0 var(--space-2xl) 0;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
  }
  
  .contact-hero p {
    font-size: 1rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .contact-card {
    min-height: 200px;
    padding: var(--space-md);
    gap: var(--space-sm);
  }
  
  .contact-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(174, 165, 157, 0.3);
  color: var(--sand-300);
  position: relative;
  z-index: 1;
}



/* Language Selector */
.language-selector {
  position: relative;
}

.lang-dropdown {
  background: linear-gradient(145deg, var(--white), var(--sand-50));
  border: 2px solid var(--sand-300);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal-600);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 70px;
  text-align: center;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837C76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: var(--heading-font);
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.lang-dropdown:hover {
  border-color: var(--taupe-500);
  background: linear-gradient(145deg, var(--sand-50), var(--white));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lang-dropdown:focus {
  outline: none;
  border-color: var(--taupe-500);
  box-shadow: 0 0 0 4px rgba(131, 124, 118, 0.15);
  transform: translateY(-1px);
}

.lang-dropdown option {
  background: var(--white);
  color: var(--charcoal-600);
  padding: 12px;
  font-weight: 500;
  border-radius: 8px;
}

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

[dir="rtl"] .hero__cta {
  flex-direction: row-reverse;
}

[dir="rtl"] .price-lines .row {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-item-header {
  flex-direction: row-reverse;
}

/* High contrast and accessibility */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .input:focus, .select:focus, textarea:focus {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* ===== SHOPS PAGE STYLES ===== */

/* Shops Grid Layout */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .shops-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .shops-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .shop-logo {
    width: 220px;
    height: 220px;
    padding: 12px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .shop-logo {
    width: 200px;
    height: 200px;
    padding: 10px;
    margin-bottom: 16px;
  }
}

/* Shop Card */
.shop-card {
  background: linear-gradient(145deg, var(--white), var(--sand-50));
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--sand-300);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.shop-card:hover::before {
  left: 100%;
}

.shop-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--taupe-500);
}

.shop-logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--white), var(--sand-50));
  padding: 16px;
  border: 2px solid var(--sand-300);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.shop-card:hover .shop-logo {
  transform: scale(1.1);
  border-color: var(--taupe-500);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.shop-name {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal-600);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.shop-description {
  color: var(--taupe-500);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 48px;
  font-weight: 400;
}

.shop-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-red), #B91C1C);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.shop-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--charcoal-600), var(--black));
  color: var(--white);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-link:hover {
  background: linear-gradient(135deg, var(--black), var(--charcoal-600));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Filters Section */
.filters-section {
  background: linear-gradient(145deg, var(--white), var(--sand-50));
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid rgba(174, 165, 157, 0.2);
  position: relative;
  overflow: hidden;
}

.filters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500), var(--accent-red));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  position: relative;
  z-index: 1;
}

@media (min-width: 600px) {
  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
  }
}

.filters-grid > div {
  display: flex;
  flex-direction: column;
}

.filters-grid label {
  font-weight: 700;
  color: var(--charcoal-600);
  margin-bottom: 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--heading-font);
}

.filters-grid .select,
.filters-grid .input {
  border: 2px solid var(--sand-300);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-grid .select:hover,
.filters-grid .input:hover {
  border-color: var(--taupe-500);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filters-grid .select:focus,
.filters-grid .input:focus {
  outline: none;
  border-color: var(--taupe-500);
  box-shadow: 0 0 0 4px rgba(131, 124, 118, 0.15);
  transform: translateY(-1px);
}

/* Shops Hero */
.shops-hero {
  text-align: center;
  padding: 100px 0;
  background: 
    linear-gradient(135deg, var(--sand-50) 0%, var(--white) 100%),
    linear-gradient(90deg, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.02) 100%);
  position: relative;
  overflow: hidden;
}


.shops-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  color: var(--charcoal-600);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.shops-hero p {
  font-size: 20px;
  color: var(--taupe-500);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 1;
}



/* Contact Links */
.contact-link {
  color: var(--charcoal-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--black);
  text-decoration: underline;
}

.btn--whatsapp {
  background: #25D366 !important;
  color: white !important;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn--whatsapp:hover {
  background: #128C7E !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== ORDER SUBMISSION SUCCESS NOTIFICATION STYLES ===== */

.tracking-display {
  margin: 40px 0;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracking-success {
  background: linear-gradient(135deg, var(--sand-50) 0%, var(--white) 100%);
  border: 2px solid var(--charcoal-600);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.tracking-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--taupe-500), var(--accent-red));
}

.tracking-success h3 {
  color: var(--charcoal-600);
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--heading-font);
}

.tracking-id-section {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid var(--sand-300);
  box-shadow: var(--shadow-soft);
}

.tracking-id-section p {
  margin: 0 0 16px 0;
  color: var(--charcoal-600);
  font-weight: 600;
  font-size: 16px;
  font-family: var(--body-font);
}

.tracking-id-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tracking-id {
  background: var(--charcoal-600);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  border: 2px solid var(--taupe-500);
  box-shadow: var(--shadow-soft);
  user-select: all;
}

.copy-btn {
  background: var(--charcoal-600);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  font-family: var(--body-font);
}

.copy-btn:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.copy-btn:active {
  transform: translateY(0);
}

.tracking-success p:not(.tracking-id-section p) {
  color: var(--charcoal-600);
  font-size: 16px;
  margin: 12px 0;
  line-height: 1.6;
  font-family: var(--body-font);
}

/* Animation for the notification */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TRACKING PAGE STYLES ===== */

.tracking-container {
    max-width: 800px;
    margin: 0 auto;
}

.tracking-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tracking-card h3 {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.tracking-form {
    display: flex;
    gap: 16px;
    align-items: end;
}

.tracking-form .input-group {
    flex: 1;
}

.tracking-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.tracking-form .input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.tracking-form .input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tracking-form .btn {
    padding: 12px 24px;
    white-space: nowrap;
}

/* Results Section */
.tracking-results {
    margin-top: 24px;
}

.result-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.result-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.copy-tracking-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-tracking-btn:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.copy-tracking-btn.copied {
    background: var(--success-color);
}

/* Order Details */
.order-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Order Status */
.order-status {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--sand-300);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

.status-submitted {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.status-preparing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
}

.status-shipped {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #22c55e;
}

.status-delivered {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.status-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
}

.status-icon {
    font-size: 20px;
}

.order-date {
    color: var(--charcoal-600);
    font-size: 14px;
    font-weight: 500;
}

/* Order Items */
.order-items h4 {
    margin: 0 0 16px 0;
    color: var(--charcoal-600);
    font-size: 18px;
    font-weight: 600;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    padding: 16px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--sand-300);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-link {
    color: var(--charcoal-600);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
    font-size: 14px;
}

.item-link:hover {
    color: var(--black);
    text-decoration: underline;
}

.item-meta-tag {
    display: inline-block;
    background: var(--sand-50);
    color: var(--charcoal-600);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 4px;
}

.no-items {
    text-align: center;
    color: var(--charcoal-600);
    font-style: italic;
    padding: 20px;
}

/* Order Total */
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--sand-50);
    border-radius: 12px;
    border: 1px solid var(--sand-300);
    margin-top: 16px;
}

.total-label {
    color: var(--charcoal-600);
    font-weight: 600;
    font-size: 16px;
}

.total-amount {
    color: var(--charcoal-600);
    font-size: 20px;
    font-weight: 700;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-results h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.no-results .muted {
    margin: 0 0 24px 0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
}

/* Responsive Design for Tracking */
@media (max-width: 768px) {
    .tracking-container {
        padding: 0 16px;
    }
    
    .tracking-card {
        padding: 24px 20px;
        margin-bottom: 16px;
    }
    
    .tracking-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tracking-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-card {
        padding: 24px 20px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .copy-tracking-btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-status {
        padding: 16px;
        margin: 16px 0;
    }
    
    .status-badge {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .order-items h4 {
        font-size: 16px;
    }
    
    .item-row {
        padding: 12px;
    }
    
    .item-meta-tag {
        display: block;
        margin-bottom: 6px;
        margin-right: 0;
    }
    
    .order-total {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .total-amount {
        font-size: 18px;
    }
}

/* ===== TOAST NOTIFICATION STYLES ===== */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  max-width: 350px;
  word-wrap: break-word;
  box-shadow: var(--shadow);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  backdrop-filter: blur(10px);
  font-family: var(--body-font);
}

.toast:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.toast-success {
  background: linear-gradient(135deg, var(--accent-red), #B91C1C);
  border-left: 4px solid var(--white);
}

.toast-error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-left: 4px solid #991b1b;
}

.toast-info {
  background: linear-gradient(135deg, var(--taupe-500), var(--charcoal-600));
  border-left: 4px solid var(--sand-300);
}

/* Toast animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .tracking-success {
    padding: 24px 20px;
    margin: 20px 0;
  }
  
  .tracking-success h3 {
    font-size: 24px;
  }
  
  .tracking-id-display {
    flex-direction: column;
    gap: 12px;
  }
  
  .tracking-id {
    font-size: 16px;
    padding: 10px 16px;
  }
  
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
  
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 13px;
    padding: 14px 20px;
  }
}

/* RTL support for Arabic */
[dir="rtl"] .tracking-success {
  text-align: center;
}

[dir="rtl"] .tracking-id-display {
  flex-direction: row-reverse;
}

[dir="rtl"] .toast {
  right: auto;
  left: 20px;
  border-left: none;
  border-right: 4px solid;
}

[dir="rtl"] .toast-success {
  border-right-color: var(--taupe-500);
}

[dir="rtl"] .toast-error {
  border-right-color: #991b1b;
}

[dir="rtl"] .toast-info {
  border-right-color: var(--sand-300);
}

@media (max-width: 768px) {
  [dir="rtl"] .toast {
    left: 10px;
    right: 10px;
  }
}

/* RTL Support for Contact Page */
[dir="rtl"] .contact-grid {
  direction: rtl;
}

[dir="rtl"] .contact-card {
  text-align: right;
}

[dir="rtl"] .contact-form {
  direction: rtl;
}

[dir="rtl"] .contact-form .form-group {
  text-align: right;
}

[dir="rtl"] .contact-form label {
  text-align: right;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea,
[dir="rtl"] .contact-form select {
  text-align: right;
}

[dir="rtl"] .contact-form input::placeholder,
[dir="rtl"] .contact-form textarea::placeholder {
  text-align: right;
}

/* RTL Support for Track Page */
[dir="rtl"] .tracking-form {
  direction: rtl;
}

[dir="rtl"] .tracking-form .input-group {
  text-align: right;
}

[dir="rtl"] .tracking-form label {
  text-align: right;
}

[dir="rtl"] .tracking-form input {
  text-align: right;
}

[dir="rtl"] .tracking-form input::placeholder {
  text-align: right;
}

[dir="rtl"] .tracking-results {
  direction: rtl;
}

[dir="rtl"] .order-details {
  text-align: right;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .tracking-success {
    background: linear-gradient(135deg, var(--charcoal-600) 0%, var(--black) 100%);
    border-color: var(--taupe-500);
  }
  
  .tracking-success h3,
  .tracking-success p:not(.tracking-id-section p) {
    color: var(--sand-50);
  }
  
  .tracking-id-section {
    background: rgba(87, 83, 79, 0.9);
    border-color: var(--sand-300);
  }
  
  .tracking-id-section p {
    color: var(--sand-50);
  }
}

/* ===== ENHANCED TRACKING PAGE STYLES ===== */

/* Tracking Header */
.tracking-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.tracking-subtitle {
  color: var(--taupe-600);
  font-size: 16px;
  margin-top: var(--space-sm);
}

/* Order Header Card */
.order-header-card {
  background: linear-gradient(135deg, var(--sand-50) 0%, var(--white) 100%);
  border: 2px solid var(--accent-red);
  margin-bottom: var(--space-lg);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.order-title {
  color: var(--charcoal-800);
  margin: 0;
  font-size: 24px;
}

.tracking-id-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.tracking-id-label {
  color: var(--taupe-600);
  font-weight: 500;
}

.tracking-id-value {
  background: var(--accent-red);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.copy-tracking-btn {
  background: var(--taupe-500);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-tracking-btn:hover {
  background: var(--taupe-600);
  transform: translateY(-1px);
}

.copy-tracking-btn.copied {
  background: var(--success-green);
}

/* Order Status Display */
.order-status-display {
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-submitted {
  background: #DBEAFE;
  color: #1E40AF;
  border: 2px solid #3B82F6;
}

.status-preparing {
  background: #FEF3C7;
  color: #92400E;
  border: 2px solid #F59E0B;
}

.status-shipped {
  background: #DCFCE7;
  color: #166534;
  border: 2px solid #22C55E;
}

.status-delivered {
  background: #D1FAE5;
  color: #065F46;
  border: 2px solid #10B981;
}

.status-cancelled {
  background: #FEE2E2;
  color: #991B1B;
  border: 2px solid #EF4444;
}

.status-description {
  color: var(--taupe-600);
  font-size: 14px;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* Timeline */
.timeline-card {
  margin-bottom: var(--space-lg);
}

.timeline-title {
  color: var(--charcoal-800);
  margin-bottom: var(--space-lg);
  font-size: 20px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--taupe-300);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -22px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item.completed .timeline-marker {
  background: var(--success-green);
  border-color: var(--success-green);
}

.timeline-item.current .timeline-marker {
  background: var(--accent-red);
  border-color: var(--accent-red);
  animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
  background: var(--taupe-300);
  border-color: var(--taupe-300);
}

.timeline-icon {
  font-size: 14px;
  color: white;
}

.timeline-content {
  background: var(--sand-50);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--taupe-200);
}

.timeline-content .timeline-title {
  color: var(--charcoal-800);
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
  font-size: 16px;
}

.timeline-description {
  color: var(--taupe-600);
  font-size: 14px;
  margin: 0 0 var(--space-sm) 0;
}

.timeline-date {
  color: var(--taupe-500);
  font-size: 12px;
  font-weight: 500;
}

/* Order Details Grid */
.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--taupe-200);
}

.detail-title {
  color: var(--charcoal-800);
  margin: 0 0 var(--space-md) 0;
  font-size: 18px;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-red);
}

.detail-content {
  padding: 0;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--taupe-100);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--taupe-600);
  font-weight: 500;
  font-size: 14px;
}

.info-value {
  color: var(--charcoal-800);
  font-weight: 600;
  text-align: right;
}

.info-link {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
}

.info-link:hover {
  text-decoration: underline;
}

.info-value.notes {
  font-style: italic;
  color: var(--taupe-600);
}

/* Summary Rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--taupe-100);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total-row {
  background: var(--sand-50);
  margin: var(--space-sm) -var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 2px solid var(--accent-red);
}

.summary-label {
  color: var(--taupe-600);
  font-weight: 500;
}

.summary-value {
  color: var(--charcoal-800);
  font-weight: 600;
}

.total-amount {
  color: var(--accent-red);
  font-size: 18px;
  font-weight: 700;
}

/* Items Card */
.items-card {
  grid-column: 1 / -1;
}

.item-card {
  background: var(--sand-50);
  border: 1px solid var(--taupe-200);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.item-card:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.item-number {
  background: var(--accent-red);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.item-link {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.item-link:hover {
  text-decoration: underline;
}

.item-url {
  color: var(--charcoal-700);
  font-size: 14px;
  margin-bottom: var(--space-sm);
  word-break: break-all;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.item-meta-tag {
  background: var(--taupe-200);
  color: var(--charcoal-700);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.item-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.item-weight {
  color: var(--taupe-600);
  font-size: 12px;
}

/* Status Values */
.info-value.shipped {
  color: var(--success-green);
  font-weight: 600;
}

.info-value.delivered {
  color: var(--success-green);
  font-weight: 700;
}

.info-value.pending {
  color: var(--warning-amber);
  font-weight: 600;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-header {
    flex-direction: column;
    text-align: center;
  }
  
  .order-status-display {
    text-align: center;
  }
  
  .timeline {
    padding-left: 20px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-marker {
    left: -15px;
    width: 25px;
    height: 25px;
  }
  
  .timeline-icon {
    font-size: 12px;
  }
  
  .order-details-grid {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .info-value {
    text-align: left;
  }
  
  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .item-pricing {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

/* ===== CALCULATOR STYLES ===== */

.calculator-hero {
  background: linear-gradient(135deg, var(--sand-50) 0%, var(--sand-100) 100%);
  padding: var(--space-4xl) 0;
}

.calculator-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-200);
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.calculator-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal-800);
  margin-bottom: var(--space-sm);
}

.calculator-form {
  margin-bottom: var(--space-2xl);
}

.calculator-items {
  margin-bottom: var(--space-xl);
}

.calculator-item {
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--sand-200);
  position: relative;
}

.calculator-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.calculator-item-title {
  font-weight: 600;
  color: var(--charcoal-800);
  font-size: 1rem;
}

.remove-item-btn {
  background: var(--accent-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.remove-item-btn:hover {
  background: var(--accent-red-dark);
  transform: scale(1.1);
}

.calculator-item-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: end;
}

.calculator-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.calculator-actions .btn--secondary {
  background: var(--sand-200);
  color: var(--charcoal-700);
  border: 1px solid var(--sand-300);
}

.calculator-actions .btn--secondary:hover {
  background: var(--sand-300);
  color: var(--charcoal-800);
}

.items-breakdown {
  margin-bottom: var(--space-xl);
  max-height: 300px;
  overflow-y: auto;
}

.item-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--sand-200);
  font-size: 0.9rem;
}

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

.item-breakdown-name {
  color: var(--charcoal-700);
  font-weight: 500;
}

.item-breakdown-price {
  color: var(--charcoal-800);
  font-weight: 600;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group .input {
  padding-right: 3rem;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  min-width: 120px;
}

.input-suffix {
  position: absolute;
  right: var(--space-md);
  color: var(--taupe-600);
  font-weight: 500;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Remove number input spinners */
.input-group .input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.input-group .input[type="number"]::-webkit-outer-spin-button,
.input-group .input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.calculator-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-lg);
}

.calculator-results {
  background: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--sand-200);
}

.results-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.results-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal-800);
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--sand-200);
}

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

.result-item.result-total {
  background: var(--accent-red-light);
  margin: var(--space-md) -var(--space-md) 0;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius);
  border: 2px solid var(--accent-red);
}

.result-label {
  font-weight: 500;
  color: var(--charcoal-700);
}

.result-value {
  font-weight: 600;
  color: var(--charcoal-800);
  font-size: 1.1rem;
}

.result-total .result-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.result-total .result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
}

.results-note {
  margin-top: var(--space-lg);
  text-align: center;
}

.results-note p {
  font-size: 0.9rem;
  color: var(--taupe-600);
  font-style: italic;
}

.calculator-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-200);
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal-800);
  margin-bottom: var(--space-sm);
}

.info-card p {
  color: var(--taupe-600);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Calculator Responsive Design */
@media (max-width: 768px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 100%;
    padding: 0 var(--space-md);
  }
  
  .calculator-card {
    padding: var(--space-xl);
    margin: 0;
  }
  
  .calculator-header h2 {
    font-size: 1.5rem;
  }
  
  .calculator-item-fields {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .calculator-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }
  
  .calculator-actions .btn {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1rem;
  }
  
  .result-total .result-value {
    font-size: 1.25rem;
  }
  
  .info-card {
    padding: var(--space-lg);
  }
  
  .input-group .input {
    min-width: 100px;
    font-size: 1rem;
    padding: var(--space-md) 3rem var(--space-md) var(--space-md);
  }
  
  .calculator-item {
    padding: var(--space-lg);
  }
}
