@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #0F7CB3;
  --success-color: #16a34a;
  --text-color: #222;
  --muted-color: #666;
  --bg-color: #f4f7fb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}



.tracking-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tracking-card {
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tracking-logo {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.tracking-logo .jouet {
  color: #FF0555;
  text-shadow: 1px 1px 2px rgba(68, 62, 65, 0.35);
}

.tracking-logo .maroc {
  color: #954484;
  margin-left: 6px;
  text-shadow: 1px 1px 2px rgba(49, 47, 52, 0.25);
}

.brand-box {
  text-align: center;
  margin-bottom: 28px;
}

.logo-placeholder {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-box h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.brand-box p {
  margin: 0;
  color: var(--muted-color);
}

.tracking-form {
  max-width: 460px;
  margin: 0 auto;
}

.tracking-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.tracking-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.tracking-form button {
  width: 100%;
  padding: 14px 18px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.info-box {
  margin-top: 28px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  text-align: center;
  color: var(--muted-color);
}

.info-box p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .tracking-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .brand-box h1 {
    font-size: 1.45rem;
  }
}

.route-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 25px 0 35px;
}

.route-city {
  text-align: center;
  min-width: 110px;
}

.route-city span {
  display: block;
  color: var(--muted-color);
  font-size: 13px;
}

.route-city strong {
  font-size: 16px;
}

.route-line {
  position: relative;
  flex: 1;
  height: 3px;
  background: #dbeafe;
  border-radius: 10px;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 55%;
  background: var(--success-color);
  border-radius: 10px;
}

.truck {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 3px;
}

.truck {
  font-size: 18px;
}
/* =========================
   TRACKING PAGE
========================= */

.tracking-header {
  text-align: center;
  margin-bottom: 35px;
}

.tracking-number {
  margin-top: 10px;
  color: var(--muted-color);
  font-size: 15px;
}

/* =========================
   PRODUCT BOX
========================= */

.product-box {
  display: flex;
  gap: 18px;
  align-items: center;

  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 16px;

  margin-bottom: 35px;

  background: #fafafa;
}

.product-image img {
  width: 120px;
  height: 120px;
  object-fit: contain;

  border-radius: 12px;
  background: #fff;
}

.product-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.product-info p {
  margin: 0 0 12px;
  color: var(--muted-color);
}

.delivery-badge {
  display: inline-block;

  background: #e7f7ed;
  color: #15803d;

  padding: 8px 12px;
  border-radius: 30px;

  font-size: 14px;
  font-weight: 600;
}

/* =========================
   TIMELINE
========================= */

.timeline-dot {
  width: 26px;
  height: 26px;

  border-radius: 50%;
  background: #cbd5e1;

  flex-shrink: 0;
  z-index: 2;

  position: relative;
}

/* الحالة المفعلة */
.timeline-item.active .timeline-dot {
  background: #10b981;
}

/* علامة صح */
.timeline-item.active .timeline-dot::after {
  content: "✓";

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* =========================
   SHIPPING BOX
========================= */

.shipping-box {
  padding: 20px;

  border-radius: 16px;

  background: #f8fbff;
  border: 1px solid #dbeafe;

  text-align: center;
}

.shipping-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.shipping-code {
  display: inline-block;

  padding: 12px 20px;

  background: var(--primary-color);
  color: #fff;

  border-radius: 10px;

  font-weight: 700;
  letter-spacing: 1px;
}

/* =========================
   SHIPPING COMPANY
========================= */

.shipping-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  margin-top: 15px;
}

.shipping-company img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.shipping-details {
  text-align: left;
}

.shipping-name {
  display: block;
  margin-bottom: 8px;

  font-weight: 700;
  font-size: 16px;
}

.shipping-company img {
  width: 95px;
}



.amana-card {
  grid-column: 1 / -1;
  max-width: 100%;
   text-align: center;
}

.amana-info {
    
   width: 100%;
  max-width: 320px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.amana-info img {
  width: 90px;
  max-width: 100%;
}

.amana-info strong {
  display: inline-block;
  background: #f4f7fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

@media (max-width: 600px) {

  .amana-card {
    padding: 14px;
  }

  .amana-info {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .amana-info img {
    width: 135px !important;
    margin-bottom: 4px !important;
  }

  .amana-info strong {
    max-width: 100%;
    font-size: 0.85rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .product-box {
    flex-direction: column;
    text-align: center;
  }

  .product-image img {
    width: 170px;
    height: 170px;
  }

  .product-info h2 {
    font-size: 20px;
  }

}

.order-details {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
}

.order-details h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.details-grid div {
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.details-grid span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
}

.details-grid strong {
  font-size: 1rem;
  color: #111;
}

@media (max-width: 600px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  body {
    padding: 10px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .tracking-logo {
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }

  .container h1 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .card {
    padding: 14px;
    margin-top: 16px;
    margin-bottom: 18px;
  }

 

  .card h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 10px 0 14px;
  }

  .route-box,
  .route-card {
    padding: 12px;
    margin: 10px 0;
  }

  .step p {
    margin: 12px 0;
    font-size: 0.95rem;
  }

  .step small,
  .step .date {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
  }

  .order-details {
    padding: 14px;
    margin-top: 20px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 600px) {

  .route-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .route-city {
    text-align: center;
    width: 100%;
  }

  .route-city span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
  }

  .route-city strong {
    font-size: 1rem;
  }

  .route-line {
    width: 100%;
    height: auto;
    background: transparent;
    display: flex;
    justify-content: center;
  }

  .route-line::before {
    display: none;
  }

  .truck {
    position: static;
    transform: none;
    font-size: 1.4rem;
    background: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  }
}