/* =====================================================
   TREEDON CUSTOM STYLES - Premium Design Enhancement
   ===================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* =====================================================
   CSS VARIABLES - Modern Color Palette
   ===================================================== */
:root {
  /* Primary Colors - Lush Green Gradient */
  --treedon-primary: #2d7a4f;
  --treedon-primary-dark: #1a5a37;
  --treedon-primary-light: #4fa06e;

  /* Accent Colors */
  --treedon-gold: #d4a853;
  --treedon-gold-light: #f0d78c;
  --treedon-coral: #e86a5c;

  /* Neutral Colors */
  --treedon-dark: #1a2e25;
  --treedon-text: #3d5347;
  --treedon-muted: #6b8477;
  --treedon-light: #f5f9f6;
  --treedon-white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2d7a4f 0%, #1a5a37 100%);
  --gradient-hero: linear-gradient(180deg, rgba(26, 46, 37, 0.85) 0%, rgba(45, 122, 79, 0.75) 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5f9f6 100%);
  --gradient-gold: linear-gradient(135deg, #d4a853 0%, #f0d78c 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 122, 79, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 122, 79, 0.12);
  --shadow-lg: 0 16px 48px rgba(45, 122, 79, 0.16);
  --shadow-glow: 0 0 40px rgba(45, 122, 79, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* =====================================================
   HERO SECTION - Stunning Visual Impact
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 46, 37, 0.9) 0%, rgba(45, 122, 79, 0.8) 100%),
    url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=1920') center/cover no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(79, 160, 110, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--treedon-gold-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--treedon-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-gold);
  color: var(--treedon-dark);
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.4);
  border: none;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(212, 168, 83, 0.5);
  color: var(--treedon-dark);
}

.hero-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.hero-btn:hover i {
  transform: translateX(4px);
}

/* Floating Elements Animation */
.hero-floating {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero-floating:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero-floating:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: 1s;
}

.hero-floating:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

.hero-floating:nth-child(4) {
  bottom: 30%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Stats in Hero */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--treedon-gold-light);
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   SECTION STYLING - Elegant Sections
   ===================================================== */
.section-modern {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(45, 122, 79, 0.1);
  color: var(--treedon-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--treedon-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--treedon-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   HOW IT WORKS - Modern Step Cards
   ===================================================== */
.how-it-works {
  background: var(--treedon-light);
}

.step-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid rgba(45, 122, 79, 0.08);
  height: 100%;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
  opacity: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.3);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--treedon-dark);
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--treedon-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =====================================================
   IMPACT STATS - Glassmorphism Cards
   ===================================================== */
.impact-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.impact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.impact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.impact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.impact-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--treedon-white);
  margin-bottom: 0.5rem;
}

.impact-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   TREE CARDS - Premium Product Design
   ===================================================== */
.tree-products {
  background: var(--treedon-light);
}

.country-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.country-tab {
  background: var(--treedon-white);
  border: 2px solid rgba(45, 122, 79, 0.2);
  color: var(--treedon-primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.country-tab:hover {
  border-color: var(--treedon-primary);
  background: rgba(45, 122, 79, 0.05);
}

.country-tab.active {
  background: var(--gradient-primary);
  color: var(--treedon-white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.3);
}

/* Tree Card - Premium Style */
.tree-card-modern {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(45, 122, 79, 0.08);
  height: 100%;
}

.tree-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.tree-card-header {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.tree-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--treedon-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.tree-price-tag {
  background: var(--gradient-primary);
  color: var(--treedon-white);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(45, 122, 79, 0.3);
}

/* Promo Badge - Simple rounded label */
.promo-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #e53935 !important;
  color: white !important;
  padding: 5px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  z-index: 10 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3) !important;
}

/* Card with Promo - Keep simple */
.tree-card-modern.has-promo {
  position: relative !important;
}

/* Header needs position relative for absolute badge */
.tree-card-modern.has-promo .tree-card-header {
  position: relative !important;
}

/* Promo Price Styling - Horizontal layout with green background */
.tree-price-tag.promo-price {
  background: var(--gradient-primary) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  box-shadow: 0 4px 16px rgba(45, 122, 79, 0.3) !important;
}

.tree-price-tag.promo-price .old-price {
  font-size: 0.85rem !important;
  text-decoration: line-through !important;
  opacity: 0.7 !important;
  font-weight: 500 !important;
}

.tree-price-tag.promo-price .new-price {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

.tree-card-body {
  padding: 1.5rem;
}

.tree-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--treedon-dark);
  margin-bottom: 1rem;
}

.tree-impact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.tree-impact-icon {
  width: 32px;
  height: 32px;
  background: rgba(45, 122, 79, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--treedon-primary);
  font-size: 1rem;
}

.tree-impact-text {
  font-size: 0.9rem;
  color: var(--treedon-text);
}

/* Progress bars for impact */
.impact-progress-wrapper {
  margin-bottom: 1rem;
}

.impact-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--treedon-muted);
  margin-bottom: 6px;
}

.impact-progress-bar {
  height: 8px;
  background: rgba(45, 122, 79, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.impact-progress-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1s ease;
}

.impact-progress-fill.co2 {
  background: linear-gradient(90deg, #4caf50, #81c784);
}

.impact-progress-fill.fruit {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

/* Donor Input */
.donor-input-wrapper {
  margin: 1.25rem 0;
}

.donor-input-modern {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(45, 122, 79, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.3s;
  background: var(--treedon-light);
}

.donor-input-modern:focus {
  outline: none;
  border-color: var(--treedon-primary);
  background: var(--treedon-white);
  box-shadow: 0 0 0 4px rgba(45, 122, 79, 0.1);
}

.donor-input-modern::placeholder {
  color: var(--treedon-muted);
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(45, 122, 79, 0.2);
  background: var(--treedon-white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--treedon-primary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--treedon-primary);
  color: var(--treedon-white);
  border-color: var(--treedon-primary);
}

.qty-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--treedon-dark);
  min-width: 40px;
  text-align: center;
}

/* Add to Cart Button */
.btn-add-cart {
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-primary);
  color: var(--treedon-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-add-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-add-cart:hover::before {
  left: 100%;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.4);
}

.btn-add-cart.added {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

/* =====================================================
   PROJECT CARDS - Impact Stories
   ===================================================== */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--treedon-white);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-primary);
  color: var(--treedon-white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--treedon-dark);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--treedon-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =====================================================
   TESTIMONIALS - Trust Section
   ===================================================== */
.testimonial-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 122, 79, 0.08);
}

.testimonial-stars {
  color: var(--treedon-gold);
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--treedon-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--treedon-dark);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--treedon-muted);
}

/* =====================================================
   UTILITIES & ANIMATIONS
   ===================================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  position: relative;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d7a4f' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Pulse animation for buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 122, 79, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(45, 122, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(45, 122, 79, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .section-modern {
    padding: 4rem 0;
  }

  .impact-card {
    padding: 1.5rem;
  }

  .impact-number {
    font-size: 2.5rem;
  }
}


/* =====================================================
   CART PAGE - Premium Design
   ===================================================== */

/* Cart Hero */
.cart-hero {
  background: var(--gradient-primary);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cart-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(79, 160, 110, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.cart-hero-content {
  position: relative;
  z-index: 1;
}

.cart-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.cart-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--treedon-white);
  margin-bottom: 1rem;
}

.cart-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.cart-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.cart-breadcrumb a:hover {
  color: var(--treedon-gold-light);
}

.cart-breadcrumb i {
  font-size: 0.75rem;
}

.cart-breadcrumb span {
  color: var(--treedon-gold-light);
}

/* Cart Section */
.cart-section {
  padding: 4rem 0;
  background: var(--treedon-light);
  min-height: 60vh;
}

/* Cart Items Container */
.cart-items-container {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-items-header {
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f2 100%);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(45, 122, 79, 0.1);
  font-weight: 600;
  color: var(--treedon-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cart Item Card */
.cart-item-card {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(45, 122, 79, 0.08);
  position: relative;
  transition: background 0.3s;
}

.cart-item-card:hover {
  background: rgba(45, 122, 79, 0.02);
}

.cart-item-card:last-child {
  border-bottom: none;
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--treedon-dark);
  margin-bottom: 0.25rem;
}

.cart-item-id {
  font-size: 0.8rem;
  color: var(--treedon-muted);
}

.cart-item-price,
.cart-item-qty,
.cart-item-total {
  padding: 0.5rem 0;
}

.price-label,
.qty-label,
.total-label {
  font-size: 0.8rem;
  color: var(--treedon-muted);
  margin-right: 0.5rem;
}

.price-value {
  font-weight: 600;
  color: var(--treedon-text);
}

.total-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--treedon-primary);
}

/* Quantity Controls */
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--treedon-light);
  padding: 6px 12px;
  border-radius: 50px;
}

.qty-btn-round {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--treedon-white);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--treedon-primary);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.qty-btn-round:hover {
  background: var(--treedon-primary);
  color: var(--treedon-white);
  transform: scale(1.1);
}

.qty-number {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
  color: var(--treedon-dark);
}

/* Donor Section in Cart */
.cart-item-donors {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(45, 122, 79, 0.15);
}

.donors-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--treedon-primary);
  margin-bottom: 0.75rem;
}

.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.donor-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.donor-label {
  font-size: 0.75rem;
  color: var(--treedon-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.donor-input-field {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(45, 122, 79, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all 0.3s;
  background: var(--treedon-light);
}

.donor-input-field:focus {
  outline: none;
  border-color: var(--treedon-primary);
  background: var(--treedon-white);
  box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.donor-input-field::placeholder {
  color: var(--treedon-muted);
}

/* Remove Button */
.cart-item-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(232, 106, 92, 0.1);
  color: var(--treedon-coral);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: var(--treedon-coral);
  color: var(--treedon-white);
  transform: scale(1.1);
}

/* Cart Bottom Actions */
.cart-bottom-actions {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f2 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-clear-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--treedon-coral);
  color: var(--treedon-coral);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-clear-cart:hover {
  background: var(--treedon-coral);
  color: var(--treedon-white);
}

.btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--treedon-primary);
  color: var(--treedon-primary);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-continue-shopping:hover {
  background: var(--treedon-primary);
  color: var(--treedon-white);
}

/* Order Summary Card */
.order-summary-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.summary-header {
  background: var(--gradient-primary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--treedon-white);
}

.summary-header i {
  font-size: 1.5rem;
}

.summary-header h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  font-size: 1.25rem;
}

.summary-body {
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--treedon-text);
}

.summary-value {
  font-weight: 600;
}

.summary-free {
  background: rgba(45, 122, 79, 0.1);
  color: var(--treedon-primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 79, 0.2), transparent);
  margin: 0.5rem 0;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--treedon-dark);
}

.summary-total span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--treedon-primary);
}

.summary-footer {
  padding: 0 1.5rem 1.5rem;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-gold);
  color: var(--treedon-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.4s;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 168, 83, 0.4);
  color: var(--treedon-dark);
}

/* Trust Badges */
.trust-badges {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f2 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--treedon-muted);
}

.trust-badge i {
  color: var(--treedon-primary);
  font-size: 1rem;
}

/* Impact Preview Card */
.impact-preview-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 122, 79, 0.1);
}

.impact-preview-header {
  background: rgba(45, 122, 79, 0.05);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--treedon-primary);
  font-weight: 600;
}

.impact-preview-stats {
  padding: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.impact-stat-item {
  text-align: center;
}

.impact-stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.impact-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--treedon-primary);
  display: block;
}

.impact-stat-label {
  font-size: 0.75rem;
  color: var(--treedon-muted);
}

/* Empty Cart State */
.empty-cart {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-cart h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--treedon-dark);
  margin-bottom: 0.75rem;
}

.empty-cart p {
  color: var(--treedon-muted);
  margin-bottom: 2rem;
}

.btn-browse-trees {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: var(--treedon-white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s;
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.3);
}

.btn-browse-trees:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 122, 79, 0.4);
  color: var(--treedon-white);
}

/* Cart Page Responsive */
@media (max-width: 991px) {
  .order-summary-card {
    position: static;
  }

  .cart-bottom-actions {
    flex-direction: column;
  }

  .btn-clear-cart,
  .btn-continue-shopping {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cart-hero {
    padding: 3rem 0;
  }

  .cart-hero-title {
    font-size: 2rem;
  }

  .cart-hero-icon {
    font-size: 3rem;
  }

  .cart-section {
    padding: 2rem 0;
  }

  .cart-item-card {
    padding: 1rem;
  }

  .cart-item-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .donors-grid {
    grid-template-columns: 1fr;
  }

  .impact-preview-stats {
    flex-direction: column;
    gap: 1rem;
  }
}


/* =====================================================
   CHECKOUT PAGE - Premium Design
   ===================================================== */

/* Checkout Steps Section */
.checkout-steps-section {
  padding: 2rem 0;
  background: var(--treedon-light);
}

.checkout-steps-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--treedon-white);
  padding: 1.25rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.checkout-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100px;
  text-align: center;
}

.checkout-steps .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 122, 79, 0.1);
  color: var(--treedon-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.checkout-steps .step.active .step-number,
.checkout-steps .step.completed .step-number {
  background: var(--gradient-primary);
  color: white;
}

.checkout-steps .step-label {
  font-size: 0.85rem;
  color: var(--treedon-muted);
  font-weight: 500;
}

.checkout-steps .step.active .step-label {
  color: var(--treedon-primary);
}

.checkout-steps .step-line {
  width: 40px;
  height: 2px;
  background: rgba(45, 122, 79, 0.15);
}

.checkout-steps .step-line.completed {
  background: var(--treedon-primary);
}

.btn-back-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--treedon-primary);
  color: var(--treedon-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-back-cart:hover {
  background: var(--treedon-primary);
  color: white;
}

/* Checkout Section */
.checkout-section {
  padding: 4rem 0;
  background: var(--treedon-light);
  min-height: 60vh;
}

/* Checkout Form Card */
.checkout-form-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-card-header {
  background: linear-gradient(135deg, #f8faf9 0%, #f0f5f2 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(45, 122, 79, 0.1);
}

.form-card-header i {
  font-size: 1.5rem;
  color: var(--treedon-primary);
}

.form-card-header h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin: 0;
  font-size: 1.15rem;
  color: var(--treedon-dark);
}

.form-card-body {
  padding: 1.5rem;
}

/* Modern Form Inputs */
.form-label-modern {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--treedon-dark);
  margin-bottom: 0.5rem;
}

.form-label-modern .required {
  color: var(--treedon-coral);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--treedon-muted);
  font-size: 1.1rem;
  transition: color 0.3s;
}

.form-input-modern {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid rgba(45, 122, 79, 0.12);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--treedon-light);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--treedon-primary);
  background: var(--treedon-white);
  box-shadow: 0 0 0 4px rgba(45, 122, 79, 0.1);
}

.form-input-modern:focus+i,
.input-icon-wrapper:focus-within i {
  color: var(--treedon-primary);
}

.form-input-modern::placeholder {
  color: var(--treedon-muted);
}

/* Select Styling */
select.form-input-modern {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b8477' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

/* Checkout Items */
.checkout-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(45, 122, 79, 0.1);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h6 {
  font-weight: 600;
  color: var(--treedon-dark);
  margin-bottom: 0.25rem;
}

.checkout-item-info span {
  font-size: 0.85rem;
  color: var(--treedon-muted);
}

.checkout-item-donors {
  margin-top: 0.25rem;
}

.checkout-item-total {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--treedon-primary);
}

/* Place Order Button */
.btn-place-order {
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
  }

  50% {
    box-shadow: 0 8px 40px rgba(212, 168, 83, 0.5);
  }

  100% {
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
  }
}

/* Success Message */
.checkout-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.checkout-success .success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.checkout-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--treedon-dark);
  margin-bottom: 1rem;
}

.checkout-success p {
  color: var(--treedon-text);
  font-size: 1.1rem;
}

.checkout-success .success-details {
  background: rgba(45, 122, 79, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.checkout-success .success-details p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* Error Message */
.checkout-error {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 0 auto;
  border-left: 4px solid var(--treedon-coral);
}

.checkout-error .error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.checkout-error p {
  color: var(--treedon-coral);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Empty Checkout */
.empty-checkout {
  text-align: center;
  padding: 2rem;
  color: var(--treedon-muted);
}

.empty-checkout a {
  color: var(--treedon-primary);
  font-weight: 600;
}

/* Checkout Responsive */
@media (max-width: 991px) {
  .checkout-steps {
    display: none;
  }

  .btn-back-cart {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .checkout-section {
    padding: 2rem 0;
  }

  .form-card-body {
    padding: 1rem;
  }

  .checkout-success {
    padding: 2rem 1rem;
  }

  .checkout-success h2 {
    font-size: 1.5rem;
  }
}


/* =====================================================
   CONTACT PAGE STYLES
   ===================================================== */

.contact-info-section {
  padding: 4rem 0 2rem;
}

.contact-card {
  background: var(--treedon-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-card h4 {
  color: var(--treedon-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--treedon-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-card a {
  color: var(--treedon-primary);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form-section {
  padding: 2rem 0 4rem;
}

.contact-form-card {
  max-width: 100%;
}

/* FAQ Accordion */
.faq-section .accordion-button {
  font-weight: 600;
  color: var(--treedon-dark);
  background: transparent;
}

.faq-section .accordion-button:not(.collapsed) {
  background: rgba(45, 122, 79, 0.05);
  color: var(--treedon-primary);
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(45, 122, 79, 0.2);
}

.faq-section .accordion-body {
  color: var(--treedon-muted);
  line-height: 1.7;
}


/* =====================================================
   LANGUAGE SELECTOR - Multi-language Support
   ===================================================== */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-selector .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  color: var(--treedon-primary);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-selector .dropdown-toggle:hover {
  background: rgba(45, 122, 79, 0.1);
}

.lang-selector .dropdown-toggle::after {
  display: none;
}

.lang-selector .dropdown-menu {
  min-width: 140px;
  padding: 0.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(45, 122, 79, 0.15);
  box-shadow: var(--shadow-md);
}

.lang-selector .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lang-selector .dropdown-item:hover,
.lang-selector .dropdown-item.active {
  background: rgba(45, 122, 79, 0.1);
  color: var(--treedon-primary);
}

.lang-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}


/* =====================================================
   RTL (RIGHT-TO-LEFT) SUPPORT - Arabic
   Complete site coverage
   ===================================================== */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Segoe UI', Tahoma, 'Arial', sans-serif;
}

/* ========== RTL TOP BAR ========== */
html[dir="rtl"] .top-bar .row {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .top-bar .container-fluid,
html[dir="rtl"] .top-bar .container-xl {
  direction: rtl;
}

html[dir="rtl"] .top-bar-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .top-bar-item i {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[dir="rtl"] .announcement-slider {
  direction: rtl;
}

/* ========== RTL MAIN HEADER ========== */
html[dir="rtl"] .main-header {
  direction: rtl;
}

html[dir="rtl"] .main-header .container-fluid,
html[dir="rtl"] .main-header .container-xl {
  direction: rtl;
}

html[dir="rtl"] .main-header .d-flex {
  flex-direction: row-reverse !important;
  justify-content: space-between;
}

html[dir="rtl"] .main-header .d-flex.align-items-center.justify-content-between {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .logo {
  flex-direction: row-reverse;
  order: 2;
}

html[dir="rtl"] .logo span {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
  order: 1;
}

html[dir="rtl"] .header-action-btn .badge {
  right: auto;
  left: -5px;
}

/* ========== RTL NAVIGATION ========== */
html[dir="rtl"] .header-nav {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-nav .container-fluid,
html[dir="rtl"] .header-nav .container-xl {
  direction: rtl;
  display: flex;
  justify-content: flex-end;
}

html[dir="rtl"] .navmenu {
  direction: rtl;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

html[dir="rtl"] .navmenu ul {
  display: flex !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .navmenu ul li {
  margin-right: 0;
  margin-left: 2rem;
}

html[dir="rtl"] .navmenu ul li:first-child {
  margin-left: 0;
}

/* ========== RTL HERO SECTION ========== */
html[dir="rtl"] .hero-content {
  text-align: center;
}

html[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-badge i {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[dir="rtl"] .hero-btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-btn i {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[dir="rtl"] .hero-stats {
  flex-direction: row-reverse;
}

/* ========== RTL SECTIONS ========== */
html[dir="rtl"] .section-header {
  text-align: center;
}

html[dir="rtl"] .section-badge i {
  margin-left: 0.25rem;
  margin-right: 0;
}

/* ========== RTL STEP CARDS ========== */
html[dir="rtl"] .step-card,
html[dir="rtl"] .impact-card,
html[dir="rtl"] .testimonial-card {
  text-align: center;
}

html[dir="rtl"] .step-number {
  right: auto;
  left: -10px;
}

/* ========== RTL PROJECT CARDS ========== */
html[dir="rtl"] .project-badge i {
  margin-left: 0.25rem;
  margin-right: 0;
}

/* ========== RTL TREE CARDS ========== */
html[dir="rtl"] .tree-card-content {
  text-align: right;
}

html[dir="rtl"] .tree-price-badge {
  right: auto;
  left: 1rem;
}

html[dir="rtl"] .country-badge {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .tree-card-actions .btn i {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* ========== RTL FOOTER ========== */
html[dir="rtl"] .footer {
  direction: rtl;
}

html[dir="rtl"] .footer-main {
  direction: rtl;
}

html[dir="rtl"] .footer-main .container {
  direction: rtl;
}

html[dir="rtl"] .footer-main .row {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .footer-main .row>[class*="col-"] {
  direction: rtl;
}

html[dir="rtl"] .footer-widget {
  text-align: right;
}

html[dir="rtl"] .footer-about .logo {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-about p {
  text-align: right;
}

html[dir="rtl"] .footer-links {
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .footer-links li {
  text-align: right;
}

html[dir="rtl"] .social-links h5 {
  text-align: right;
}

html[dir="rtl"] .social-icons {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-contact .contact-item {
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-end;
}

html[dir="rtl"] .footer-contact .contact-item i {
  margin-left: 0.75rem;
  margin-right: 0;
}

html[dir="rtl"] .footer-bottom {
  text-align: center;
}

/* ========== RTL FORMS ========== */
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-input-modern,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .input-icon-wrapper {
  flex-direction: row-reverse;
}

html[dir="rtl"] .input-icon-wrapper i {
  left: auto;
  right: 15px;
}

html[dir="rtl"] .input-icon-wrapper input,
html[dir="rtl"] .input-icon-wrapper textarea {
  padding-left: 15px;
  padding-right: 45px;
}

html[dir="rtl"] .form-label-modern {
  text-align: right;
}

/* ========== RTL BREADCRUMB ========== */
html[dir="rtl"] .cart-breadcrumb {
  flex-direction: row-reverse;
}

html[dir="rtl"] .cart-breadcrumb i {
  transform: rotate(180deg);
}

/* ========== RTL CART PAGE ========== */
html[dir="rtl"] .cart-table th,
html[dir="rtl"] .cart-table td {
  text-align: right;
}

html[dir="rtl"] .cart-summary {
  text-align: right;
}

html[dir="rtl"] .summary-row {
  flex-direction: row-reverse;
}

/* ========== RTL CHECKOUT ========== */
html[dir="rtl"] .checkout-form-card,
html[dir="rtl"] .checkout-summary-card {
  text-align: right;
}

html[dir="rtl"] .form-card-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .form-card-header i {
  margin-left: 0.75rem;
  margin-right: 0;
}

/* ========== RTL BUTTONS ========== */
html[dir="rtl"] .btn-checkout,
html[dir="rtl"] .btn-browse-trees {
  flex-direction: row-reverse;
}

html[dir="rtl"] .btn-checkout i:last-child,
html[dir="rtl"] .hero-btn i:last-child,
html[dir="rtl"] .btn-browse-trees i:last-child {
  transform: rotate(180deg);
}

html[dir="rtl"] .btn i.me-1,
html[dir="rtl"] .btn i.me-2 {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* ========== RTL CONTACT PAGE ========== */
html[dir="rtl"] .contact-card {
  text-align: center;
}

html[dir="rtl"] .accordion-button {
  text-align: right;
  flex-direction: row-reverse;
}

html[dir="rtl"] .accordion-button::after {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .accordion-body {
  text-align: right;
}

/* ========== RTL ABOUT PAGE ========== */
html[dir="rtl"] .about-page .section-title {
  text-align: center;
}

html[dir="rtl"] .about-page .section-badge {
  text-align: center;
}

/* ========== RTL UTILITIES ========== */
html[dir="rtl"] .text-start {
  text-align: right !important;
}

html[dir="rtl"] .text-end {
  text-align: left !important;
}

html[dir="rtl"] .me-1,
html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3 {
  margin-right: 0 !important;
  margin-left: 0.25rem !important;
}

html[dir="rtl"] .ms-1,
html[dir="rtl"] .ms-2,
html[dir="rtl"] .ms-3 {
  margin-left: 0 !important;
  margin-right: 0.25rem !important;
}

html[dir="rtl"] .pe-1,
html[dir="rtl"] .pe-2,
html[dir="rtl"] .pe-3 {
  padding-right: 0 !important;
  padding-left: 0.25rem !important;
}

html[dir="rtl"] .ps-1,
html[dir="rtl"] .ps-2,
html[dir="rtl"] .ps-3 {
  padding-left: 0 !important;
  padding-right: 0.25rem !important;
}