@font-face {
  font-family: 'Yekan';
  src: url('../fonts/Yekan.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Apply Yekan font to everything */
* {
  font-family: 'Yekan', Tahoma, Arial, sans-serif !important;
  box-sizing: border-box;
}
body {
  font-family: 'Yekan', Tahoma, Arial, sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------------- Animations ---------------- */
@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

/* ---------------- Comment Animations ---------------- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

/* Spinning loader */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.wiggle {
  animation: wiggle 0.3s ease-in-out;
}


main {
  padding-top: 80px;
  /* adjust to your navbar height */
}

/* ---------------- Global ---------------- */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e5e7eb 60%, #0a950f 100%);
}

.rtl {
  direction: rtl;
  unicode-bidi: bidi-override;
}


/* ---------------- Navbar ---------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgb(255, 255, 255);
  color: #fff;
}

nav h1 {
  color: #f5d76e;
  /* gold accent */
}

nav a {
  color: #111;
}


/* ---------------- Buttons ---------------- */
.btn-glass-red {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(220, 38, 38, 0.5);
  transition: all 0.3s ease;
}

.btn-glass-red:hover {
  background: rgba(220, 38, 38, 0.5);
  border-color: rgba(220, 38, 38, 0.8);
}

/* Optional: Transparent red button for logout or login */
.btn-transparent-red {
  background: transparent;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.5);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  transition: all 0.3s ease;
}

.btn-transparent-red:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444;
  border-color: rgba(220, 38, 38, 0.8);
}



/* Premium glassy blue product card */
.card-glass-color {
  background: rgba(255, 255, 255, 0.264);
  /* Tailwind blue-500 with 15% opacity */
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 2px solid rgba(0, 0, 0, 0.25);
}

/* Cart dropdown with same glass effect */
.cart-glass-blue {
  background: rgba(59, 130, 246, 0.2);
  /* slightly stronger tint */
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.liquid-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Hide scrollbar but keep scroll functionality */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}


/* ---------------- Star Rating ---------------- */
#stars .star {
  transition: all 0.2s ease;
}

#stars .star:hover {
  transform: scale(1.2);
}

#stars .star.active {
  color: #10b981; /* Green color */
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Product page animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInUp 0.6s ease-out;
}

/* ---------------- Admin Panel Tabs ---------------- */
.tab-btn {
  background: transparent;
  color: #9ca3af;
}

.tab-btn.active {
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.tab-btn:hover {
  color: white;
}

/* Mobile Bottom Navigation - Force to Bottom */
@media (max-width: 768px) {
  /* Make sure body has proper padding */
  body {
    padding-top: 64px !important;
    padding-bottom: 100px !important;
    min-height: 100vh;
  }

  /* Force mobile nav to bottom */
  nav.md\:hidden {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Mobile header stays at top */
  header.md\:hidden {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Main content needs spacing */
  main {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (min-width: 769px) {
  body {
    padding-top: 80px; /* Space for desktop navbar */
  }
}

/* Active nav item highlight */
.active-nav-item svg {
  color: #10b981 !important;
}

.active-nav-item span {
  color: #10b981 !important;
}