/* ===== ORDERS PAGE ===== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #5B7917;
  margin: 0;
}

/* ===== PAGE WRAPPER ===== */
.orders-page {
  max-width: 1000px;
  margin: 46px auto 72px;
  padding: 0 20px;
}

/* ===== TITLE ===== */
.orders-page h2 {
  text-align: center;
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

/* ===== SUBTITLE ===== */
.orders-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #607437;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(133, 152, 100, 0.22);
  box-shadow: 0 18px 44px rgba(65, 83, 33, 0.14);
}

/* HEADER */
th {
  background-color: #899D31;
  color: #FFFFFF;
  padding: 12px;
  font-weight: 600;
}

/* CELLS */
td {
  padding: 12px;
  border-bottom: 1px solid rgba(133, 152, 100, 0.18);
  text-align: center;
  color: #607437;
}

/* ROW HOVER */
tr:hover {
  background-color: #F6F1E6;
}

/* ===== STATUS ===== */
.status {
  font-weight: 600;
  text-transform: capitalize;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* STATUS COLORS */
.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.shipping {
  background: #d1ecf1;
  color: #0c5460;
}

.status.delivered {
  background: #d4edda;
  color: #155724;
}

.status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* ===== BUTTON (VIEW DETAILS) ===== */
.view-btn {
  background: #5B7917;
  color: white;
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.view-btn:hover {
  background: #899D31;
  transform: translateY(-1px);
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .orders-page {
    margin: 30px auto 50px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  table {
    display: block;
    overflow-x: auto;
  }

  th, td {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .orders-page h2 {
    font-size: 1.6rem;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 520px) {
  .orders-page {
    padding: 0 14px;
  }

  .orders-subtitle {
    font-size: 0.95rem;
  }
}
