:root {
  --brand: #f74b59;
  --brand-deep: #e93849;
  --brand-light: #fff1f3;
  --ink: #202635;
  --ink-soft: #4f596d;
  --muted: #8b94a6;
  --line: #eceef2;
  --panel: #ffffff;
  --page: #f4f5f7;
  --shadow: 0 12px 38px rgba(37, 45, 70, 0.08);
  --radius: 18px;
  --container: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 233, 236, 0.38), transparent 20%),
    var(--page);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.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;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 0;
  background:
    linear-gradient(118deg, #f34552 0%, #fb5b58 48%, #f74a55 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background-image: url("/assets/hero-pattern.svg");
  background-size: 680px auto;
  background-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(218, 55, 67, 0.18));
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
}

.bubble-one {
  display: none;
  width: 360px;
  height: 360px;
  left: -140px;
  top: -160px;
  background: rgba(255, 255, 255, 0.09);
}

.bubble-two {
  display: none;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -130px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 48px rgba(131, 28, 36, 0.18);
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 31px 21px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.hero-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #171b23;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 6px 14px rgba(23, 27, 35, 0.2);
}

.hero-logo svg {
  width: 46px;
  height: 46px;
}

.hero-title-wrap h1 {
  margin: 0;
  color: #1c2230;
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  margin-top: 7px;
  padding: 0 11px;
  border-radius: 999px 999px 999px 3px;
  color: #7d5200;
  background: linear-gradient(100deg, #ffe680, #ffd451);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.2);
}

.lookup-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff5e68, #ee3d4c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 7px 16px rgba(232, 56, 72, 0.24);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lookup-btn svg {
  width: 17px;
  height: 17px;
}

.lookup-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 20px rgba(232, 56, 72, 0.3);
}

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

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid #f0f1f4;
  padding: 0 31px;
  color: #697286;
  background: #fff;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding-right: 20px;
  font-size: 12.5px;
  white-space: nowrap;
}

.benefit + .benefit {
  border-left: 1px solid #eff0f3;
  padding-left: 25px;
}

.benefit-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #f04c59;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------- Main layout ---------- */
.main-content {
  padding-top: 26px;
}

.category-panel {
  border: 1px solid rgba(230, 233, 239, 0.72);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 5px 22px rgba(40, 48, 70, 0.035);
  padding: 27px 33px 22px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-mark {
  width: 4px;
  height: 19px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), #ff7a66);
}

.section-title h2 {
  margin: 0;
  color: #252b39;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(440px, 46%);
  height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9aa2b2;
  background: #f5f6f8;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-field:focus-within {
  border-color: rgba(247, 75, 89, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(247, 75, 89, 0.08);
}

.search-field svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #a2a9b7;
}

.category-rule {
  position: relative;
  height: 1px;
  margin: 19px 0 23px;
  background: #eef0f3;
}

.category-rule span {
  position: absolute;
  left: 0;
  top: -1px;
  width: 118px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), #ff8070);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  row-gap: 24px;
  column-gap: 10px;
}

.category-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.category-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--c1, #60a5fa), var(--c2, #2563eb));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 7px 14px rgba(54, 77, 126, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-icon::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 30px;
  left: -12px;
  top: -16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-18deg);
}

.category-icon::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  right: -13px;
  bottom: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.category-icon svg {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
}

.category-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #515b6f;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.category-item:hover .category-icon {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 11px 20px rgba(54, 77, 126, 0.2);
}

.category-item:hover .category-name {
  color: var(--brand-deep);
}

.category-item.is-active .category-icon {
  outline: 3px solid rgba(247, 75, 89, 0.18);
  outline-offset: 2px;
}

.category-item.is-active .category-name {
  color: var(--brand-deep);
  font-weight: 700;
}

.category-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 19px auto -2px;
  padding: 7px 10px;
  border: 0;
  color: #858e9f;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.category-toggle:hover {
  color: var(--brand-deep);
}

.category-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.category-toggle.is-expanded svg {
  transform: rotate(180deg);
}

.category-item.is-extra {
  display: none;
}

.category-grid.is-expanded .category-item.is-extra {
  display: flex;
}

/* ---------- Products ---------- */
.products-section {
  padding: 31px 0 12px;
}

.products-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 0 3px;
}

.products-kicker {
  margin: 0 0 3px;
  color: #a0a7b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.products-meta h2 {
  margin: 0;
  color: #272d3a;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.products-side {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 3px;
}

.product-count {
  color: #98a0af;
  font-size: 12px;
}

.clear-filter {
  padding: 4px 10px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  color: #747d8f;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
}

.clear-filter:hover {
  border-color: rgba(247, 75, 89, 0.4);
  color: var(--brand-deep);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(229, 232, 238, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(35, 43, 65, 0.035);
  cursor: pointer;
  outline: 0;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
  animation: card-in 0.42s both;
}

.product-card:hover {
  z-index: 1;
  border-color: rgba(247, 75, 89, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 15px 33px rgba(43, 48, 68, 0.12);
}

.product-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247, 75, 89, 0.16);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.29;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(132deg, var(--accent, #2563eb) 0%, var(--accent2, #06b6d4) 100%);
}

.product-art::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -68px;
  top: -80px;
  border: 20px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.product-art::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: -58px;
  bottom: -64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.art-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-art.has-image::before {
  z-index: 1;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.08), rgba(13, 18, 30, 0.46));
}

.brand-chip {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 44px);
  height: 20px;
  padding: 0 6px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(20, 27, 44, 0.09);
  color: #3a4254;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand-mini {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  color: #fff;
  background: var(--accent, #2563eb);
  font-size: 7px;
  font-weight: 800;
  overflow: hidden;
}

.corner-badge {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: -25px;
  width: 92px;
  padding: 3px 0;
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  transform: rotate(38deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.11);
}

.corner-badge.green {
  background: linear-gradient(90deg, #2fbd76, #19a65d);
}

.corner-badge.orange {
  background: linear-gradient(90deg, #ff9c42, #ff7138);
}

.corner-badge.dark {
  background: linear-gradient(90deg, #4b5563, #222731);
}

.art-main {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 47%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transform: translateY(-50%);
}

.art-duration {
  color: #fff;
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(14, 27, 51, 0.18);
  white-space: nowrap;
}

.art-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
}

.art-ribbon {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 7px;
  overflow: hidden;
  color: var(--ribbon-color, #166534);
  background: var(--ribbon-bg, #dcfce7);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-body {
  padding: 10px 11px 11px;
}

.product-name {
  display: -webkit-box;
  height: 39px;
  margin: 0;
  overflow: hidden;
  color: #343b4c;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 7px;
  min-height: 22px;
}

.product-price {
  color: #f04450;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-price small {
  margin-right: 1px;
  font-size: 11px;
  font-weight: 700;
}

.product-original {
  color: #aeb4c0;
  font-size: 10.5px;
  text-decoration: line-through;
}

.product-official {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-art {
  aspect-ratio: 1.29;
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 37%, #eef0f4 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px;
}

.skeleton-body span {
  height: 10px;
  border-radius: 5px;
  background: #f0f2f5;
}

.skeleton-body span:nth-child(1) {
  width: 92%;
}

.skeleton-body span:nth-child(2) {
  width: 66%;
}

.skeleton-body span:nth-child(3) {
  width: 38%;
  height: 14px;
  margin-top: 2px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.empty-state {
  padding: 64px 20px 80px;
  text-align: center;
}

.empty-illustration {
  width: 68px;
  height: 68px;
  margin: 0 auto 17px;
  color: #c6cbd5;
}

.empty-state h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.text-btn {
  padding: 8px 17px;
  border: 1px solid #e4e7ed;
  border-radius: 999px;
  color: #687184;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.text-btn:hover {
  border-color: rgba(247, 75, 89, 0.4);
  color: var(--brand-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 29px 0 34px;
  color: #9aa2b1;
  font-size: 11px;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-record {
  margin-top: 5px !important;
  color: #b0b6c1;
  font-size: 10px;
}

.footer-contact {
  margin-top: 5px !important;
  color: #8d96a5;
  font-size: 10px;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 38, 0.52);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease both;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 840px);
  overflow: auto;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 12, 27, 0.25);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.8, 0.28, 1) both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #8d95a5;
  background: #f4f5f7;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-close:hover {
  color: #333a49;
  background: #eceef2;
}

.checkout-dialog {
  padding: 26px 28px 23px;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-right: 36px;
}

.modal-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #a2a9b7;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.modal-heading h2 {
  margin: 0;
  color: #262d3c;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.safe-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #25875a;
  background: #ecfbf3;
  font-size: 10px;
}

.safe-badge svg {
  width: 13px;
  height: 13px;
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #eff1f5;
  border-radius: 14px;
  background: #f8f9fb;
}

.checkout-thumb {
  flex: 0 0 auto;
  width: 105px;
  height: 76px;
  overflow: hidden;
  border-radius: 9px;
}

.thumb-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 9px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #2563eb), var(--accent2, #06b6d4));
}

.thumb-art::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -35px;
  top: -40px;
  border: 12px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.thumb-art strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.thumb-art span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 900;
}

.checkout-product-info {
  min-width: 0;
  flex: 1;
}

.checkout-product-info h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: #303747;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-product-info p {
  margin: 0;
  color: #969ead;
  font-size: 10.5px;
}

.checkout-price {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  padding-left: 5px;
}

.checkout-price strong {
  color: #ef414e;
  font-size: 17px;
  font-weight: 800;
}

.checkout-price del {
  color: #abb1bd;
  font-size: 10px;
}

.form-section {
  margin-top: 20px;
}

.form-label {
  display: block;
  margin-bottom: 9px;
  color: #5f687a;
  font-size: 12px;
  font-weight: 600;
}

.form-label em {
  margin-left: 4px;
  color: #a3aab8;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 400;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.payment-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 55px;
  padding: 0 11px;
  border: 1px solid #e7e9ef;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.payment-option:hover {
  border-color: #d6dae3;
  background: #fbfbfc;
}

.payment-option.is-active {
  border-color: rgba(247, 75, 89, 0.76);
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(247, 75, 89, 0.07);
}

.payment-option.is-active::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.payment-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.payment-icon.alipay {
  background: linear-gradient(145deg, #3aa4ff, #1677ff);
}

.payment-icon.wxpay {
  background: linear-gradient(145deg, #33d37d, #07b85b);
}

.payment-icon.qqpay {
  background: linear-gradient(145deg, #4f9cff, #246bfd);
}

.payment-name {
  overflow: hidden;
  color: #444c5d;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-option.is-active .payment-name {
  color: #d93646;
}

.text-input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  outline: 0;
  color: #303747;
  background: #fff;
  font-size: 12.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input::placeholder {
  color: #a6adba;
}

.text-input:focus {
  border-color: rgba(247, 75, 89, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 75, 89, 0.08);
}

.form-error {
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #ffd7d9;
  border-radius: 8px;
  color: #d5303e;
  background: #fff5f5;
  font-size: 11.5px;
  line-height: 1.5;
}

.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 17px;
  color: #98a0ae;
  font-size: 10.5px;
  line-height: 1.55;
}

.checkout-note svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.primary-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 49px;
  margin-top: 15px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(180deg, #ff5e68 0%, #ee3c4b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(235, 58, 73, 0.22);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-pay b {
  font-size: 15px;
  font-weight: 800;
}

.primary-pay:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 23px rgba(235, 58, 73, 0.28);
}

.primary-pay:disabled {
  opacity: 0.65;
  cursor: wait;
}

.demo-hint {
  margin: 9px 0 0;
  color: #a3a9b5;
  font-size: 10px;
  text-align: center;
}

/* Lookup */
.lookup-dialog {
  width: min(470px, 100%);
  padding: 26px 28px 27px;
}

.lookup-tip {
  margin: -9px 0 17px;
  color: #959dab;
  font-size: 12px;
}

.lookup-form {
  display: flex;
  gap: 8px;
}

.lookup-form .text-input {
  flex: 1;
}

.lookup-submit {
  flex: 0 0 auto;
  width: 79px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #ff5e68, #ee3c4b);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.lookup-submit:hover {
  background: linear-gradient(180deg, #ff6972, #e93645);
}

.lookup-result {
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #fafbfc;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px dashed #e5e8ee;
}

.result-name {
  min-width: 0;
  overflow: hidden;
  color: #373e4e;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.status-pill.pending {
  color: #b16a00;
  background: #fff5dc;
}

.status-pill.paid {
  color: #1a8358;
  background: #e8f9f0;
}

.status-pill.cancelled {
  color: #8a92a0;
  background: #eef0f3;
}

.result-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  padding-top: 12px;
}

.result-row span {
  display: block;
  margin-bottom: 2px;
  color: #9ca4b1;
  font-size: 10px;
}

.result-row strong {
  display: block;
  overflow: hidden;
  color: #4e5768;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.result-link:hover {
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 30px;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(29, 35, 49, 0.92);
  box-shadow: 0 8px 25px rgba(20, 25, 38, 0.18);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  z-index: 999;
  inset: auto 0 0;
  padding: 12px;
  color: #fff;
  background: #1f2635;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .benefit {
    font-size: 11.5px;
  }

  .art-duration {
    font-size: 28px;
  }
}

@media (max-width: 940px) {
  .category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .benefit {
    padding-right: 10px;
    font-size: 11px;
    white-space: normal;
  }

  .benefit + .benefit {
    padding-left: 15px;
  }

  .hero-benefits {
    padding: 0 24px;
  }

  .hero-main {
    padding-right: 24px;
    padding-left: 24px;
  }

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding-top: 16px;
  }

  .hero-logo {
    width: 50px;
    height: 50px;
  }

  .hero-logo svg {
    width: 38px;
    height: 38px;
  }

  .hero-brand {
    gap: 12px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    padding: 5px 22px 10px;
  }

  .benefit {
    min-height: 40px;
    padding: 0;
    font-size: 12px;
    white-space: normal;
  }

  .benefit + .benefit {
    border-top: 1px dashed #eff0f3;
    border-left: 0;
    padding: 0;
  }

  .category-panel {
    padding: 21px 18px 17px;
  }

  .category-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .search-field {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 19px;
  }

  .category-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .category-icon svg {
    width: 24px;
    height: 24px;
  }

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

  .checkout-dialog,
  .lookup-dialog {
    padding: 23px 20px 20px;
  }

  .checkout-thumb {
    width: 91px;
    height: 68px;
  }

  .modal {
    padding: 14px;
    align-items: flex-end;
  }

  .modal-dialog {
    max-height: 94vh;
    border-radius: 20px;
  }
}

@media (max-width: 590px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-main {
    padding: 19px 17px 17px;
  }

  .hero-title-wrap h1 {
    font-size: 21px;
  }

  .hero-tag {
    height: 21px;
    margin-top: 5px;
    font-size: 10px;
  }

  .lookup-btn {
    gap: 5px;
    height: 37px;
    padding: 0 13px;
    font-size: 11.5px;
  }

  .lookup-btn svg {
    width: 15px;
    height: 15px;
  }

  .products-meta {
    align-items: flex-start;
  }

  .products-meta h2 {
    font-size: 18px;
  }

  .products-kicker {
    display: none;
  }

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

  .product-name {
    height: 37px;
    font-size: 11.5px;
  }

  .product-price {
    font-size: 15.5px;
  }

  .art-duration {
    font-size: 25px;
  }

  .art-logo {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 11px;
  }

  .art-ribbon {
    height: 23px;
    font-size: 8px;
  }

  .brand-chip {
    height: 18px;
    font-size: 7.5px;
  }

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

  .payment-option {
    height: 49px;
  }

  .checkout-product {
    align-items: flex-start;
  }

  .checkout-price {
    padding-top: 1px;
  }

  .lookup-result {
    padding: 12px;
  }

  .result-rows {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 3px;
  }

  .category-icon {
    width: 46px;
    height: 46px;
  }

  .category-name {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .hero-brand {
    gap: 9px;
  }

  .hero-logo {
    width: 44px;
    height: 44px;
  }

  .hero-logo svg {
    width: 34px;
    height: 34px;
  }

  .hero-title-wrap h1 {
    font-size: 19px;
  }

  .lookup-btn {
    padding: 0 10px;
  }

  .product-name {
    font-size: 11px;
  }

  .checkout-product-info h3 {
    font-size: 12px;
  }

  .checkout-price strong {
    font-size: 15px;
  }
}

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