:root {
  --bg: #fff9f2;
  --bg-soft: #ffe9d6;
  --surface: #ffffff;
  --ink: #1f1c1a;
  --ink-soft: #655d57;
  --primary: #ff6f3c;
  --primary-2: #ff9f1c;
  --stroke: #f1d8c4;
  --success: #1ea672;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(255, 111, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffd6ba 0, transparent 28%),
    radial-gradient(circle at 85% 20%, #ffe8ac 0, transparent 24%),
    linear-gradient(180deg, #fff7ef 0%, #fff9f2 50%, #fff4e7 100%);
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#000 0.4px, transparent 0.4px);
  background-size: 4px 4px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 249, 242, 0.86);
  border-bottom: 1px solid rgba(241, 216, 196, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.logo {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  text-decoration: none;
  color: #5f5750;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  padding: 2px 0;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-btn {
  border: 0;
  background: transparent;
  color: #5f5750;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 2px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

.nav-drop-btn:hover,
.nav-item:focus-within .nav-drop-btn {
  color: var(--ink);
}

.nav-drop-btn::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 24px rgba(77, 47, 26, 0.16);
  display: none;
}

.nav-drop-menu a {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  padding: 10px 11px;
  border-radius: 8px;
}

.nav-drop-menu a:hover {
  background: #fff1e2;
}

.nav-item:hover .nav-drop-menu,
.nav-item:focus-within .nav-drop-menu {
  display: block;
}

/* Hidden on desktop; revealed in mobile menu via media query */
.nav-cart-mobile {
  display: none;
}

.nav-ico {
  width: 13px;
  height: 13px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.78;
  flex: 0 0 13px;
  transform: translateY(-1px);
}

.nav-ico-grid::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 6px 0 currentColor, 0 6px currentColor, 6px 6px currentColor;
}

.nav-ico-bag::before {
  content: "";
  width: 10px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
  position: absolute;
  bottom: 1px;
}

.nav-ico-bag::after {
  content: "";
  width: 6px;
  height: 4px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
}

.nav-ico-cart::before {
  content: "";
  width: 9px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-left: 0;
  border-radius: 1px;
  position: absolute;
  right: 1px;
  top: 2px;
}

.nav-ico-cart::after {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  left: 4px;
  bottom: 1px;
  box-shadow: 6px 0 currentColor;
}

.nav-ico-order::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-radius: 2px;
  position: absolute;
}

.nav-ico-order::after {
  content: "";
  width: 6px;
  height: 1.8px;
  background: currentColor;
  position: absolute;
  box-shadow: 0 3px currentColor;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffe8d8;
  color: #96512f;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0 5px;
  margin-left: 4px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #1f1c1a;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  box-shadow: 0 14px 24px rgba(31, 28, 26, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  padding: 54px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe3cf;
  color: #8a3f1f;
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn:hover {
  filter: brightness(0.98);
}

.btn-outline {
  background: transparent;
  color: #9e4d29;
  border: 1px solid #efbc9f;
  box-shadow: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.92rem;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.hero-meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
}

.hero-meta strong {
  display: block;
  font-size: 1.15rem;
}

.hero-meta span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.hero-card {
  background: linear-gradient(180deg, #fff 0%, #fff2e7 100%);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(176, 100, 54, 0.14);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0ceb4;
}

.hero-card li:last-child {
  border-bottom: 0;
}

.hero-card li span {
  color: var(--ink-soft);
}

.hero-card li strong {
  color: #933f1a;
}

.section {
  padding: 36px 0;
}

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

.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.text-link {
  text-decoration: none;
  color: #aa4f25;
  font-weight: 700;
}

.product-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.page-tools {
  margin-top: 6px;
}

.product-tools input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-family: inherit;
}

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

.filter-chip {
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink-soft);
  padding: 7px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.active {
  background: #ffe3cf;
  color: #8a3f1f;
}

.cat-grid,
.product-grid,
.steps {
  display: grid;
  gap: 14px;
}

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

.cat-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}

.cat-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

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

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

.product-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(187, 101, 58, 0.16);
}

/* Colored thumbnail area per category */
.product-thumb {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
.product-thumb.tag-robux    { background: linear-gradient(135deg, #ffb347 0%, #e8701f 100%); }
.product-thumb.tag-gamepass { background: linear-gradient(135deg, #60c5ff 0%, #1880d8 100%); }
.product-thumb.tag-item     { background: linear-gradient(135deg, #c97cff 0%, #8a2be2 100%); }
.product-thumb.tag-joki     { background: linear-gradient(135deg, #5de085 0%, #17a64a 100%); }
.product-thumb.tag-default  { background: linear-gradient(135deg, #ffd580 0%, #e8921f 100%); }

/* Card body */
.product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card .tag {
  display: inline-flex;
  width: fit-content;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1e2;
  color: #9b4a22;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.3;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.4;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.price {
  color: #933f1a;
  font-size: 1.08rem;
  font-weight: 800;
}

.stock {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Stats bar above product grid */
.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
}

.product-stat {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-right: 1px solid var(--stroke);
}

.product-stat:last-child {
  border-right: none;
}

.product-stat-label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-stat strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

/* ── Robux hero section ── */
.rbx-hero {
  background: linear-gradient(135deg, #fff8ee 0%, #ffecd4 100%);
  border: 1px solid #f5cfad;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}

.rbx-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.rbx-badge {
  display: inline-flex;
  background: linear-gradient(135deg, #ffb347, #e8701f);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.rbx-hero-text h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-family: "Sora", sans-serif;
}

.rbx-hero-text > p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.rbx-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.rbx-steps li {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.rbx-stats-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rbx-stat-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f0d0b0;
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rbx-stat-item strong {
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  line-height: 1.2;
}

.rbx-stat-item span {
  font-size: 0.72rem;
  color: #7a5535;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .rbx-hero-inner {
    grid-template-columns: 1fr;
  }

  .rbx-stats-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .rbx-hero {
    padding: 16px;
  }

  .rbx-stats-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .rbx-stat-item {
    padding: 10px 10px;
  }
}

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

.steps article {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  padding: 16px;
}

.steps span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #ffe3cf;
  color: #8b3f1c;
  font-weight: 800;
}

.steps h3 {
  margin: 10px 0 8px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  color: var(--ink-soft);
}

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

.checkout-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
}

.checkout-card h1,
.checkout-card h2 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

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

.compact-form {
  margin-top: 12px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  background: #fff;
}

/* ── Redesigned checkout card ── */
.co-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.co-card-title {
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.co-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 5px;
}

.co-field {
  display: flex;
  flex-direction: column;
}

.co-input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 0.97rem;
  background: #fafafa;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.co-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.co-input[readonly] {
  background: #f5f0eb;
  color: var(--ink-soft);
  cursor: default;
}

.co-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a07050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}

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

/* Avatar preview */
.co-avatar-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: #fff8f2;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
}

.co-avatar-preview img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.co-avatar-preview span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Summary sidebar */
.co-summary {
  align-self: start;
}

.co-coupon-row {
  display: flex;
  gap: 8px;
}

.co-coupon-input {
  flex: 1;
}

.co-coupon-btn {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border: none;
}

.co-coupon-btn:hover {
  background: #3a2a1a;
}

.co-summary-rows {
  display: grid;
  gap: 8px;
  padding: 4px 0;
}

.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.co-summary-row strong {
  color: var(--ink);
  font-weight: 700;
}

.co-summary-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
  font-size: 1rem;
  font-weight: 700;
}

.co-summary-total span {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.co-summary-total strong {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.co-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 4px;
}

.co-cart-btn {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.co-cart-btn:hover {
  background: #fff1e2;
}

.co-buy-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ── Inline checkout panel (product page) ── */
.inline-co {
  margin-top: 28px;
  scroll-margin-top: 80px;
}

.inline-co-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: start;
}

.inline-co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.inline-co-head .co-card-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.inline-co-close {
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inline-co-close:hover {
  background: #fee8d8;
  color: var(--ink);
  border-color: var(--primary);
}

/* Selected product card highlight */
.product-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(208, 110, 40, 0.25);
}

@media (max-width: 700px) {
  .inline-co-inner {
    grid-template-columns: 1fr;
  }
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.88rem;
}

.compact-head {
  margin-top: 10px;
  margin-bottom: 8px;
}

.payment-result {
  margin-top: 14px;
  border: 1px solid var(--stroke);
  background: #fff6ef;
  border-radius: 12px;
  padding: 12px;
}

.payment-result h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

.payment-result p {
  margin: 0 0 8px;
}

.invoice-list {
  margin-top: 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.invoice-list p {
  margin: 0;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.cart-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  font-weight: 700;
}

.cart-item-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  overflow: hidden;
}

.qty-box button {
  border: 0;
  background: #fff;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 800;
}

.qty-box span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
}

.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: lowercase;
}

.status-pending {
  color: #8c5a14;
  background: #ffe7b8;
}

.status-success {
  color: #0f6a47;
  background: #c6f3e2;
}

.status-canceled,
.status-expired,
.status-failed {
  color: #8d1f1f;
  background: #ffd9d9;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--stroke);
  background: #fff2e4;
}

.footer-wrap {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

.footer-wrap h3,
.footer-wrap h4 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
}

.footer-wrap p {
  margin: 0;
  color: var(--ink-soft);
}

.footer-wrap a {
  display: block;
  color: #8f4421;
  text-decoration: none;
  margin-bottom: 6px;
}

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hamburger toggle button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .hero-grid,
  .cat-grid,
  .steps,
  .footer-wrap,
  .checkout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-toggle {
    display: flex;
  }

  /* Hide header Keranjang button — shown inside mobile menu instead */
  .nav-cart-header {
    display: none;
  }

  /* Show Keranjang link inside mobile menu */
  .nav-cart-mobile {
    display: flex !important;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 249, 242, 0.98);
    border-bottom: 1px solid rgba(241, 216, 196, 0.9);
    box-shadow: 0 10px 28px rgba(77, 47, 26, 0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s, padding 0.32s;
    display: flex;
  }

  .main-nav.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px 20px 14px;
  }

  .main-nav > a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(241, 216, 196, 0.6);
    width: 100%;
  }

  .main-nav > a:last-child {
    border-bottom: none;
  }

  /* Inline dropdown on mobile */
  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(241, 216, 196, 0.6);
  }

  .nav-drop-btn {
    width: 100%;
    padding: 11px 0;
    justify-content: flex-start;
  }

  .nav-drop-menu {
    position: static;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: #fff1e2;
    padding: 4px 8px;
    margin-bottom: 6px;
    display: none;
  }

  .nav-item.open .nav-drop-menu {
    display: block;
  }

  /* Disable hover/focus-within dropdown triggers on mobile */
  .nav-item:hover .nav-drop-menu,
  .nav-item:focus-within .nav-drop-menu {
    display: none;
  }

  .nav-item.open .nav-drop-menu {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-grid,
  .cat-grid,
  .product-grid,
  .steps,
  .footer-wrap,
  .hero-meta,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  /* 2-column product grid on mobile */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-stats {
    flex-wrap: wrap;
  }

  .product-stat {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--stroke);
    padding: 10px 14px;
  }

  .product-stat:nth-child(n+3) {
    border-bottom: none;
  }

  .product-thumb {
    height: 72px;
    font-size: 1.8rem;
  }

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

  .hero {
    padding-top: 28px;
  }

  .nav-wrap {
    padding: 12px 0;
  }

  .section {
    padding: 28px 0;
  }
}
