:root {
  --forest: #1e352c;
  --forest-deep: #13231d;
  --charcoal: #1c1f1d;
  --charcoal-soft: #262a27;
  --sand: #c6b089;
  --sand-light: #dfd0b3;
  --offwhite: #f4f1ea;
  --paper: #ece8de;
  --ink: #1b1e1c;
  --muted: #666b65;
  --line: rgba(27, 30, 28, 0.13);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Atribut hidden harus selalu menang atas display: flex/grid dari kelas lain
   (perbaikan bug: form checkout & label ongkir tidak tersembunyi) */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

.cart-panel :focus-visible,
.demo-dialog :focus-visible,
.site-header :focus-visible,
.shop-section :focus-visible {
  outline-color: var(--forest);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--forest-deep);
  color: var(--sand);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
}

/* ANNOUNCEMENT BAR */
.announcement {
  min-height: 34px;
  background: var(--forest-deep);
  color: var(--offwhite);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.announcement span {
  color: var(--sand);
}

/* HEADER */
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5vw;
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-header {
  background: var(--forest-deep);
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(198, 176, 137, 0.28);
}

.brand-header .brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.brand-footer .brand-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 500;
}

.site-header nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-wish,
.header-cart {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-wish:hover,
.header-cart:hover {
  border-color: var(--forest);
}

.header-cart b,
.header-wish b {
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

.header-wish b {
  background: var(--charcoal-soft);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 18px;
}

/* HERO */
.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 740px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 26, 22, 0.86) 0%, rgba(16, 26, 22, 0.48) 52%, rgba(16, 26, 22, 0.18) 100%),
    linear-gradient(180deg, rgba(16, 26, 22, 0.2) 0%, rgba(16, 26, 22, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 72px 5vw 86px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}

.hero .eyebrow {
  color: var(--sand);
}

.hero h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 7.6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
}

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

.hero-copy {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.88);
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-sand {
  background: var(--sand);
  color: var(--forest-deep);
}

.button-sand:hover:not(:disabled) {
  background: var(--sand-light);
}

.button-dark {
  background: var(--forest);
  color: #fff;
}

.button-dark:hover:not(:disabled) {
  background: var(--forest-deep);
}

.text-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 6px;
}

.hero-meta {
  position: absolute;
  right: 5vw;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 234, 0.72);
}

/* CATEGORY EDITORIAL GRID */
.category-band {
  padding: 86px 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.category-intro {
  max-width: 560px;
  margin-bottom: 36px;
}

.dark-label {
  color: var(--forest);
}

h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 12px 0 0;
}

.category-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 14px 0 0;
}

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

.cat-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
  text-align: left;
}

.cat-tile-wide {
  grid-column: span 4;
  aspect-ratio: 21 / 6;
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.cat-tile:hover img {
  transform: scale(1.05);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.08) 25%, rgba(16, 24, 20, 0.84) 100%);
  color: #fff;
}

.cat-overlay span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--sand);
  font-weight: 700;
}

.cat-overlay strong {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-top: 4px;
}

/* SHOP SECTION */
.shop-section {
  padding: 92px 5vw;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-heading h2 span,
.story-copy h2 span {
  color: #8b744f;
}

.section-note {
  max-width: 340px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
}

.shop-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 220px;
}

.search-box:focus-within {
  border-color: var(--forest);
}

.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.filter {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.filter:hover,
.filter.active {
  background: var(--forest);
  color: #fff;
}

.filter-wish span {
  background: rgba(0, 0, 0, 0.1);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  margin-left: 4px;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.sort-label select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 11px;
  color: var(--ink);
}

.results-count {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  border-color: var(--forest);
  transform: translateY(-3px);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dcd7cb;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 54px);
}

.product-label {
  background: var(--forest-deep);
  color: var(--sand);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: var(--radius);
}

.product-label-new {
  background: var(--sand);
  color: var(--forest-deep);
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 26, 23, 0.72);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.wish-btn.wished {
  background: var(--sand);
  color: var(--forest-deep);
  border-color: var(--sand);
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-cat-line {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.product-title-btn {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.product-title-btn:hover {
  color: var(--forest);
}

.product-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-price {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
}

.product-actions-row {
  display: flex;
  gap: 6px;
}

.btn-detail,
.btn-add {
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
}

.btn-detail {
  border: 1px solid var(--line);
  background: var(--offwhite);
  color: var(--ink);
}

.btn-detail:hover {
  border-color: var(--ink);
}

.btn-add {
  border: 0;
  background: var(--forest);
  color: #fff;
}

.btn-add:hover {
  background: var(--forest-deep);
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 24px;
}

.empty-state[hidden] {
  display: none;
}

/* STORY SECTION */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--forest-deep);
  color: var(--offwhite);
}

.story-photo {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
}

.story-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(16, 25, 21, 0.85);
  border: 1px solid rgba(198, 176, 137, 0.35);
  color: var(--sand);
  padding: 8px 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.story-copy {
  padding: 72px 7vw;
  align-self: center;
}

.story-copy .eyebrow {
  color: var(--sand);
}

.story-copy h2 span {
  color: var(--sand);
}

.story-copy > p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(244, 241, 234, 0.8);
  font-size: 13px;
  line-height: 1.85;
  margin: 22px 0 28px;
}

.story-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 28px;
}

.story-specs strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sand);
  margin-bottom: 5px;
}

.story-specs span {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.72);
}

.story-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 6px;
}

/* NEWSLETTER */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 76px 5vw;
  background: var(--charcoal);
  color: var(--offwhite);
}

.newsletter .eyebrow {
  color: var(--sand);
}

.newsletter p {
  color: rgba(244, 241, 234, 0.72);
  font-size: 12px;
  line-height: 1.75;
}

.newsletter form label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

.newsletter-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-row input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  padding: 12px 14px;
  outline: 0;
}

.newsletter-row input:focus {
  border-color: var(--sand);
}

.form-note {
  font-size: 10px !important;
  margin-top: 8px;
}

/* FOOTER */
.site-footer {
  background: #121513;
  color: rgba(244, 241, 234, 0.82);
  padding: 44px 5vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-footer .footer-brand p {
  font-size: 11px;
  color: rgba(244, 241, 234, 0.6);
  margin: 10px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11px;
}

.site-footer nav a:hover {
  color: var(--sand);
}

.site-footer small {
  font-size: 10px;
  color: rgba(244, 241, 234, 0.55);
}

/* CART DOCK */
.cart-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
}

.cart-dock > button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--forest);
  color: #fff;
  border: 1px solid rgba(198, 176, 137, 0.35);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cart-dock > button b {
  background: var(--sand);
  color: var(--forest-deep);
  border-radius: 999px;
  padding: 3px 7px;
}

.cart-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(390px, calc(100vw - 24px));
  max-height: 76vh;
  overflow-y: auto;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.cart-panel[hidden] {
  display: none;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 22px;
  margin-top: 4px;
}

.cart-head button,
.modal-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}

.cart-items {
  max-height: 40vh;
  overflow-y: auto;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.cart-row strong {
  display: block;
}

.cart-row .row-variant {
  display: inline-block;
  font-size: 10px;
  color: var(--forest);
  font-weight: 700;
  margin-top: 2px;
}

.cart-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-control button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.remove-item {
  border: 0;
  background: transparent;
  color: #963b2f;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.cart-bottom {
  padding-top: 14px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cart-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 8px 0 14px;
}

.cart-bottom .button {
  width: 100%;
}

/* TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--forest-deep);
  color: #fff;
  border: 1px solid rgba(198, 176, 137, 0.35);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

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

/* MODALS */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(14, 21, 17, 0.72);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}

.demo-modal[hidden] {
  display: none;
}

.demo-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.product-dialog {
  max-width: 720px;
}

.checkout-dialog {
  max-width: 560px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.product-modal-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-modal-info h2 {
  font-size: 24px;
  margin-top: 6px;
}

.detail-price {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin: 10px 0 12px;
}

.detail-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px;
}

.detail-spec {
  font-size: 11px;
  color: var(--ink);
  background: var(--paper);
  padding: 9px 12px;
  border-left: 2px solid var(--forest);
  margin: 0 0 16px;
}

.variant-group {
  margin-bottom: 12px;
}

.variant-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.variant-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
}

.size-guide-box {
  font-size: 11px;
  background: var(--paper);
  padding: 8px 11px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  color: var(--muted);
}

.size-guide-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.modal-actions .button {
  width: 100%;
}

/* CHECKOUT FORM & RECEIPT */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.checkout-items-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 11px;
  max-height: 130px;
  overflow-y: auto;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.checkout-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--forest);
}

.checkout-submit {
  width: 100%;
  margin-top: 4px;
}

.order-receipt {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.order-receipt h3 {
  margin: 4px 0 6px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 18px;
}

.receipt-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}

.receipt-details {
  font-size: 12px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 14px;
}

#receipt-done {
  width: 100%;
}

/* RESPONSIVE */
/* =========================================================
   ELEMEN TAMBAHAN & RESPONSIVE MOBILE OPTIMAL
   ========================================================= */

body.modal-open {
  overflow: hidden;
}

.img-missing {
  display: none !important;
}

/* Tombol Order di Header */
.header-orders {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.2s ease;
}

.header-orders:hover {
  border-color: var(--forest);
}

.header-orders b {
  background: var(--forest-deep);
  color: var(--sand);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Meta & Tag Stok Produk */
.product-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.stock-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius);
  background: rgba(30, 53, 44, 0.1);
  color: var(--forest);
  white-space: nowrap;
}

.stock-tag.limited {
  background: #8b3a2b;
  color: #fff;
}

/* Tombol Beli Langsung */
.btn-buy-sm {
  border: 0;
  background: var(--sand);
  color: var(--forest-deep);
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
}

.btn-buy-sm:hover {
  background: var(--sand-light);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Kartu Riwayat Pesanan & Info */
.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.order-status-tag {
  font-size: 9px;
  background: var(--forest);
  color: var(--sand);
  padding: 3px 8px;
  border-radius: var(--radius);
  letter-spacing: 0.1em;
}

.info-block {
  margin-top: 14px;
  padding: 12px;
  background: var(--paper);
  border-left: 3px solid var(--forest);
  font-size: 12px;
  line-height: 1.6;
}

.info-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--forest);
}

/* TABLET (Max 1024px) */
@media (max-width: 1024px) {
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-tile-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 7;
  }

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

  .story-photo {
    min-height: 400px;
  }
}

/* MOBILE LANDSCAPE & TABLET KECIL (Max 760px) */
@media (max-width: 760px) {
  /* Mencegah Safari iOS melakukan auto-zoom saat mengetik di form/pencarian */
  input,
  select,
  textarea,
  .search-box input,
  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea,
  .newsletter-row input {
    font-size: 16px !important;
  }

  /* Tombol Hamburger di Paling Kanan dengan Transisi Halus */
  .menu-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 18px;
    color: var(--ink);
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .site-header {
    padding: 0 4vw;
    gap: 10px;
  }

  .brand-header .brand-logo-img {
    height: 36px;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--forest);
    color: var(--sand);
    border-color: var(--forest);
    transform: rotate(90deg);
  }

  /* Ringkaskan tombol header agar muat rapi dalam 1 baris */
  .header-orders,
  .header-wish,
  .header-cart {
    padding: 7px 9px;
    font-size: 9px;
    gap: 5px;
    letter-spacing: 0.06em;
  }

  /* Sembunyikan teks "FAVORIT" di HP tapi tetap tampilkan ikon hati & angkanya */
  .header-wish {
    font-size: 0;
  }
  .header-wish::before {
    content: '♥';
    font-size: 12px;
    color: var(--forest);
  }
  .header-wish b {
    font-size: 9px;
  }

  /* Dropdown Navigasi Mobile */
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 35;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 4vw 16px;
    background: var(--offwhite);
    border-bottom: 2px solid var(--forest);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding: 12px 4px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 48px 4vw 68px;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 22px;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .hero-meta {
    right: 4vw;
    bottom: 18px;
    font-size: 8px;
  }

  /* Spacing Section */
  .category-band,
  .shop-section,
  .newsletter {
    padding: 56px 4vw;
  }

  .story-copy {
    padding: 48px 4vw;
  }

  .section-heading,
  .newsletter,
  .site-footer,
  .product-modal-grid,
  .field-row,
  .story-specs {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 24px;
  }

  /* Filter & Pencarian Mudah Digeser (Horizontal Swipe) */
  .shop-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-box {
    width: 100%;
  }

  .filters {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .sort-label {
    justify-content: space-between;
  }

  .sort-label select {
    flex: 1;
    max-width: 200px;
  }

  .newsletter {
    gap: 24px;
  }

  /* Footer aman dari tombol keranjang melayang */
  .site-footer {
    padding: 36px 4vw 92px;
    gap: 20px;
  }

  /* Cart Dock Mobile */
  .cart-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cart-dock > button {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px;
  }

  .cart-panel {
    width: 100%;
    bottom: 54px;
    max-height: 72vh;
  }
}

/* SMARTPHONE PORTRAIT (Max 520px) */
@media (max-width: 520px) {
  /* Grid Kategori 2 Kolom Rapi */
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cat-tile {
    aspect-ratio: 1 / 1;
  }

  .cat-tile-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 7;
  }

  .cat-overlay {
    padding: 12px;
  }

  .cat-overlay strong {
    font-size: 13px;
  }

  /* Grid Produk 2 Kolom Nyaman */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .product-body {
    padding: 10px;
    gap: 6px;
  }

  .product-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .product-cat-line {
    font-size: 8px;
    line-height: 1.3;
  }

  .product-title-btn {
    font-size: 13px;
    line-height: 1.3;
  }

  /* Batasi deskripsi maksimal 2 baris di HP agar tinggi kartu seragam */
    .product-desc {
    font-size: 10.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .product-price {
    font-size: 13px;
  }

  /* Sembunyikan tombol 'Detail' kecil (user bisa tap judul/gambar) agar '+ Tas' dan 'Beli' lega */
  .btn-detail {
    display: none;
  }

  .product-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-add,
  .btn-buy-sm {
    width: 100%;
    text-align: center;
    padding: 9px 4px;
    font-size: 9.5px;
  }

  /* Modal Lebih Lega di Layar HP */
  .demo-modal {
    padding: 10px;
  }

  .demo-dialog {
    padding: 20px 16px;
  }

  .newsletter-row {
    flex-direction: column;
  }

  .newsletter-row .button {
    width: 100%;
  }
}
/* =========================================================
   FITUR TAMBAHAN: CROSS-SELL KERANJANG, CLEAR SEARCH & CATATAN
   ========================================================= */

/* Tombol Clear Search (×) */
.search-box {
  position: relative;
}

.search-clear-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  display: none;
}

.search-clear-btn.visible {
  display: inline-block;
}

/* Rekomendasi Pelengkap di dalam Keranjang */
.cart-upsell {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.cart-upsell-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 8px;
}

.upsell-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upsell-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 11px;
}

.upsell-item strong {
  display: block;
  font-size: 11px;
  color: var(--ink);
}

.upsell-item span {
  color: var(--muted);
  font-size: 10px;
}

.upsell-add-btn {
  border: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.upsell-add-btn:hover {
  background: var(--forest);
  color: #fff;
}

.footer-info-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
}

.footer-info-btn:hover {
  color: var(--sand);
}

#receipt-wa {
  width: 100%;
  margin-bottom: 8px;
}

.btn-select-opt {
  background: var(--charcoal-soft);
  color: var(--sand-light);
  border: 1px solid rgba(198, 176, 137, 0.35);
}

.btn-select-opt:hover {
  background: var(--forest-deep);
  color: #fff;
}

@media (max-width: 400px) {
  .brand-header {
    padding: 5px 8px;
  }

  .brand-header .brand-logo-img {
    height: 30px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-orders,
  .header-wish,
  .header-cart {
    padding: 6px 7px;
    font-size: 8.5px;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* =========================================================
   PENGEMBANGAN: bagikan produk, terkait, aksi keranjang & pesanan
   ========================================================= */

.detail-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.share-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: var(--radius);
}

.share-btn:hover {
  border-color: var(--forest);
}

.related-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.related-title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-align: left;
}

.related-chip:hover {
  border-color: var(--forest);
}

.cart-clear {
  border: 0;
  background: transparent;
  color: #963b2f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0 0;
  text-decoration: underline;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-actions .button,
.receipt-actions .button {
  padding: 9px 12px;
  font-size: 10px;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-actions .button {
  width: 100%;
}

.receipt-pay-note {
  font-size: 11px;
  line-height: 1.6;
  background: var(--offwhite);
  border-left: 2px solid var(--sand);
  padding: 8px 10px;
  margin: 0 0 12px;
  color: var(--ink);
}

.orders-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.stock-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius);
  background: rgba(30, 53, 44, 0.1);
  color: var(--forest);
}

.detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 760px) {
  .toast {
    bottom: 84px;
    max-width: calc(100vw - 24px);
    text-align: center;
  }
}

/* Pesan galat checkout & aksi riwayat */
.checkout-error {
  margin: 0;
  padding: 9px 12px;
  background: rgba(150, 59, 47, 0.1);
  border-left: 3px solid #963b2f;
  color: #963b2f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.orders-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
