/* Global styles */
/* Use this file for global utilities and component base styles.
   For production: it's recommended to compile only used Tailwind utilities. */

@font-face {
  font-family: 'NewTitle';
  src: url('../../assets/fonts/newTitle/NewTitle-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'NewTitle';
  src: url('../../assets/fonts/newTitle/NewTitle-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'NewTitle';
  src: url('../../assets/fonts/newTitle/NewTitle-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'NewTitle';
  src: url('../../assets/fonts/newTitle/NewTitle-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ============================= */

@font-face {
  font-family: 'GeneralSans';
  src: url('../../assets/fonts/generalSans/GeneralSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'GeneralSans';
  src: url('../../assets/fonts/generalSans/GeneralSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'GeneralSans';
  src: url('../../assets/fonts/generalSans/GeneralSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'GeneralSans';
  src: url('../../assets/fonts/generalSans/GeneralSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}


:root {
  /* ===== Brand Color Palette (Monochrome Black & White) ===== */
  --color-black:    #000000;
  --color-primary:  #000000;
  --color-brown:    #171717;
  --color-silver:   #e5e5e5;
  --color-cream:    #ffffff;

  /* ===== Semantic Tokens ===== */
  --primary-color:   #000000;
  --secondary-color: #ffffff;
  --accent-color:    #000000;
  --muted-color:     #e5e5e5;

  --base-font: 'GeneralSans', 'NewTitle', sans-serif;
  --arabic-font: 'Cairo', sans-serif;
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--base-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--primary-color);
  background: var(--secondary-color);
}

/* Unified button radius across the public site */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.whatsapp-float,
.product-whatsapp-cta,
#headerWhatsappBtn,
#backBtn,
#whatsappCtaBtn,
a.inline-flex[class*="font-bold"][class*="px-"],
a.flex[class*="font-bold"][class*="px-"][class*="bg-"],
a[class*="bg-primary"][class*="font-bold"][class*="px-"],
a[class*="bg-accent"][class*="font-bold"][class*="px-"] {
  border-radius: 8px !important;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 999px;
}

/* Firefox scrollbar */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--secondary-color);
}

/* ============================ */
/* ===== SCROLL TOP BTN ======= */
/* ============================ */
#scrollTopBtn {
  transform: translateY(30px);
}

#scrollTopBtn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

#scrollTopBtn.show:hover {
  transform: translate(-4px, -4px);
}

/* ============================ */
/* ======= SWIPER CUSTOM ======= */
/* ============================ */
.categoriesSwiper {
  touch-action: pan-y !important;
  user-select: none;
  -webkit-user-select: none;
}

.categoriesSwiper .swiper-wrapper {
  touch-action: pan-y !important;
}

.categoriesSwiper .swiper-slide {
  touch-action: pan-y !important;
  -webkit-user-drag: none;
}

.categoriesSwiper img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.swiper-pagination-bullet-active {
  background-color: #000000 !important;
}

.swiper-pagination-bullet {
  background-color: #000000;
  opacity: 0.3;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-weight: 900 !important;
}

/* ============================ */
/* ======= MARQUEE CUSTOM ======= */
/* ============================ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  position: relative;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: marquee 40s linear infinite;
}

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

.partner-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  margin: 0 3rem;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (min-width: 768px) {
  .partner-logo {
    height: 70px;
    margin: 0 5rem;
  }
}

/* ============================ */
/* == WHATSAPP FLOATING BTN === */
/* ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 49;
  width: 56px;
  height: 56px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 6px 6px 0px 0px #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px 0px #25D366;
  background-color: #25D366;
  color: var(--primary-color);
}

.whatsapp-float:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px 0px #25D366;
}

@media (max-width: 1023px) {
  #whatsappFloatingBtn,
  .whatsapp-float {
    display: none !important;
  }
}

/* ============================ */
/* ======= HERO SLIDER ======== */
/* ============================ */
.hero-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  overflow: hidden;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.08);
}

/* Indicators */
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  width: 28px;
  border-radius: 9999px;
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.3s ease !important;
  }
  .hero-slide-img {
    transition: none !important;
    transform: none !important;
  }
}