/* --------------------------------------------
   GLOBAL STYLES
--------------------------------------------- */
body {
  background: #f6f7fb;
  font-family: 'Poppins', sans-serif;
}

/* --------------------------------------------
   MAIN WRAPPER (SIDEBAR + CONTENT)
--------------------------------------------- */
.account-wrapper {
  display: flex;
  gap: 30px;
  padding: 60px 0;
}

/* --------------------------------------------
   SIDEBAR
--------------------------------------------- */
.sidebar {
  width: 260px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: max-content;
  position: sticky;
  top: 100px; /* to avoid navbar overlap */
}

.sidebar h5 {
  font-weight: 700;
  margin-bottom: 15px;
}

.sidebar a {
  display: block;
  padding: 12px 15px;
  background: transparent;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: .3s ease;
}

.sidebar a.active,
.sidebar a:hover {
  background: #0a8f55;
  color: #fff;
}

/* --------------------------------------------
   RIGHT SIDE CONTENT (ORDERS)
--------------------------------------------- */
.account-content {
  flex: 1;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 25px;
  margin-top: 0;
}

/* --------------------------------------------
   ORDER CARD
--------------------------------------------- */
.order-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid #ececec;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transition: .3s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

/* --------------------------------------------
   ORDER HEADER
--------------------------------------------- */
.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-id {
  font-size: 18px;
  font-weight: 600;
}

/* ORDER STATUS */
.status-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.st-delivered {
  background: #0a8f55;
  color: #fff;
}

.st-pending {
  background: #e0a80a;
  color: #fff;
}

.st-cancelled {
  background: #d9534f;
  color: #fff;
}

/* --------------------------------------------
   PRODUCT ROW
--------------------------------------------- */
.product-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.product-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.product-info h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-info p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

/* --------------------------------------------
   ORDER FOOTER
--------------------------------------------- */
.order-bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-total {
  font-size: 20px;
  font-weight: 700;
}

/* --------------------------------------------
   BUTTONS
--------------------------------------------- */
.btn-main {
  background: #0a8f55;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.btn-main:hover {
  background: #066b3f;
}

.btn-outline-main {
  border: 2px solid #0a8f55;
  color: #0a8f55;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
}

.btn-outline-main:hover {
  background: #0a8f55;
  color: #fff;
}

/* --------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------- */
@media (max-width: 992px) {
  .account-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
  }
}

@media (max-width: 576px) {
  .order-top,
  .order-bottom,
  .product-row {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
