/* ------------------------------
   GLOBAL STYLES
------------------------------ */
:root {
  --primary: #b76e79;
  --primary-dark: #9b5a63;
  --accent: #f8f3f3;
  --text-dark: #222;
  --text-light: #666;
  --bg: #fff;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.logo-sans {
  font-family: 'Poppins', sans-serif;
  color: #444;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* NAVIGATION */
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
}

/* ------------------------------
   HERO (DENGAN ANIMASI)
------------------------------ */
.hero {
  background: var(--accent);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* --- TEKS --- */
.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  animation: fadeUp 1.2s ease both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  animation: fadeUp 1.4s ease both;
}

.hero-price {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeUp 1.6s ease both;
}

.hero-cta .btn {
  margin-right: 1rem;
  animation: fadeUp 1.8s ease both;
}

/* --- GAMBAR HERO DENGAN ANIMASI HALUS --- */
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transform-origin: center center;
  animation: heroZoomFade 2.5s ease forwards;
  will-change: transform;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-in-out, filter 2s ease;
  filter: brightness(98%) saturate(1.05);
}

/* Hover efek lembut */
.hero-image:hover img {
  transform: scale(1.1);
  filter: brightness(1.05) saturate(1.1);
}

/* Efek parallax lembut saat scroll */
@media (hover: none) {
  .hero-image:hover img {
    transform: scale(1.05);
  }
}

@keyframes heroZoomFade {
  0% {
    opacity: 0;
    transform: scale(1.1) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Efek teks muncul dari bawah --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- PARALLAX: gerakan halus mengikuti scroll --- */
@media (min-width: 768px) {
  .hero-image img {
    transform: scale(1.05) translateY(var(--scrollY, 0px));
  }
}

/* Responsif */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
}


/* ------------------------------
   BUTTONS
------------------------------ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* ------------------------------
   SECTION GENERIC
------------------------------ */
.section {
  padding: 5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-dark);
}

/* ------------------------------
   FEATURED PRODUCTS (GRID STYLE)
------------------------------ */
.featured {
  padding: 4rem 0;
  background: #fff;
}

.featured .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.featured h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Hapus gaya carousel lama */
.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.carousel-track {
  display: contents; /* biar grid langsung ke dalam container */
}

/* Card produk unggulan */
.carousel-slide {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.carousel-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Gambar */
.carousel-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

/* Info */
.carousel-slide .meta {
  padding: 1rem 1.2rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-slide .meta h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.carousel-slide .meta .muted {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Tombol navigasi carousel dihapus karena sekarang grid */
.carousel-controls {
  display: none;
}

/* Responsif */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 220px;
  }
  .carousel-slide .meta {
    padding: 0.8rem;
  }
}


/* ------------------------------
   CATALOG / PRODUCT GRID (Revised)
------------------------------ */
.catalog {
  background: #fafafa;
  border-radius: var(--radius);
  padding: 4rem 0;
}

/* Search dan filter */
.catalog-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
  text-align: center;
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.search-wrap input {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  border-radius: 30px;
  border: 1.5px solid #ddd;
  outline: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
}

.search-wrap button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
}

/* Category filter */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1.3px solid var(--primary);
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary-dark);
}

.chip.active,
.chip:hover {
  background: var(--primary);
  color: #fff;
}

/* Produk Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* Card produk */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

/* Gambar produk */
.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

/* Body produk */
.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 1.3rem 1.5rem;
  text-align: center;
}

.product-title h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.product-price {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Tombol */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.btn-order,
.btn-quick {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  font-weight: 500;
}

.btn-order {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-order:hover {
  background: var(--primary-dark);
}

.btn-quick {
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-quick:hover {
  background: var(--primary);
  color: #fff;
}

/* Deskripsi (disembunyikan di grid, hanya muncul di modal) */
.product-desc {
  display: none;
}

/* Tidak ada hasil */
.no-results {
  text-align: center;
  color: var(--text-light);
  margin-top: 2rem;
  font-style: italic;
}

/* ===============================
   PRODUCT MODAL (DETAIL PRODUK)
=============================== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  max-width: 960px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  animation: modalShow 0.3s ease forwards;
  position: relative;
}

/* layout utama popup */
.modal-layout {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
  align-items: flex-start;
}

/* area kiri (gambar) */
.modal-left {
  flex: 1 1 45%;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-left img {
  width: 100%;
  height: auto;
  max-width: 400px;      /* batas lebar maksimum */
  max-height: 80vh;      /* tidak melebihi tinggi layar */
  object-fit: contain;   /* jaga proporsi asli */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* area kanan (teks & tombol) */
.modal-right {
  flex: 1 1 55%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 0.75rem;
}

.modal-category {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.modal-desc {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-height: 40vh;      /* batasi tinggi teks */
  overflow-y: auto;      /* tambahkan scroll jika teks panjang */
}

.modal-price {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary, #b76e79);
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-actions .btn-primary {
  background: var(--primary, #b76e79);
  color: #fff;
}

.modal-actions .btn-primary:hover {
  background: var(--primary-dark, #9a5863);
}

.modal-actions .btn-ghost {
  background: #f9f9f9;
  border: 1px solid #ddd;
  color: #333;
}

.modal-actions .btn-ghost:hover {
  background: #eee;
}

/* animasi */
@keyframes modalShow {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsif */
@media (max-width: 768px) {
  .modal-layout {
    flex-direction: column;
    align-items: center;
  }
  .modal-left, .modal-right {
    flex: 1 1 100%;
  }
  .modal-left img {
    max-width: 90%;
    max-height: 60vh;
  }
  .modal-right {
    padding: 1.5rem;
    text-align: center;
  }
  .modal-desc {
    max-height: 30vh;
  }
  .modal-actions {
    justify-content: center;
  }
}

/* Animasi */
@keyframes modalShow {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* ------------------------------
   RESPONSIVE (Catalog)
------------------------------ */
@media (max-width: 768px) {
  .product-grid {
    gap: 1.5rem;
  }

  .product-body {
    padding: 1rem;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-order,
  .btn-quick {
    width: 100%;
  }
}


/* ------------------------------
   MODAL
------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow);
  z-index: 2;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ------------------------------
   ABOUT
------------------------------ */
.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
}

.about-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.about-stats .stat strong {
  font-size: 1.5rem;
  display: block;
  color: var(--primary-dark);
}

/* ------------------------------
   CONTACT SECTION
------------------------------ */
.contact-card {
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem; /* Tambahkan jarak di sini */
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-weight: 500;
}


/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
  background: #222;
  color: #eee;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-col h5 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  text-decoration: none;
  color: #ccc;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.socials a {
  margin-right: 0.8rem;
  color: #ddd;
  font-weight: 500;
}

.socials a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* ------------------------------
   FLOATING ELEMENTS
------------------------------ */
.floating-wa {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #25d366;
  padding: 0.9rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.floating-wa:hover {
  transform: scale(1.1);
}

.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
}

.scroll-top.show {
  display: block;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 1rem;
    top: 4rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .nav-list.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hilangkan outline / border hitam pada tombol */
button,
.btn,
.btn-primary,
.btn-ghost,
.btn-order,
.btn-quick {
  outline: none;
  border: none;
}

button:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(183, 139, 110, 0.25);
}

/* Hilangkan kursor teks dan fokus dari elemen non-input */
.modal,
.modal * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: default;
  outline: none;
}

/* Tombol dan link tetap bisa diklik & fokus */
.modal a,
.modal button {
  cursor: pointer;
  user-select: auto;
  outline: none;
}

/* Pastikan elemen teks tidak bisa di-fokus secara accidental */
.modal [tabindex],
.modal p,
.modal h1,
.modal h2,
.modal h3,
.modal h4,
.modal h5,
.modal h6,
.modal div {
  outline: none !important;
  caret-color: transparent !important;
}

/* ========================================
   NONAKTIFKAN CURSOR TEKS (CARET) SECARA GLOBAL
======================================== */
body, body * {
  caret-color: transparent !important;
  outline: none !important;
}

/* Elemen interaktif tetap normal tanpa caret */
a, button, input, textarea, select, [contenteditable="true"] {
  user-select: auto;
  cursor: pointer;
  caret-color: transparent !important; /* Hilangkan kedipan di tombol juga */
  outline: none !important;
}

/* ==================================================
   IZINKAN KURSOR TEKS (CARET) MUNCUL DI FORM INPUT
================================================== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
[contenteditable="true"] {
  caret-color: auto !important;
  cursor: text !important;
  outline: 1.5px solid transparent;
  transition: outline 0.2s ease;
}

input:focus,
textarea:focus,
[contenteditable="true"]:focus {
  outline: 1.5px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
  caret-color: var(--primary) !important;
}


