body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f6f6f6;
}
h1 {
  text-align: center;
  color: #2e7d32;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 20px;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
img {
  width: 80px;
  height: auto;
}
.remove-btn {
  color: red;
  cursor: pointer;
}
.delete-button {
  background-color: #dc3545;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delete-button:hover {
  background-color: #bb2d3b;
}
.total {
  text-align: right;
  font-size: 18px;
  margin-top: 20px;
  font-weight: bold;
}
#checkout-button {
  background: linear-gradient(to right, #43a047, #2e7d32);
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
#checkout-button:hover {
  background: linear-gradient(to right, #388e3c, #1b5e20);
  transform: scale(1.02);
}

.checkout-container {
  text-align: right;
  margin-top: 20px;
}
.download-container {
  text-align: right;
  margin-top: 10px;
}

@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

#cart-table tr {
  margin: 0 auto 20px auto; /* Tengahkan + jarak bawah */
  max-width: 95%;           /* Elak rapat ke tepi */
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

  #cart-table td {
    text-align: left;
    padding: 6px 12px 10px 12px;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: none;
  }

  #cart-table td img {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 10px;
  }

  #cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #2e7d32;
  }

  .total,
  .checkout-container {
    text-align: center;
  }

  #checkout-button {
    width: 100%;
  }

  .delete-button {
    display: block;
    width: 90%;
    margin: 12px auto 0 auto;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .delete-button:hover {
    background-color: #bb2d3b;
  }
}

.cart-item-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
}

.cart-item-image {
  width: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details p {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  .cart-item-info {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .cart-item-details p {
    text-align: left;
    width: 100%;
  }

  .cart-item-image {
    margin-bottom: 10px;
  }

  .delete-button {
    width: 100%;
    margin-top: 10px;
  }
}

.delete-icon {
  background: none;
  border: none;
  font-size: 18px;
  color: red;
  cursor: pointer;
  padding: 4px;
}

.delete-icon:hover {
  opacity: 0.7;
}

