:root {
  --bg: #0b2f22;
  --bg2: #0f3d2e;
  --green: #157a52;
  --green2: #0f5f3f;
  --card: #0f3d2e;
  --text: #f4fff9;
  --muted: #4b6a5b;
  --accent: #ffcc00;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f3f7f4;
  color: #0b1b14;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--bg), var(--bg2));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand__mark,
.brand__mark2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .5px;
}

.brand__mark {
  color: #fff;
}

.brand__mark2 {
  color: #b7f0c7;
  margin-left: 4px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: .2s ease;
  box-shadow: none;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.menu-toggle:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 24px;
  min-width: 230px;
  background: #0e3b2d;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 1100;
}

.nav-dropdown.show {
  display: flex;
}

.nav-dropdown a {
  color: #fff;
  text-decoration: none;
  padding: 13px 18px;
  font-weight: 700;
  transition: .2s ease;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, .08);
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

.cartbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 600;
}

.badge {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3c300;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}

.userchip,
.link {
  color: #eef7f0;
  font-weight: 500;
}

.link:hover {
  opacity: .9;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}

.btn--sm {
  padding: 10px 16px;
  min-height: 44px;
}

.btn--ghost {
  background: #f3c300;
  color: #1a1a1a;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-light {
  color: #0b2f22;
  border-color: #dbe8e0;
  background: #fff;
  box-shadow: none;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 15% 15%, #1a8a60 0%, transparent 55%),
    radial-gradient(900px 500px at 80% 10%, #ffcc00 0%, transparent 40%),
    linear-gradient(120deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: calc(100vh - 88px);
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  padding-left: 18px;
  padding-right: 18px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.hero__grid > :first-child {
  padding-left: 8px;
}

.hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.02;
}

.stroke {
  color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .2);
}

.hero__promo {
  background: rgba(0, 0, 0, .24);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.pricebox {
  background: #6a3419;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.pricebox .old {
  color: #ffd0c2;
  text-decoration: line-through;
  font-weight: 800;
}

.pricebox .new {
  font-size: 52px;
  font-weight: 1000;
  color: #fff;
  margin-top: 6px;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ===== GLOBAL CONTENT ===== */
.section {
  padding: 42px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.note {
  color: #d7e4db;
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.8;
  text-align: justify;
}

.muted {
  color: #000000;
}

.plain {
  text-align: justify;
  line-height: 1.5;
}

.cardrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.statcard {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.statcard b {
  font-size: 19px;
  color: var(--accent);
}

/* ===== BOX / TABLE ===== */
.box {
  background: #fff;
  border: 1px solid #e6efe9;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  transition: .3s;
  overflow: hidden;
}

.box:hover {
  transform: translateY(-2px);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6efe9;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef5f0;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f6fbf8;
  white-space: nowrap;
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe8e0;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.alert {
  padding: 12px;
  border-radius: 14px;
  background: #fff6d6;
  border: 1px solid #ffe7a2;
}

.ok {
  background: #e7ffef;
  border-color: #bff2cf;
}

.danger {
  background: #ffe9ea;
  border-color: #ffb7bd;
}

/* ===== SITEPLAN / LOGO ===== */
.siteplan-img {
  width: 100%;
  max-width: 1100px;
  display: block;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: .3s;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-hero {
  height: 120px;
  margin-bottom: 30px;
  width: auto;
}

.siteplan-img:hover {
  transform: scale(1.02);
}

.logo-mitra-ternakpark {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  align-items: center;
}

.logo-mitra-img {
  width: 260px;
  height: auto;
  display: block;
}

.mitra-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

/* ===== STATUS ===== */
.status-pending,
.status-proses,
.status-selesai,
.status-paid,
.status-cancelled,
.status-failed,
.status-expired,
.status-refund,
.status-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.status-pending {
  background: #fff3cd;
  color: #7a5b00;
}

.status-proses {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-selesai,
.status-paid {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled,
.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-expired {
  background: #fef3c7;
  color: #92400e;
}

.status-refund {
  background: #ede9fe;
  color: #5b21b6;
}

.status-neutral {
  background: #e5e7eb;
  color: #374151;
}

/* ===== ORDER / ADMIN ===== */
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.divider {
  border: 0;
  border-top: 1px solid #eef5f0;
  margin: 14px 0;
}

.proof-image {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 1px solid #dfe8e2;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.admin-proof-wrap {
  width: 100%;
  min-height: 260px;
  padding: 18px;
  border: 1px solid #e5ece7;
  border-radius: 18px;
  background: #f8fbf9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== CHECKOUT ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.checkout-col {
  display: flex;
}

.checkout-card {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
  border: 1px solid #e8efe9;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.checkout-total {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 900;
  color: #0b2f22;
}

.rekening-box {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #e3ebe5;
  background: #f7faf8;
  border-radius: 16px;
}

.rekening-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b2f22;
  margin-bottom: 8px;
}

.rekening-list {
  line-height: 1.9;
  color: #18392b;
}

.rekening-note {
  margin-top: 6px;
  color: #5f6f66;
  font-size: 14px;
}

.qris-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e4ece6;
  border-radius: 18px;
  background: #f8fbf9;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}

.qris-title {
  font-size: 18px;
  font-weight: 800;
  color: #0b2f22;
  margin-bottom: 14px;
}

.qris-image {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid #dce8e0;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.qris-actions,
.checkout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.checkout-actions {
  justify-content: flex-start;
  margin-top: auto;
}

/* ===== PRODUCTS FINAL ===== */
.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.pcard {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
  border: 1px solid #e8efe9;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pcard:hover {
  transform: scale(1.02);
  transition: .3s;
}

.pimg-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.pimg {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
  background: #eef7f2;
}

.pimg-soldout {
  filter: grayscale(100%) brightness(0.55);
}

.soldout-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.soldout-stamp {
  transform: rotate(-15deg);
  border: 6px solid #ad2b06;
  color: #85280e;
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: 3px;
  padding: 12px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .85);
  text-transform: uppercase;
}

.pbody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pname {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  color: #0b2f22;
  min-height: 50px;
  margin-bottom: 8px;
}

.pmeta {
  color: #000000;
  line-height: 1.6;
  min-height: 32px;
}

.ptag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ef;
  color: #0b2f22;
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 14px;
}

.pcard--soldout .ptag {
  background: #ffe5e5;
  color: #b42318;
}

.pactions {
  display: grid;
  grid-template-columns: 94px 40px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  width: 100%;
}

.btn-detail-fixed {
  width: 96px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b2f22 !important;
  border-color: #dbe8e0 !important;
  background: #fff !important;
  box-shadow: none !important;
  white-space: nowrap;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
}

.btn-detail-fixed:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.share-btn-product {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #facc15;
  color: #0b2f22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: .2s ease;
  padding: 0;
}

.share-btn-product:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.share-btn-product svg {
  width: 16px;
  height: 16px;
  display: block;
}

.cart-form-fixed {
  width: 100%;
  margin: 0;
}

.btn-cart-fixed {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cart-fixed:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.btn-disabled,
.btn-disabled:disabled {
  background: #cfcfcf !important;
  color: #666 !important;
  border-color: #cfcfcf !important;
  cursor: not-allowed !important;
  opacity: 1;
}

/* ===== PRODUCT TOOLBAR ===== */
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.product-toolbar__left {
  flex: 1 1 320px;
}

.product-toolbar__right {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.product-filter-mini {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.product-filter-input-wrap {
  position: relative;
  width: 100%;
}

.product-filter-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.product-filter-mini-input {
  width: 100%;
  height: 52px;
  border: 1px solid #dfe7e2;
  border-radius: 999px;
  background: #fff;
  padding: 0 20px 0 48px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  box-sizing: border-box;
}

.product-filter-mini-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 52px;
  border: 1px solid #dfe7e2;
  border-radius: 999px;
  background-color: #fff;
  font-size: 16px;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  box-sizing: border-box;
  padding: 0 34px 0 20px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230b2f22' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.product-filter-mini-btn {
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: #f5c400;
  color: #0b2f22;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.product-filter-mini-input:focus,
.product-filter-mini-select:focus {
  border-color: #cfe2d8;
}

.product-toolbar__actions {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #0b2f22;
  background: #eef6f1;
  border: 1px solid #cfe2d8;
}

.product-cart-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* ===== KONTAK ANCHOR ===== */
.kontak-anchor {
  display: block;
  height: 1px;
  scroll-margin-top: 92px;
}

/* ===== TENTANG ===== */
.tentang-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 32px;
  align-items: start;
}

.tentang-row > div {
  min-width: 0;
}

.tentang-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding-top: 4px;
}

.tentang-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 560px;
}

.tentang-gallery__item {
  width: 100%;
  height: 300px;
  border-radius: 26px;
  overflow: hidden;
  background: #eef7f2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.tentang-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tentang-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
}

.tentang-gallery__item--middle {
  margin-top: 24px;
}

.countdown-box {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(135deg, #0b5d3b, #0f7a4d);
  color: #fff;
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 14px 30px rgba(11, 93, 59, .20);
  text-align: center;
}

.countdown-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-item {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 14px 10px;
}

.countdown-item span {
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-item small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  opacity: .95;
}

/* ===== ORDERS PAGE RESPONSIVE ===== */
.orders-page {
  overflow-x: hidden;
}

.orders-page .box {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.orders-page .orders-desktop {
  display: block;
  width: 100%;
}

.orders-page .orders-mobile {
  display: none;
}

.orders-page .orders-table-wrap {
  width: 100%;
  overflow: hidden;
}

.orders-page .orders-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.orders-page .orders-table th,
.orders-page .orders-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
}

.orders-page .orders-table th:nth-child(1),
.orders-page .orders-table td:nth-child(1) {
  width: 24%;
}

.orders-page .orders-table th:nth-child(2),
.orders-page .orders-table td:nth-child(2) {
  width: 14%;
}

.orders-page .orders-table th:nth-child(3),
.orders-page .orders-table td:nth-child(3) {
  width: 14%;
}

.orders-page .orders-table th:nth-child(4),
.orders-page .orders-table td:nth-child(4) {
  width: 16%;
}

.orders-page .orders-table th:nth-child(5),
.orders-page .orders-table td:nth-child(5) {
  width: 14%;
}

.orders-page .orders-table th:nth-child(6),
.orders-page .orders-table td:nth-child(6) {
  width: 18%;
}

.orders-page .order-card {
  background: #fff;
  border: 1px solid #e6efe9;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.orders-page .order-card:last-child {
  margin-bottom: 0;
}

.orders-page .order-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e6efe9;
}

.orders-page .order-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.orders-page .order-card__label {
  min-width: 90px;
  font-weight: 700;
  color: #0b2f22;
}

.orders-page .order-card__value {
  flex: 1;
  text-align: right;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(90deg, var(--bg), var(--bg2));
  color: var(--text);
  margin-top: 0;
  padding-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr .75fr .9fr;
  gap: 56px;
  padding: 58px 0 42px;
  align-items: start;
}

.footer .brand--footer {
  margin-bottom: 14px;
}

.footer a {
  opacity: .92;
}

.footer a:hover {
  opacity: 1;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #fff;
}

.footer .muted {
  color: rgba(255, 255, 255, .78);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  color: rgba(255, 255, 255, .72);
}

.footer__bottom .muted {
  color: rgba(255, 255, 255, .72);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f3d2e;
  color: #fff;
  font-size: 18px;
  transition: .2s;
}

.socials a:hover {
  background: #157a52;
  transform: translateY(-3px);
}

/* =========================
   ADMIN TABLE FINAL
========================= */
.box-table {
  padding: 16px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b8c9bf #edf3ef;
  padding-bottom: 4px;
}

.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #edf3ef;
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #b8c9bf;
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: #96ac9f;
}

.table-products {
  min-width: 950px;
}

.table-orders {
  min-width: 900px;
}

.table-affiliates {
  min-width: 1250px;
}

.table-products th,
.table-products td,
.table-orders th,
.table-orders td,
.table-affiliates th,
.table-affiliates td {
  padding: 14px 12px;
  vertical-align: top;
}

.table-products td:nth-child(2) {
  min-width: 260px;
}

.table-products td:nth-child(6) {
  min-width: 130px;
}

.table-products td:nth-child(7) {
  min-width: 180px;
}

.table-orders td:nth-child(1) {
  min-width: 140px;
  font-weight: 700;
}

.table-orders td:nth-child(2) {
  min-width: 240px;
}

.table-orders td:nth-child(3) {
  min-width: 150px;
  font-weight: 700;
}

.table-orders td:nth-child(4) {
  min-width: 180px;
}

.table-orders td:nth-child(5) {
  min-width: 170px;
}

.table-orders td:nth-child(6) {
  min-width: 120px;
}

.table-affiliates td:nth-child(1) {
  min-width: 240px;
}

.table-affiliates td:nth-child(2) {
  min-width: 120px;
}

.table-affiliates td:nth-child(5) {
  min-width: 260px;
}

.table-affiliates td:nth-child(6) {
  min-width: 130px;
}

.table-affiliates td:nth-child(7) {
  min-width: 240px;
}

.table-affiliates td:nth-child(8) {
  min-width: 150px;
}

.table td form {
  margin: 0;
}

.table td .btn {
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .topbar__inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .topbar__actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tentang-row {
    grid-template-columns: 1fr;
  }

  .tentang-side {
    padding-top: 0;
  }

  .tentang-gallery,
  .countdown-box {
    max-width: 680px;
  }
}

@media (max-width: 1024px) {
  .orders-page .orders-desktop {
    display: none !important;
  }

  .orders-page .orders-mobile {
    display: block !important;
  }

  .orders-page .box {
    padding: 12px;
  }

  .orders-page .box:hover {
    transform: none;
  }

  .orders-page h2 {
    font-size: 28px;
    line-height: 1.2;
  }
}

@media (max-width: 992px) {
  .row {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 700px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-col {
    display: block;
  }

  .product-toolbar {
    align-items: stretch;
  }

  .product-toolbar__right {
    width: 100%;
    align-items: stretch;
  }

  .product-filter-mini,
  .product-toolbar__actions {
    max-width: 100%;
  }

  .product-toolbar__actions {
    justify-content: flex-start;
  }

  .box-table {
    padding: 14px;
  }

  .table-products {
    min-width: 900px;
  }

  .table-orders {
    min-width: 860px;
  }

  .table-affiliates {
    min-width: 1180px;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid > :first-child {
    padding-left: 0;
  }

  .hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cardrow {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  .products-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .box {
    padding: 12px;
    border-radius: 14px;
  }

  .table th,
  .table td {
    padding: 10px 8px;
    font-size: 14px;
  }

  .input,
  textarea,
  select {
    padding: 11px;
    font-size: 16px;
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    min-height: auto;
    padding: 12px 0;
  }

  .brand {
    justify-content: flex-start;
  }

  .nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    margin-left: 0;
  }

  .nav a {
    font-size: 14px;
  }

  .topbar__actions {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .cartbtn,
  .btn,
  .pill,
  .btn--ghost,
  .btn--sm {
    min-height: 42px;
  }

  .qris-actions,
  .checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .qris-actions .btn,
  .checkout-actions .btn {
    width: 100%;
    text-align: center;
  }

  .checkout-card {
    padding: 16px;
    border-radius: 18px;
  }

  .checkout-total {
    font-size: 22px;
  }

  .tentang-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tentang-gallery__item,
  .tentang-gallery__item--middle {
    height: 210px;
    margin-top: 0;
    border-radius: 20px;
  }

  .countdown-title {
    font-size: 22px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-item span {
    font-size: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 30px;
  }

  .box-table {
    padding: 12px;
    border-radius: 14px;
  }

  .table-products,
  .table-orders,
  .table-affiliates {
    min-width: max-content;
  }

  .table-products th,
  .table-products td,
  .table-orders th,
  .table-orders td,
  .table-affiliates th,
  .table-affiliates td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .table td .btn {
    min-height: 40px;
  }
}

@media (max-width: 700px) {
  .topbar__inner {
    gap: 14px;
  }

  .brand__mark,
  .brand__mark2 {
    font-size: 18px;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cartbtn,
  .btn,
  .pill {
    font-size: 14px;
  }

  .order-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .products-grid-4 {
    grid-template-columns: 1fr;
  }

  .product-filter-mini {
    grid-template-columns: 1fr;
  }

  .product-filter-input-wrap,
  .product-filter-mini-select,
  .product-filter-mini-btn,
  .product-filter-reset,
  .product-cart-btn,
  .share-btn-product {
    width: 100%;
  }

  .product-toolbar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tentang-gallery {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .tentang-gallery__item {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1180px, 94%);
  }

  .brand__mark,
  .brand__mark2 {
    font-size: 16px;
  }

  .nav {
    gap: 8px 12px;
  }

  .nav a {
    font-size: 13px;
  }

  .topbar__actions {
    gap: 8px;
  }

  .order-card {
    padding: 12px;
    border-radius: 14px;
  }

  .orders-page .order-card__row {
    flex-direction: column;
    gap: 6px;
  }

  .orders-page .order-card__value {
    text-align: left;
  }
}