/* RumahRacun MY — warm orange + cream, mobile first */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #e36b1a;
  --orange-deep: #c24f0e;
  --orange-hover: #a6430c;
  --orange-brand: #fd9146;
  --orange-soft: #ffe4cc;
  --cream: #fbf4eb;
  --cream-2: #f3e6d5;
  --white: #fffdf9;
  --ink: #3e200e;
  --ink-soft: #7a4a2c;
  --line: #edd9c4;
  --shadow: 0 10px 28px rgba(62, 32, 14, 0.08);
  --shadow-hover: 0 14px 32px rgba(62, 32, 14, 0.14);
  --radius: 20px;
  --max: 720px;
  --pad: 20px;
  --font: "Plus Jakarta Sans", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans",
    sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 50% -80px, #ffd7b0 0%, transparent 70%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange-deep);
}

:focus-visible {
  outline: 3px solid var(--orange-brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(12px);
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 16px var(--pad) 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Language switch */

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

.lang-switch {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
  line-height: 1;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--orange-deep);
  color: #fff;
}

.lang-switch button:hover:not([aria-pressed="true"]) {
  background: var(--orange-soft);
  color: var(--ink);
}

/* Header / bio */

.profile {
  text-align: center;
  padding: 8px 0 28px;
}

.avatar-wrap {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--orange-brand), var(--orange));
  box-shadow: 0 8px 20px rgba(226, 107, 26, 0.28);
}

.avatar-wrap img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid var(--white);
  background: var(--orange-brand);
}

.profile h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tagline {
  margin: 0 auto 20px;
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-tiktok {
  background: var(--ink);
  color: #fff;
  min-width: 220px;
  box-shadow: 0 8px 18px rgba(62, 32, 14, 0.18);
}

.btn-tiktok:hover {
  background: #2a1509;
  color: #fff;
  transform: translateY(-1px);
}

.btn-shopee {
  background: var(--orange-deep);
  color: #fff;
  width: 100%;
  box-shadow: 0 8px 16px rgba(194, 79, 14, 0.25);
}

.btn-shopee:hover {
  background: var(--orange-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

/* Section + product grid */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
  }

  .card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--orange-deep);
  border: 1px solid var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(62, 32, 14, 0.08);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

/* Footer */

.site-footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.copyright {
  margin-top: 16px !important;
  color: #a06a48;
  font-weight: 600;
}

/* Empty / noscript */

.grid-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 28px 12px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

noscript .note {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--orange-soft);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink);
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --pad: 28px;
  }

  .avatar-wrap img {
    width: 128px;
    height: 128px;
  }

  .profile h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Only one product for now: keep it a comfortable width, not stretched */
  .grid:has(.card:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

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

  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

::selection {
  background: var(--orange-soft);
  color: var(--ink);
}
