/* ======================================================================
   Julia Store — Track Order Page Styles
   ====================================================================== */

/* ============ 1. Variables & Reset ============ */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #fff8fb 0%, #fce5ed 100%);
  min-height: 100vh; color: #333; line-height: 1.8;
}
img { max-width: 100%; height: auto; }
.container { max-width: 720px; margin: 0 auto; padding: 40px 20px; }

/* ============ 2. Header ============ */
.header { text-align: center; margin-bottom: 30px; }
.header img { height: 80px; margin-bottom: 15px; }
.header h1 { color: #e91e63; margin: 0 0 8px; font-size: 28px; }
.header p { color: #755c66; margin: 0; }

/* ============ 3. Panel & Form ============ */
.panel {
  background: #fff; border-radius: 22px; padding: 30px;
  box-shadow: 0 16px 45px rgba(116, 48, 76, .09);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input {
  width: 100%; padding: 13px 15px;
  border: 1px solid #eadfe3; border-radius: 12px;
  font: inherit; font-size: 15px; outline: 0;
  transition: border .2s;
}
.field input:focus { border-color: #e994ae; }
.button {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #e91e63, #d81556);
  color: #fff; border: 0; border-radius: 14px;
  font: 700 16px 'Cairo'; cursor: pointer;
  transition: transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.notice {
  display: none; padding: 12px 16px;
  border-radius: 12px; margin-top: 15px;
  font-size: 14px;
}
.notice.error { display: block; background: #fff1f0; color: #b33535; }
.notice.success { display: block; background: #eff9f2; color: #36764c; }

/* ============ 4. Tracking Result ============ */
.tracking-result { display: none; margin-top: 30px; }
.tracking-result.show { display: block; }
.order-info {
  background: #fff9fb; padding: 15px 20px;
  border-radius: 15px; margin-bottom: 20px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  border: 1px solid #fce9f0;
}
.order-info strong { color: #e91e63; }
.order-info span { color: #777; font-size: 14px; }

/* ============ 5. Timeline ============ */
.timeline {
  display: flex; justify-content: space-between;
  align-items: flex-start; position: relative;
  margin: 40px 0; padding: 0 10px;
}
.timeline:before {
  content: ''; position: absolute;
  top: 30px; right: 40px; left: 40px;
  height: 4px; background: #f0e5e9;
  border-radius: 2px; z-index: 1;
}
.timeline-progress {
  position: absolute; top: 30px; right: 40px;
  height: 4px; background: linear-gradient(90deg, #e91e63, #d81556);
  border-radius: 2px; z-index: 2;
  transition: width 0.8s ease;
  width: 0%;
}
.step {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; flex: 1;
  text-align: center;
}
.step-icon {
  width: 60px; height: 60px;
  background: #f0e5e9; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; color: #999;
  transition: all .4s ease;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.step.active .step-icon {
  background: linear-gradient(135deg, #e91e63, #d81556);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}
.step.completed .step-icon {
  background: #4caf50; color: #fff;
}
.step.cancelled .step-icon {
  background: #ff4757; color: #fff;
}
.step-label {
  margin-top: 12px; font-size: 13px;
  font-weight: 700; color: #999;
  transition: color .3s;
}
.step.active .step-label { color: #e91e63; }
.step.completed .step-label { color: #4caf50; }
.step.cancelled .step-label { color: #ff4757; }

/* ============ 6. Bike Animation ============ */
.bike-animation {
  position: absolute; top: 8px;
  font-size: 32px;
  transition: right 1.5s ease;
  right: 40px;
  z-index: 4;
  animation: bikeBounce 0.5s ease-in-out infinite alternate;
}
@keyframes bikeBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
.bike-animation.hidden { display: none; }

/* ============ 7. Status Message ============ */
.status-message {
  text-align: center; padding: 25px;
  background: linear-gradient(135deg, #fff4f8, #ffe4ec);
  border-radius: 18px; margin-top: 20px;
}
.status-message i {
  font-size: 48px; color: #e91e63;
  margin-bottom: 12px; display: block;
}
.status-message h3 {
  color: #e91e63; margin: 0 0 8px;
  font-size: 20px;
}
.status-message p {
  color: #755c66; margin: 0;
  font-size: 15px;
}

/* ============ 8. Order Items ============ */
.order-items {
  margin-top: 25px; background: #fff9fb;
  border-radius: 15px; padding: 20px;
  border: 1px solid #fce9f0;
}
.order-items h3 {
  margin: 0 0 15px; font-size: 16px;
  color: #e91e63;
}
.order-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5edf0;
}
.order-item:last-child { border-bottom: 0; }
.order-item img {
  width: 50px; height: 50px;
  border-radius: 10px; object-fit: cover;
  background: #fff4f8;
}
.order-item-info { flex: 1; }
.order-item-info strong {
  display: block; font-size: 14px;
  color: #333;
}
.order-item-info small {
  color: #888; font-size: 12px;
}
.order-item-price {
  color: #e91e63; font-weight: 800;
  font-size: 14px; white-space: nowrap;
}

/* ============ 9. Back Link ============ */
.back-link {
  display: inline-flex; align-items: center;
  gap: 8px; color: #e91e63;
  text-decoration: none; margin-top: 20px;
  font-weight: 700; font-size: 14px;
}

/* ============ 10. Responsive ============ */
@media (max-width: 600px) {
  .container { padding: 25px 15px; }
  .panel { padding: 20px; }
  .step-icon { width: 50px; height: 50px; font-size: 20px; }
  .step-label { font-size: 11px; }
  .timeline:before, .timeline-progress { right: 30px; left: 30px; }
  .bike-animation { font-size: 26px; right: 30px; }
}