/* Minimal custom styles on top of Tailwind */

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7fafc;
  overflow-x: hidden;
}

/* Animations */
.fade-in { animation: fadeIn ease 1.5s; }
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Product card hover */
.product-card { transition: all 0.3s ease-in-out; }
.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Slide-in sidebar (mobile) */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.sidebar.open { transform: translateX(0); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.open { opacity: 1; visibility: visible; }

/* Custom scrollbar for dropdowns */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #4f46e5;
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.toast.show { transform: translateY(0); }

/* FAQ accordion */
.faq-q::after {
  content: '+';
  font-size: 24px;
  color: #4f46e5;
  transition: transform 0.2s;
  margin-left: auto;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }


/* Quantity input arrows hide */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }
