body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
}

.login-page {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(120deg, #ff6b6b, #f06595);
  color: white;
}

/* Produk grid */
.produk-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.produk-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}
.produk-card:hover {
  transform: scale(1.03);
}
.produk-card .image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 80%;
  overflow: hidden;
  border-radius: 8px;
}

.produk-card .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}
.slider img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none;
}
.slider img.active {
  display: block;
}

.harga {
  font-weight: bold;
  color: #e63946;
  font-size: 1.1em;
}

.btn-wa {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-wa:hover {
  background: #20b358;
}

/* Admin Form */
.admin-container {
  max-width: 800px;
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.admin-container input,
.admin-container textarea {
  width: 95%;
  padding: 8px;
  margin: 6px 0;
}
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin: 5px;
}
.btn-edit,
.btn-delete {
  display: inline-block;
  margin: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
}
.btn-edit {
  background: #007bff;
  color: #fff;
}
.btn-delete {
  background: #dc3545;
  color: #fff;
}
.btn-back {
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
  color: #555;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: #ccc;
}

.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 12px;
  background: white;
  padding: 5px;
}

.admin-produk-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.admin-produk-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.admin-produk-card:hover {
  transform: translateY(-3px);
}

.admin-produk-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.admin-produk-card h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.admin-produk-card p {
  margin: 4px 0;
  color: #666;
}

.admin-produk-card .actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

/* login */
.login-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

h2 {
  margin-bottom: 1rem;
}

input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"] {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #0056b3;
}

.message {
  color: red;
  margin-top: 1rem;
}
