/* ========== RESET DASAR ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f7f5f3;
  color: #3f3f3f;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== WRAPPER HALAMAN ========== */
.page-wrapper {
  max-width: 1100px;
  margin: 24px auto;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
}

/* ========== HEADER / NAVBAR ========== */
header {
  background: #fff6e7;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 600;
  color: #b05c5c;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav a {
  color: #5e5245;
}

nav a:hover {
  color: #c46d6d;
}

.nav-cart-item a {
  font-weight: 600;
}

.cart-count-inline {
  background: #e28a8a;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

/* tombol hamburger (HP) */
.nav-toggle {
  display: none;
  border: none;
  background: #e28a8a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}

/* ========== MAIN & JUDUL HALAMAN ========== */
main {
  padding-bottom: 24px;
}

section {
  padding: 24px 40px 16px;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #7a4a4a;
  padding: 24px 40px 8px;
}

.page-subtitle {
  font-size: 14px;
  color: #6b5b4c;
  padding: 0 40px 8px;
}

/* ========== HERO (INDEX) ========== */
.hero {
  display: flex;
  gap: 32px;
  padding: 32px 40px 40px;
  background: #f3eee8;
  align-items: center;
}

.hero-left {
  flex: 1.1;
}

.hero-left img {
  border-radius: 16px;
  object-fit: cover;
  height: 100%;
}

.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b48a6b;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  line-height: 1.2;
  color: #7a4a4a;
}

.hero-desc {
  font-size: 14px;
  color: #6b5b4c;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 8px;
}

.btn-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #e28a8a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.btn-cta:hover {
  background: #d16c6c;
}

/* ========== SECTION UMUM ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #7a4a4a;
}

.section-more {
  font-size: 13px;
  color: #c46d6d;
  cursor: pointer;
}

.section-more:hover {
  text-decoration: underline;
}

/* ========== LIST PRODUK (ROW GRID – INDEX) ========== */
.product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #f0e2d5;
  box-shadow: 0 8px 18px rgba(0,0,0,0.03);
}

.product-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-info {
  flex: 1;
  font-size: 13px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.product-size {
  font-size: 12px;
  color: #7b6a57;
  margin-bottom: 6px;
}

.product-price,
.product-price-new {
  font-weight: 600;
  color: #c46d6d;
  font-size: 14px;
}

.product-price-old {
  font-size: 12px;
  color: #a19a90;
  text-decoration: line-through;
}

.product-action {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-round {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  background: #e28a8a;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.btn-round:hover {
  background: #d16c6c;
}

/* ========== GRID PRODUK (HALAMAN KUE) ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  padding: 0 40px 24px;
}

.product-grid-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #f0e2d5;
  box-shadow: 0 8px 18px rgba(0,0,0,0.03);
}

.product-grid-card:hover {
  transform: translateY(-2px);
  transition: 0.15s;
}

.product-grid-image {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f3eee8;
}

.product-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-grid-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.product-grid-size {
  font-size: 12px;
  color: #7b6a57;
  margin-bottom: 4px;
}

.product-grid-price {
  font-size: 14px;
  font-weight: 600;
  color: #c46d6d;
}

/* ========== DETAIL PRODUK ========== */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 24px;
  padding: 24px 40px 32px;
}

.detail-image-big {
  background: #f3eee8;
  border-radius: 18px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 6px;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-sub {
  font-size: 13px;
  color: #6b5b4c;
  margin-bottom: 10px;
}

.detail-price {
  font-size: 20px;
  font-weight: 800;
  color: #c46d6d;
  margin-bottom: 8px;
}

.detail-desc {
  font-size: 13px;
  color: #6b5b4c;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* tombol umum */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: #e28a8a;
  color: #fff;
}

.btn-primary:hover {
  background: #d16c6c;
}

.btn-outline {
  background: #fff;
  color: #b05c5c;
  border: 1px solid #e28a8a;
}

.btn-outline:hover {
  background: #fff6e7;
}

/* ========== TESTIMONIAL ========== */
.testi-title {
  text-align: center;
  margin-top: 8px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #7a4a4a;
}

.testi-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 24px;
  padding: 18px 40px 24px;
}

.testi-photo img {
  border-radius: 16px;
  object-fit: cover;
}

.testi-text {
  font-size: 14px;
  line-height: 1.6;
  color: #5f5247;
}

.testi-item {
  margin-bottom: 10px;
}

.testi-name {
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  text-align: center;
  padding: 16px 40px 24px;
  border-top: 1px solid #eee2da;
  font-size: 14px;
}

.newsletter-form {
  margin: 12px auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d4c1ae;
  min-width: 240px;
  font-size: 13px;
}

.newsletter-form button {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #e28a8a;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #d16c6c;
}

.social {
  font-size: 12px;
  color: #9a8674;
}

/* ========== CART ========== */
.cart-wrapper {
  background: #fffdf9;
  border-radius: 16px;
  border: 1px solid #f0e2d5;
  margin: 12px 40px 24px;
  padding: 16px;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cart-table th,
.cart-table td {
  padding: 8px;
  border-bottom: 1px solid #eee2da;
  text-align: left;
}

.cart-table th {
  background: #fff6e7;
  font-weight: 600;
}

.cart-qty-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #e11d48;
  cursor: pointer;
  font-size: 13px;
}

.cart-summary {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.cart-empty {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 20px 0;
}

/* ========== CARA PESAN / FORM ========== */
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin: 16px 40px 24px;
}

.step-card {
  background: #fffdf9;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  border: 1px solid #f0e2d5;
}

.step-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.simple-form {
  background: #fffdf9;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #f0e2d5;
  max-width: 520px;
  margin: 0 40px 24px;
}

.simple-form-row {
  margin-bottom: 10px;
}

.simple-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.simple-form input,
.simple-form textarea,
.simple-form select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  padding: 8px 10px;
  font-size: 13px;
}

.simple-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 16px;
  padding: 12px 40px 20px;
  font-size: 12px;
  color: #9a8674;
  border-top: 1px solid #eee2da;
  text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    padding: 24px 20px 32px;
  }

  .product-row {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 20px 20px 12px;
  }

  .testi-layout {
    grid-template-columns: 1fr;
    padding: 18px 20px 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding: 0 20px 24px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 20px 20px 28px;
  }

  .order-steps {
    grid-template-columns: 1fr;
    margin: 16px 20px 24px;
  }

  .simple-form {
    margin: 0 20px 24px;
    max-width: 100%;
  }

  .cart-wrapper {
    margin: 12px 20px 24px;
  }
}

@media (max-width: 640px) {
  .product-row {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* NAV RESPONSIVE (setelah breakpoint supaya override) */
@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  body.nav-open nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 16px;
    background: #fff6e7;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    z-index: 20;
  }
}
