.track-container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 40px;
}

.track-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #2878ff 0%, #56a0f5 55%, #a8d4ff 100%);
}

.track-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.track-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
}

.track-hero-text {
  flex: 0 0 auto;
}

.track-hero-title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.track-hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.track-search-section {
  background: #fff;
  padding: 48px 0 40px;
  border-bottom: 1px solid #e8e8e8;
}

.track-search-form {
  max-width: 860px;
  margin: 0 auto;
}

.track-search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.track-search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-search-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.track-search-field input {
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.track-search-field input:focus {
  border-color: #2878ff;
  box-shadow: 0 0 0 3px rgba(40, 120, 255, 0.1);
}

.track-search-action {
  flex-shrink: 0;
}

.track-search-btn {
  height: 44px;
  padding: 0 32px;
  background: #2878ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.track-search-btn:hover {
  background: #1a5fd4;
}

.track-result-section {
  background: #f5f5f5;
  padding: 40px 0 60px;
}

.track-not-found {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  padding: 48px 32px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.track-not-found-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.track-not-found-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.track-not-found-text {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.track-order-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 28px;
  margin-bottom: 20px;
}

.track-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.track-order-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-order-number {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.track-order-date {
  font-size: 13px;
  color: #888;
}

.track-order-status {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.track-status-unpaid {
  background: #fff7e6;
  color: #d48806;
}
.track-status-pending {
  background: #e6f7ff;
  color: #0958d9;
}
.track-status-paid {
  background: #f6ffed;
  color: #389e0d;
}
.track-status-processing {
  background: #f9f0ff;
  color: #722ed1;
}
.track-status-shipped {
  background: #e6fffb;
  color: #08979c;
}
.track-status-delivered {
  background: #f6ffed;
  color: #389e0d;
}
.track-status-expired {
  background: #f5f5f5;
  color: #8c8c8c;
}
.track-status-cancelled {
  background: #fff1f0;
  color: #cf1322;
}

.track-order-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.track-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-detail-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.track-detail-value {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.track-detail-mono {
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
}

.track-timeline-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 28px;
  margin-bottom: 20px;
}

.track-timeline-title,
.track-items-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.track-timeline {
  display: flex;
  flex-direction: column;
}

.track-timeline-entry {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
  min-height: 60px;
}

.track-timeline-entry:last-child {
  padding-bottom: 0;
}

.track-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  background: #d0d0d0;
  z-index: 1;
  position: relative;
}

.track-timeline-entry.is-latest .track-timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  margin-left: -2px;
  box-shadow: 0 0 0 4px rgba(40, 120, 255, 0.15);
}

.track-timeline-line {
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
}

.track-timeline-entry.is-latest .track-timeline-line {
  left: 8px;
  top: 22px;
}

.track-timeline-entry:last-child .track-timeline-line {
  display: none;
}

.track-timeline-body {
  flex: 1;
  min-width: 0;
}

.track-timeline-status {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.track-timeline-desc {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  line-height: 1.5;
}

.track-timeline-notes {
  font-size: 13px;
  color: #444;
  margin-top: 4px;
  padding: 6px 10px;
  background: #f9f9f9;
  border-radius: 6px;
  line-height: 1.5;
}

.track-timeline-date {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.track-empty-timeline {
  text-align: center;
  color: #999;
  padding: 24px 0;
  font-size: 14px;
}

.track-items-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 28px;
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  gap: 12px;
}

.track-item-row:last-child {
  border-bottom: none;
}

.track-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.track-item-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .track-hero {
    height: 220px;
  }

  .track-hero-title {
    font-size: 28px;
  }

  .track-hero-subtitle {
    font-size: 15px;
  }

  .track-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .track-search-field {
    width: 100%;
  }

  .track-search-field input {
    width: 100%;
    box-sizing: border-box;
  }

  .track-search-action {
    width: 100%;
  }

  .track-search-btn {
    width: 100%;
  }

  .track-order-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .track-container {
    padding: 0 16px;
  }

  .track-hero {
    height: 150px;
  }

  .track-hero-inner {
    padding: 0 16px;
  }

  .track-hero-title {
    font-size: 22px;
  }

  .track-hero-subtitle {
    font-size: 13px;
  }

  .track-search-section {
    padding: 28px 0;
  }

  .track-result-section {
    padding: 20px 0 40px;
  }

  .track-order-card,
  .track-timeline-card,
  .track-items-card {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .track-order-number {
    font-size: 17px;
  }

  .track-order-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .track-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .track-item-meta {
    font-size: 12px;
  }

  .track-not-found {
    padding: 32px 20px;
  }
}

.ship-calc-section {
  background: #f5f5f5;
  padding: 48px 0 60px;
}

.ship-calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.ship-calc-form-card,
.ship-calc-result-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  padding: 28px;
}

.ship-calc-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.ship-calc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ship-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ship-calc-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ship-calc-field select,
.ship-calc-field input {
  height: 42px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.ship-calc-field select:focus,
.ship-calc-field input:focus {
  border-color: #2878ff;
  box-shadow: 0 0 0 3px rgba(40, 120, 255, 0.1);
}

.ship-calc-hint {
  font-size: 12px;
  color: #999;
}

.ship-calc-btn {
  height: 44px;
  background: #2878ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.ship-calc-btn:hover {
  background: #1a5fd4;
}

.ship-calc-btn:disabled {
  background: #a0c4ff;
  cursor: wait;
}

.ship-calc-result-empty {
  text-align: center;
  color: #999;
  padding: 32px 0;
  font-size: 14px;
}

.ship-calc-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ship-calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #555;
}

.ship-calc-result-row:last-of-type {
  border-bottom: none;
}

.ship-calc-result-main {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.ship-calc-cost {
  font-size: 22px;
  font-weight: 700;
  color: #2878ff;
}

.ship-calc-cost-free {
  color: #52c41a;
}

.ship-calc-result-note {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #389e0d;
  text-align: center;
}

.ship-calc-result-error {
  text-align: center;
  color: #cf1322;
  padding: 24px 0;
  font-size: 14px;
}

.ship-calc-info {
  max-width: 100%;
}

.ship-calc-info-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 32px;
}

.ship-calc-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ship-calc-info-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.ship-calc-info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.ship-calc-info-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.ship-calc-info-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.ship-calc-info-item a {
  color: #2878ff;
}

.checkout-free-shipping {
  color: #52c41a;
  font-weight: 600;
}

@media (max-width: 860px) {
  .ship-calc-layout {
    grid-template-columns: 1fr;
  }

  .ship-calc-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ship-calc-section {
    padding: 24px 0 40px;
  }

  .ship-calc-form-card,
  .ship-calc-result-card {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .ship-calc-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ship-calc-info-item {
    padding: 18px 16px;
  }
}
