/* Astha Trading Co - Elite Mobile & Desktop Industrial UI */
@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --brand-yellow: #f59e0b;
  --brand-dark-yellow: #d97706;
  --bg-core: #090d14;
  --bg-card: #111722;
  --bg-elevated: #18202e;
  --border-line: #202b3c;
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .font-heading {
  font-family: 'Questrial', sans-serif;
  letter-spacing: -0.01em;
}

.font-num {
  font-family: 'Space Grotesk', monospace;
}

/* Horizontal scroll without scrollbar for mobile tags */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Minimalist technical cards */
.machine-box {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
  border-radius: 0.75rem;
}

.machine-box:hover {
  border-color: #f59e0b;
}

/* Spec line item */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
}

.spec-row:last-child {
  border-bottom: none;
}

/* Swiper Slider Mobile Precision */
.swiper {
  width: 100% !important;
  max-width: 100% !important;
}

.swiper-product-slider {
  padding-bottom: 36px !important;
  overflow: hidden !important;
}

.swiper-slide {
  height: auto !important;
  box-sizing: border-box !important;
}

.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  background: #334155 !important;
  opacity: 0.8 !important;
  width: 8px;
  height: 8px;
  transition: all 0.25s ease;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  background: #f59e0b !important;
  width: 22px;
  border-radius: 4px;
}

/* Safe Area Inset for iOS Bottom Bar */
.safe-bottom {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

/* Prevent auto-zoom on mobile inputs */
input, select, textarea {
  font-size: 16px !important;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  input, select, textarea {
    font-size: 0.875rem !important;
  }
  .spec-row {
    font-size: 0.8125rem;
  }
}

/* Modal Layer */
.modal-layer {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-layer:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
