* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8f9fb;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
header {
  background: #1f2937;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #f59e0b;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #f59e0b;
}

.cart-box {
  background: #f59e0b;
  color: #111;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* HERO */
.hero {
  padding: 70px 0;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 44px;
  margin-bottom: 20px;
  color: #111827;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #4b5563;
  max-width: 600px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  color: #d1d5db;
}

/* SECTION */
.section {
  padding: 70px 0;
}

.bg-light {
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
  font-size: 32px;
  color: #111827;
}

/* GRID */
.features-grid,
.kategori-grid,
.produk-grid,
.layanan-grid {
  display: grid;
  gap: 25px;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.kategori-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.produk-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.layanan-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARD */
.feature-card,
.kategori-card,
.layanan-card,
.product-card {
  background: white;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.feature-card:hover,
.kategori-card:hover,
.layanan-card:hover,
.product-card:hover {
  transform: translateY(-8px);
}

.kategori-card,
.layanan-card,
.feature-card {
  text-align: center;
}

.kategori-card:hover {
  background: #f59e0b;
  color: white;
}

/* BUTTON */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #f59e0b;
  color: #111;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #d97706;
  color: white;
}

/* SEARCH */
.search-section {
  padding: 35px 0;
  text-align: center;
}

.search-section input {
  width: 100%;
  max-width: 500px;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
}

.search-section input:focus {
  border-color: #f59e0b;
}

/* PRODUCT */
.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card h3 {
  padding: 15px 15px 5px;
  color: #111827;
}

.product-card p {
  padding: 0 15px;
  color: #6b7280;
  min-height: 70px;
}

.product-card span {
  display: block;
  padding: 10px 15px;
  font-weight: bold;
  color: #f59e0b;
}

.product-card button {
  margin: 0 15px 20px;
  padding: 10px 15px;
  border: none;
  background: #1f2937;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
}

.product-card button:hover {
  background: #f59e0b;
  color: #111;
}

/* CONTENT PAGE */
.content-page {
  max-width: 900px;
  margin: auto;
  font-size: 18px;
  color: #4b5563;
}

.content-page p {
  margin-bottom: 20px;
}

/* CONTACT */
.contact-box {
  text-align: center;
  background: white;
  padding: 35px;
  border-radius: 18px;
  max-width: 700px;
  margin: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.contact-box p {
  margin-bottom: 12px;
}

.contact-form {
  max-width: 700px;
  margin: auto;
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f59e0b;
}

/* FOOTER */
footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 22px 0;
  margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #1f2937;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-text h1,
  .page-header h1 {
    font-size: 30px;
  }

  .hero-text p,
  .page-header p {
    font-size: 16px;
  }

  .cart-box {
    font-size: 14px;
    padding: 7px 12px;
  }
}
/* ==============================
   CART / KERANJANG
============================== */
.cart-box a {
  color: inherit;
  text-decoration: none;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

#cart-items {
  display: grid;
  gap: 20px;
}

.cart-item {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cart-item h3 {
  color: #111827;
  margin-bottom: 10px;
}

.cart-item p {
  margin-bottom: 6px;
  color: #4b5563;
}

.cart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-actions button {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: #1f2937;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

.cart-actions button:hover {
  background: #f59e0b;
  color: #111;
}

.delete-btn {
  background: #dc2626 !important;
}

.delete-btn:hover {
  background: #b91c1c !important;
  color: white !important;
}

.cart-summary {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  margin-bottom: 20px;
  color: #111827;
}

.cart-summary p {
  margin-bottom: 15px;
  font-size: 18px;
}

.cart-summary .btn {
  width: 100%;
  margin-bottom: 12px;
}

.btn-secondary {
  background: #1f2937;
  color: white;
}

.btn-secondary:hover {
  background: #374151;
}

.empty-cart {
  background: white;
  padding: 40px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.empty-cart h3 {
  margin-bottom: 10px;
  color: #111827;
}

.empty-cart p {
  margin-bottom: 20px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}