/* ==========================================================================
   Studio by Namrata: order tracking page
   Uses the colors, fonts and buttons from style.css.
   ========================================================================== */
.track { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 104px); background: linear-gradient(var(--paper), var(--ivory) 460px); }
.track-head { display: grid; gap: 6px; margin-bottom: clamp(24px, 4vw, 40px); }
.track-head h1 { font-family: var(--ff-script); font-weight: 400; font-size: clamp(2.875rem, 6vw, 4.5rem); line-height: 1.05; color: var(--ink); }
.track-head p { max-width: 36rem; font-size: 1.0625rem; }

/* ---------- Order card ---------- */
.order { display: grid; grid-template-columns: minmax(270px, 340px) 1fr; background: var(--ivory); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 2px; }
.order-side { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 32px); background: color-mix(in srgb, var(--blush-50) 60%, var(--ivory)); border-right: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); }
.order-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--blush-50); }
.order-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.order-photo--none { display: grid; place-items: center; color: color-mix(in srgb, var(--gold) 70%, var(--blush-100)); }
.order-photo--none svg { width: 38%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.order-info { display: grid; gap: 14px; }
.order-no { font-size: 1.0625rem; font-weight: 600; letter-spacing: .05em; color: var(--ink); overflow-wrap: anywhere; }
.order-name { font-family: var(--ff-text); font-weight: 500; font-size: .9375rem; line-height: 1.4; color: var(--body); margin-top: 2px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

.order-main { padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.4vw, 44px) clamp(24px, 3.4vw, 40px); min-width: 0; }
.now { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); }
.now-title { font-family: var(--ff-script); font-weight: 400; font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.1; color: var(--ink); }
.now p { margin-top: 6px; max-width: 34rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; border-left: 2px dashed #CDBFB8; }
.step:last-child::before { display: none; }
.step.is-done::before { border-left: 2px solid var(--gold); }
.step-ico { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.step-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.is-done .step-ico { background: var(--gold-lt); color: var(--ink); }
.is-done .step-ico::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ivory); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDFB' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.is-current .step-ico { background: var(--ink); color: var(--ivory); box-shadow: 0 0 0 5px var(--blush-100); }
.is-todo .step-ico { background: var(--ivory); color: var(--muted); border: 1.5px dashed #BFB1AA; }
.step-body { display: grid; align-content: center; gap: 2px; min-height: 48px; min-width: 0; }
.step-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.step-title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.is-todo .step-title { font-weight: 500; color: var(--muted); }
.step-date { font-size: .875rem; color: var(--muted); }
.pill { padding: 3px 12px; border-radius: 2px; background: var(--blush-100); color: var(--ink); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.step-note { font-size: .875rem; color: var(--muted); }

.ship { display: grid; gap: 12px; justify-items: start; margin-top: 10px; padding: 14px 16px; background: color-mix(in srgb, var(--blush-50) 60%, var(--ivory)); border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); border-radius: 2px; }
.ship-line { display: grid; gap: 2px; }
.ship-carrier { font-size: .875rem; color: var(--muted); }
.ship-no { font-size: clamp(.9375rem, 4.2vw, 1.0625rem); font-weight: 600; letter-spacing: .03em; color: var(--ink); overflow-wrap: anywhere; }
.ship-no span { display: inline-block; }

/* ---------- Messages, help and lookup ---------- */
.track-msg { padding: 22px clamp(18px, 3vw, 28px); background: color-mix(in srgb, var(--blush-50) 60%, var(--ivory)); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 2px; max-width: 40rem; }
.track-msg strong { display: block; margin-bottom: 4px; font-size: 1.0625rem; color: var(--ink); }
.track-demo { margin-bottom: 14px; padding: 8px 14px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--blush-50) 60%, var(--ivory)); font-size: .875rem; color: var(--muted); }
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; }
.help p { font-size: .9375rem; }
.help .ico-brand { width: 20px; height: 20px; }
.lookup { margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); }
.lookup summary { cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--gold-text); }
.lookup form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-top: 16px; }
.lookup label { display: grid; gap: 4px; font-size: .875rem; color: var(--muted); }
.lookup input { width: 12rem; max-width: 100%; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 2px; background: var(--ivory); font: inherit; color: var(--ink); text-transform: uppercase; }
.lookup input::placeholder { text-transform: none; color: #8C807C; }
.lookup-hint { margin-top: 10px; font-size: .875rem; color: var(--muted); }

@media (max-width: 860px) {
  .order { grid-template-columns: 1fr; }
  .order-side { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); }
}
