/* ============================================
   ZENIS — Wellness Marketplace
   Design: Lilac-toned editorial wellness
   Fonts: Cormorant Garant (display) + DM Sans (body)
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #faf9fb;
  --sand: #ece6f0;
  --stone: #c7bdd2;
  --lilac: #8d72a8;
  --lilac-light: #c8b6dc;
  --lilac-pale: #f1eaf6;
  --dark: #1c1c1c;
  --mid: #4a4a4a;
  --muted: #8a8a8a;
  --white: #ffffff;

  --font-display: "Cormorant Garant", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-card: 4px;
  --radius-pill: 100px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 68px;
  background: rgba(250, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dark);
  text-transform: uppercase;
}
.logo span {
  color: var(--lilac);
}

.nav-menu {
  display: flex;
  gap: 36px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-menu a:hover {
  color: var(--dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  font-size: 18px;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}
.icon-btn:hover {
  color: var(--lilac);
}

.user-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  padding: 6px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
}

.logout-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.logout-btn:hover {
  background: var(--lilac);
}

/* ── HERO ── */
.hero {
  padding: 60px 6% 80px;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--lilac);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 80px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--lilac);
}

.hero-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--dark);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition:
    background var(--transition),
    gap var(--transition);
}
.hero-btn:hover {
  background: var(--lilac);
  gap: 16px;
}

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  filter: saturate(0.9);
}
.hero-image-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  color: var(--dark);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── KATEGORI PILLS ── */
.kategori-section {
  padding: 28px 6%;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
  position: sticky;
  top: 68px;
  z-index: 90;
}

.kategori-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kategori-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mid);
  background: transparent;
  border: 1px solid var(--stone);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}
.pill:hover {
  border-color: var(--dark);
  color: var(--dark);
}
.pill.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ── LAYANAN GRID ── */
.layanan-section {
  padding: 60px 6% 100px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── PRODUCT CARD ── */
.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition);
  position: relative;
}

.product-card--wide {
  grid-column: span 2;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease;
  filter: saturate(0.85);
}
.product-card--wide .card-img-wrap img {
  height: 300px;
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.04);
  filter: saturate(1);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dark);
  background: rgba(250, 249, 251, 0.88);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-body {
  padding: 22px 24px 24px;
  border-bottom: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.product-card:hover .card-body h3 {
  color: var(--lilac);
}

.card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.3px;
}

/* ── CART ADD BUTTON (di samping harga) ── */
.cart-add-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform 0.2s ease;
}
.cart-add-btn i {
  pointer-events: none;
}
.cart-add-btn:hover {
  background: var(--lilac);
  border-color: var(--lilac);
  color: var(--white);
  transform: scale(1.06);
}
.cart-add-btn:active {
  transform: scale(0.94);
}

/* ── QUICK PESAN OVERLAY (ajakan lihat detail, full bar seperti sebelumnya) ── */
.quick-pesan {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 28, 28, 0.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background var(--transition);
  pointer-events: none;
  z-index: 1;
}
.quick-pesan i {
  font-size: 15px;
}
.product-card:hover .quick-pesan {
  opacity: 1;
  transform: translateY(0);
  background: rgba(141, 114, 168, 0.9);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--sand);
  padding: 36px 6%;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
}
.footer-logo span {
  color: var(--lilac);
}
footer p {
  font-size: 12px;
  color: var(--muted);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 5%;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    gap: 18px;
    padding-bottom: 4px;
  }
  .hero {
    padding: 40px 5% 50px;
  }
  .hero-text h1 {
    font-size: 38px;
  }
  .hero-image img {
    height: 240px;
  }
  .kategori-section {
    top: 0;
  }
  .layanan-section {
    padding: 40px 5% 60px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card--wide {
    grid-column: span 1;
  }
  .product-card--wide .card-img-wrap img {
    height: 240px;
  }
  /* Di mobile tidak ada hover, jadi overlay "Lihat Detail" disembunyikan; ikon keranjang sudah tampil permanen */
  .quick-pesan {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .card-img-wrap img {
    transform: none !important;
  }
}
