.slider.bg-navy-blue {
  background-color: var(--primary-color);
  color: white;
  /* padding: 2rem 0; */
}
.swiper {
  border-radius: 1rem;
  /* var(--border-radius); */
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.swiper-slide img {
  border-radius: 1rem;
  /* var(--border-radius); */
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-radius: 1rem;
  width: 40px;
  height: 40px;
  box-shadow: var(--box-shadow);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
}
.fabric-box,
.colors-box {
  border-radius: 1rem;
  /* var(--border-radius); */
  margin: 0.5rem;
  box-shadow: var(--box-shadow);
}

@keyframes l1 {
  100% {
    box-shadow: 0 0 0 10px rgba(28, 28, 28, 0.075);
    border-radius: 100px;
  }
  0% {
    box-shadow: 0 0 0 0px rgba(28, 28, 28, 0.432);
    border-radius: 100px;
  }
}
.box {
  --mask: linear-gradient(#000 0 0) center/calc(100% - 4px) calc(100% - 4px)
      no-repeat,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 /4px
      2px space no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0
      100%/4px 2px space no-repeat,
    conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) 0 0 /2px
      4px no-repeat space,
    conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg)
      100% 0/2px 4px no-repeat space;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}
.fabric-box {
  height: 75px;
  width: 75px;
  display: inline-block;
}

.colors-box {
  background-color: brown;
  height: 35px;
  width: 35px;
  display: inline-block;
}

.marquee-container {
  background-color: rgb(0, 183, 30);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  margin: 2rem 0 0 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
}

.marquee-content {
  display: flex;
  gap: 1rem; /* مسافة بسيطة بين النسخ */
  width: max-content;
  animation: marquee 60s linear infinite;
}
/* ADD THESE RULES FOR THE GRADIENT FADE */
.marquee-container::before,
.marquee-container::after {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    top: 0;
    height: 100%;
    width: 75px; /* Adjust the width of the fade effect */
    z-index: 2; /* Ensures the gradient is on top of the text */
}
/* Left side gradient */
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgb(0, 46, 46), transparent);
}

/* Right side gradient */
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgb(0, 46, 46), transparent);
}
/* END OF NEW RULES */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  } /* يحرك نصف الطول لتكرار سلس */
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Reduced motion accessibility overrides */
@media (prefers-reduced-motion: reduce) {
  /* Disable CSS animations and transitions from animate.css and others */
  .animated {
    animation: none !important;
    transition: none !important;
  }

  /* Ensure elements targeted by WOW are visible without animation */
  .wow {
    visibility: visible !important;
  }

  /* Avoid smooth scrolling */
  html:focus-within {
    scroll-behavior: auto;
  }

  /* Minimize slide/transition effects in common slider containers */
  .swiper,
  .swiper-container,
  .swiper-slide {
    transition: none !important;
    animation: none !important;
  }

  /* Stop marquee animation under reduced motion */
  .marquee-content {
    animation: none !important;
  }
}

/* Attribute-based override for manual preference */
[data-motion="reduce"] .animated,
[data-motion="reduce"] .swiper,
[data-motion="reduce"] .swiper-container,
[data-motion="reduce"] .swiper-slide,
[data-motion="reduce"] .cbp-slider,
[data-motion="reduce"] .cbp-item,
[data-motion="reduce"] .cbp-wrapper {
  animation: none !important;
  transition: none !important;
}
[data-motion="reduce"] .wow { visibility: visible !important; }
[data-motion="reduce"] .marquee-content { animation: none !important; transform: none !important; }
/* Disable AOS CSS transitions if any slip through */
[data-motion="reduce"] [data-aos] { animation: none !important; transition: none !important; }
/* Focus styles for motion toggle for better accessibility */
[data-motion-toggle]:focus {
  outline: 2px solid #ff7a00; /* matches orange theme */
  outline-offset: 2px;
}
