/* ===========================================================
   PURCHASE HISTORY PAGE
   =========================================================== */
.hist-page {
  padding: 40px 0 64px;
}
.hist-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.hist-breadcrumb {
  margin: 0 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d8d8d8;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 17px;
  color: #6e7e77;
}
.hist-breadcrumb a {
  color: #6e7e77;
  transition: color var(--transition-base);
}
.hist-title {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #000000;
  margin: 26px 0 18px;
}

/* Panel + table */
.hist-panel {
  background-color: #f4f4f4;
  border-radius: 16px;
  padding: 28px 32px 40px;
}
.hist-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  align-items: center;
  gap: 24px;
}
.hist-row--head {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #506059;
  padding-bottom: 24px;
}
.hist-row + .hist-row {
  padding-top: 26px;
}
.hist-product {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hist-product__img {
  width: 72px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hist-product__name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
  max-width: 180px;
}
.hist-status {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #304d2c;
}
.hist-status--pending {
  color: #00b365;
}
.hist-status--delivered {
  color: #304d2c;
}
.hist-qty {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #304d2c;
}
.hist-price {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  display: flex;
  align-items: center;
}
.hist-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 22px;
  background: #304d2c;
  color: #fff;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-base);
}
.hist-more:hover {
  background: #25401f;
}
.hist-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}
.hist-back i {
  font-size: 15px;
}

@media (max-width: 768px) {
  .hist-panel {
    background: transparent;
    padding: 0;
  }

  .hist-row--head {
    display: none !important;
  }

  .hist-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;

    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
  }
.hist-status--pending {
  color: #00b365 !important;
}
  .hist-product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hist-product__img {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    object-fit: cover;
  }

  .hist-product__name {
    font-size: 18px;
    line-height: 1.4;
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    max-width: none;
  }

  .hist-status,
  .hist-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #304d2c;
  }

  .hist-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
  }

  .hist-status::before {
    content: "Status";
    font-weight: 400;
    color: #6e7e77;
  }

  .hist-qty::before {
    content: "Quantity";
    font-weight: 400;
    color: #6e7e77;
  }

  .hist-price::before {
    content: "Price";
    font-weight: 400;
    color: #6e7e77;
  }

  .hist-more {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border-radius: 10px;
  }

  .hist-back {
    margin-top: 28px;
  }

  .hist-title {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;

    color: #000000;
  }

  .hist-status .hist-qty .hist-price {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #304d2c;
  }
}
