/* Reset dan tipografi dasar */
:root {
  --bg: #f6f2ed;
  --surface: #ffffff;
  --surface-strong: #f0ece7;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --accent: #a77f58;
  --accent-soft: #f7ede4;
  --border: rgba(27,27,27,0.1);
  --shadow: 0 24px 60px rgba(27,27,27,0.08);
  --radius: 24px;
  --transition: 250ms ease;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

button {
  border: none;
  cursor: pointer;
}

.icon-btn {
  position: relative;
}

/* Header dan navigasi */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246,242,237,0.92);
  border-bottom: 1px solid rgba(27,27,27,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.icon-btn img {
  width: 20px;
  height: 20px;
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.72rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.mobile-menu {
  display: none;
}

.mobile-menu-panel {
  display: none;
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.95;
  margin: 0;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin: 1.25rem 0 1.75rem;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 16px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary,
.btn-outline {
  background: var(--surface-strong);
  color: var(--text);
}

.btn-outline {
  border: 1px solid rgba(27,27,27,0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats div {
  background: var(--surface);
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.section-intro,
.catalog-section,
.featured-section,
.section-testimonials,
.gallery-section,
.faq-section,
.contact-map {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label {
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.75rem);
  margin: 0;
  max-width: 780px;
  margin-inline: auto;
}

.section-head p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 660px;
  margin-inline: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.8rem;
  align-items: start;
}

.about-visual img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-top: 0;
}

.promo-banner {
  padding: 0 0 2rem;
}

.promo-card {
  background: linear-gradient(135deg, rgba(167,127,88,0.15), rgba(246,242,237,0.96));
  border: 1px solid rgba(167,127,88,0.14);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.promo-label {
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
}

.search-box img {
  width: 20px;
  height: 20px;
}

.catalog-section select {
  min-width: 180px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(27,27,27,0.08);
  box-shadow: var(--shadow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card .tag,
.modal-info .tag {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.product-card h3,
.modal-info h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.product-card p {
  margin: 0.85rem 0 1rem;
  color: var(--muted);
  line-height: 1.75;
  min-height: 3.5rem;
}

.product-card-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-card-details strong {
  font-size: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-actions button {
  flex: 1;
}

.featured-section .featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.featured-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.testimonial-card div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  height: 240px;
  object-fit: cover;
  border-radius: 24px;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

details {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

summary {
  font-weight: 700;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
}

.contact-card,
.map-card {
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-card form {
  display: grid;
  gap: 1rem;
}

.contact-card label {
  font-weight: 600;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: 18px;
  background: var(--surface-strong);
}

.contact-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.contact-links img {
  width: 18px;
  height: 18px;
}

.map-card iframe {
  width: 100%;
  border: 0;
  min-height: 360px;
  border-radius: 28px;
}

.site-footer {
  padding: 2.5rem 0 1rem;
  background: #f4ede7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-note {
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(100%);
  background: rgba(27,27,27,0.92);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 40;
  transition: transform 300ms ease, opacity 300ms ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.modal,
.overlay {
  position: fixed;
  inset: 0;
  display: none;
}

.modal.show,
.overlay.show {
  display: block;
}

.modal {
  z-index: 50;
  padding: 2rem;
  overflow-y: auto;
  background: rgba(27,27,27,0.45);
}

.modal-content {
  max-width: 940px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 32px;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.modal-image img {
  width: 100%;
  border-radius: 28px;
}

.modal-info {
  display: grid;
  gap: 1rem;
}

.modal-price {
  font-size: 1.65rem;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: min(420px, 100%);
  max-width: 420px;
  height: 100vh;

  z-index: 60;
  background: var(--surface);
  border-left: 1px solid rgba(27,27,27,0.08);
  box-shadow: -24px 0 60px rgba(27,27,27,0.08);

  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.5rem;

  transition: transform 0.3s ease;
}
.sidebar.show {
  transform: translateX(0);
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  overflow-y: auto;
  padding: 1rem 0;
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  background: var(--surface-strong);
  padding: 1rem;
  border-radius: 22px;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
}

.cart-item-details {
  display: grid;
  gap: 0.35rem;
}

.cart-item-details strong {
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-item-actions button {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 12px;
}

.sidebar-footer {
  display: grid;
  gap: 0.85rem;
}

.overlay {
  background: rgba(27,27,27,0.35);
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: #f6f2ed;
  display: grid;
  place-items: center;
  z-index: 100;
  gap: 1rem;
}

.loader-ring {
  width: 72px;
  height: 72px;
  border: 8px solid rgba(167,127,88,0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loading-screen p {
  color: var(--text);
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode */
body.dark {
  background: #111111;
  color: #e9e6e1;
}

body.dark .site-header,
body.dark .promo-card,
body.dark .feature-card,
body.dark .product-card,
body.dark .featured-card,
body.dark .testimonial-card,
body.dark .gallery-grid img,
body.dark .contact-card,
body.dark .map-card,
body.dark .site-footer,
body.dark .modal-content,
body.dark .sidebar,
body.dark .details,
body.dark details {
  background: #1a1a1a;
}

body.dark .main-nav a,
body.dark .footer-links a,
body.dark .footer-social a,
body.dark .contact-links a,
body.dark .section-head p,
body.dark .testimonial-card p,
body.dark .feature-card p,
body.dark .product-card p,
body.dark .product-card-details strong,
body.dark .footer-note {
  color: #d4d3d1;
}

body.dark .site-header {
  background: rgba(17,17,17,0.92);
  border-color: rgba(255,255,255,0.08);
}

body.dark .btn-secondary,
body.dark .btn-outline,
body.dark .search-box,
body.dark .contact-card input,
body.dark .contact-card textarea,
body.dark .cart-item,
body.dark .promo-card {
  background: #161616;
}

body.dark .product-card-details strong,
body.dark .modal-price,
body.dark .section-label,
body.dark .eyebrow,
body.dark a {
  color: #fff;
}

body.dark .tag,
body.dark .search-box input,
body.dark .contact-card label,
body.dark .footer-note {
  color: #d4d3d1;
}

body.dark .overlay {
  background: rgba(0,0,0,0.55);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .contact-grid,
  .featured-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: grid;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .promo-card,
  .catalog-section,
  .featured-section,
  .section-testimonials,
  .gallery-section,
  .faq-section,
  .contact-map {
    padding: 2.5rem 0;
  }

  .product-card {
    min-height: 100%;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .promo-card,
  .contact-card,
  .map-card,
  .modal-content,
  .sidebar {
    border-radius: 24px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons,
  .modal-actions {
    flex-direction: column;
  }

  .search-box,
  .mobile-menu-panel,
  .catalog-section select {
    width: 100%;
  }

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

  .mobile-menu-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    padding: 2rem 1.5rem;
    background: rgba(246,242,237,0.98);
  }

  .mobile-nav {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .mobile-menu-panel.show {
    display: block;
  }
}
