@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600;700&display=swap");

:root {
  --maroon: #6b2737;
  --maroon-dark: #4a1b27;
  --rose: #c98b93;
  --blush: #f3deda;
  --cream: #fbf4ec;
  --paper: #fffdfa;
  --charcoal: #2e2422;
  --gold: #b8925a;
  --gold-light: #e4c9a0;
  --line: rgba(74, 27, 39, 0.14);
  --shadow: 0 20px 50px -18px rgba(74, 27, 39, 0.35);
  --radius: 18px;
  --font-display: "Playfair Display", serif;
  --font-body: "Jost", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--maroon-dark);
  line-height: 1.15;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 244, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
}
.brand .logo-fallback {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--gold-light);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--maroon-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: -2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a:hover {
  color: var(--maroon);
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--maroon);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(107, 39, 55, 0.5);
}
.cart-count {
  background: var(--gold);
  color: #3a2a12;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ BANNER / HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(201, 139, 147, 0.35),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 80%,
      rgba(184, 146, 90, 0.25),
      transparent 50%
    ),
    linear-gradient(
      160deg,
      var(--maroon-dark) 0%,
      var(--maroon) 55%,
      #7d3244 100%
    );
  color: #fff;
  padding: 64px 24px 0;
}
.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 20px;
  min-height: 520px;
}
.hero-text .eyebrow {
  color: var(--gold-light);
}
.hero-text h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-top: 14px;
  font-weight: 600;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 18px 0 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: #3a2a12;
  border: none;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 14px 30px -12px rgba(184, 146, 90, 0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--gold-light);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 44% 56% 62% 38% / 45% 40% 60% 55%;
  background: linear-gradient(150deg, var(--blush), var(--gold-light));
  opacity: 0.9;
  filter: blur(1px);
  animation: blobMove 9s ease-in-out infinite;
}
@keyframes blobMove {
  0%,
  100% {
    border-radius: 44% 56% 62% 38% / 45% 40% 60% 55%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%;
    transform: rotate(6deg) scale(1.03);
  }
}
.hero-product-img {
  position: relative;
  z-index: 3;
  width: 300px;
  max-width: 78%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
  animation: floaty 5s ease-in-out infinite;
  border-radius: 14px;
}
.hero-product-img.is-fallback {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #fff, var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--maroon);
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--gold);
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}
.hero-badge {
  position: absolute;
  z-index: 4;
  top: 14%;
  right: 6%;
  background: #fff;
  color: var(--maroon-dark);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
  animation-delay: 0.4s;
}
.hero-wave {
  width: 100%;
  display: block;
  margin-top: 40px;
}

/* ============ SECTIONS ============ */
section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-top: 10px;
}
.section-head p {
  color: #6b5a55;
  margin-top: 14px;
  line-height: 1.7;
}

/* ============ PRODUCT CARDS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-media {
  position: relative;
  aspect-ratio: 4/3.1;
  background: linear-gradient(160deg, var(--blush), #fff);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media .img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-family: var(--font-display);
  gap: 6px;
  text-align: center;
  padding: 20px;
}
.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.product-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-body h3 {
  font-size: 1.3rem;
}
.product-body .desc {
  color: #6b5a55;
  font-size: 0.9rem;
  line-height: 1.6;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}
.chip {
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--maroon-dark);
  font-weight: 500;
}
.product-price {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2px;
}
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.btn-outline {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.btn-outline:hover {
  background: var(--maroon);
  color: #fff;
}
.btn-solid {
  flex: 1;
  background: var(--maroon);
  border: 1.5px solid var(--maroon);
  color: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}
.btn-solid:hover {
  background: var(--maroon-dark);
}

/* ============ MODALS ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 36, 34, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}
.overlay.active {
  display: flex;
}
@media (min-width: 720px) {
  .overlay {
    align-items: center;
    padding: 24px;
  }
}
.modal {
  background: var(--paper);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 28px 26px 34px;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}
@media (min-width: 720px) {
  .modal {
    border-radius: 22px;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--blush);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--maroon-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.modal .modal-sub {
  color: #6b5a55;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon-dark);
  margin-bottom: 7px;
}
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.option-grid.label-grid {
  grid-template-columns: repeat(6, 1fr);
}
.opt-pill {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}
.opt-pill small {
  display: block;
  font-size: 0.68rem;
  color: #9a8a85;
  margin-top: 2px;
}
.opt-pill.selected {
  border-color: var(--maroon);
  background: var(--maroon);
  color: #fff;
}
.opt-pill.selected small {
  color: #f0d9df;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon);
}
.qty-val {
  font-size: 1.05rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--maroon);
  font-weight: 700;
}
.modal-actions {
  display: flex;
  gap: 10px;
}

/* ============ CART DRAWER ============ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.cart-item {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  align-items: center;
}
.cart-item .ci-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blush);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--maroon);
  text-align: center;
  overflow: hidden;
}
.cart-item .ci-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-info {
  flex: 1;
}
.ci-info .ci-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.ci-info .ci-opts {
  font-size: 0.76rem;
  color: #8a7570;
  margin-top: 2px;
}
.ci-price {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--maroon);
  white-space: nowrap;
}
.ci-remove {
  background: none;
  border: none;
  color: #b0413f;
  font-size: 0.78rem;
  margin-left: 8px;
  text-decoration: underline;
}
.cart-empty {
  text-align: center;
  color: #9a8a85;
  padding: 30px 0;
  font-size: 0.9rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--maroon-dark);
  font-weight: 700;
  margin-top: 6px;
}

/* ============ CHECKOUT FORM ============ */
.order-summary-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #5c4c47;
  margin-bottom: 18px;
  max-height: 180px;
  overflow-y: auto;
}
.order-summary-box .os-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.order-summary-box .os-row:last-child {
  border-bottom: none;
}
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.full-span {
  grid-column: 1/-1;
}

.btn-block {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-block.btn-primary-solid {
  background: var(--maroon);
  color: #fff;
  border: none;
}
.btn-block.btn-primary-solid:hover {
  background: var(--maroon-dark);
}
.btn-block[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -3px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ SUCCESS MODAL ============ */
.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.pay-box {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
  text-align: center;
}
.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  justify-content: center;
}
.pay-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.pay-tab.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}
.qris-img {
  width: 190px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.norek-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
}
.norek-box .rek-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============ FOOTER ============ */
footer {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer .brand-name {
  color: #fff;
}
footer p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom {
  text-align: center;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE / MOBILE ============ */
@media (max-width: 860px) {
  nav.main-nav a {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
    padding-top: 6px;
  }
  /* Gambar produk tetap tampil di ATAS pada mode mobile */
  .hero-visual {
    order: -1;
    height: 320px;
    margin-bottom: 10px;
  }
  .hero-text {
    order: 0;
    text-align: center;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .addr-grid {
    grid-template-columns: 1fr;
  }
  .option-grid.label-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
