/* =====================================================================
   track-order.css — Guest Order Tracking Page
   Used by: track-order.php
   ===================================================================== */

.tr-wrap{
  background:linear-gradient(180deg, #faf6f0 0%, #fff 280px, #fff 100%);
  min-height:60vh;
  padding:32px 0 80px;
}
.tr-container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* Breadcrumb */
.tr-crumb{
  font-size:12px;
  color:#776a55;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.tr-crumb a{
  color:#776a55;
  text-decoration:none;
  transition:color .2s;
}
.tr-crumb a:hover{ color:#c49a3c; }
.tr-crumb-cur{ color:#1a1a1a; font-weight:500; }

/* Hero */
.tr-hero{
  text-align:center;
  margin:8px auto 32px;
  max-width:640px;
}
.tr-hero-icn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:74px;
  height:74px;
  border-radius:50%;
  background:linear-gradient(135deg, #fdf6e3 0%, #f5e6c0 100%);
  color:#a8842c;
  margin-bottom:16px;
  border:1px solid rgba(196,154,60,.25);
  box-shadow:0 4px 14px rgba(196,154,60,.12);
}
.tr-hero-title{
  font-family:'Playfair Display','Cormorant Garamond',serif;
  font-size:clamp(28px, 4vw, 40px);
  font-weight:500;
  color:#1a1a1a;
  margin:0 0 10px;
  letter-spacing:-.01em;
}
.tr-hero-sub{
  font-size:15px;
  color:#5a5246;
  line-height:1.55;
  margin:0;
}

/* Form card */
.tr-form-card{
  background:#fff;
  border:1px solid #ece4d3;
  border-radius:16px;
  padding:28px;
  box-shadow:0 6px 24px rgba(20,15,5,.05);
  max-width:680px;
  margin:0 auto 36px;
}
.tr-form{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:14px;
  align-items:end;
}
.tr-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.tr-field label{
  font-size:12px;
  font-weight:600;
  color:#5a5246;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.tr-field input{
  height:46px;
  padding:0 14px;
  border:1.5px solid #e4dac4;
  border-radius:10px;
  background:#fdfaf3;
  color:#1a1a1a;
  font-size:15px;
  font-family:inherit;
  transition:border-color .2s, background .2s, box-shadow .2s;
  outline:none;
}
.tr-field input:focus{
  border-color:#c49a3c;
  background:#fff;
  box-shadow:0 0 0 3px rgba(196,154,60,.14);
}
.tr-submit{
  height:46px;
  padding:0 22px;
  background:#1a1a1a;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.04em;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:background .2s, transform .15s;
  white-space:nowrap;
}
.tr-submit:hover{ background:#c49a3c; transform:translateY(-1px); }
.tr-submit:active{ transform:translateY(0); }

.tr-err{
  margin-top:16px;
  padding:12px 14px;
  background:#fdf2f0;
  border:1px solid #f4c8c0;
  border-radius:10px;
  color:#a23226;
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.5;
}
.tr-err svg{ flex:0 0 16px; margin-top:2px; }

.tr-help-line{
  margin:16px 0 0;
  font-size:13px;
  color:#776a55;
  text-align:center;
}
.tr-help-line a{
  color:#c49a3c;
  font-weight:500;
  text-decoration:none;
}
.tr-help-line a:hover{ text-decoration:underline; }

/* Result card */
.tr-result{
  background:#fff;
  border:1px solid #ece4d3;
  border-radius:18px;
  padding:30px;
  box-shadow:0 8px 30px rgba(20,15,5,.06);
  margin:0 auto 40px;
  max-width:980px;
  animation:trFadeIn .35s ease;
}
@keyframes trFadeIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}
.tr-result-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:20px;
  border-bottom:1px solid #f0e8d6;
  margin-bottom:24px;
}
.tr-result-title{
  font-family:'Playfair Display','Cormorant Garamond',serif;
  font-size:24px;
  font-weight:500;
  color:#1a1a1a;
  margin:0 0 4px;
}
.tr-result-meta{
  font-size:13px;
  color:#776a55;
  margin:0;
}
.tr-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.tr-badge-success{ background:#e6f4ec; color:#1d6b3d; }
.tr-badge-info   { background:#e8f0fb; color:#1f4a8a; }
.tr-badge-warning{ background:#fdf3dc; color:#8a5a1f; }
.tr-badge-danger { background:#fbe7e3; color:#9a2f24; }
.tr-badge-muted  { background:#f0ece4; color:#5a5246; }
.tr-badge-primary{ background:#fdf6e3; color:#8a6920; }

/* Timeline */
.tr-timeline{
  list-style:none;
  margin:0 0 26px;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0;
  position:relative;
}
.tr-tl-item{
  position:relative;
  text-align:center;
  padding:0 8px;
}
.tr-tl-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#fdfaf3;
  border:2px solid #e4dac4;
  color:#a89673;
  position:relative;
  z-index:2;
  transition:all .25s ease;
}
.tr-tl-num{
  font-size:13px;
  font-weight:600;
}
.tr-tl-item.is-done .tr-tl-dot{
  background:linear-gradient(135deg, #d4af52 0%, #c49a3c 100%);
  border-color:#c49a3c;
  color:#fff;
  box-shadow:0 4px 12px rgba(196,154,60,.3);
}
.tr-tl-item.is-current .tr-tl-dot{
  animation:trPulse 1.6s ease-in-out infinite;
}
@keyframes trPulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(196,154,60,.4); }
  50%    { box-shadow:0 0 0 9px rgba(196,154,60,0); }
}
.tr-tl-body{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.tr-tl-lbl{
  font-size:13px;
  font-weight:600;
  color:#1a1a1a;
}
.tr-tl-sub{
  font-size:11px;
  color:#776a55;
  line-height:1.4;
}
.tr-tl-bar{
  position:absolute;
  top:18px;
  left:calc(50% + 22px);
  right:calc(-50% + 22px);
  height:2px;
  background:#e4dac4;
  z-index:1;
  transition:background .3s;
}
.tr-tl-bar.is-done{
  background:linear-gradient(to right, #c49a3c 0%, #d4af52 100%);
}

/* Tracking strip */
.tr-strip{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  padding:14px 18px;
  background:linear-gradient(135deg, #fdf6e3 0%, #faedc7 100%);
  border:1px solid rgba(196,154,60,.25);
  border-radius:12px;
  margin-bottom:26px;
}
.tr-strip-info{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  font-size:13px;
  color:#3a3328;
}
.tr-strip-lbl{
  color:#776a55;
  margin-right:4px;
}
.tr-strip-awb{
  font-family:'SF Mono','Consolas',monospace;
  letter-spacing:.04em;
}
.tr-strip-btn{
  padding:9px 18px;
  background:#1a1a1a;
  color:#fff;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:background .2s;
  white-space:nowrap;
}
.tr-strip-btn:hover{ background:#c49a3c; }

/* Grid layout — items + summary */
.tr-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr;
  gap:22px;
}
.tr-card{
  background:#fdfaf3;
  border:1px solid #f0e8d6;
  border-radius:12px;
  padding:20px;
}
.tr-card-title{
  font-family:'Playfair Display','Cormorant Garamond',serif;
  font-size:18px;
  font-weight:500;
  color:#1a1a1a;
  margin:0 0 14px;
}
.tr-card-count{
  color:#776a55;
  font-size:14px;
  font-family:inherit;
  font-weight:400;
}

/* Items list */
.tr-items{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tr-item{
  display:flex;
  gap:14px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px dashed #ece4d3;
}
.tr-item:last-child{ border-bottom:none; padding-bottom:0; }
.tr-item-img{
  flex:0 0 64px;
  width:64px;
  height:64px;
  border-radius:8px;
  overflow:hidden;
  background:#faf6f0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #ece4d3;
}
.tr-item-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.tr-item-noimg{
  font-size:24px;
  opacity:.5;
}
.tr-item-body{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.tr-item-name{
  font-size:14px;
  font-weight:500;
  color:#1a1a1a;
  text-decoration:none;
  line-height:1.4;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.tr-item-name:hover{ color:#c49a3c; }
.tr-item-meta{
  font-size:12px;
  color:#776a55;
}
.tr-item-total{
  font-size:14px;
  font-weight:600;
  color:#1a1a1a;
  white-space:nowrap;
}
.tr-empty{
  color:#776a55;
  font-size:14px;
  padding:20px 0;
  text-align:center;
}

/* Summary */
.tr-summary{
  height:fit-content;
  position:sticky;
  top:100px;
}
.tr-sum-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  font-size:14px;
  color:#3a3328;
}
.tr-sum-total{
  border-top:1.5px solid #e4dac4;
  margin-top:6px;
  padding-top:14px;
  font-size:16px;
}
.tr-sum-total strong{
  color:#c49a3c;
  font-size:18px;
}
.tr-sum-deliver{
  margin:14px 0;
  padding:12px;
  background:#fff;
  border:1px solid #ece4d3;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.tr-sum-deliver-lbl{
  font-size:11px;
  color:#776a55;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:600;
}
.tr-sum-deliver-val{
  font-size:14px;
  color:#1a1a1a;
  font-weight:500;
}
.tr-sum-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.tr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s;
  cursor:pointer;
}
.tr-btn-ghost{
  background:#fff;
  border:1.5px solid #e4dac4;
  color:#3a3328;
}
.tr-btn-ghost:hover{
  background:#fdf6e3;
  border-color:#c49a3c;
  color:#1a1a1a;
}

/* FAQ */
.tr-faq{
  max-width:900px;
  margin:50px auto 0;
}
.tr-faq-title{
  font-family:'Playfair Display','Cormorant Garamond',serif;
  font-size:24px;
  font-weight:500;
  color:#1a1a1a;
  text-align:center;
  margin:0 0 26px;
}
.tr-faq-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}
.tr-faq-item{
  background:#fff;
  border:1px solid #ece4d3;
  border-radius:12px;
  padding:20px;
}
.tr-faq-item h3{
  font-family:'Playfair Display','Cormorant Garamond',serif;
  font-size:16px;
  font-weight:500;
  color:#1a1a1a;
  margin:0 0 8px;
}
.tr-faq-item p{
  font-size:13px;
  line-height:1.55;
  color:#5a5246;
  margin:0;
}
.tr-faq-item a{
  color:#c49a3c;
  font-weight:500;
  text-decoration:none;
}
.tr-faq-item a:hover{ text-decoration:underline; }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
════════════════════════════════════════ */
@media (max-width:960px){
  .tr-form{
    grid-template-columns:1fr;
    gap:14px;
  }
  .tr-submit{ width:100%; justify-content:center; height:50px; }
  .tr-grid{
    grid-template-columns:1fr;
  }
  .tr-summary{ position:static; }
  .tr-tl-sub{ display:none; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤640px)
════════════════════════════════════════ */
@media (max-width:640px){
  .tr-wrap{ padding:20px 0 60px; }
  .tr-container{ padding:0 14px; }
  .tr-hero{ margin-bottom:24px; }
  .tr-hero-icn{ width:64px; height:64px; }
  .tr-hero-icn svg{ width:30px; height:30px; }
  .tr-form-card{ padding:22px 18px; border-radius:14px; }
  .tr-result{ padding:20px 16px; border-radius:14px; }
  .tr-result-head{ padding-bottom:16px; margin-bottom:18px; }
  .tr-result-title{ font-size:20px; }

  /* Compact horizontal timeline */
  .tr-timeline{ gap:0; }
  .tr-tl-dot{ width:32px; height:32px; }
  .tr-tl-dot svg{ width:12px; height:12px; }
  .tr-tl-num{ font-size:12px; }
  .tr-tl-lbl{ font-size:11px; line-height:1.3; }
  .tr-tl-bar{
    top:15px;
    left:calc(50% + 19px);
    right:calc(-50% + 19px);
  }
  .tr-tl-item{ padding:0 4px; }

  .tr-strip{ padding:12px 14px; }
  .tr-strip-info{ font-size:12px; gap:14px; }
  .tr-strip-btn{ width:100%; text-align:center; }

  .tr-card{ padding:16px; }
  .tr-card-title{ font-size:16px; }
  .tr-item{ gap:12px; padding:8px 0; }
  .tr-item-img{ flex:0 0 56px; width:56px; height:56px; }
  .tr-item-name{ font-size:13px; }
  .tr-item-total{ font-size:13px; }
  .tr-faq-title{ font-size:20px; }
  .tr-faq-item{ padding:16px; }
}

/* ════════════════════════════════════════
   SMALL PHONES (≤380px)
════════════════════════════════════════ */
@media (max-width:380px){
  .tr-tl-lbl{ font-size:10px; }
  .tr-tl-dot{ width:28px; height:28px; }
  .tr-tl-bar{
    top:13px;
    left:calc(50% + 17px);
    right:calc(-50% + 17px);
  }
}
