table {
    border-spacing: 1;
    border-collapse: collapse;
    background: rgba(225, 165, 0, 0.507);
    border-radius: 6px;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
  }
  table * {
    position: relative;
  }
  table td, table th {
      padding-left: 20px;
  }
  table thead tr {
    height: 60px;
    background: #FFED86;
    font-size: 16px;
  }
  table tbody tr {
    height: 48px;
    border: 1px solid #FFED86;
  }
  table tbody tr:last-child {
    border: 0;
  }
  table td, table th {
    text-align: left;
  }
  table td.l, table th.l {
    text-align: right;
  }
  table td.c, table th.c {
    text-align: center;
  }
  table td.r, table th.r {
    text-align: center;
  }
  
  @media screen and (max-width: 35.5em) {
    table {
      display: block;
    }
    table > *, table tr, table td, table th {
      display: block;
    }
    table thead {
      display: none;
    }
    table tbody tr {
      height: auto;
      padding: 8px 0;
    }
    table tbody tr td {
      padding-left: 45%;
      margin-bottom: 12px;
    }
    table tbody tr td:last-child {
      margin-bottom: 0;
    }
    table tbody tr td:before {
      position: absolute;
      font-weight: 700;
      width: 40%;
      left: 10px;
      top: 0;
    }
    table tbody tr td:nth-child(1):before {
      content: "Products Name";
    }
    table tbody tr td:nth-child(2):before {
      content: "Details";
    }
    table tbody tr td:nth-child(3):before {
      content: "Buy price";
    }
    table tbody tr td:nth-child(4):before {
      content: "Sell price";
    }
    table tbody tr td:nth-child(5):before {
      content: "Delivery Fee";
    }
    table tbody tr td:nth-child(6):before {
      content: "Made in";
    }
    table tbody tr td:nth-child(7):before {
      content: "Contact";
    }
  }
  