:root {
  --ink: #15110d;
  --muted: #756a5f;
  --paper: #f6f0e7;
  --panel: #fffaf2;
  --line: #dfd2c1;
  --clay: #9f5c3f;
  --sage: #596f5d;
  --gold: #d7b98c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 60px);
  background: rgba(246, 240, 231, 0.9);
  border-bottom: 1px solid rgba(21, 17, 13, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  line-height: 0.9;
}

.brand span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--panel);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.nav-action strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 99px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: 820px;
  padding: 70px clamp(18px, 4vw, 60px) 96px;
}

.hero-copy h1,
.campaign-copy h2,
.section-heading h2,
.checkout-copy h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.9;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(66px, 11vw, 138px);
}

.hero-copy p:not(.eyebrow),
.campaign-copy > p,
.checkout-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.product-info button,
.checkout-form button,
.filters button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
}

.button.primary {
  color: var(--panel);
  background: var(--ink);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.6);
}

.hero-stage {
  position: relative;
  min-height: 680px;
}

.hero-image {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(21, 17, 13, 0.16);
}

.hero-image.main {
  inset: 0 0 auto auto;
  width: 78%;
  height: 640px;
}

.hero-image.floating {
  left: 0;
  bottom: 16px;
  width: 48%;
  height: 360px;
  border: 12px solid var(--paper);
}

.drop-card {
  position: absolute;
  right: 32px;
  bottom: 42px;
  width: min(260px, 70%);
  padding: 22px;
  color: var(--panel);
  background: var(--sage);
}

.drop-card span,
.drop-card p {
  color: rgba(255, 250, 242, 0.72);
}

.drop-card strong {
  display: block;
  margin: 8px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}

.campaign,
.checkout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: 96px clamp(18px, 4vw, 60px);
}

.campaign {
  color: var(--panel);
  background: var(--ink);
}

.campaign-media img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
}

.campaign-copy h2,
.checkout-copy h2 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 86px);
}

.campaign-copy > p {
  color: rgba(255, 250, 242, 0.72);
}

.campaign-points {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid rgba(255, 250, 242, 0.14);
}

.campaign-points div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 250, 242, 0.06);
}

.campaign-points strong {
  color: var(--gold);
}

.catalog {
  padding: 96px clamp(18px, 4vw, 60px);
}

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

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(44px, 6vw, 78px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}

.filters button.active {
  color: var(--panel);
  background: var(--clay);
  border-color: var(--clay);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(21, 17, 13, 0.08);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card.is-hidden {
  display: none;
}

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

.product-image {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(159, 92, 63, 0.18), rgba(89, 111, 93, 0.16)),
    #eadfcc;
}

.product-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  background: rgba(255, 250, 242, 0.86);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.product-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 250, 242, 0.34);
}

.garment {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 28px 22px rgba(21, 17, 13, 0.22));
}

.outer-shape {
  width: 220px;
  height: 300px;
  background:
    radial-gradient(circle at 35% 28%, #f5d08b 0 8px, transparent 9px),
    radial-gradient(circle at 62% 48%, #f5d08b 0 7px, transparent 8px),
    radial-gradient(circle at 46% 68%, #f5d08b 0 6px, transparent 7px),
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.32) 49% 51%, transparent 52%),
    #6e3f28;
  clip-path: polygon(22% 4%, 42% 0, 50% 12%, 58% 0, 78% 4%, 96% 42%, 78% 50%, 74% 100%, 26% 100%, 22% 50%, 4% 42%);
}

.top-shape {
  width: 230px;
  height: 150px;
  margin-bottom: -8px;
  background: #b85d38;
  clip-path: polygon(18% 0, 40% 0, 50% 16%, 60% 0, 82% 0, 100% 54%, 82% 70%, 74% 100%, 26% 100%, 18% 70%, 0 54%);
}

.skirt-shape {
  width: 190px;
  height: 190px;
  background: #7f352c;
  clip-path: polygon(22% 0, 78% 0, 96% 100%, 4% 100%);
}

.shirt-shape {
  width: 230px;
  height: 290px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 10px, transparent 10px 22px),
    #182f55;
  clip-path: polygon(18% 0, 40% 0, 50% 14%, 60% 0, 82% 0, 100% 48%, 82% 58%, 76% 100%, 24% 100%, 18% 58%, 0 48%);
}

.tunic-shape {
  width: 230px;
  height: 315px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 3px, transparent 3px 17px),
    #8b8a7a;
  clip-path: polygon(24% 0, 42% 0, 50% 12%, 58% 0, 76% 0, 92% 42%, 78% 52%, 88% 100%, 12% 100%, 22% 52%, 8% 42%);
}

.visual-batik {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 208, 139, 0.35), transparent 22%),
    linear-gradient(135deg, #8a4d2f, #2e1b13);
}

.visual-tenun {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 4px, transparent 4px 16px),
    linear-gradient(135deg, #c97846, #4f261f);
}

.visual-parang {
  background:
    repeating-linear-gradient(135deg, rgba(215, 185, 140, 0.18) 0 14px, transparent 14px 30px),
    linear-gradient(135deg, #213b62, #090f1c);
}

.visual-lurik {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 5px, transparent 5px 18px),
    linear-gradient(135deg, #a8a18e, #4e5147);
}

.motif,
.tenun-band,
.parang-line,
.lurik-stripe {
  position: absolute;
  z-index: 3;
  display: block;
}

.motif {
  width: 70px;
  height: 70px;
  border: 8px double rgba(245, 208, 139, 0.82);
  border-radius: 50%;
}

.motif-one { top: 26%; left: 24%; }
.motif-two { top: 45%; right: 24%; transform: scale(0.78); }
.motif-three { bottom: 24%; left: 38%; transform: scale(0.62); }

.tenun-band {
  left: 28%;
  right: 28%;
  height: 20px;
  background: repeating-linear-gradient(90deg, #f2c46f 0 10px, #60251e 10px 20px, #f6efe5 20px 28px);
}

.band-one { top: 42%; }
.band-two { bottom: 24%; }

.parang-line {
  width: 220px;
  height: 24px;
  border-radius: 99px;
  background: rgba(215, 185, 140, 0.82);
  transform: rotate(-34deg);
}

.line-one { top: 31%; left: 22%; }
.line-two { top: 48%; left: 16%; }
.line-three { top: 65%; left: 26%; }

.lurik-stripe {
  top: 23%;
  bottom: 21%;
  width: 5px;
  background: rgba(255, 250, 242, 0.72);
}

.stripe-one { left: 42%; }
.stripe-two { left: 50%; }
.stripe-three { left: 58%; }

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.product-info small {
  display: block;
  min-height: 66px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.product-info div {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-info button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--panel);
  background: var(--ink);
}

.checkout {
  align-items: start;
  background: #eadfcc;
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

.cart-summary,
.checkout-form {
  padding: 24px;
  background: var(--panel);
  border: 1px solid rgba(21, 17, 13, 0.1);
}

.cart-head,
.cart-item,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-head {
  margin-bottom: 18px;
}

.cart-head h3 {
  margin: 0;
  font-size: 24px;
}

.cart-head span,
.cart-item span,
.total-row.muted,
.checkout-form label {
  color: var(--muted);
}

.cart-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-item img {
  width: 68px;
  height: 82px;
  object-fit: cover;
}

.cart-item div {
  flex: 1;
  display: grid;
  gap: 5px;
}

.cart-item p {
  margin: 0;
  font-weight: 800;
}

.cart-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fffdf8;
  font-weight: 800;
}

.cart-remove {
  justify-self: start;
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--clay);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.empty-cart {
  margin: 0;
  padding: 20px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

.total-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-row.grand {
  color: var(--clay);
  font-size: 22px;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 14px;
  color: var(--ink);
  font: inherit;
}

.checkout-form button {
  min-height: 50px;
  color: var(--panel);
  background: var(--sage);
}

.checkout-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .campaign,
  .checkout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-image.main,
  .hero-image.floating,
  .drop-card {
    position: static;
    width: 100%;
  }

  .hero-image.main,
  .hero-image.floating {
    height: 380px;
    min-height: 0;
    margin-bottom: 14px;
    border: 0;
  }

  .campaign-media img {
    min-height: 360px;
  }

  .section-heading,
  .cart-item {
    align-items: start;
    flex-direction: column;
  }

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