@font-face {
  font-family: "Kugile";
  src: url("../fonts/Kugile_Demo.ttf") format("truetype"),
    url("../fonts/kugile.regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Rabar";
  src: url("../fonts/Rabar_038.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: "Kugile", sans-serif;
}

html[lang="ar"] body,
html[lang="ku"] body {
  font-family: "Rabar", sans-serif;
}

.kugile {
  font-family: "Kugile", sans-serif;
}

:root {
  --bg-color: #e5dcd2;
  --text-color: #a47b59;
  --sec-text-color: #e0c0a6;
}
.bg-color {
  background-color: var(--bg-color);
}
.text-color {
  color: var(--text-color);
}
.category-description {
  color: var(--sec-text-color);
}
text-sec-color {
  color: var(--sec-text-color);
}
body {
  color: var(--text-color);
  font-family: poppins, sans-serif;
}

.ww {
  width: calc(15rem + 25vw);
}

.categories-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #a47b59 #e5dcd2;
}
.categories-scrollbar::-webkit-scrollbar {
  height: 8px;
  background: #e5dcd2;
  border-radius: 8px;
}
.categories-scrollbar::-webkit-scrollbar-thumb {
  background: #a47b59;
  border-radius: 8px;
}
.categories-scrollbar::-webkit-scrollbar-track {
  background: #e5dcd2;
  border-radius: 8px;
}

/* Preloader styles */
#preloader-overlay {
  position: fixed;
  inset: 0;
  background: #e5dcd2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 1s ease, visibility 1s ease;
}

#preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader-inner {
  text-align: center;
}

#preloader-wrap {
  display: inline-block;
  position: relative;
  width: 112px;
  height: 112px;
}

#preloader-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 9999px;
  background: white;
  padding: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.preloader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  border: 6px solid rgba(164, 123, 89, 0.18);
  border-top-color: #a47b59;
  box-sizing: border-box;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive scaling for larger screens */
@media (min-width: 1024px) {
  /* LG and up */
  #preloader-wrap {
    width: 160px;
    height: 160px;
  }

  #preloader-logo {
    width: 140px;
    height: 140px;
    padding: 10px;
  }

  .preloader-spinner {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border-width: 8px;
  }
}

@media (min-width: 1536px) {
  /* 2XL and up */
  #preloader-wrap {
    width: 220px;
    height: 220px;
  }

  #preloader-logo {
    width: 192px;
    height: 192px;
    padding: 14px;
  }

  .preloader-spinner {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-width: 10px;
  }
}
