/* ================================
   Orders Page
================================ */

.orders-page {
  min-height: calc(100vh - 160px);

  padding: 60px 0 80px;
}

.orders-head {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 35px;
}

.orders-label {
  color: var(--blue);

  font-size: 13px;

  font-weight: 600;
}

.orders-head h1 {
  color: var(--text);

  font-size: 34px;

  margin: 7px 0;
}

.orders-head p {
  color: var(--muted);

  margin: 0;

  font-size: 14px;
}

.refresh-orders-btn {
  display: flex;

  align-items: center;

  gap: 8px;

  padding: 11px 18px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: var(--card);

  color: var(--text);

  cursor: pointer;

  transition: 0.3s;
}

.refresh-orders-btn:hover {
  background: var(--blue);

  border-color: var(--blue);

  color: white;
}

/* ================================
   Messages
================================ */

.orders-message {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-height: 180px;

  color: var(--muted);

  font-size: 15px;
}

.orders-message i {
  color: var(--blue);
}

.error-message {
  color: #e74c3c;
}

/* ================================
   Orders List
================================ */

.orders-list {
  display: flex;

  flex-direction: column;

  gap: 20px;
}

/* ================================
   Order Card
================================ */

.order-card {
  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;

  overflow: hidden;
}

.order-card-head {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding: 20px 24px;

  border-bottom: 1px solid var(--border);
}

.order-number {
  color: var(--text);

  font-weight: 700;

  font-size: 15px;
}

.order-date {
  color: var(--muted);

  font-size: 12px;

  margin-top: 5px;
}

.order-status {
  width: fit-content;

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 11px;

  font-weight: 700;

  text-transform: capitalize;
}

.order-status.pending {
  color: #f5b942;

  background: rgba(245, 185, 66, 0.12);
}

.order-status.confirmed {
  color: #3498db;

  background: rgba(52, 152, 219, 0.12);
}

.order-status.completed {
  color: #2ecc71;

  background: rgba(46, 204, 113, 0.12);
}

.order-status.cancelled {
  color: #e74c3c;

  background: rgba(231, 76, 60, 0.12);
}

/* ================================
   Items
================================ */

.order-items {
  padding: 8px 24px;
}

.order-item {
  display: flex;

  align-items: center;

  gap: 15px;

  padding: 16px 0;

  border-bottom: 1px solid var(--border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-image {
  width: 70px;

  height: 70px;

  min-width: 70px;

  border-radius: 12px;

  overflow: hidden;

  background: var(--input);
}

.order-item-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.order-item-info {
  flex: 1;
}

.order-item-info h3 {
  color: var(--text);

  font-size: 15px;

  margin: 0 0 6px;
}

.order-item-info p {
  color: var(--muted);

  font-size: 12px;

  margin: 3px 0;
}

.order-item-price {
  color: var(--text);

  font-weight: 700;

  font-size: 14px;
}

/* ================================
   Order Footer
================================ */

.order-card-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px 24px;

  background: var(--input);

  border-top: 1px solid var(--border);
}

.shipping-info {
  color: var(--muted);

  font-size: 12px;
}

.shipping-info strong {
  color: var(--text);
}

.payment-info {
  color: var(--muted);

  font-size: 12px;

  margin-top: 8px;
}

.payment-info strong {
  color: var(--text);

  text-transform: capitalize;
}

.order-total {
  text-align: right;
}

.order-total span {
  display: block;

  color: var(--muted);

  font-size: 11px;
}

.order-total strong {
  display: block;

  color: var(--blue);

  font-size: 20px;

  margin-top: 4px;
}

/* ================================
   Empty Orders
================================ */

.empty-orders {
  text-align: center;

  padding: 70px 20px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 18px;
}

.empty-orders-icon {
  width: 70px;

  height: 70px;

  margin: 0 auto 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 18px;

  background: rgba(7, 140, 255, 0.12);

  color: var(--blue);

  font-size: 28px;
}

.empty-orders h2 {
  color: var(--text);

  margin: 0 0 8px;
}

.empty-orders p {
  color: var(--muted);

  margin: 0 0 25px;
}

.shop-orders-btn {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 12px 18px;

  border-radius: 10px;

  background: var(--blue);

  color: white;

  text-decoration: none;

  font-size: 14px;
}

/* ================================
   Responsive
================================ */

@media (max-width: 700px) {
  .orders-page {
    padding: 40px 0 60px;
  }

  .orders-head {
    align-items: flex-start;

    flex-direction: column;
  }

  .orders-head h1 {
    font-size: 28px;
  }

  .order-card-head {
    align-items: flex-start;

    flex-direction: column;
  }

  .order-card-footer {
    align-items: flex-start;

    flex-direction: column;
  }

  .order-total {
    text-align: left;
  }

  .order-item {
    align-items: flex-start;
  }

  .order-item-image {
    width: 58px;

    height: 58px;

    min-width: 58px;
  }
}
