/* ============================================================
   Azaad — TRACK ORDER PAGE (track-order.css)
   Mobile-first. Uses variables.css tokens throughout.
   Light theme matching main site. No italic styles.
   ============================================================ */

/* ── Page Wrapper ── */
.track-page {
  background: var(--color-bg-secondary);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* ── Hero ── */
.track-hero {
  background: var(--color-bg-dark);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.track-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      rgba(201, 169, 110, 0.07) 0%,
      transparent 65%);
  pointer-events: none;
}

.track-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 169, 110, 0.25),
      transparent);
}

.track-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-mega);
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: var(--space-4);
}

.track-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--color-brand-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-3);
  font-style: normal;
}

/* No italic anywhere */
.track-hero__title em,
.track-card__title em,
.track-help__title em,
.track-error__title em,
.order-header__number em {
  font-style: normal;
  color: inherit;
}

.track-hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-inverse-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ── Breadcrumb override for this page ── */
.track-page .breadcrumb {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.track-page .breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  font-family: var(--font-sans);
}

.track-page .breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.track-page .breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--color-text-disabled);
}

.track-page .breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}

.track-page .breadcrumb__link:hover {
  color: var(--color-text-primary);
}

.track-page .breadcrumb__current {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

/* ── Track Section ── */
.track-section {
  padding: 40px 0 0;
}

/* ═══════════════════════════════════
   FORM CARD
═══════════════════════════════════ */
.track-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  max-width: 540px;
  margin: 0 auto var(--space-12);
  box-shadow: var(--shadow-md);
  position: relative;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--color-brand-gold),
      transparent);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.track-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-brand-gold);
}

.track-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-2);
  font-style: normal;
}

.track-card__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-7);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════
   FORM FIELDS
═══════════════════════════════════ */
.track-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.track-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.track-form__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.track-form__input-wrap {
  position: relative;
}

.track-form__input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.track-form__input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 26px);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--input-text);
  outline: none;
  transition: var(--transition-colors);
  box-sizing: border-box;
}

.track-form__input::placeholder {
  color: var(--input-placeholder);
}

.track-form__input:hover {
  border-color: var(--input-border-hover);
}

.track-form__input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

.track-form__input.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-light);
}

.track-form__error {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-error);
  min-height: 16px;
}

.track-form__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.track-form__divider::before,
.track-form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ── Verify Tabs (Email / Phone) ── */
.track-form__tab-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.track-form__tab {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: var(--transition-colors);
  text-align: center;
}

.track-form__tab:hover {
  border-color: var(--color-gray-400);
  color: var(--color-text-secondary);
}

.track-form__tab--active,
.track-form__tab[aria-pressed="true"] {
  background: var(--color-brand-black);
  border-color: var(--color-brand-black);
  color: var(--color-brand-white);
}

/* ── Submit Button ── */
.track-form__submit {
  width: 100%;
  padding: var(--btn-padding-y-md) var(--btn-padding-x-md);
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: var(--btn-font-size-md);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: uppercase;
  color: var(--btn-primary-text);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.track-form__submit:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-1px);
}

.track-form__submit:active {
  transform: translateY(0);
  background: var(--btn-primary-bg-active);
}

.track-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.track-form__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: track-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes track-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════
   ORDER RESULT
═══════════════════════════════════ */
#orderResult {
  display: none;
}

#orderResult.is-visible {
  display: block;
  animation: track-fade-up 0.35s var(--ease-out) forwards;
}

@keyframes track-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Order Header Card ── */
.order-header {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.order-header__id {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.order-header__number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  font-style: normal;
}

.order-header__date {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.order-header__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.order-header__total {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.order-header__total strong {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

/* ── Status Badges ── */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-1-5) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.order-status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status--placed {
  background: var(--color-info-light);
  color: var(--color-info-dark);
}

.status--placed .order-status-badge__dot {
  background: var(--color-info);
}

.status--confirmed {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.status--confirmed .order-status-badge__dot {
  background: var(--color-warning);
}

.status--processing {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.status--processing .order-status-badge__dot {
  background: var(--color-warning);
  animation: track-pulse-dot 1.2s ease-in-out infinite;
}

.status--shipped {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.status--shipped .order-status-badge__dot {
  background: var(--color-success);
}

.status--out_for_delivery {
  background: rgba(201, 169, 110, 0.12);
  color: var(--color-brand-gold-dark);
}

.status--out_for_delivery .order-status-badge__dot {
  background: var(--color-brand-gold);
  animation: track-pulse-dot 0.9s ease-in-out infinite;
}

.status--delivered {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.status--delivered .order-status-badge__dot {
  background: var(--color-success);
}

.status--cancelled {
  background: var(--color-error-light);
  color: var(--color-error-dark);
}

.status--cancelled .order-status-badge__dot {
  background: var(--color-error);
}

.status--refunded {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}

.status--refunded .order-status-badge__dot {
  background: var(--color-gray-500);
}

@keyframes track-pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* ═══════════════════════════════════
   PROGRESS TIMELINE
═══════════════════════════════════ */
.order-timeline-wrap {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.order-timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(201, 169, 110, 0.3),
      transparent);
}

.order-timeline-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Mobile: vertical layout (default) */
.order-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.order-timeline__track {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 19px;
  width: 2px;
  height: auto;
  background: var(--color-border);
  z-index: 0;
}

.order-timeline__progress {
  width: 100%;
  height: var(--progress-height, 0%);
  background: linear-gradient(180deg,
      var(--color-brand-gold),
      rgba(201, 169, 110, 0.35));
  border-radius: 2px;
  transition: height 0.8s var(--ease-out);
}

.order-timeline__step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.order-timeline__step:last-child {
  padding-bottom: 0;
}

.order-timeline__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-in-out);
  color: var(--color-text-muted);
}

.order-timeline__step.is-done .order-timeline__dot {
  background: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: var(--color-brand-black);
  box-shadow: var(--shadow-gold-sm);
}

.order-timeline__step.is-active .order-timeline__dot {
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold-dark);
  background: rgba(201, 169, 110, 0.1);
  animation: track-pulse-ring 1.8s var(--ease-in-out) infinite;
}

@keyframes track-pulse-ring {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(201, 169, 110, 0);
  }
}

.order-timeline__content {
  padding-top: var(--space-2);
  flex: 1;
}

.order-timeline__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  display: block;
  line-height: var(--leading-snug);
}

.order-timeline__step.is-done .order-timeline__label {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

.order-timeline__step.is-active .order-timeline__label {
  color: var(--color-brand-gold-dark);
  font-weight: var(--weight-semibold);
}

.order-timeline__date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  display: block;
}

.order-timeline__step.is-active .order-timeline__date {
  color: var(--color-brand-gold);
}

/* ═══════════════════════════════════
   INFO GRID  (Shipping + Tracking)
═══════════════════════════════════ */
.order-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.order-info-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.order-info-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

.order-info-card__icon {
  width: 34px;
  height: 34px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-gold);
  flex-shrink: 0;
}

.order-info-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}

.order-info-card__body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.order-info-card__body strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.tracking-number {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-success-light);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-1-5) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-success-dark);
  margin-top: var(--space-2);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.tracking-number:hover {
  background: rgba(22, 163, 74, 0.12);
}

.tracking-number:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
}

.tracking-number__copy {
  color: var(--color-success);
  opacity: 0.65;
  flex-shrink: 0;
}

.estimated-delivery {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.estimated-delivery__date {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-brand-gold-dark);
  font-style: normal;
}

/* ═══════════════════════════════════
   ORDER ITEMS CARD
═══════════════════════════════════ */
.order-items-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.order-items-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.order-items-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
}

.order-items-card__count {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.order-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.order-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item__img-wrap {
  width: 56px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: block;
}

.order-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-item__details {
  flex: 1;
  min-width: 0;
}

.order-item__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.order-item__name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-item__variant,
.order-item__qty {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-0-5);
}

.order-item__price {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Order Summary Totals ── */
.order-summary {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1-5) 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.order-summary__row--total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.order-summary__row--total span:last-child {
  color: var(--color-brand-gold-dark);
}

.order-summary__free {
  color: var(--color-success);
  font-weight: var(--weight-medium);
}

/* ═══════════════════════════════════
   HELP CTA
═══════════════════════════════════ */
.track-help {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-gold-sm);
}

.track-help__content {
  flex: 1;
}

.track-help__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  font-style: normal;
}

.track-help__sub {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.track-help__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* WhatsApp Button */
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-whatsapp);
  border: none;
  color: var(--color-brand-white);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-colors);
  white-space: nowrap;
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

/* Retry / Search Another */
.track-error__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition-colors);
}

.track-error__retry:hover {
  border-color: var(--color-brand-black);
  color: var(--color-brand-black);
  background: var(--color-bg-secondary);
}

/* ═══════════════════════════════════
   ERROR STATE
═══════════════════════════════════ */
.track-error {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  padding: 40px 20px;
  box-shadow: var(--shadow-sm);
  animation: track-fade-up 0.3s var(--ease-out);
}

.track-error__icon {
  width: 60px;
  height: 60px;
  background: var(--color-error-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--color-error);
}

.track-error__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-style: normal;
}

.track-error__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════
   TIPS SECTION
═══════════════════════════════════ */
.track-tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.track-tip {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: var(--transition-shadow);
}

.track-tip:hover {
  box-shadow: var(--shadow-md);
}

.track-tip__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-gold);
  flex-shrink: 0;
}

.track-tip__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.track-tip__desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════
   CANCELLED BANNER (inline override)
═══════════════════════════════════ */
.order-cancelled-banner {
  background: var(--color-error-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.order-cancelled-banner__icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-error);
  flex-shrink: 0;
}

.order-cancelled-banner__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-error-dark);
  margin-bottom: var(--space-1);
}

.order-cancelled-banner__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-error);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════
   TABLET  min-width: 640px
═══════════════════════════════════ */
@media (min-width: 640px) {

  .track-page {
    padding-bottom: 80px;
  }

  .track-hero {
    padding: 60px 0 52px;
  }

  .track-card {
    padding: 40px;
  }

  .order-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 32px;
    gap: var(--space-6);
  }

  .order-header__right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .order-timeline-wrap {
    padding: 32px;
  }

  .order-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-info-card {
    padding: 22px 24px;
  }

  .order-items-card {
    padding: 28px 32px;
  }

  .order-item__img-wrap {
    width: 64px;
    height: 80px;
  }

  .order-item {
    gap: var(--space-4);
  }

  .track-help {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }

  .track-help__actions {
    flex-direction: row;
    flex-shrink: 0;
  }

  .track-tips {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* ═══════════════════════════════════
   DESKTOP  min-width: 768px
   Timeline becomes horizontal
═══════════════════════════════════ */
@media (min-width: 768px) {

  .order-timeline {
    flex-direction: row;
    align-items: flex-start;
  }

  .order-timeline__track {
    top: 20px;
    bottom: auto;
    left: calc(40px / 2);
    right: calc(40px / 2);
    width: auto;
    height: 2px;
  }

  .order-timeline__progress {
    /* Reuse --progress-height variable as width on desktop */
    width: var(--progress-height, 0%);
    height: 100%;
    background: linear-gradient(90deg,
        var(--color-brand-gold),
        rgba(201, 169, 110, 0.35));
    transition: width 0.8s var(--ease-out);
  }

  .order-timeline__step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-bottom: 0;
  }

  .order-timeline__dot {
    margin-bottom: var(--space-3);
  }

  .order-timeline__content {
    padding-top: 0;
    flex: none;
    width: 100%;
  }

  .order-timeline__label {
    max-width: 80px;
    margin: 0 auto;
    font-size: var(--text-xs);
  }

  .track-section {
    padding: 56px 0 0;
  }
}

/* ═══════════════════════════════════
   LARGE DESKTOP  min-width: 1024px
═══════════════════════════════════ */
@media (min-width: 1024px) {

  .track-hero {
    padding: 72px 0 60px;
  }
}