/* ==========================================================================
   RAC Modern E-Commerce Landing Page Stylesheet (RTL)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
  /* MASA Brand Palette */
  --primary-navy: #161311;       /* Deep Espresso Charcoal */
  --secondary-navy: #241e1a;     /* Warm Roast Dark */
  --dark-navy: #0e0c0b;          /* Pure Dark Espresso */
  --brand-orange: #d46a28;       /* MASA Warm Copper Orange */
  --brand-orange-hover: #b8571b; /* Dark Copper Hover */
  --brand-orange-light: rgba(212, 106, 40, 0.1);
  --brand-orange-glow: rgba(212, 106, 40, 0.35);

  /* Neutrals & Surfaces */
  --bg-light: #faf8f5;          /* Soft Warm Cream */
  --card-bg: #ffffff;
  --text-dark: #1c1815;
  --text-muted: #786d65;
  --border-color: #e8e2dc;
  --border-light: #f3eee8;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(28, 24, 21, 0.05);
  --shadow-md: 0 4px 14px rgba(28, 24, 21, 0.08);
  --shadow-lg: 0 10px 25px rgba(28, 24, 21, 0.1);
  --shadow-hover: 0 12px 28px rgba(28, 24, 21, 0.12);
  --shadow-glow: 0 0 20px rgba(212, 106, 40, 0.3);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Typography
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-orange);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange-hover);
}

/* --------------------------------------------------------------------------
   3. Custom Utilities & Section Headers
   -------------------------------------------------------------------------- */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.section-title .accent-bar {
  width: 14px;
  height: 24px;
  background-color: var(--brand-orange);
  border-radius: 4px;
  display: inline-block;
}

.carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background-color: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Currency Badge */
.price-tag {
  color: var(--brand-orange);
  font-weight: 800;
  font-size: 1.15rem;
}

.price-tag .currency-symbol {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. Navigation Header (.main-header)
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1rem 0;
  transition: var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.main-header.navbar-sticky {
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.65rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header.navbar-sticky .nav-link {
  color: #e2e8f0;
}

.main-header.navbar-sticky .nav-link:hover,
.main-header.navbar-sticky .nav-link.active {
  color: var(--brand-orange);
}

.brand-logo-img {
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain;
}

.offcanvas-header img {
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 3px;
  background-color: var(--brand-orange);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn-wrap {
  position: relative;
}

.cart-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.main-header.navbar-sticky .cart-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cart-icon-btn:hover {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--brand-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(255, 85, 0, 0.4);
}

.btn-brand-cta {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #e04b00 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-brand-cta:hover {
  background: linear-gradient(135deg, #e04b00 0%, #c43e00 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 85, 0, 0.45);
}

/* Mobile Toggler */
.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.main-header.navbar-sticky .mobile-nav-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Offcanvas Sidebar Drawer */
.offcanvas {
  width: 320px !important;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.btn-close-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-circle:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

.offcanvas-nav-list {
  display: flex;
  flex-direction: column;
}

.offcanvas-nav-list .nav-item {
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.offcanvas-link .nav-icon {
  font-size: 1.25rem;
  color: var(--brand-orange);
  width: 26px;
  text-align: center;
}

.offcanvas-link .dropdown-arrow {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.offcanvas-link:hover,
.offcanvas-link.active {
  color: var(--brand-orange);
}

.offcanvas-link:hover .dropdown-arrow {
  color: var(--brand-orange);
}

/* --------------------------------------------------------------------------
   5. Hero Banner Slider (.hero-section)
   -------------------------------------------------------------------------- */
.hero-section {
  margin-top: 95px;
  padding-bottom: 1.5rem;
}

.hero-swiper {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-banner-img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(11, 25, 44, 0.2);
  background: #0b192c;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* Swiper Pagination Styling matching screenshot */
.hero-swiper .swiper-pagination {
  bottom: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 25;
}

.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: var(--transition-fast);
  border-radius: 50%;
  margin: 0 !important;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--brand-orange);
  width: 24px;
  height: 8px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.6);
}

/* Animated Progress Line under Hero Slider */
.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 30;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.hero-slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px rgba(212, 106, 40, 0.9);
  transition: width 0.05s linear;
}

/* --------------------------------------------------------------------------
   6. Value Proposition Badges (.value-props-bar)
   -------------------------------------------------------------------------- */
.value-props-bar {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.value-prop-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  height: 100%;
}

.value-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 106, 40, 0.35);
}

.value-prop-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 106, 40, 0.08);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.value-prop-title {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

@media (max-width: 575.98px) {
  .value-prop-card {
    padding: 0.85rem 0.2rem;
    border-radius: var(--radius-md);
    gap: 0.35rem;
  }
  .value-prop-icon {
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    background: transparent;
  }
  .value-prop-title {
    font-size: 0.72rem;
    font-weight: 800;
  }
}

/* --------------------------------------------------------------------------
   7. Categories Section (#categories)
   -------------------------------------------------------------------------- */
.categories-section {
  padding: 1rem 0 3rem;
}

.category-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  background: transparent;
  border: none;
  padding: 0;
}

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

.category-img-box {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  display: block;
  padding: 0;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

.category-card:hover .category-img-box img {
  transform: scale(1.06);
}

.category-title {
  display: none !important;
}

/* --------------------------------------------------------------------------
   8. Product Cards & Product Sections
   -------------------------------------------------------------------------- */
.products-section {
  padding: 1rem 0 3rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 85, 0, 0.4);
  transform: translateY(-4px);
}

/* Card Top Badges & Actions */
.product-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(255, 85, 0, 0.3);
}

.product-badge-tag.badge-green {
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.product-badge-tag.badge-blue {
  background: #3b82f6;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: #ffffff;
  color: #ef4444;
  border-color: #ef4444;
}

/* Product Image Box */
.product-img-wrapper {
  position: relative;
  padding-top: 100%;
  background: #f8fafc;
  overflow: hidden;
}

.product-img-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 98%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Quick Add Button */
.btn-quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(255, 85, 0, 0.4);
}

.btn-quick-add:hover {
  background: var(--brand-orange-hover);
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(255, 85, 0, 0.5);
}

/* Product Content */
.product-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-sku {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.product-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.currency {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.old-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

@media (max-width: 575.98px) {
  .product-card-body {
    padding: 0.65rem;
  }
  .product-title {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
  }
  .product-desc {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
  }
  .current-price {
    font-size: 0.95rem;
  }
  .old-price {
    font-size: 0.72rem;
  }
  .btn-quick-add {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    bottom: 8px;
    left: 8px;
  }
  .btn-wishlist {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    top: 8px;
    right: 8px;
  }
  .badge-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    top: 8px;
    left: 8px;
  }
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  white-space: nowrap !important;
}

.product-footer > div {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap !important;
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-orange);
  white-space: nowrap !important;
}

.price-old {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  white-space: nowrap !important;
}

/* Small Screens / Mobile Price Scaling - Prevent currency line break */
@media (max-width: 767.98px) {
  .product-footer,
  .product-footer > div {
    gap: 0.25rem;
    white-space: nowrap !important;
  }

  .price-tag,
  .current-price {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  .price-old,
  .old-price {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  .price-tag,
  .current-price {
    font-size: 0.88rem !important;
  }

  .price-old,
  .old-price {
    font-size: 0.68rem !important;
  }
}

/* --------------------------------------------------------------------------
   9. Promotional Banners
   -------------------------------------------------------------------------- */
.promo-banner-section {
  padding: 1.5rem 0 3rem;
}

.promo-banner-img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(11, 25, 44, 0.18);
  transition: var(--transition-fast);
  background: var(--primary-navy);
}

.promo-banner-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11, 25, 44, 0.25);
}

.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* --------------------------------------------------------------------------
   10. Scroll Reveal Animation Tokens & Luxury Animations
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive Spring Micro-Animations */
.carousel-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
  transform: scale(1.12);
  background-color: var(--brand-orange) !important;
  color: #ffffff !important;
  border-color: var(--brand-orange) !important;
}

.carousel-btn:active {
  transform: scale(0.92);
}

/* Floating Pulse Effect for WhatsApp Button */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-whatsapp {
  animation: pulseGlow 2.5s infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.12);
}

/* Subtle Floating Badge Animation */
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.product-badge-tag {
  animation: badgeFloat 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   11. Infinite Marquee Carousel & Edge Fades (#brands & Testimonials)
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 2rem 0 3.5rem;
  overflow: hidden;
}

.brands-marquee-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.6rem;
  direction: ltr;
  overflow: hidden;
  padding: 0.75rem 0;
}

.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 10;
  pointer-events: none;
}

.brands-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-light) 0%, rgba(248, 250, 252, 0) 100%);
}

.brands-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-light) 0%, rgba(248, 250, 252, 0) 100%);
}

.bg-white .brands-marquee-wrap::before {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.bg-white .brands-marquee-wrap::after {
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-marquee-row {
  overflow: hidden;
  width: 100%;
}

.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  width: max-content;
  will-change: transform;
}

.brands-marquee-track--left {
  animation: brandsSlideLeft 45s linear infinite;
}

.brands-marquee-track--right {
  animation: brandsSlideRight 45s linear infinite;
}

.brands-marquee-wrap:hover .brands-marquee-track {
  animation-play-state: paused;
}

@keyframes brandsSlideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes brandsSlideRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Card Styling inside Marquee */
.brand-card-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
  width: 180px;
  transition: var(--transition-fast);
  box-shadow: none;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-card-item img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  transition: var(--transition-fast);
}

.brand-card-item:hover {
  border-color: transparent;
  box-shadow: none;
  transform: scale(1.08);
}

.brand-card-item:hover img {
  filter: none;
}

/* Responsive Scaling for Brands Marquee & Testimonials on Mobile / Small Screens */
@media (max-width: 767.98px) {
  .brands-marquee-wrap {
    gap: 0.85rem;
    padding: 0.25rem 0;
  }

  .brands-marquee-track {
    gap: 0.9rem;
  }

  .brand-card-item {
    height: 52px;
    width: 110px;
    padding: 0.1rem;
  }

  .testimonial-card-item {
    width: 260px;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
  }

  .testimonial-stars {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .testimonial-text {
    font-size: 0.825rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }

  .testimonial-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .testimonial-info h6 {
    font-size: 0.85rem;
  }

  .testimonial-info p {
    font-size: 0.725rem;
  }
}

/* Testimonial Card Styling */
.testimonial-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  width: 350px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  direction: rtl;
  text-align: right;
  flex-shrink: 0;
}

.testimonial-card-item:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.93rem;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 1rem;
  font-weight: 500;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 85, 0, 0.2);
}

.testimonial-info h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-navy);
}

.testimonial-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Footer & Newsletter Section (<footer>)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-navy);
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
}

.newsletter-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.75rem;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.25rem;
}

.newsletter-form .form-control {
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-shadow: none !important;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff;
}

.newsletter-form button,
.newsletter-form button:hover,
.newsletter-form button:focus,
.newsletter-form button:active {
  box-shadow: none !important;
  outline: none !important;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background-color: var(--brand-orange);
  border-radius: 2px;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand-orange);
  padding-right: 5px;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn:hover {
  background: var(--brand-orange);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   12. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1040;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition-fast);
  animation: pulseGreen 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Toast Container */
.toast-container-custom {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1090;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-slider-card {
    padding: 2rem 1.5rem;
  }
  .iphone-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .value-prop-card {
    padding: 0.75rem 1rem;
  }
}
