:root {
  --cream: #FFF8ED;
  --beige: #EBD5B7;
  --terracotta: #C76D4A;
  --sage: #8A9A7B;
  --espresso: #3D3028;
}

*, *::before, *::after { box-sizing: border-box; }
img, video, svg { max-width: 100%; }

body {
  background-color: var(--cream);
  color: var(--espresso);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  box-sizing: border-box;
  background: #f4eee6;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(360px, .8fr);
  width: min(100%, 980px);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(61, 48, 40, .12);
  border-radius: 18px;
  background: #fffaf3;
  box-shadow: 0 24px 60px rgba(61, 48, 40, .14);
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  overflow: hidden;
  background: linear-gradient(145deg, #d88962, #b96749);
  color: #fffaf3;
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  border: 1px solid rgba(255, 250, 243, .35);
  border-radius: 50%;
  content: '';
}

.auth-story::before { width: 280px; height: 280px; right: -110px; top: 110px; }
.auth-story::after { width: 180px; height: 180px; left: -100px; bottom: 45px; }

.auth-brand {
  position: relative;
  z-index: 1;
  color: #fffaf3;
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  text-decoration: none;
}

.auth-story > div:not(.auth-stitch) { position: relative; z-index: 1; }
.auth-story h1 { max-width: 420px; margin: 10px 0 18px; font-family: 'Playfair Display', serif; font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 600; line-height: 1.02; }
.auth-story p:not(.eyebrow) { max-width: 390px; color: rgba(255, 250, 243, .86); line-height: 1.7; }
.auth-story .eyebrow { color: #fffaf3; }

.auth-stitch { position: relative; z-index: 1; display: flex; gap: 12px; }
.auth-stitch span { display: block; width: 54px; height: 10px; border-radius: 99px; background: #f1d1a5; transform: rotate(-25deg); }
.auth-stitch span:nth-child(2) { background: #8a9a7b; transform: rotate(25deg); }
.auth-stitch span:nth-child(3) { background: #fffaf3; transform: rotate(-25deg); }

.auth-card { align-self: center; padding: 54px clamp(32px, 5vw, 70px); }
.auth-card h2 { margin: 9px 0 6px; font-family: 'Playfair Display', serif; font-size: 2.2rem; }
.auth-subtitle { margin: 0 0 30px; color: #75675d; font-size: .92rem; }
.auth-error { margin: -18px 0 20px; padding: 10px 14px; border-radius: 6px; background: #fbe3de; color: #a3402a; font-size: .88rem; }
.auth-form { display: flex; flex-direction: column; gap: 9px; }
.auth-form label { margin-top: 9px; color: var(--espresso); font-size: .85rem; font-weight: 600; }
.auth-form input,
.auth-form select { width: 100%; min-height: 46px; box-sizing: border-box; padding: 11px 13px; border: 1px solid rgba(61, 48, 40, .22); border-radius: 5px; outline: none; background: #fff; color: var(--espresso); font: inherit; }
.auth-form input:focus,
.auth-form select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(199, 109, 74, .14); }
.auth-form button { min-height: 48px; margin-top: 20px; border: 0; border-radius: 5px; background: var(--terracotta); color: #fffaf3; cursor: pointer; font: inherit; font-weight: 600; transition: background-color .2s ease, transform .2s ease; }
.auth-form button:hover { background: var(--sage); transform: translateY(-2px); }
.auth-switch { margin: 24px 0 0; color: #75675d; font-size: .86rem; text-align: center; }
.auth-switch a { color: var(--terracotta); font-weight: 700; }

@media (max-width: 700px) {
  .auth-page { padding: 16px; }
  .auth-shell { display: block; min-height: auto; }
  .auth-story { min-height: 280px; padding: 28px; }
  .auth-story h1 { font-size: 2.4rem; }
  .auth-stitch { margin-top: 28px; }
  .auth-card { padding: 36px 28px 40px; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

.navbar {
  background-color: #ffffff;
  color: var(--espresso);
  font-family: 'Playfair Display', serif;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(61, 48, 40, .12);
}

.navbar {
  display: flex;
  justify-content: space-between; /* kiri-kanan seimbang */
  align-items: center;
  background-color: #ffffff;
  padding: 15px 60px; /* jarak dari tepi */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 60px; /* jarak antar menu */
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--terracotta); /* warna sesuai tema */
  text-decoration: none; /* hilangkan garis bawah */
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.navbar a:hover {
  color: var(--sage); /* warna saat hover */
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 34px;
  color: var(--espresso) !important;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s ease, transform .15s ease;
}

.nav-back-button:hover {
  color: var(--terracotta) !important;
  transform: translateX(-2px);
}

.header-account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-dashboard-link,
.header-username {
  color: var(--espresso) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: .85rem;
  text-decoration: none;
}

.header-username {
  font-weight: 600;
}

.header-username:hover {
  color: var(--terracotta) !important;
}

@media (max-width: 700px) {
  .navbar { padding: 14px 20px; }
  .nav-links { gap: 18px; overflow-x: auto; }
  .header-account { gap: 8px; }
  .header-username { display: none; }
  .header-dashboard-link { display: none; }
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--espresso);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 999;
}

.nav-overlay.is-open { display: block; }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    max-width: 75vw;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 24px 24px;
    margin: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 20px rgba(61, 48, 40, .12);
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(61, 48, 40, .08);
  }

  .nav-links a {
    display: block;
  }
}

.login {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}


.hero {
  position: relative;
  min-height: clamp(360px, 60vh, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--espresso);
  text-align: center;
  padding: clamp(64px, 10vw, 96px) clamp(20px, 5vw, 60px) clamp(72px, 9vw, 96px);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: -2;
  background: #5e4938;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 25, 18, .56) 0%, rgba(36, 25, 18, .68) 100%);
  content: '';
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: #fffaf3;
  font-size: clamp(1.9rem, 6.2vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.hero p {
  font-family: 'Poppins', sans-serif;
  color: #fffaf3;
  max-width: 520px;
  margin: 0 auto 20px;
  font-size: clamp(.95rem, 2.6vw, 1.05rem);
  line-height: 1.55;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fffaf3;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot.active {
  background: #fffaf3;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: min(100%, 560px);
  margin: 25px auto 0;
  padding: 5px;
  background: #fffaf3;
  border-radius: 999px;
}

.search-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  text-overflow: ellipsis;
  color: var(--espresso);
  background-color: transparent;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.search-bar input[type="text"]:focus {
  box-shadow: none;
  transform: none;
}

.search-bar button {
  background-color: var(--terracotta);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-bar button:hover {
  background-color: var(--sage);
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--terracotta);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.section {
  padding: 50px 20px;
  background-color: var(--cream);
}
.section-heading-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 1180px; margin: 0 auto 18px; }
.section-heading-row h2,
.marketplace > h2,
.events > h2,
.tutorials > h2 { margin: 0 0 18px; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 600; line-height: 1.1; text-align: center; }
.section-heading-row span { position: absolute; right: 0; color: #8a8179; font-size: .75rem; }
.region-map-section .section-heading-row { flex-direction: column; gap: 0; }
.map-hint { margin: -8px 0 18px; color: #8a6b57; font-family: 'Playfair Display', serif; font-size: .9rem; font-style: italic; letter-spacing: .01em; text-align: center; }
.marketplace > h2,
.events > h2,
.tutorials > h2 { margin-right: auto; margin-left: auto; }
.region-map-section { background: var(--cream); }
.region-map-section { padding-bottom: 12px; }
.region-map-section + .marketplace { padding-top: 12px; }
.map-placeholder { max-width: 1180px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; margin: 0 auto; overflow: hidden; border-radius: 9px; background: #e9e9e7; color: #817a74; text-align: center; }
.home-map-svg { display: block; width: 100%; height: auto; min-height: 270px; margin-bottom: -10px; overflow: visible; }
.geojson-land a { outline: none; }
.geojson-land path { fill: #d6e3d0; stroke: #78906f; stroke-width: .7; stroke-linejoin: round; cursor: pointer; transition: fill .15s ease, stroke-width .15s ease; }
.geojson-land a:hover path, .geojson-land a:focus-visible path { fill: #b9d0b2; stroke: #c76d4a; stroke-width: 1.8; }
.map-hint-mobile { display: none; }
.map-placeholder p { position: relative; z-index: 1; margin: -28px 0 0; }

.section-lead {
  max-width: 650px;
  margin: -28px 0 26px;
  color: #65564c;
}

.section[id] {
  scroll-margin-top: 76px;
}

.marketplace + .events {
  padding-top: 24px;
}

.events + .tutorials {
  padding-top: 0;
}

.marketplace {
  padding-bottom: 12px;
}

.marketplace + .events h2 {
  margin-top: 0;
}

.card-container {
  display: flex;
  flex-direction: row; 
  gap: 20px;
  overflow-x: auto; 
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.card-container::-webkit-scrollbar {
  display: none; 
}

.card {
  background-color: var(--beige);
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  text-align: center;
}

.join-section {
  background-color: var(--terracotta);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px;
} 

.marketplace .card-container {
  flex-wrap: nowrap;
  overflow-x: auto;
}
/* Horizontal card rows (Jelajah Kerajinan & Event) */
.scroll-wrapper {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.scroll-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  width: 100%;
  padding: 10px 4px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Center the row when the cards don't fill it; it still scrolls normally when they do */
.scroll-container > :first-child { margin-left: auto; }
.scroll-container > :last-child { margin-right: auto; }

.scroll-container > .card {
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(61, 48, 40, .1);
  color: var(--espresso);
  text-align: left;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}


.scroll-container > .card:hover,
.scroll-container > .card:focus-visible {
  box-shadow: 0 12px 26px rgba(61, 48, 40, .16);
  transform: translateY(-4px);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8d7c1;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.scroll-container > .card:hover .card-media img,
.scroll-container > .card:focus-visible .card-media img {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, .95);
  box-shadow: 0 2px 8px rgba(61, 48, 40, .15);
  color: var(--espresso);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-body {
  flex: 1;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px 16px;
  background: #ffffff;
}

.card-body h3 {
  grid-column: 1;
  margin: 0;
  color: var(--espresso);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card-body-event h3 {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  gap: 4px 14px;
  color: #8a7d72;
  font-size: .75rem;
  line-height: 1.35;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.card-meta-item i {
  flex-shrink: 0;
  width: 14px;
  color: var(--terracotta);
  text-align: center;
}

.card-meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fffaf3;
  font-size: .95rem;
  line-height: 1;
  transition: background-color .2s ease, transform .2s ease;
}

.card-body-event {
  grid-template-rows: auto 1fr;
  align-items: start;
}

.card-body-event .card-meta {
  align-self: end;
}

.card-body-event .card-arrow {
  grid-row: 2;
  align-self: end;
}

.scroll-container > .card:hover .card-arrow,
.scroll-container > .card:focus-visible .card-arrow {
  background: #b45f3f;
  transform: translateX(3px);
}

.scroll-container > .view-more-card {
  flex-basis: 300px;
  width: 300px;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(199, 109, 74, .45);
  background: #fffaf3;
  box-shadow: none;
  color: var(--terracotta);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.scroll-container > .view-more-card:hover,
.scroll-container > .view-more-card:focus-visible {
  background: var(--terracotta);
  color: #fffaf3;
}

.guidance-bars {
  width: 100%;
  max-width: 1180px;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.guidance-bar {
  flex: 1 1 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid rgba(61, 48, 40, .1);
  border-radius: 7px;
  color: var(--espresso);
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.guidance-bar:hover,
.guidance-bar:focus-visible {
  filter: brightness(.96);
  transform: translateY(-2px);
}

.guidance-bar-home { background: #e8d7c1; }
.guidance-bar-process { background: #d8b49e; }
.guidance-bar-live { background: var(--terracotta); color: #fffaf3; }

.scroll-btn {
  position: absolute;
  top: calc(50% - 6px);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--terracotta);
  box-shadow: 0 4px 12px rgba(61, 48, 40, .25);
  color: white;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease;
}

.scroll-btn[hidden] { display: none; }
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover {
  background-color: var(--sage);
}

/* Authenticated craft catalog */
.craft-page,
.materials-page {
  min-height: 70vh;
  background: var(--cream);
}

.craft-page-hero {
  padding: 36px 3vw 20px;
}

.craft-page-hero h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  color: var(--espresso);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 1.02;
}

.craft-page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #65564c;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--terracotta);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.craft-toolbar {
  padding: 28px 3vw 8px;
  background: var(--cream);
}

.craft-filter {
  padding: 9px 16px;
  border: 1px solid rgba(61, 48, 40, .2);
  border-radius: 999px;
  color: var(--espresso);
  font-size: .86rem;
  text-decoration: none;
}

.craft-filter:hover,
.craft-filter.active {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: #fffaf3;
}

.craft-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  width: 100%;
}

.craft-filter-form label {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 7px;
  color: var(--espresso);
  font-size: .82rem;
  font-weight: 600;
}

.craft-filter-form select {
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid rgba(61, 48, 40, .22);
  border-radius: 5px;
  outline: none;
  background: #fffaf3;
  color: var(--espresso);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
}

.craft-filter-form select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(199, 109, 74, .12); }
.craft-filter-submit { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 5px; background: var(--terracotta); color: #fffaf3; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.craft-filter-submit:hover { background: var(--sage); }
.craft-filter-form > a { padding: 12px 4px; color: var(--terracotta); font-size: .86rem; font-weight: 600; }

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 3vw 62px;
}

.craft-list-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fffaf3;
  color: var(--espresso);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(61, 48, 40, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.craft-list-card:hover {
  box-shadow: 0 12px 26px rgba(61, 48, 40, .15);
  transform: translateY(-4px);
}

.craft-list-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.craft-list-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.craft-list-card-body small { color: var(--terracotta); font-weight: 700; }
.craft-list-card-body strong { font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.craft-list-card-body span { color: #65564c; font-size: .88rem; line-height: 1.5; }
.craft-list-card-body b { margin-top: auto; color: var(--terracotta); font-size: .85rem; }

.craft-detail {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 42px;
  margin: 0 7vw 70px;
  padding: 34px;
  border-radius: 12px;
  background: #e8d7c1;
}

.craft-detail-copy h2 { margin: 8px 0 16px; font-family: 'Playfair Display', serif; font-size: 2.8rem; }
.craft-detail-copy p { color: #65564c; line-height: 1.7; }
.craft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.craft-action { padding: 12px 16px; border-radius: 5px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.craft-action-primary { background: var(--terracotta); color: #fffaf3; }
.craft-action-secondary { border: 1px solid var(--terracotta); color: var(--terracotta); }
.craft-action:hover { filter: brightness(.95); }

.craft-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.craft-media {
  position: relative;
  display: block;
  min-height: 175px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--espresso);
}

.craft-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.craft-media:hover img { transform: scale(1.05); }
.craft-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fffaf3; text-align: center; text-decoration: none; }
.craft-video::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(199, 109, 74, .9), rgba(61, 48, 40, .9)); content: ''; }
.craft-video > * { position: relative; z-index: 1; }
.play-icon { font-size: 2rem; }
.craft-video small { opacity: .8; }

.materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 54px 7vw 80px; }
.material-card { display: flex; gap: 18px; padding: 22px; border: 1px solid rgba(61, 48, 40, .12); border-radius: 10px; background: #fffaf3; }
.material-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--beige); color: var(--terracotta); font-size: 1.3rem; }
.material-card h2 { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.material-card p { margin: 0 0 14px; color: #65564c; font-size: .9rem; line-height: 1.5; }
.material-card a { color: var(--terracotta); font-size: .85rem; font-weight: 700; }

.marketplace-choice-page { min-height: 70vh; background: var(--cream); }
.marketplace-choice-hero { padding: 36px 3vw 20px; }
.marketplace-choice-hero h1 { margin: 8px 0 12px; font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; }
.marketplace-choice-hero p:last-child { margin: 0; color: #65564c; font-size: 1.05rem; }
.marketplace-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 40px 3vw 90px; }
.marketplace-choice-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; overflow: hidden; border-radius: 12px; color: #fffaf3; text-decoration: none; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.marketplace-choice-card::before { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; content: ''; transition: transform .35s ease; }
.marketplace-choice-card::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(48, 41, 54, .9), rgba(48, 41, 54, .1)); content: ''; }
.product-choice::before { background-image: url('https://images.unsplash.com/photo-1610701596007-11502861dcfa?auto=format&fit=crop&w=1200&q=85'); }
.material-choice::before { background-image: url('https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?auto=format&fit=crop&w=1200&q=85'); }
.marketplace-choice-card:hover { box-shadow: 0 16px 30px rgba(61, 48, 40, .2); transform: translateY(-5px); }
.marketplace-choice-card:hover::before { transform: scale(1.06); }
.marketplace-choice-card .eyebrow { color: #f1d1a5; }
.marketplace-choice-card h2 { margin: 8px 0; font-family: 'Playfair Display', serif; font-size: 2.2rem; }
.marketplace-choice-card p { max-width: 430px; margin: 0 0 22px; line-height: 1.6; }
.marketplace-choice-card strong { color: #f1d1a5; }
.choice-icon { position: absolute; top: 28px; right: 32px; font-size: 2rem; color: #f1d1a5; }
.marketplace-search { display: flex; align-items: center; gap: 12px; padding: 20px 3vw 8px; background: var(--cream); }
.marketplace-search input { flex: 1; min-height: 46px; box-sizing: border-box; padding: 12px 15px; border: 1px solid rgba(61, 48, 40, .2); border-radius: 5px; background: #fffaf3; color: var(--espresso); font: inherit; }
.marketplace-search button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 5px; background: var(--terracotta); color: #fffaf3; cursor: pointer; font: inherit; font-weight: 600; }
.marketplace-search a { color: var(--terracotta); font-weight: 600; }
.marketplace-search select { min-height: 46px; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(61, 48, 40, .2); border-radius: 5px; background: #fffaf3; color: var(--espresso); font: inherit; }

.store-profile-page { max-width: 1100px; margin: 0 auto; padding: 48px 7vw 80px; box-sizing: border-box; }
.store-profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 34px; margin-bottom: 40px; border: 1px solid rgba(61, 48, 40, .1); border-radius: 14px; background: linear-gradient(135deg, #e8d7c1, #f7eee4); box-shadow: 0 10px 26px rgba(61, 48, 40, .07); }
.store-profile-avatar { display: grid; width: 96px; height: 96px; flex: 0 0 96px; place-items: center; overflow: hidden; border: 5px solid #f1d1a5; border-radius: 50%; background: var(--terracotta); color: #fffaf3; font: 600 2.4rem 'Playfair Display', serif; }
.store-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-profile-heading h1 { margin: 6px 0 8px; font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.store-profile-meta { margin: 0 0 10px; color: var(--terracotta); font-weight: 700; font-size: .85rem; }
.store-profile-about { margin: 0; max-width: 520px; color: #65564c; line-height: 1.6; }
.store-profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.store-profile-contact { color: var(--terracotta); font-size: .82rem; font-weight: 700; }
.store-profile-owner-note { margin: 0; color: #65564c; font-size: .85rem; font-weight: 600; }
.store-profile-empty { padding: 80px 7vw; text-align: center; }
.store-profile-subgrid { padding: 0; }
@media (max-width: 860px) {
  .store-profile-hero { grid-template-columns: 1fr; text-align: center; }
  .store-profile-actions { align-items: center; text-align: center; }
  .store-profile-about { max-width: none; }
}
.marketplace-results, .offline-directory { padding: 20px 3vw 54px; }
.marketplace-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.marketplace-section-title h2 { margin: 0; font-family: 'Playfair Display', serif; font-size: 2rem; }
.marketplace-section-title span { color: #75675d; font-size: .85rem; }
.product-market-grid, .store-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-market-card, .store-directory-card { overflow: hidden; border: 1px solid rgba(61, 48, 40, .1); border-radius: 10px; background: #fffaf3; }
.product-market-image { display: grid; height: 130px; place-items: center; background: #e8d7c1; color: var(--terracotta); font-size: 2.4rem; }
.product-market-body { display: flex; flex-direction: column; gap: 7px; padding: 18px; }
.product-market-body h3, .store-directory-card h3 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.product-market-body p, .store-directory-card p { margin: 0; color: #65564c; font-size: .86rem; line-height: 1.5; }
.product-market-body strong { color: var(--terracotta); }
.product-market-body small, .store-directory-card small { color: #75675d; }
.store-directory-card { display: flex; gap: 14px; padding: 18px; }
.store-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: var(--terracotta); color: #fffaf3; font-weight: 700; }
.store-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.store-directory-card a { display: inline-block; margin-top: 10px; color: var(--terracotta); font-size: .82rem; font-weight: 700; }

.listing-page { min-height: 70vh; background: var(--cream); }
.listing-hero { padding: 36px 3vw 20px; }
.listing-hero h1 { margin: 8px 0 12px; font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; }
.listing-hero > p:last-child { max-width: 680px; margin: 0; color: #65564c; }
.listing-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 20px 3vw 10px; }
.listing-filters label { display: flex; min-width: 180px; flex-direction: column; gap: 7px; color: var(--espresso); font-size: .82rem; font-weight: 600; }
.listing-filters input, .listing-filters select { min-height: 42px; box-sizing: border-box; padding: 9px 12px; border: 1px solid rgba(61, 48, 40, .22); border-radius: 5px; background: #fffaf3; color: var(--espresso); font: inherit; font-weight: 400; }
.listing-filters button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 5px; background: var(--terracotta); color: #fffaf3; cursor: pointer; font: inherit; font-weight: 600; }
.listing-filters button:hover { background: var(--sage); }
.listing-filters > a { padding: 12px 4px; color: var(--terracotta); font-size: .86rem; font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 3vw 76px; }
.listing-card { min-height: 190px; padding: 22px; border: 1px solid rgba(61, 48, 40, .1); border-radius: 10px; background: #fffaf3; box-shadow: 0 5px 16px rgba(61, 48, 40, .06); }
.listing-card h2 { margin: 8px 0 12px; font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.listing-card > p:not(.listing-meta) { color: #65564c; line-height: 1.55; }
.listing-meta { margin: 0; color: var(--terracotta); font-size: .78rem; font-weight: 700; }
.listing-card small { color: #65564c; }
.community-card-heading { display: flex; align-items: center; gap: 12px; }
.community-card-heading h2 { margin-top: 4px; }
.material-link { display: inline-block; margin-top: 14px; color: var(--terracotta); font-size: .85rem; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 30px; border-radius: 8px; background: #fffaf3; color: #65564c; text-align: center; }

.detail-page { min-height: 70vh; background: var(--cream); }
.detail-hero { min-height: 390px; display: flex; align-items: end; padding: 70px 7vw 58px; box-sizing: border-box; background: linear-gradient(90deg, rgba(47, 34, 25, .78), rgba(47, 34, 25, .2)), var(--detail-image) center/cover; color: #fffaf3; }
.detail-hero > div { max-width: 780px; }
.detail-hero h1 { margin: 8px 0 14px; font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; }
.detail-hero p:last-child { max-width: 690px; margin: 0; color: rgba(255, 250, 243, .9); line-height: 1.7; }
.detail-hero .eyebrow { color: #f1d1a5; }
.detail-content { display: grid; gap: 54px; padding: 58px 7vw 82px; }
.detail-content h2 { margin: 8px 0 18px; font-family: 'Playfair Display', serif; font-size: 2rem; }
.detail-content p:not(.eyebrow) { color: #65564c; line-height: 1.7; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-facts span { display: flex; min-height: 72px; flex-direction: column; gap: 5px; padding: 15px; border-left: 3px solid var(--terracotta); background: #fffaf3; color: #65564c; }
.detail-facts strong { color: var(--espresso); font-size: .78rem; text-transform: uppercase; }
.detail-materials { padding-top: 8px; }
.material-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.material-detail-grid article { padding: 16px; background: #fffaf3; }
.material-swatch { height: 100px; margin: -16px -16px 14px; background: linear-gradient(135deg, #b99061, #e7c995); }
.material-detail-grid article:nth-child(2) .material-swatch { background: linear-gradient(135deg, #8f6540, #d5ae76); }
.material-detail-grid article:nth-child(3) .material-swatch { background: linear-gradient(135deg, #b5a66a, #e3d59b); }
.material-detail-grid article:nth-child(4) .material-swatch { background: linear-gradient(135deg, #719887, #b4d0ae); }
.material-detail-grid h3 { margin: 0 0 5px; font-family: 'Playfair Display', serif; }
.material-detail-grid p { margin: 0; font-size: .84rem; }
.detail-list, .detail-steps { padding-left: 20px; color: #65564c; line-height: 2; }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-gallery div { min-height: 150px; background: linear-gradient(135deg, #d7b38a, #8f674c); }
.detail-gallery div:nth-child(2) { background: linear-gradient(135deg, #a7b38c, #d6bc91); }
.detail-gallery div:nth-child(3) { background: linear-gradient(135deg, #c77a59, #e3c09a); }
.detail-gallery-large div { min-height: 220px; }
.detail-narrative { max-width: 760px; padding: 25px 30px; border-left: 4px solid var(--terracotta); background: #ead8c1; }
.detail-narrative p { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.detail-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.detail-cta a:not(.btn-primary) { color: var(--terracotta); font-weight: 700; }
.listing-card h2 a { color: inherit; text-decoration: none; }
.listing-card h2 a:hover { color: var(--terracotta); }

/* Craft detail template */
.craft-detail-page { min-height: 70vh; background: var(--cream); }
.craft-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 7vw; align-items: center; padding: 74px 7vw 70px; background: #f0dfc8; }
.craft-detail-intro { max-width: 630px; }
.craft-detail-intro h1 { margin: 10px 0 18px; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .94; }
.craft-detail-intro > p:not(.eyebrow) { max-width: 540px; margin: 0; color: #65564c; font-size: 1.05rem; line-height: 1.7; }
.craft-detail-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.craft-detail-tags span { padding: 8px 13px; border: 1px solid var(--terracotta); border-radius: 999px; background: var(--terracotta); color: #fffaf3; font-size: .75rem; font-weight: 700; }
.craft-hero-photo { min-height: 300px; min-width: 200px; border-radius: 48% 48% 12px 12px; background-color: #d6b58c; background-position: center; background-size: cover; box-shadow: 18px 18px 0 #d8b88e; }
.craft-hero-photo.is-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #d8b88e 0 16px, #e8cfad 16px 32px); color: #795b43; text-align: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.craft-hero-photo small { font-family: 'Poppins', sans-serif; font-size: .75rem; }
.craft-meta-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding: 20px 7vw; border-bottom: 1px solid rgba(199, 109, 74, .2); background: #fffaf3; color: #65564c; text-align: center; }
.craft-meta-strip span { font-size: .86rem; }
.craft-meta-strip strong { margin-right: 5px; color: var(--espresso); font-family: 'Playfair Display', serif; }
.craft-meta-strip i { color: var(--terracotta); font-style: normal; }
.craft-detail-body { display: grid; gap: 72px; padding: 70px 7vw 90px; }
.craft-story-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; max-width: 950px; }
.craft-detail-body h2 { margin: 8px 0 0; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }
.craft-story-block > p { max-width: 650px; margin: 0; color: #65564c; line-height: 1.8; }
.craft-info-panel { padding: 34px; border-radius: 14px; background: #ead2b5; }
.craft-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.craft-fact-grid article { min-height: 150px; padding: 20px; border-radius: 8px; background: #fffaf3; box-shadow: 0 8px 16px rgba(61, 48, 40, .06); }
.craft-fact-icon { display: block; margin-bottom: 18px; color: var(--terracotta); font-size: 1.55rem; }
.craft-fact-grid strong { display: block; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.craft-fact-grid p { margin: 8px 0 0; color: #75675d; font-size: .82rem; line-height: 1.5; }
.craft-material-section, .craft-inspiration-section { display: grid; gap: 20px; }
.craft-mini-grid, .craft-inspiration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.craft-mini-photo, .craft-inspiration-photo { display: grid; min-height: 165px; place-items: center; background-color: #dec39d; background-position: center; background-size: cover; color: #795b43; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.craft-mini-card { overflow: hidden; background: #fffaf3; box-shadow: 0 8px 16px rgba(61, 48, 40, .07); }
.craft-mini-card .craft-mini-photo { min-height: 150px; }
.craft-mini-card h3 { margin: 14px 16px 5px; color: var(--espresso); font-family: 'Playfair Display', serif; }
.craft-mini-card p { margin: 0 16px 18px; color: #75675d; font-size: .82rem; line-height: 1.5; }
.craft-mini-photo:nth-child(2), .craft-inspiration-photo:nth-child(2) { background: #c4cda8; }
.craft-mini-photo:nth-child(3), .craft-inspiration-photo:nth-child(3) { background: #e1b095; }
.craft-inspiration-section { grid-template-columns: .8fr 1.2fr; align-items: end; }
.craft-inspiration-grid { grid-column: 2; }
.craft-inspiration-photo { min-height: 210px; }
.craft-soft-note { display: flex; gap: 20px; align-items: center; max-width: 850px; padding: 24px 28px; border-left: 4px solid var(--terracotta); background: #f1dfc7; }
.craft-soft-note span { color: var(--terracotta); font-size: 1.8rem; }
.craft-soft-note p { margin: 0; color: #65564c; font-family: 'Playfair Display', serif; font-size: 1.18rem; line-height: 1.5; }
.craft-cta-panel { padding: 38px; border-radius: 14px; background: var(--terracotta); color: #fffaf3; text-align: center; }
.craft-cta-panel .eyebrow { color: #f8d9ae; }
.craft-cta-panel h2 { color: #fffaf3; }
.craft-cta-panel > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 24px; }
.craft-cta-panel a:not(.btn-primary) { align-self: center; color: #fffaf3; font-weight: 700; }
.craft-cta-panel .btn-primary { background: #fffaf3; color: var(--terracotta); }

@media (max-width: 800px) {
  .listing-hero { padding-right: 2vw; padding-left: 2vw; }
  .section-heading-row { align-items: center; flex-direction: column; }
  .section-heading-row span { position: static; }
  .guidance-bars { flex-direction: column; }
  .guidance-bar { width: 100%; box-sizing: border-box; }
  .listing-filters, .listing-grid { padding-right: 2vw; padding-left: 2vw; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .listing-grid { grid-template-columns: 1fr; }
  .listing-filters label { width: 100%; }
  .listing-filters button { width: 100%; }
}

/* Shared responsive baseline for phones, tablets, and smaller laptops. */
@media (max-width: 900px) {
  .navbar { padding-right: 24px; padding-left: 24px; }
  .nav-links { gap: 28px; }
  .header-account { flex-shrink: 0; }

  .hero { min-height: 430px; padding: 64px 24px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
  .search-bar { width: min(100%, 620px); }
  .search-bar input[type="text"] { min-width: 0; width: auto; flex: 1; }

  .section { padding-right: 24px; padding-left: 24px; }
  .scroll-container { padding-right: 0; padding-left: 0; }
  .map-placeholder { width: 100%; }

  .listing-hero, .craft-page-hero { padding-right: 3vw; padding-left: 3vw; }
  .listing-filters, .craft-toolbar, .craft-grid, .listing-grid { padding-right: 3vw; padding-left: 3vw; }
  .listing-grid, .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-filters { align-items: stretch; }
  .listing-filters label { flex: 1 1 220px; }

  .marketplace-choice-grid, .product-market-grid, .store-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-content { padding-right: 6vw; padding-left: 6vw; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .craft-detail-hero { grid-template-columns: 1fr; gap: 32px; padding-right: 6vw; padding-left: 6vw; }
  .craft-story-block, .craft-inspiration-section { grid-template-columns: 1fr; gap: 28px; }
  .craft-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .navbar { align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .nav-links { min-width: 0; flex: 1; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .navbar a { font-size: .9rem; }
  .header-account { display: none; }

  .hero { min-height: 390px; padding: 48px 16px; }
  .hero h1 { font-size: clamp(1.85rem, 10vw, 2.8rem); }
  .hero p { font-size: .9rem; }
  .search-bar { width: 100%; }
  .search-bar button { padding: 12px 18px; }

  .section { padding-right: 16px; padding-left: 16px; }
  .section-heading-row h2, .marketplace > h2, .events > h2, .tutorials > h2 { font-size: 1.7rem; }
  .map-hint { font-size: .82rem; }
  .home-map-svg { min-height: 210px; }
  .map-placeholder { min-height: 240px; }
  .guidance-bars { gap: 8px; }

  .listing-hero, .craft-page-hero { padding: 42px 16px 32px; }
  .listing-hero h1, .craft-page-hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .listing-filters, .craft-toolbar, .craft-grid, .listing-grid { padding-right: 16px; padding-left: 16px; }
  .listing-filters label, .craft-filter-form label { width: 100%; min-width: 0; }
  .listing-filters button, .craft-filter-submit { width: 100%; }
  .listing-grid, .craft-grid, .marketplace-choice-grid, .product-market-grid, .store-directory-grid { grid-template-columns: 1fr; }

  .auth-page { padding: 12px; }
  .auth-story { min-height: 240px; padding: 24px; }
  .auth-card { padding: 32px 22px 36px; }
  .craft-detail { margin-right: 16px; margin-left: 16px; padding: 22px; }
  .craft-gallery, .detail-gallery, .materials-grid { grid-template-columns: 1fr; }
  .material-detail-grid, .detail-facts, .craft-fact-grid { grid-template-columns: 1fr; }
  .detail-hero { min-height: 320px; padding: 48px 16px 38px; }
  .detail-content { padding: 38px 16px 58px; }
}

@media (max-width: 800px) {
  .marketplace-choice-grid, .product-market-grid, .store-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-choice-hero, .marketplace-results, .offline-directory { padding-right: 2vw; padding-left: 2vw; }
  .marketplace-search { padding-right: 2vw; padding-left: 2vw; }
  .craft-grid, .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 2vw; padding-left: 2vw; }
  .craft-page-hero { padding-right: 2vw; padding-left: 2vw; }
  .craft-toolbar { padding-right: 2vw; padding-left: 2vw; }
  .craft-filter-form { align-items: stretch; flex-direction: column; }
  .craft-filter-form label { width: 100%; }
  .craft-filter-submit { width: 100%; }
  .craft-detail { grid-template-columns: 1fr; margin-right: 5vw; margin-left: 5vw; }
  .detail-hero { padding-right: 5vw; padding-left: 5vw; }
  .detail-content { padding-right: 5vw; padding-left: 5vw; }
  .material-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-detail-hero { grid-template-columns: 1fr; padding-right: 5vw; padding-left: 5vw; }
  .craft-detail-body { padding-right: 5vw; padding-left: 5vw; }
  .craft-hero-photo { min-height: 330px; max-width: 600px; width: 100%; }
  .craft-fact-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-story-block, .craft-inspiration-section { grid-template-columns: 1fr; gap: 20px; }
  .craft-inspiration-grid { grid-column: auto; }
}

@media (max-width: 560px) {
  .marketplace-choice-grid, .product-market-grid, .store-directory-grid { grid-template-columns: 1fr; }
  .marketplace-choice-grid { padding: 24px 3vw 60px; }
  .marketplace-search { flex-wrap: wrap; }
  .marketplace-search input, .marketplace-search select { flex-basis: 100%; }
  .craft-grid, .materials-grid { grid-template-columns: 1fr; }
  .craft-detail { padding: 22px; }
  .craft-gallery { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-facts { grid-template-columns: 1fr; }
  .material-detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
  .craft-detail-hero { gap: 38px; padding-top: 52px; }
  .craft-hero-photo { min-height: 270px; box-shadow: 10px 10px 0 #d8b88e; }
  .craft-meta-strip { align-items: center; gap: 6px 10px; padding-right: 5vw; padding-left: 5vw; }
  .craft-meta-strip i { display: none; }
  .craft-detail-body { gap: 48px; padding-top: 50px; }
  .craft-info-panel { padding: 24px; }
  .craft-fact-grid, .craft-mini-grid, .craft-inspiration-grid { grid-template-columns: 1fr; }
  .craft-soft-note { align-items: start; padding: 20px; }
}

/* KalaKarya footer */
.kalakarya-footer {
  background: #f1eeeb;
  color: #302936;
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 1.1fr) minmax(560px, 2.4fr) minmax(180px, .8fr);
  gap: 48px;
  min-height: 410px;
  padding: 58px 42px 48px;
  overflow: hidden;
}

.footer-intro h2 {
  max-width: 430px;
  margin: 0;
  color: #302936;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 400;
  line-height: 1.04;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 28px;
  align-content: start;
  padding-top: 6px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-column h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-column a,
.footer-legal a {
  color: #4c4650;
  font-size: .9rem;
  text-decoration: none;
}

.footer-column a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 132px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #17151a;
  color: #fff !important;
  font-size: .76rem !important;
  line-height: 1.05;
}

.app-badge small {
  display: block;
  font-size: .48rem;
  letter-spacing: .02em;
}

.app-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.footer-art {
  position: relative;
  min-height: 250px;
  align-self: end;
  opacity: .95;
}

.art-sun {
  position: absolute;
  top: 8px;
  right: 48px;
  width: 92px;
  height: 92px;
  border: 8px solid #f36a22;
  border-radius: 50%;
}

.art-frame {
  position: absolute;
  top: 46px;
  right: 12px;
  width: 140px;
  height: 120px;
  border: 4px solid #302936;
  transform: rotate(5deg);
}

.art-frame span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #f36a22;
  border-radius: 50%;
}

.art-frame span:nth-child(1) { top: 25px; left: 20px; }
.art-frame span:nth-child(2) { top: 57px; right: 21px; }
.art-frame span:nth-child(3) { bottom: 15px; left: 53px; }

.art-person {
  position: absolute;
  bottom: 25px;
  width: 72px;
  height: 130px;
  border-radius: 45px 45px 8px 8px;
  background: #302936;
}

.art-person::before {
  position: absolute;
  top: -30px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #302936;
  content: '';
}

.art-person-one { right: 100px; background: #f36a22; transform: rotate(-8deg); }
.art-person-one::before { background: #f36a22; }
.art-person-two { right: 35px; height: 150px; }
.art-table { position: absolute; right: 0; bottom: 15px; width: 215px; height: 12px; background: #302936; transform: rotate(-4deg); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 16px 42px;
  border-top: 1px solid rgba(48, 41, 54, .12);
  font-size: .82rem;
}

.footer-region,
.footer-social,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social a {
  color: #302936;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom p { margin: 0 auto 0 0; }
.footer-legal { gap: 16px; }

.modal-open { overflow: hidden; }
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(48, 41, 54, .58); }
.contact-modal-panel { position: relative; width: min(100%, 500px); padding: 42px; border: 1px solid rgba(48, 41, 54, .12); background: #fffaf3; box-shadow: 0 22px 60px rgba(48, 41, 54, .25); }
.contact-modal-panel h2 { margin: 8px 0 12px; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.contact-modal-panel p:not(.eyebrow) { max-width: 410px; color: #65564c; line-height: 1.65; }
.contact-modal-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: var(--espresso); font-size: 2rem; line-height: 1; cursor: pointer; }
.contact-email { display: block; margin: 22px 0 16px; color: var(--terracotta); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.contact-email-button { display: inline-block; }

/* Informational pages */
.info-page { background: var(--cream); color: var(--espresso); }
.info-hero { padding: 86px 9vw 78px; background: #efe8df; }
.info-hero h1 { max-width: 820px; margin: 12px 0 22px; font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7vw, 6.6rem); font-weight: 600; line-height: .98; }
.info-lead { max-width: 680px; margin: 0; color: #65564c; font-size: 1.1rem; line-height: 1.7; }
.legal-updated { margin: 28px 0 0; color: #8a7a6d; font-size: .82rem; }
.info-story, .info-values, .team-section { max-width: 1160px; margin: 0 auto; padding: 86px 7vw; }
.info-story { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 80px; border-bottom: 1px solid rgba(61, 48, 40, .13); }
.info-story h2, .section-heading h2, .info-cta h2 { margin: 8px 0 0; font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 600; line-height: 1.05; }
.info-copy { max-width: 650px; color: #65564c; font-size: 1.02rem; line-height: 1.75; }
.info-copy p { margin: 0 0 18px; }
.section-heading { max-width: 690px; }
.section-intro { color: #65564c; line-height: 1.6; }
.value-grid, .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.value-item { padding: 26px 0; border-top: 2px solid var(--terracotta); }
.value-item span { color: var(--terracotta); font-size: .78rem; font-weight: 700; }
.value-item h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.value-item p, .team-card p { margin: 0; color: #65564c; font-size: .9rem; line-height: 1.6; }
.team-section { border-top: 1px solid rgba(61, 48, 40, .13); }
.team-grid { grid-template-columns: repeat(2, 1fr); }
.team-card { display: flex; align-items: flex-start; gap: 20px; padding: 24px; background: #fffaf3; border: 1px solid rgba(61, 48, 40, .1); }
.team-avatar { display: grid; width: 72px; height: 72px; flex: 0 0 72px; place-items: center; background: var(--terracotta); color: #fffaf3; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.team-avatar-alt { background: var(--sage); }
.team-card h3 { margin: 2px 0 4px; font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.team-bio { margin-top: 14px !important; }
.info-cta { margin: 0 7vw 86px; padding: 58px 7vw; background: var(--espresso); color: #fffaf3; }
.info-cta h2 { max-width: 600px; margin-bottom: 28px; color: #fffaf3; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 80px; max-width: 1160px; margin: 0 auto; padding: 76px 7vw 100px; }
.legal-toc { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 25px; }
.legal-toc a { color: #65564c; font-size: .87rem; text-decoration: none; }
.legal-toc a:hover, .legal-content a { color: var(--terracotta); }
.legal-content section { margin-bottom: 48px; scroll-margin-top: 25px; }
.legal-content h2 { margin: 0 0 12px; font-family: 'Playfair Display', serif; font-size: 1.7rem; }
.legal-content p { margin: 0 0 13px; color: #65564c; line-height: 1.75; }
.legal-contact { padding-top: 30px; border-top: 1px solid rgba(61, 48, 40, .13); }

.about-page { overflow: hidden; }
.about-section { position: relative; }
.about-page .info-hero { min-height: 510px; display: flex; flex-direction: column; justify-content: center; padding-top: 100px; padding-bottom: 100px; background: #eee8f1; }
.about-page .info-hero::after { position: absolute; right: 9vw; bottom: 58px; width: 112px; height: 112px; border: 1px solid rgba(48, 41, 54, .25); border-radius: 50%; content: ''; }
.about-page .info-hero::before { position: absolute; right: calc(9vw + 26px); bottom: 84px; width: 60px; height: 60px; border-radius: 50%; background: var(--terracotta); content: ''; opacity: .82; }
.about-page .info-hero h1 { max-width: 760px; font-size: clamp(3.6rem, 8vw, 8rem); letter-spacing: -.025em; }
.about-page .info-lead { max-width: 590px; }
.about-page .info-story { max-width: none; grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr); padding-right: 12vw; padding-left: 12vw; background: #fffaf3; }
.about-page .info-story::before { position: absolute; top: 0; left: 0; width: 9px; height: 100%; background: var(--terracotta); content: ''; }
.about-page .info-values { max-width: none; padding-right: 12vw; padding-left: 12vw; background: #dfe5cf; }
.about-page .team-section { max-width: none; padding-right: 12vw; padding-left: 12vw; background: #f5efe7; }
.about-page .team-section .section-heading { max-width: 760px; }
.about-page .team-grid { max-width: 1020px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.about-page .team-card { align-items: center; min-height: 250px; padding: 28px; border: 0; background: #fffaf3; box-shadow: 8px 8px 0 rgba(48, 41, 54, .09); }
.team-photo-frame { position: relative; width: 150px; height: 150px; flex: 0 0 150px; overflow: hidden; border: 8px solid #fffaf3; border-radius: 50%; background: #e8d7c1; box-shadow: 0 0 0 1px rgba(61, 48, 40, .12); }
.team-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-photo-frame .team-avatar { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; font-size: 3rem; }
.about-page .team-card h3 { margin-top: 0; font-size: 1.25rem; }
.team-role { margin-bottom: 10px !important; color: var(--terracotta) !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.about-page .team-bio { margin-top: 0 !important; }

@media (max-width: 760px) {
  .info-hero { padding: 58px 7vw 52px; }
  .info-hero h1 { font-size: clamp(2.8rem, 14vw, 4.8rem); }
  .info-story, .legal-layout { display: block; padding-top: 58px; padding-bottom: 65px; }
  .info-copy { margin-top: 28px; }
  .value-grid, .team-grid { grid-template-columns: 1fr; gap: 10px; }
  .value-item { padding: 22px 0; }
  .team-card { padding: 20px; }
  .about-page .info-hero { min-height: 520px; }
  .about-page .info-hero::after { right: 8vw; bottom: 48px; }
  .about-page .info-hero::before { right: calc(8vw + 26px); bottom: 74px; }
  .about-page .info-story, .about-page .info-values, .about-page .team-section { padding-right: 7vw; padding-left: 7vw; }
  .about-page .team-grid { gap: 16px; }
  .about-page .team-card { align-items: flex-start; min-height: 0; padding: 22px; }
  .team-photo-frame { width: 104px; height: 104px; flex-basis: 104px; border-width: 6px; }
  .about-page .team-card h3 { font-size: 1.05rem; }
  .info-cta { margin-bottom: 58px; padding: 42px 8vw; }
  .legal-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 54px; }
  .legal-content section { margin-bottom: 38px; }
  .contact-modal-panel { padding: 38px 26px 30px; }
}

/* Search Results Page */
.search-results-page { min-height: 70vh; background: var(--cream); }
.search-hero { padding: 36px 7vw 20px; }
.search-hero h1 { max-width: 780px; margin: 8px 0 14px; color: var(--espresso); font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 4.7rem); font-weight: 600; line-height: 1.02; }
.search-hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: #65564c; font-size: 1.05rem; }
.search-container { padding: 40px 7vw 80px; }
.search-refine { display: flex; align-items: center; gap: 12px; margin-bottom: 50px; }
.search-refine input { flex: 1; min-height: 46px; box-sizing: border-box; padding: 12px 15px; border: 1px solid rgba(61, 48, 40, .2); border-radius: 5px; background: #fffaf3; color: var(--espresso); font: inherit; }
.search-refine button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 5px; background: var(--terracotta); color: #fffaf3; cursor: pointer; font: inherit; font-weight: 600; }
.search-refine button:hover { background: var(--sage); }
.search-results-section { margin-bottom: 60px; }
.search-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.search-section-title h2 { margin: 0; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--espresso); }
.search-section-title span { color: #75675d; font-size: .85rem; }
.search-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.search-result-card { overflow: hidden; border: 1px solid rgba(61, 48, 40, .1); border-radius: 10px; background: #fffaf3; box-shadow: 0 4px 12px rgba(61, 48, 40, .06); transition: transform .2s ease, box-shadow .2s ease; }
.search-result-card:hover { box-shadow: 0 8px 20px rgba(61, 48, 40, .12); transform: translateY(-4px); }
.product-card .result-image { display: grid; height: 130px; place-items: center; background: #e8d7c1; color: var(--terracotta); font-size: 2.4rem; }
.community-card .result-avatar { display: grid; width: 80px; height: 80px; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--terracotta); color: #fffaf3; font-size: 2rem; font-weight: 700; }
.event-card .result-image { display: grid; height: 100px; place-items: center; background: #e8d7c1; color: var(--terracotta); font-size: 2.4rem; }
.search-result-card h3 { margin: 16px 16px 8px; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--espresso); }
.search-result-card .result-description { margin: 0 16px 12px; color: #65564c; font-size: .86rem; line-height: 1.5; }
.search-result-card .result-price { display: block; margin: 0 16px 8px; color: var(--terracotta); font-weight: 700; }
.search-result-card .result-seller { display: block; margin: 0 16px 16px; color: #75675d; font-size: .82rem; }
.search-result-card .result-date { display: block; margin: 0 16px 16px; color: #75675d; font-size: .82rem; }
.search-result-card .result-link { display: inline-block; margin: 0 16px 16px; color: var(--terracotta); font-size: .85rem; font-weight: 700; text-decoration: none; }
.search-result-card .result-link:hover { color: var(--sage); }

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr 1.7fr; }
  .footer-art { display: none; }
  .search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .footer-main { display: block; padding: 40px 24px 32px; }
  .footer-intro h2 { margin-bottom: 34px; font-size: 2.25rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .footer-bottom { flex-wrap: wrap; padding: 20px 24px; }
  .footer-bottom p { order: 3; width: 100%; }
  .footer-legal { flex-wrap: wrap; gap: 10px 16px; }
  .search-results-grid { grid-template-columns: 1fr; }
  .search-refine { flex-wrap: wrap; }
  .search-refine input { flex-basis: 100%; }
}
/* === Notifikasi bell === */
.notif-bell-wrap { position: relative; display: inline-flex; align-items: center; margin-right: 6px; }
.notif-bell-btn { position: relative; background: none; border: none; font-size: 1.25rem; cursor: pointer; padding: 6px; line-height: 1; }
.notif-badge { position: absolute; top: 0; right: 0; background: var(--terracotta); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center; }
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-height: 360px; overflow-y: auto; background: #fffaf3; border: 1px solid rgba(61,48,40,.12); border-radius: 10px; box-shadow: 0 12px 28px rgba(61,48,40,.14); z-index: 50; }
.notif-dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(61,48,40,.08); font-weight: 600; }
.notif-dropdown-head a { font-size: .8rem; font-weight: 500; color: var(--terracotta); text-decoration: none; }
.notif-dropdown-list { padding: 4px 0; }
.notif-item { display: block; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(61,48,40,.05); }
.notif-item:hover { background: rgba(61,48,40,.04); }
.notif-item p { margin: 0 0 3px; font-size: .85rem; }
.notif-item small { color: #8a7a6d; font-size: .72rem; }
.notif-empty { padding: 16px 14px; color: #8a7a6d; font-size: .85rem; margin: 0; }
.notif-page-list { max-width: 720px; margin: 0 auto; padding: 0 7vw 60px; display: flex; flex-direction: column; gap: 6px; }
.notif-item-page { border: 1px solid rgba(61,48,40,.1); border-radius: 10px; padding: 14px 16px; }

/* === Perkecil card marketplace/materials/events (samakan skala dengan card index.php) === */
.product-market-grid, .store-directory-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.product-market-image { height: 110px; }
.product-market-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-market-body { padding: 12px 14px 14px; }
.product-market-body h3 { font-size: 1rem; margin: 0 0 4px; }
.product-market-body p { font-size: .8rem; margin: 0 0 6px; }
.listing-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.listing-card { min-height: 150px; padding: 16px; }
.listing-card h2 { font-size: 1.1rem; margin: 6px 0 8px; }
.buy-button { display: inline-block; margin-top: 8px; padding: 6px 14px; background: var(--terracotta); color: #fff; border-radius: 999px; font-size: .78rem; text-decoration: none; font-weight: 600; }
.buy-button:hover { opacity: .9; }
.follow-button { display: inline-block; margin-left: 10px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--terracotta); color: var(--terracotta); text-decoration: none; font-weight: 600; background: transparent; }
.follow-button.is-following { background: var(--terracotta); color: #fff; }

/* === Checkout / beli produk === */
.checkout-message { max-width: 720px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 8px; background: #eef7ee; color: #2c5f2c; font-size: .9rem; }
.checkout-message.is-error { background: #fbeaea; color: #a33; }
.checkout-message a { color: inherit; font-weight: 600; }
.checkout-card { display: flex; gap: 24px; max-width: 720px; margin: 0 auto 60px; padding: 0 7vw; align-items: flex-start; }
.checkout-image { width: 220px; flex: 0 0 220px; height: 180px; border-radius: 10px; }
.checkout-details h2 { margin: 0 0 8px; }
.checkout-details strong { display: block; margin: 10px 0; font-size: 1.1rem; color: var(--terracotta); }
.checkout-form { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; }
.checkout-form label { display: flex; flex-direction: column; font-size: .85rem; gap: 4px; }
.checkout-form input { width: 90px; padding: 8px 10px; border: 1px solid rgba(61,48,40,.25); border-radius: 6px; }
.checkout-note { font-size: .75rem; color: #8a7a6d; margin-top: 12px; }
@media (max-width: 600px) { .checkout-card { flex-direction: column; padding: 0 5vw; } .checkout-image { width: 100%; } }

/* === Pesanan saya === */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid rgba(61, 48, 40, .1); border-radius: 10px; background: #fffaf3; }
.order-card-image { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 8px; overflow: hidden; background: #e8d7c1; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #b09a86; }
.order-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-card-body { flex: 1 1 auto; min-width: 0; }
.order-card-body h3 { margin: 0 0 4px; font-family: 'Playfair Display', serif; font-size: 1rem; }
.order-card-meta, .order-card-date { margin: 0; font-size: .8rem; color: #75675d; }
.order-card-meta a { color: var(--terracotta); text-decoration: none; }
.order-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; text-align: right; }
.order-card-side strong { color: var(--terracotta); font-size: 1rem; }
.order-status { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #eee7df; color: #75675d; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.order-status.is-done { background: #e1efdf; color: #397044; }
.order-status.is-cancelled { background: #fbeaea; color: #a33; }
@media (max-width: 560px) { .order-card { flex-wrap: wrap; } .order-card-side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; } }

/* === Navbar: logo kiri, menu tengah, ikon kanan === */
.navbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-start { gap: 14px; justify-self: start; }
.navbar .nav-logo { color: var(--espresso); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.navbar .nav-logo:hover { color: var(--terracotta); }
.nav-links { justify-self: center; gap: 44px; }
.header-account { justify-self: end; gap: 6px; }

.nav-icon-link, .notif-bell-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--espresso); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.navbar .nav-icon-link { color: var(--espresso); }
.nav-icon-link:hover, .notif-bell-btn:hover { color: var(--terracotta); background: rgba(199, 109, 74, .1); }
.navbar .nav-icon-link:hover { color: var(--terracotta); }
.nav-icon-link svg, .notif-bell-btn svg, .header-username svg { width: 22px; height: 22px; flex-shrink: 0; }
.notif-bell-wrap { margin-right: 0; }
.header-username { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 999px; }
.navbar a.btn-login { padding: 9px 22px; border-radius: 999px; background: var(--terracotta); color: #fff; font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 600; transition: background-color .2s ease; }
.navbar a.btn-login:hover { background: var(--sage); color: #fff; }

@media (max-width: 1100px) {
  .nav-links { gap: 28px; }
}

@media (max-width: 900px) {
  .nav-links { gap: 20px; }
  .header-username-text { display: none; }
}

@media (max-width: 700px) {
  .navbar { display: flex; justify-content: space-between; gap: 10px; }
  .nav-links { gap: 0; }
  .header-account { margin-left: auto; }
  .header-username { display: inline-flex; }
  .header-username-text { display: none; }
}

@media (max-width: 560px) {
  .header-account { display: flex; }
}

/* === Homepage responsive (hp & desktop) === */
@media (max-width: 700px) {
  .hero { min-height: 0; padding: 48px 18px 60px; }
  .hero h1 { font-size: clamp(1.55rem, 7.4vw, 2.1rem); margin-bottom: 10px; }
  .hero p { margin-bottom: 4px; font-size: .88rem; line-height: 1.5; }
  .search-bar { width: 100%; margin-top: 18px; padding: 4px; }
  .search-bar input[type="text"] { padding: 10px 14px; font-size: 14px; }
  .search-bar button { flex-shrink: 0; padding: 11px 18px; font-size: .88rem; }
  .hero-dots { bottom: 18px; }

  .section { padding-right: 16px; padding-left: 16px; }
  .map-hint { margin-bottom: 4px; }
  .map-hint-mobile { display: block; margin: 0 0 14px; color: #8a8179; font-size: .78rem; text-align: center; }
  .map-placeholder {
    display: block;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .map-placeholder::-webkit-scrollbar { display: none; }
  .home-map-svg { width: 860px; max-width: none; min-height: 0; margin: 0; }

  .scroll-wrapper { width: auto; max-width: none; margin: 0 -16px; }
  .scroll-container { gap: 14px; padding-right: 16px; padding-left: 16px; scroll-padding-left: 16px; }
  .scroll-container > .card { flex-basis: 78vw; width: 78vw; max-width: 300px; }
  .scroll-container > .view-more-card { flex-basis: 78vw; width: 78vw; max-width: 300px; }
  .scroll-btn { display: none; }

  .guidance-bars { flex-direction: column; }
  .join-section { padding: 44px 20px; }
}