* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #ffe7f3 0%, #fdd6ea 45%, #ffc2e0 100%);
  color: #321b3c;
}

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 22px 28px;
  box-shadow: 0 30px 70px rgba(167, 77, 130, 0.16);
  margin-bottom: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff4d8e, #ff88c2);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 22px 50px rgba(255, 77, 142, 0.22);
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  color: #430f33;
}

.topbar p,
.top-info {
  margin: 6px 0 0;
  color: #7f4e74;
}

.content {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 24px;
}

.produk,
.kasir {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(163, 83, 122, 0.12);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 0;
  font-size: 24px;
  color: #561f47;
}

.panel-header p {
  margin: 10px 0 0;
  color: #7b5676;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #ffe3ef 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(168, 94, 138, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(179, 78, 129, 0.18);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  color: #3f1f3f;
}

.product-card p {
  margin: 0;
  color: #7c5978;
  font-size: 14px;
}

.product-card .price {
  font-weight: 800;
  font-size: 16px;
  color: #c12072;
}

.product-card button {
  border: none;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #ff5ba7, #ff9acc);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.product-card button:hover {
  filter: brightness(1.03);
}

.receipt-card table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.receipt-card th,
.receipt-card td {
  border-bottom: 1px solid rgba(155, 103, 142, 0.16);
  padding: 14px 12px;
  text-align: left;
  font-size: 14px;
}

.receipt-card th {
  color: #58345a;
  font-weight: 700;
}

.receipt-card td {
  color: #6e4f6d;
}

.receipt-card td:last-child {
  text-align: center;
}

.summary {
  display: grid;
  gap: 16px;
}

.total {
  font-size: 26px;
  font-weight: 800;
  color: #9f2c74;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.payment-row input {
  border: 1px solid rgba(194, 129, 160, 0.4);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.97);
}

.payment-row button,
.secondary {
  border: none;
  border-radius: 18px;
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, #c82d73, #ff83b0);
  color: #fff;
}

.secondary {
  background: #ffe6f1;
  color: #7e4b6d;
}

.change {
  color: #7e3b68;
  font-weight: 700;
}

button.hapus {
  background: #ff86ac;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
}

button.hapus:hover,
.primary:hover {
  filter: brightness(1.05);
}

@media (max-width: 980px) {
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .produk,
  .kasir {
    padding: 18px;
  }

  .product-card img {
    height: 140px;
  }
}
