/* Yusr - Custom Styles */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Hide scrollbar for horizontal category scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* OTP inputs */
.otp-input {
  width: 3.5rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .otp-input {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }
}

/* Stepper */
.stepper-line {
  height: 2px;
  flex: 1;
  min-width: 1.5rem;
  max-width: 4rem;
}

.order-status-stepper .stepper-line {
  margin-top: 1.25rem;
}

/* Product card image aspect */
.product-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Offer card overlay */
.offer-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}

/* Category circle */
.category-circle {
  width: 5.5rem;
  height: 5.5rem;
}

@media (min-width: 768px) {
  .category-circle {
    width: 6.5rem;
    height: 6.5rem;
  }
}

/* Checkbox custom */
input[type='radio'].filter-radio:checked + span {
  color: #2EB09B;
  font-weight: 600;
}

/* Logo variants */
.logo-teal {
  filter: brightness(0) saturate(100%) invert(56%) sepia(47%) saturate(657%) hue-rotate(127deg) brightness(93%) contrast(89%);
}

.logo-white {
  filter: brightness(0) invert(1);
}

/* Categories mega menu */
.categories-panel {
  background: rgba(38, 38, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
  .categories-panel-inner {
    flex-direction: column;
  }

  .categories-sub-pane {
    border-inline-start: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.625rem;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 1.25rem;
  width: 1.25rem;
  inset-inline-start: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #2EB09B;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(-1.375rem);
}

[dir='ltr'] .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(1.375rem);
}
