:root {
  color-scheme: light;
  --ink: #0d1b3d;
  --muted: #657189;
  --line: #dfe7f6;
  --paper: #fff8fd;
  --surface: #ffffff;
  --deep: #0d1b3d;
  --blue: #0a52ff;
  --sky: #7db8ff;
  --cyan: #24c6dc;
  --magenta: #ef4aa7;
  --gold: #f6ae2d;
  --green: #16845b;
  --mint: #63e6be;
  --lavender: #8b5cf6;
  --red: #b42318;
  --warning: #8a5a00;
  --shadow: 0 18px 44px rgba(10, 82, 255, 0.16);
  --radius: 8px;
  --headline-font: "LuckiestSoftieProExtraBold-Regular", "LuckiestSoftie",
    "Luckiest Softie", "Luckiest Softie Pro Extra Bold", "Arial Rounded MT Bold",
    "Arial Rounded MT", Inter, ui-sans-serif, system-ui, sans-serif;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbff;
  font-size: 16px;
  line-height: 1.55;
}

h1 {
  font-family: var(--headline-font);
  font-weight: 400;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(8, 123, 220, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 128px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.brand img:not(.brand-wordmark) {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

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

.nav .nav-menu-toggle {
  display: none;
  width: 44px;
  padding: 0;
  background: var(--surface);
  border-color: #cfe0ff;
  color: var(--blue);
}

.nav-menu-toggle:hover,
.nav.nav-open .nav-menu-toggle {
  background: #eef6ff;
  border-color: #9fc3ff;
  color: var(--ink);
}

.nav-menu-icon {
  display: inline-flex;
}

.nav-menu-icon-close,
.nav.nav-open .nav-menu-icon-open {
  display: none;
}

.nav.nav-open .nav-menu-icon-close {
  display: inline-flex;
}

.cms-domain-note {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.nav-link,
.cart-link,
.nav-menu-toggle,
.button,
.ghost-button,
.text-button,
.icon-button {
  min-height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-link {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #eef6ff;
}

.cart-link {
  position: relative;
  width: 48px;
  padding: 0;
  background: var(--surface);
  border-color: #cfe0ff;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.cart-link:hover {
  background: #eef6ff;
  border-color: #9fc3ff;
}

.cart-link.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 93, 255, 0.22);
}

.cart-link.active:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.currency-control {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.currency-control::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--blue);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease, color 180ms ease;
}

.currency-control select {
  min-width: 86px;
  min-height: 44px;
  appearance: none;
  padding: 8px 34px 8px 12px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.96));
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(10, 82, 255, 0.1);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.currency-control select:hover {
  border-color: #9fc3ff;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(10, 82, 255, 0.14);
}

.currency-control select:focus-visible {
  outline: 3px solid rgba(10, 82, 255, 0.24);
  outline-offset: 3px;
  border-color: var(--blue);
}

.currency-control:focus-within::after,
.currency-control:hover::after {
  color: var(--deep);
}

.cart-icon {
  width: 25px;
  height: 25px;
}

.icon,
.cart-icon,
.empty-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  width: 22px;
  height: 22px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-xs {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.empty-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--blue);
}

.cart-badge {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffcc00;
  color: var(--deep);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.button {
  padding: 10px 14px;
  background: var(--blue);
  color: #ffffff;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(19, 93, 255, 0.22);
}

.button:disabled,
.ghost-button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.button.is-loading,
.ghost-button.is-loading {
  gap: 9px;
}

.button-spinner {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spinner 700ms linear infinite;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

.button:hover,
.cart-link:hover {
  transform: translateY(-1px);
}

.button:disabled:hover,
.ghost-button:disabled:hover,
.button.disabled:hover {
  transform: none;
}

.button.secondary {
  background: var(--deep);
  border-color: var(--deep);
}

.button.danger {
  background: var(--red);
  border-color: var(--red);
}

.button.success {
  background: var(--green);
  border-color: var(--green);
}

.ghost-button,
.icon-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 750;
}

.ghost-button {
  padding: 10px 14px;
}

.text-button {
  padding: 8px 0;
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  font-weight: 900;
  box-shadow: none;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--deep);
  background: transparent;
  border-color: transparent;
  transform: none;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.main {
  flex: 1;
}

.section {
  padding: 46px 0;
}

.section.tight {
  padding: 24px 0;
}

.main > .section:last-child {
  padding-bottom: 36px;
}

.main > .section.tight:last-child {
  padding-bottom: 30px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.approval-hero {
  padding: 34px 0 24px;
  background:
    linear-gradient(135deg, rgba(10, 82, 255, 0.11), rgba(36, 198, 220, 0.14)),
    #f7fbff;
  border-bottom: 1px solid var(--line);
}

.approval-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: center;
}

.approval-hero-copy {
  display: grid;
  gap: 18px;
}

.approval-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
}

.approval-hero p {
  max-width: 620px;
  margin: 0;
  color: #34445a;
  font-size: 18px;
}

.approval-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.approval-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.trust-item {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--deep);
  font-weight: 850;
}

.trust-item .icon {
  flex: 0 0 auto;
  color: var(--green);
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dff3ff;
  border-bottom: 1px solid var(--line);
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide-link {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  scroll-snap-align: start;
}

.hero-slide {
  width: 100%;
  aspect-ratio: 24 / 9;
  min-height: 280px;
  max-height: calc(100dvh - 88px);
  object-fit: cover;
  object-position: center;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.carousel-dots button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.carousel-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(20, 32, 68, 0.08);
}

.carousel-dots button:nth-child(2)::before {
  background: var(--muted);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue);
  box-shadow: 0 10px 28px rgba(20, 32, 68, 0.16);
}

.carousel-arrow.prev {
  left: 16px;
}

.carousel-arrow.next {
  right: 16px;
}

.page-title h1 {
  max-width: 780px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
}

.actions,
.row-actions,
.admin-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-export-actions {
  justify-content: flex-end;
}

.section-head,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  min-width: 0;
}

.section-head > *,
.page-title > * {
  min-width: 0;
}

.section-head h2,
.page-title h1,
.panel h2,
.panel h3 {
  margin: 0;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--muted);
}

.page-title-section {
  padding: 36px 0 10px;
}

.page-title {
  align-items: start;
  margin-bottom: 0;
}

.page-title p {
  margin-top: 12px;
  max-width: 760px;
  font-size: 17px;
}

.page-title-section + .section.tight {
  padding-top: 10px;
}

.grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.grid > * {
  min-width: 0;
  max-width: 100%;
}

.grid.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

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

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

.card,
.panel,
.product-card,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(46, 38, 92, 0.06);
}

.panel {
  padding: 22px;
  min-width: 0;
}

.product-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-card::before {
  content: none;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(10, 82, 255, 0.28);
  box-shadow: 0 18px 38px rgba(13, 27, 61, 0.12);
}

.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-media-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f6fa;
  border-bottom: 1px solid var(--line);
}

.product-media-link::after {
  content: none;
}

.product-media-link > .product-art,
.product-media-link > .product-photo,
.product-media-link > .product-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transition: transform 220ms ease;
}

.product-card:hover .product-media-link > .product-art,
.product-card:hover .product-media-link > .product-photo,
.product-card:hover .product-media-link > .product-video,
.product-card:focus-within .product-media-link > .product-art,
.product-card:focus-within .product-media-link > .product-photo,
.product-card:focus-within .product-media-link > .product-video {
  transform: scale(1.015);
}

.product-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--art-a), var(--art-b) 48%, var(--art-c)),
    #dfe8f2;
}

.product-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
}

.product-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.54) 36%, transparent 42%),
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.55), transparent 20%),
    repeating-linear-gradient(160deg, transparent 0 18px, rgba(255, 255, 255, 0.14) 19px 20px);
  mix-blend-mode: screen;
}

.product-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f6fa;
}

img.product-art.product-photo,
video.product-art.product-photo {
  height: 100%;
  min-height: 0;
}

.product-video {
  display: block;
  object-fit: cover;
  background: #f3f6fa;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-main-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f6fa;
}

.product-main-media .product-art {
  width: 100%;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f6fa;
}

.product-thumb img,
.product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(2, 93, 244, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

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

.product-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.product-card-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  min-height: 0;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--blue);
}

.product-card-head .price {
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
  line-height: 1.25;
}

.product-card .row-actions {
  margin-top: auto;
  padding-top: 2px;
}

.product-card-cta {
  width: auto;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(19, 93, 255, 0.18);
}

.product-body p,
.muted {
  color: var(--muted);
}

.product-card-meta {
  margin: 0;
}

.price-row,
.line-row,
.summary-row,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.promo-price {
  display: grid;
  gap: 3px;
  align-items: start;
  min-width: 0;
}

.promo-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.promo-original {
  color: var(--muted);
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(180, 35, 24, 0.62);
}

.promo-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(239, 74, 167, 0.36);
  border-radius: 999px;
  background: #fff0f8;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.promo-final {
  color: var(--ink);
  line-height: 1.15;
}

.product-card-head .promo-final {
  color: var(--ink);
  white-space: nowrap;
}

.detail-price {
  margin: 0 0 4px;
}

.detail-price .price {
  display: inline-flex;
  font-size: 24px;
  line-height: 1.15;
}

.cart-unit-price .promo-price {
  gap: 2px;
}

.cart-unit-price .promo-price-row {
  font-size: 12px;
}

.cart-unit-price .price {
  font-size: 15px;
}

.admin-price-cell .promo-price-row {
  font-size: 12px;
}

.admin-price-cell .promo-final {
  font-size: 15px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f2f6fa;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
}

.badge.green {
  background: #eaf7ef;
  color: var(--green);
  border-color: #b9dfc8;
}

.badge.gold {
  background: #fff7df;
  color: #7b5200;
  border-color: #e8cd79;
}

.badge.red {
  background: #fff0ed;
  color: var(--red);
  border-color: #f0bbb3;
}

.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.field > span,
.field label,
.fieldset-title {
  color: #233249;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.required-star {
  color: var(--red);
  font-weight: 950;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d4df;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8db9ff;
  box-shadow: 0 0 0 3px rgba(10, 82, 255, 0.12);
  outline: 0;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  border-color: #d7dee8;
  background: #eef2f6;
  color: #7d8898;
  cursor: not-allowed;
  opacity: 1;
}

.field input:disabled::placeholder,
.field textarea:disabled::placeholder {
  color: #9aa5b4;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a6b3;
  opacity: 1;
}

.field input[type="checkbox"],
td input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  accent-color: var(--blue);
}

.field span:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.rich-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid #ccd8e8;
  border-radius: var(--radius);
  background: #ffffff;
}

.rich-editor:focus-within {
  border-color: #82b4ff;
  box-shadow: 0 0 0 3px rgba(10, 82, 255, 0.12);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7fbff;
}

.rich-editor-button {
  border-color: #d5e1f2;
  background: #ffffff;
  color: var(--deep);
}

.rich-editor-button:hover,
.rich-editor-button:focus-visible {
  background: #eef6ff;
  color: var(--blue);
}

.rich-editor-surface {
  min-height: 156px;
  padding: 12px 14px;
  color: var(--ink);
  line-height: 1.6;
}

.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #98a6b3;
}

.rich-editor-surface p,
.rich-editor-surface ul,
.rich-editor-surface ol {
  margin: 0 0 10px;
}

.rich-editor-surface p:last-child,
.rich-editor-surface ul:last-child,
.rich-editor-surface ol:last-child {
  margin-bottom: 0;
}

.rich-editor-surface ul,
.rich-editor-surface ol {
  padding-left: 22px;
}

.rich-text-content {
  color: #34445a;
  line-height: 1.66;
}

.rich-text-content p,
.rich-text-content ul,
.rich-text-content ol {
  margin: 0 0 12px;
}

.rich-text-content p:last-child,
.rich-text-content ul:last-child,
.rich-text-content ol:last-child {
  margin-bottom: 0;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 22px;
}

.rich-text-content li + li {
  margin-top: 4px;
}

.helper {
  color: var(--muted);
  font-size: 13px;
}

.discount-feedback {
  margin-top: -4px;
  padding: 9px 10px;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.discount-feedback.valid {
  border-color: #aeeed8;
  background: #ebfff7;
  color: #135c3b;
}

.discount-feedback.invalid {
  border-color: #ffc4bd;
  background: #fff2f0;
  color: var(--red);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.customer-quickfill-field {
  padding: 12px;
  border: 1px solid #d8e6fb;
  border-radius: var(--radius);
  background: #f7fbff;
}

.customer-quickfill-field > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-quickfill-field select {
  border-color: #b8d3ff;
  font-weight: 750;
}

.checkout-layout,
.confirmation-layout,
.admin-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.product-detail-section {
  padding-top: 34px;
  padding-bottom: 18px;
}

.product-detail-section .detail-layout {
  gap: 18px;
}

.product-detail-section + .related-products-section {
  padding-top: 8px;
}

.related-products-section .section-head {
  margin-bottom: 16px;
}

.product-summary-panel {
  display: grid;
  gap: 14px;
}

.product-summary-panel h1 {
  margin: 0;
  line-height: 1.02;
}

.product-summary-panel .actions {
  padding-top: 2px;
}

.product-custom-fields {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-custom-fields h2 {
  font-size: 18px;
}

.product-description {
  margin: 0;
}

.product-description-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-description-block h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-description-block.collapsible.collapsed .product-description {
  position: relative;
  max-height: 150px;
  overflow: hidden;
}

.product-description-block.collapsible.collapsed .product-description::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface) 88%);
  pointer-events: none;
}

.product-description-toggle {
  justify-self: start;
  padding: 0;
}

.admin-content,
.table-wrap {
  min-width: 0;
}

form.panel,
.payment-method-form,
.banner-form,
#settings-form,
#admin-order-form,
#checkout-form,
#review-form,
#admin-login-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

form.panel > h2,
form.panel > h3 {
  line-height: 1.2;
}

form.panel > h2:not(:first-child),
form.panel > h3:not(:first-child) {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid #e8eef7;
}

form.panel > .button[type="submit"],
form.panel > .ghost-button[type="submit"],
.payment-proof-form > .button[type="submit"],
.review-actions-panel > .button[type="submit"] {
  justify-self: start;
  margin-top: 2px;
}

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

.agreement-field {
  padding: 10px 12px;
  border: 1px solid #d8e6fb;
  border-radius: var(--radius);
  background: #f7fbff;
}

.agreement-field a {
  color: var(--blue);
  font-weight: 900;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.policy-main {
  display: grid;
  gap: 16px;
}

.policy-section {
  display: grid;
  gap: 10px;
}

.policy-section p {
  margin: 0;
}

.policy-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 8px;
}

.admin-layout {
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-menu {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.admin-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.admin-menu a span {
  min-width: 0;
}

.admin-menu-icon {
  color: currentColor;
}

.admin-menu a.active,
.admin-menu a:hover {
  color: var(--ink);
  background: #eef6ff;
  border-color: #cfe0ff;
}

.admin-menu a.active {
  color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.admin-menu a:hover {
  transform: translateX(1px);
}

.summary {
  position: sticky;
  top: 94px;
}

.summary-row,
.line-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child,
.line-row:last-child {
  border-bottom: 0;
}

.summary-row.strong {
  font-size: 18px;
  font-weight: 900;
}

.summary-row.highlight {
  color: var(--magenta);
  font-weight: 900;
}

.summary-row.verification-row {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-row.verification-row strong {
  color: #34445a;
  font-size: 14px;
  font-weight: 850;
}

.verification-note {
  margin: 10px 0 0;
}

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

.confirmation-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.confirmation-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeeed8;
  border-radius: var(--radius);
  background: #ebfff7;
  color: var(--green);
}

.confirmation-mark .icon {
  width: 28px;
  height: 28px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.confirmation-hero h2 {
  margin: 0;
  line-height: 1.2;
}

.confirmation-hero p {
  margin: 8px 0 0;
}

.confirmation-details {
  border-top: 1px solid var(--line);
}

.confirmation-panel .payment-proof-preview {
  margin-top: -2px;
}

.confirmation-actions {
  padding-top: 2px;
}

.payment-countdown-card {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #bcd4ff;
  border-radius: var(--radius);
  background: #eef6ff;
}

.payment-countdown-card span,
.payment-countdown-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-countdown {
  color: var(--blue);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.payment-countdown-card.expired {
  border-color: #f0bbb3;
  background: #fff0ed;
}

.payment-countdown-card.expired .payment-countdown {
  color: var(--red);
}

.notice,
.warning,
.success-note {
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid;
}

.notice {
  background: #eef8ff;
  border-color: #b6e7ff;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.payment-option {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #c9d4df;
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.payment-option:hover,
.payment-option:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(2, 93, 244, 0.12);
}

.payment-option.selected,
.payment-option:has(input:checked) {
  border-color: var(--blue);
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(2, 93, 244, 0.18);
}

.payment-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--blue);
}

.payment-option-mark {
  width: 38px;
  height: 30px;
  color: var(--blue);
}

.payment-option-mark:not(.qris-icon),
.payment-mark:not(.qris-icon) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payment-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.address-validation-card,
.jne-shipping-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid #b6e7ff;
  border-radius: var(--radius);
  background: #eef8ff;
}

.address-validation-card strong,
.jne-shipping-card strong {
  display: block;
  margin-bottom: 2px;
}

.address-validation-card .helper,
.jne-shipping-card .helper {
  margin: 0;
}

.jne-shipping-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.jne-options {
  min-width: 0;
}

.shipping-option-fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shipping-option-fieldset legend {
  margin-bottom: 8px;
  color: #233249;
  font-size: 13px;
  font-weight: 850;
}

.shipping-option-list {
  display: grid;
  gap: 12px;
}

.shipping-option-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #d6dee8;
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.shipping-option-row:hover {
  border-color: #aac6ff;
  background: #f7fbff;
}

.shipping-option-row:has(input:focus-visible) {
  outline: 3px solid rgba(8, 123, 220, 0.28);
  outline-offset: 2px;
}

.shipping-option-row:has(input:checked) {
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: 0 10px 24px rgba(10, 82, 255, 0.12);
}

.shipping-option-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shipping-option-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #c9d4df;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 5px #ffffff;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.shipping-option-row input:checked + .shipping-option-radio {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #ffffff;
}

.shipping-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shipping-option-copy strong {
  color: #051021;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.shipping-option-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.shipping-option-price {
  justify-self: end;
  color: #051021;
  font-size: 17px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.indonesia-shipping-meta {
  margin: 0;
}

.jne-options .warning {
  margin: 0;
}

.jne-options a {
  color: var(--blue);
  font-weight: 850;
}

.address-validation-card.valid {
  border-color: #aeeed8;
  background: #ebfff7;
}

.address-validation-card.invalid {
  border-color: #e9c76e;
  background: #fff8e6;
}

.payment-qr-panel {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #bcd4ff;
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-qr-link {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.payment-qr-panel img,
.qr-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-qr-panel strong {
  display: block;
  margin-bottom: 2px;
}

.payment-amount-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-amount-copy > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.payment-amount-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--deep);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.payment-amount-copy small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.copy-button {
  min-height: 38px;
  padding: 7px 10px;
  white-space: nowrap;
}

.copy-button.is-copied {
  border-color: #aeeed8;
  background: #ebfff7;
  color: var(--green);
}

body.modal-open {
  overflow: hidden;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 16, 33, 0.68);
}

.qr-modal-panel {
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(5, 16, 33, 0.28);
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qr-modal-head strong {
  min-width: 0;
  font-size: 16px;
  line-height: 1.25;
}

.qr-modal-close {
  flex: 0 0 auto;
}

.qr-modal-image {
  width: 100%;
  max-height: min(72dvh, 560px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-proof-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.payment-proof-preview img,
.payment-proof-preview iframe {
  width: 100%;
  max-height: 420px;
  display: block;
  border: 0;
  object-fit: contain;
  background: #ffffff;
}

.payment-proof-preview iframe {
  min-height: 360px;
}

.qr-preview {
  width: min(180px, 100%);
  padding: 10px;
  border: 1px solid #bcd4ff;
  border-radius: var(--radius);
  background: #f7fbff;
}

.warning {
  background: #fff8e6;
  border-color: #e9c76e;
  color: #5e4100;
}

.success-note {
  background: #ebfff7;
  border-color: #aeeed8;
  color: #135c3b;
}

.payment-proof-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #b8c4d6;
}

.doku-payment-panel {
  align-content: start;
}

.doku-actions {
  flex-wrap: wrap;
}

.webhook-log-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px dashed #d8e2ef;
}

.visual-steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.step-art {
  height: 126px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #eaf3ff;
  border: 1px solid #cfe0ff;
  overflow: hidden;
}

.magicard-illustration {
  position: relative;
  width: 156px;
  height: 96px;
}

.step-number {
  position: absolute;
  left: 7px;
  top: 12px;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 8px 8px 0 #bcd4ff;
}

.mini-card {
  position: absolute;
  width: 58px;
  height: 82px;
  border: 3px solid var(--blue);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 93, 244, 0.16);
}

.mini-card::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 10px;
  height: 22px;
  border-radius: 6px;
  background: var(--blue);
}

.mini-card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 4px;
  border-radius: 999px;
  background: #bcd4ff;
  box-shadow: 0 -10px 0 #d9e8ff;
}

.mini-card.one {
  right: 44px;
  top: 9px;
  transform: rotate(-9deg);
}

.mini-card.two {
  right: 8px;
  top: 5px;
  transform: rotate(9deg);
}

.spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--blue);
  transform: rotate(45deg);
}

.spark.a {
  right: 3px;
  bottom: 10px;
}

.spark.b {
  left: 62px;
  top: 4px;
  width: 10px;
  height: 10px;
}

.step-card h3 {
  margin: 16px 0 6px;
  font-size: 22px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(190px, auto);
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-panel {
  overflow: hidden;
}

.cart-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: -2px 0 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #b8c4d6;
}

.cart-panel-head h2 {
  margin: 0;
}

.cart-panel-head span {
  color: var(--muted);
  font-weight: 850;
}

.cart-thumb-link {
  display: block;
  width: 96px;
  color: inherit;
  text-decoration: none;
}

.cart-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--art-a), var(--art-b), var(--art-c));
  object-fit: cover;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-main h3 {
  margin: 0 0 3px;
  font-size: 19px;
  line-height: 1.25;
}

.cart-item-main p {
  margin: 0 0 3px;
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-line-total {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.quantity {
  display: inline-grid;
  grid-template-columns: 44px 44px 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 44px;
}

.quantity button {
  min-height: 44px;
  border: 0;
  background: #f1f5f8;
  color: var(--deep);
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.quantity button:hover {
  background: #e3edff;
  color: var(--blue);
}

.quantity span {
  text-align: center;
  font-weight: 900;
}

.trash-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ffc4bd;
  border-radius: var(--radius);
  background: #fff2f0;
  color: #d9342b;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.trash-button:hover {
  background: #ffe4e0;
  border-color: #ff8a80;
  color: #b42318;
  transform: translateY(-1px);
}

.cart-continue-row {
  padding-top: 16px;
}

.cart-summary-actions {
  display: grid;
  gap: 10px;
}

.cart-summary-actions .button,
.cart-summary-actions .ghost-button {
  width: 100%;
}

.payment-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #b8c4d6;
}

.payment-strip > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.payment-mark {
  width: 34px;
  height: 22px;
  flex: 0 0 auto;
}

.qris-icon {
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.payment-strip .payment-badge {
  border-color: var(--line);
  background: #f7fbff;
  color: var(--deep);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #34445a;
  font-size: 13px;
  background: #f3f7fb;
}

.status-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-chip {
  min-height: 30px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f7fb;
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.status-chip-success {
  border-color: #b9dfc8;
  background: #eaf7ef;
  color: var(--green);
}

.status-chip-warning {
  border-color: #e8cd79;
  background: #fff7df;
  color: #7b5200;
}

.status-chip-danger {
  border-color: #f0bbb3;
  background: #fff0ed;
  color: var(--red);
}

.status-chip-info {
  border-color: #b9d6ff;
  background: #eef6ff;
  color: #0b4acc;
}

.status-chip-neutral {
  border-color: #d3dce8;
  background: #f5f7fb;
  color: #4d5b73;
}

td input,
td select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9d4df;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
}

.select-cell {
  width: 44px;
  text-align: center;
}

td.select-cell input,
th.select-cell input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--blue);
}

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

.admin-card {
  padding: 14px;
}

.admin-card strong {
  display: block;
  font-size: 26px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.review-moderation-list {
  display: grid;
  gap: 12px;
}

.review-moderation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.review-actions-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cms-form {
  border-color: #bcd4ff;
}

.product-modal-panel .cms-form,
#shipping-rates-form {
  display: grid;
  gap: 18px;
}

.admin-flash {
  margin-bottom: 14px;
}

.cms-form + .panel,
.banner-form + .banner-form,
.payment-method-form + .payment-method-form {
  margin-top: 18px;
}

.banner-preview {
  aspect-ratio: 24 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef6ff;
  margin-bottom: 12px;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-product-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 210px;
}

.cms-thumb {
  width: 54px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  background:
    linear-gradient(135deg, var(--art-a), var(--art-b), var(--art-c)),
    #eef6ff;
}

.media-dropzone-field {
  display: grid;
  gap: 8px;
}

.media-dropzone {
  position: relative;
  min-height: 138px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #9fc3ff;
  border-radius: var(--radius);
  background: #f7fbff;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.media-dropzone:hover,
.media-dropzone.dragging,
.media-dropzone:focus-visible {
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: 0 10px 22px rgba(10, 82, 255, 0.12);
}

.media-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.media-dropzone-prompt {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}

.media-dropzone-prompt .icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.media-dropzone-prompt strong {
  color: var(--ink);
}

.media-dropzone-prompt small {
  max-width: 360px;
  line-height: 1.35;
}

.media-selected-list,
.media-existing-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.media-preview-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.media-preview-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.media-preview-thumb {
  position: relative;
  overflow: hidden;
  width: 72px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef6ff;
}

.media-preview-thumb img,
.media-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview-thumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(13, 27, 61, 0.82);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.media-preview-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.media-preview-meta strong,
.media-preview-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview-meta strong {
  font-size: 14px;
  line-height: 1.25;
}

.media-preview-meta small,
.media-preview-order {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-preview-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.media-preview-actions .icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.media-preview-order {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.media-dropzone-field.compact {
  grid-column: 1 / -1;
}

.media-dropzone-field.compact .media-dropzone {
  min-height: 104px;
}

.variant-editor {
  display: grid;
  gap: 14px;
  min-width: 320px;
}

.variant-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 150px;
  align-items: center;
}

.variant-summary span {
  font-weight: 850;
}

.variant-summary small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.variant-summary .icon-button {
  grid-row: 1;
  grid-column: 2;
}

.variant-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 27, 61, 0.48);
}

.variant-modal-panel {
  width: min(880px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(13, 27, 61, 0.24);
}

.variant-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.variant-modal-head h2,
.variant-modal-head p {
  margin: 0;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(110px, 0.8fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.variant-row input[name="variantMediaUrl"],
.variant-actions {
  grid-column: 1 / -1;
}

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

.icon-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.icon-actions .icon-button {
  border-color: #d5e1f2;
  color: var(--deep);
}

.icon-actions .delete-product {
  color: var(--red);
  border-color: #ffc4bd;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 800;
}

.tab.active {
  background: var(--deep);
  color: #ffffff;
  border-color: var(--deep);
}

.footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background:
    linear-gradient(180deg, #0a52ff 0%, #0844da 48%, #0d1b3d 100%);
  color: #ffffff;
  padding: 40px 0 24px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.4fr) minmax(180px, 0.5fr);
  align-items: start;
  gap: 32px;
}

.footer-orbit {
  position: absolute;
  right: max(28px, 8vw);
  bottom: -120px;
  width: 300px;
  height: 380px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--headline-font);
  font-size: 232px;
  font-weight: 400;
  line-height: 1;
  transform: rotate(-12deg);
}

.footer-brand {
  max-width: 410px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  object-fit: cover;
  margin-bottom: 10px;
}

.footer-brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.footer-brand p {
  margin: 0 0 6px;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
}

.footer-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
}

.footer-col {
  display: grid;
  gap: 10px;
}

.footer-col strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
}

.social-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.social-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.empty {
  padding: 34px;
  text-align: center;
}

.cart-empty .button {
  margin-top: 8px;
}

.review-card p {
  margin-top: 8px;
}

.review-media {
  position: relative;
  min-height: 170px;
  margin: -18px -18px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #025df4;
}

.review-media.gold {
  background: #025df4;
}

.review-media.pink {
  background: #025df4;
}

.review-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
}

.review-media.video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-left: 34px solid #ffffff;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  filter: drop-shadow(0 10px 16px rgba(20, 32, 68, 0.22));
}

.review-media.uploaded {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #f3f7fb;
}

.review-media.uploaded::before,
.review-media.uploaded::after {
  content: none;
}

.review-media.uploaded img,
.review-media.uploaded video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stars {
  color: var(--gold);
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .nav {
    width: min(100% - 20px, 1180px);
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand {
    min-height: 48px;
  }

  .brand img:not(.brand-wordmark) {
    width: 42px;
    height: 42px;
  }

  .brand img.brand-wordmark {
    width: 100px;
    max-height: 36px;
  }

  .nav .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 35;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(10, 82, 255, 0.16);
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 6px;
  }

  .currency-control select {
    min-width: 72px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 12px;
  }

  .currency-control::after {
    right: 11px;
    width: 7px;
    height: 7px;
  }

  .cart-link {
    width: 44px;
  }

  .approval-hero-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .approval-hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-slide {
    aspect-ratio: 16 / 7;
    min-height: 230px;
  }

  .grid.products,
  .grid.three,
  .stat-grid,
  .review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-layout,
  .confirmation-layout,
  .admin-layout,
  .detail-layout,
  .policy-layout,
  .footer-grid,
  .review-moderation-card {
    grid-template-columns: 1fr;
  }

  .admin-menu,
  .summary {
    position: static;
  }

  .cart-layout {
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr);
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .panel {
    padding: 18px;
  }

  .approval-hero {
    padding: 22px 0 16px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  form.panel,
  .payment-method-form,
  .banner-form,
  #settings-form,
  #admin-order-form,
  #checkout-form,
  #review-form,
  #admin-login-form {
    gap: 16px;
  }

  form.panel > h2:not(:first-child),
  form.panel > h3:not(:first-child) {
    margin-top: 2px;
    padding-top: 16px;
  }

  .form-grid {
    gap: 14px;
  }

  .media-preview-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .media-preview-thumb {
    width: 58px;
  }

  .media-preview-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .checkout-layout,
  .confirmation-layout,
  .admin-layout,
  .detail-layout {
    gap: 16px;
  }

  .confirmation-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .confirmation-mark {
    width: 48px;
    height: 48px;
  }

  .confirmation-actions .button,
  .confirmation-actions .ghost-button,
  .confirmation-actions .text-button {
    width: 100%;
  }

  .page-title h1 {
    font-size: 40px;
  }

  .page-title-section {
    padding: 26px 0 6px;
  }

  .page-title-section + .section.tight {
    padding-top: 8px;
  }

  .product-detail-section {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .product-detail-section + .related-products-section {
    padding-top: 6px;
  }

  .hero-slide {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .section-head,
  .page-title,
  .form-grid,
  .grid.two,
  .grid.three,
  .grid.products,
  .stat-grid,
  .review-summary {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .carousel-arrow.prev {
    left: 8px;
  }

  .carousel-arrow.next {
    right: 8px;
  }

  .section-head,
  .page-title {
    align-items: start;
  }

  .filters {
    position: sticky;
    top: calc(58px + env(safe-area-inset-top, 0px));
    z-index: 18;
    grid-template-columns: minmax(120px, 1fr) minmax(84px, 0.64fr) minmax(72px, 0.54fr);
    gap: 6px;
    align-items: end;
    margin: 0 -4px 16px;
    padding: 8px 4px 10px;
    border-bottom: 1px solid rgba(223, 231, 246, 0.9);
    background: rgba(247, 251, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .filters .field {
    gap: 4px;
  }

  .filters .field > span {
    overflow: hidden;
    color: #233249;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filters .field input,
  .filters .field select {
    min-height: 44px;
    padding: 9px 8px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 0;
  }

  .cart-panel {
    padding: 14px;
  }

  .cart-panel-head {
    align-items: start;
  }

  .cart-thumb-link {
    width: 72px;
  }

  .cart-item-main h3 {
    font-size: 17px;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    justify-items: start;
  }

  .cart-line-total {
    justify-self: end;
    font-size: 18px;
  }

  .payment-qr-panel {
    grid-template-columns: 1fr;
  }

  .payment-amount-copy {
    grid-template-columns: 1fr;
  }

  .payment-amount-copy .copy-button {
    width: 100%;
  }

  .address-validation-card,
  .jne-shipping-card,
  .variant-row {
    grid-template-columns: 1fr;
  }

  .address-validation-card,
  .jne-shipping-card,
  .payment-option,
  .shipping-option-row,
  .variant-row {
    padding: 12px;
  }

  .shipping-option-row {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
  }

  .shipping-option-price {
    grid-column: 2;
    justify-self: start;
  }

  .variant-editor {
    min-width: 0;
  }

  .variant-modal {
    padding: 8px;
  }

  .variant-modal-panel {
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }

  .cart-item .row-actions {
    grid-column: 1 / -1;
  }

  .payment-list {
    gap: 6px;
  }

  .footer {
    padding-top: 38px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
    gap: 24px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }

  .footer-orbit {
    right: -92px;
    bottom: -96px;
    width: 240px;
    height: 310px;
    font-size: 170px;
  }
}

@media (max-width: 420px) {
  .product-card-head {
    grid-template-columns: 1fr;
  }

  .product-card-head h3 {
    min-height: 0;
  }

  .product-card-head .price {
    white-space: normal;
  }

  .cart-item-controls {
    grid-template-columns: 1fr auto;
  }

  .quantity {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }

  .cart-line-total {
    justify-self: start;
  }

  .payment-badge {
    flex: 1 1 130px;
  }
}

@media (max-width: 380px) {
  .nav {
    width: min(100% - 16px, 1180px);
    gap: 4px;
  }

  .brand img.brand-wordmark {
    width: 80px;
    max-height: 28px;
  }

  .nav-links {
    gap: 4px;
    padding: 8px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-actions {
    gap: 4px;
  }

  .currency-control select {
    min-width: 60px;
    padding-left: 8px;
    padding-right: 22px;
    font-size: 11px;
  }

  .currency-control::after {
    right: 9px;
    width: 6px;
    height: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-track {
    animation: none !important;
  }
}
