/* ============================================================
   PARASNYA — Global Custom Styles
   "Anggun Dalam Kesederhanaan"
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --color-primary:    #4A3728;
  --color-secondary:  #8B6F5C;
  --color-accent:     #C9A87C;
  --color-bg:         #FBF7F4;
  --color-surface:    #FFFFFF;
  --color-soft-pink:  #F2E0D9;
  --color-text-light: #7A6B63;
  --color-wa:         #25D366;
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow-sm:        0 1px 3px rgba(74,55,40,0.08);
  --shadow-md:        0 4px 16px rgba(74,55,40,0.12);
  --shadow-lg:        0 8px 32px rgba(74,55,40,0.16);
  --shadow-xl:        0 16px 48px rgba(74,55,40,0.20);
  --radius-sm:        8px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --transition:       300ms ease;
}

/* ── Base Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
}

.fade-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay utilities */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
  background-color: rgba(251, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
  background-color: rgba(251, 247, 244, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  background-color: var(--color-bg);
  border-top: 1px solid rgba(201,168,124,0.2);
  animation: slideDown 0.3s ease forwards;
}

#mobile-menu.open {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 767px) {
  .hamburger-btn { display: flex; }
  .desktop-nav   { display: none !important; }
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--color-soft-pink) 0%,
    var(--color-bg) 50%,
    #EDD5BF 100%
  );
}

/* ── Product Cards ── */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(201,168,124,0.15);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background-color: #B8966A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,124,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,124,0.35);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background-color: var(--color-wa);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}

.btn-wa:hover {
  background-color: #1ebe5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
}

/* ── Floating WhatsApp Button ── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-wa);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  animation: waPulse 2.5s ease infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
  animation: none;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); transform: scale(1); }
  50%       { box-shadow: 0 6px 30px rgba(37,211,102,0.6);  transform: scale(1.03); }
}

/* ── Trust Indicator Cards ── */
.trust-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(201,168,124,0.2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-soft-pink), #EDD5BF);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-accent);
}

/* ── Color Swatches ── */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform var(--transition);
}

.swatch-item:hover {
  transform: scale(1.1);
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.swatch-circle.selected,
.swatch-circle:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,168,124,0.3), 0 2px 6px rgba(0,0,0,0.15);
}

.swatch-label {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-align: center;
  max-width: 42px;
  line-height: 1.2;
  opacity: 0;
  transition: opacity var(--transition);
}

.swatch-item:hover .swatch-label,
.swatch-item.selected .swatch-label {
  opacity: 1;
}

#selected-color-name {
  transition: all var(--transition);
}

/* ── Thumbnail Gallery ── */
.thumb-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.thumb-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.75;
}

.thumb-img.active,
.thumb-img:hover {
  border-color: var(--color-accent);
  opacity: 1;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(201,168,124,0.15);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.star-rating {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ── Stats Bar ── */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}

/* ── Section Headers ── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* ── Spec Table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table th {
  background-color: var(--color-soft-pink);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid rgba(201,168,124,0.3);
}

.spec-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(201,168,124,0.1);
  color: var(--color-primary);
  vertical-align: top;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:nth-child(even) td {
  background-color: rgba(251,247,244,0.5);
}

/* ── How to Order Steps ── */
.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #B8966A);
  color: white;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(201,168,124,0.4);
  flex-shrink: 0;
}

/* ── Price Badge ── */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-from {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ── CTA Banner Section ── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6B4E3D 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(201,168,124,0.12);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(201,168,124,0.08);
}

/* ── Footer ── */
footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.85);
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--color-accent);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.05em;
}

/* ── Divider Ornament ── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent));
}

.ornament-divider::after {
  background: linear-gradient(to left, transparent, var(--color-accent));
}

/* ── Focus States ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive Helpers ── */
@media (max-width: 767px) {
  .cta-banner {
    border-radius: var(--radius-md);
    padding: 2rem 1.25rem;
  }

  .wa-float {
    bottom: 16px;
    right: 16px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.625rem 0.875rem;
    font-size: 0.825rem;
  }
}

/* ── Utility: No scrollbar for horizontal scroll ── */
.scroll-x-hidden {
  overflow-x: hidden;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-accent {
  background-color: rgba(201,168,124,0.2);
  color: var(--color-accent);
  border: 1px solid rgba(201,168,124,0.4);
}

.badge-pink {
  background-color: rgba(242,224,217,0.8);
  color: var(--color-secondary);
}

/* ── Feature List ── */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201,168,124,0.1);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-soft-pink), #EDD5BF);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ── Cross-sell cards (smaller) ── */
.cross-sell-card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(201,168,124,0.15);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cross-sell-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Image Overflow Fix ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Print media query ── */
@media print {
  .wa-float, #navbar { display: none; }
}

/* ==========================================
   PROTEKSI GAMBAR GLOBAL (ANTI-DOWNLOAD)
   ========================================== */
img {
  -webkit-user-drag: none !important;    /* Mencegah gambar ditarik di Chrome/Safari */
  user-drag: none !important;            /* Mencegah gambar ditarik */
  user-select: none !important;          /* Mencegah gambar diseleksi */
  -webkit-user-select: none !important;  /* Safari */
  -moz-user-select: none !important;     /* Firefox */
  -ms-user-select: none !important;      /* IE/Edge */
  
  /* PENTING: pointer-events dihapus agar tombol thumbnail tetap bisa merespon klik */
}
