html, body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
  font-size: 16px;
  }
}

/* Apply Montserrat to all elements */
*, *::before, *::after {
  font-family: inherit;
}

/* Form Elements */
.btn, .form-control, .form-select, input, textarea, button, select {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ==================== TRACK ORDER MODAL ==================== */
.track-order-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.track-order-modal.active {
  display: flex;
}

.track-order-content {
  background: #fff;
  max-width: 450px;
  width: 100%;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.track-order-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 5px;
}

.track-order-close:hover {
  transform: rotate(90deg);
}

.track-order-icon {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.track-order-icon i {
  font-size: 36px;
  color: #000;
}

.track-order-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.track-order-subtitle {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.track-order-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.track-order-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #dee2e6;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  transition: border-color 0.3s ease;
}

.track-order-input:focus {
  outline: none;
  border-color: #000;
}

.track-order-input::placeholder {
  text-transform: none;
  letter-spacing: 0.5px;
  color: #adb5bd;
}

.track-order-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.track-order-btn:hover {
  background: #333;
}

.track-order-hint {
  font-size: 10px;
  color: #adb5bd;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

.track-order-error {
  color: #dc3545;
  font-size: 11px;
  margin-top: 15px;
  display: none;
}

.track-order-error.visible {
  display: block;
}

/* ==================== AJAX SEARCH RESULTS ==================== */
.search-form-container {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.ajax-search-results {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-image {
  width: 50px;
  height: 65px;
  object-fit: cover;
  background: #333;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  text-align: left;
}

.search-result-name {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.search-result-category {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.search-result-price {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.search-result-price .original {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  display: block;
}

.search-result-price .discount {
  color: #dc3545;
}

.search-no-results {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
}

.search-loading {
  text-align: center;
  padding: 20px;
}

.search-loading i {
  font-size: 24px;
  color: #fff;
  animation: spin 1s linear infinite;
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.search-view-all:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ==================== RESPONSIVE MOBILE IMPROVEMENTS ==================== */
@media (max-width: 576px) {
  .track-order-content {
    padding: 40px 25px;
  }
  
  .track-order-title {
    font-size: 16px;
  }
  
  .track-order-icon {
    width: 70px;
    height: 70px;
  }
  
  .track-order-icon i {
    font-size: 30px;
  }
  
  .search-result-item {
    padding: 12px 5px;
    gap: 12px;
  }
  
  .search-result-image {
    width: 45px;
    height: 58px;
  }
  
  .search-result-name {
    font-size: 11px;
  }
}