:root {
  --red: #d4000b;
  --red-dark: #9f0008;
  --ink: #291817;
  --muted: #76615d;
  --paper: #fffaf5;
  --ivory: #fff7ec;
  --gold: #d79d47;
  --gold-soft: #f7e4bb;
  --line: rgba(158, 0, 8, 0.16);
  --shadow: 0 28px 80px rgba(91, 21, 16, 0.14);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 0, 11, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(215, 157, 71, 0.16), transparent 24rem),
    linear-gradient(135deg, #fffdf9 0%, var(--paper) 48%, #fff3e3 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(212, 0, 11, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 0, 11, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(255, 250, 245, 0.82);
  border-bottom: 1px solid rgba(212, 0, 11, 0.12);
}

.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--red);
  font-size: 22px;
  letter-spacing: 0.12em;
}

.brand-name span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #5d413e;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  background: rgba(212, 0, 11, 0.08);
}

.main-nav .mall-link {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(212, 0, 11, 0.22);
}

.main-nav .mall-link:hover { color: #fff; background: var(--red-dark); }

main { position: relative; z-index: 1; }

.section,
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 62px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

h1, h2, h3 { margin: 0; }

h1 {
  font-family: "STKaiti", "KaiTi", "STSong", serif;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.98;
  color: var(--red);
  letter-spacing: 0.07em;
}

.hero-subtitle {
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.28;
  margin: 18px 0 22px;
  color: var(--ink);
  font-weight: 900;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
  margin: 0;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(130, 42, 30, 0.14); }

.btn.primary {
  color: #fff;
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red), #b30008);
  box-shadow: 0 18px 36px rgba(212, 0, 11, 0.24);
}

.btn.dark {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 0, 11, 0.13);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "囍";
  position: absolute;
  right: -24px;
  top: -58px;
  font-size: 190px;
  font-weight: 900;
  color: rgba(212, 0, 11, 0.055);
  line-height: 1;
}

.logo-display {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.logo-display img {
  width: min(380px, 100%);
  mix-blend-mode: multiply;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.9), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 25px;
  line-height: 1;
}

.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 54px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
  letter-spacing: 0.04em;
}

.section-note {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 10px 0 0;
}

.grid-3,
.grid-4,
.card-grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }

.card,
.panel,
.merchant-card,
.rule-card {
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(81, 30, 25, 0.08);
}

.card h3,
.panel h3,
.rule-card h3 {
  color: var(--red);
  font-size: 22px;
  margin-bottom: 10px;
}

.card p,
.panel p,
.rule-card p,
.merchant-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(212, 0, 11, 0.15);
  font-weight: 700;
}

.merchant-card {
  position: relative;
  overflow: hidden;
}

.merchant-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.merchant-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.merchant-top h3 { font-size: 22px; color: var(--ink); }

.badge {
  flex: none;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.meta {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  color: #785b55;
  font-size: 14px;
}

.mini-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mini-actions .btn { min-height: 38px; padding: 0 15px; font-size: 13px; }

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.page-title {
  font-size: clamp(38px, 5vw, 70px);
  color: var(--red);
  font-family: "STKaiti", "KaiTi", "STSong", serif;
  letter-spacing: 0.08em;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px 24px 24px 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.info-table th {
  color: var(--red-dark);
  width: 220px;
  background: rgba(212, 0, 11, 0.05);
}

.prose {
  font-size: 16px;
  line-height: 2;
  color: #5f4642;
}

.prose h2 {
  color: var(--red);
  font-size: 28px;
  margin: 34px 0 12px;
}

.prose h3 {
  color: var(--ink);
  font-size: 21px;
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 1.4em; }

.notice {
  border-left: 5px solid var(--red);
  padding: 18px 20px;
  background: rgba(212, 0, 11, 0.06);
  border-radius: 18px;
  color: #69443f;
  line-height: 1.8;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  background: #210f0e;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
}

.footer-brand strong { display: block; color: #fff; font-size: 24px; letter-spacing: 0.16em; }
.footer-brand span { color: rgba(255,255,255,0.62); font-size: 13px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  align-content: center;
}

.footer-links a:hover { color: #fff; }

.beian {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .grid-3, .grid-4, .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 680px) {
  .nav-wrap { width: min(100% - 24px, 1180px); min-height: auto; padding: 12px 0; display: block; }
  .main-nav { justify-content: flex-start; margin-top: 12px; }
  .section, .hero, .page-hero, .footer-inner, .footer-bottom { width: min(100% - 24px, 1180px); }
  .grid-3, .grid-4, .card-grid, .steps, .stat-row { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .logo-display { min-height: 270px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .info-table th, .info-table td { display: block; width: 100%; }
}


/* Static mall decoration */
.mall-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}
.mall-banner {
  min-height: 420px;
  border-radius: 36px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(212,0,11,.96), rgba(139,0,7,.92)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.34), transparent 22rem);
  box-shadow: 0 34px 80px rgba(142,0,8,.24);
}
.mall-banner::before {
  content: "囍";
  position: absolute;
  right: 24px;
  top: 8px;
  font-size: 220px;
  line-height: 1;
  color: rgba(255,255,255,.11);
  font-weight: 900;
}
.mall-banner::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.12);
}
.mall-banner h1 { color: #fff; font-size: clamp(42px, 6vw, 78px); }
.mall-banner .lead { color: rgba(255,255,255,.86); max-width: 620px; }
.mall-banner .eyebrow { color: #fff; }
.mall-banner .eyebrow::before { background: #fff; }
.mall-side {
  display: grid;
  gap: 18px;
}
.promo-card {
  min-height: 198px;
  border-radius: 32px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.promo-card strong { display:block; font-size: 32px; color: var(--red); margin-bottom: 8px; }
.promo-card span { color: var(--muted); line-height: 1.8; }
.promo-card::after {
  content: attr(data-mark);
  position: absolute;
  right: 18px;
  bottom: -12px;
  color: rgba(212,0,11,.08);
  font-size: 116px;
  font-weight: 900;
}
.mall-tabs {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.mall-tab {
  border-radius: 22px;
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red-dark);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(91,21,16,.08);
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(91,21,16,.1);
}
.product-media,
.store-cover {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  text-align: center;
  padding: 22px;
  background: linear-gradient(135deg, #d4000b, #f0b657);
}
.product-media.flower { background: linear-gradient(135deg, #d4000b, #ff9ab0 55%, #f6c35a); }
.product-media.date { background: linear-gradient(135deg, #7b1f1a, #d4000b 52%, #f3c36a); }
.product-media.proposal { background: linear-gradient(135deg, #a00009, #d4000b 45%, #1f1110); }
.product-media::before,
.store-cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 24px;
}
.product-media::after,
.store-cover::after {
  content: attr(data-icon);
  position: absolute;
  right: 18px;
  bottom: -18px;
  font-size: 120px;
  color: rgba(255,255,255,.18);
  line-height: 1;
}
.product-media strong,
.store-cover strong { position: relative; z-index: 1; font-size: 30px; letter-spacing: .08em; }
.product-body { padding: 22px; }
.product-body h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.product-body p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.price-row { display:flex; align-items:end; justify-content:space-between; gap: 12px; margin: 14px 0 18px; }
.price { color: var(--red); font-size: 30px; font-weight: 900; }
.price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.service-points { display:flex; flex-wrap:wrap; gap: 8px; margin: 14px 0; }
.service-points span { border-radius:999px; background: rgba(212,0,11,.07); color: var(--red-dark); padding: 6px 10px; font-size: 13px; font-weight: 800; }
.store-detail {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.store-head { display:grid; grid-template-columns: 320px 1fr; gap: 0; }
.store-cover { min-height: 100%; }
.store-info { padding: 30px; }
.store-title-row { display:flex; gap: 18px; align-items:center; margin-bottom: 14px; }
.store-logo {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 24px;
  display:grid;
  place-items:center;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(212,0,11,.22);
}
.store-info h2 { color: var(--ink); font-size: 34px; }
.store-info p { color: var(--muted); line-height: 1.8; }
.goods-detail {
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.goods-layout { display:grid; grid-template-columns: 420px 1fr; }
.goods-layout .product-media { min-height: 100%; }
.goods-info { padding: 34px; }
.goods-info h2 { font-size: 38px; color: var(--ink); }
.buy-box {
  margin-top: 20px;
  border-radius: 24px;
  padding: 20px;
  background: rgba(212,0,11,.055);
  border: 1px solid var(--line);
}

.publisher-card {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: #fffaf5;
  border: 1px solid var(--line);
}

.publisher-card.is-warning {
  background: #fff8e8;
  border-color: #f0c36d;
}

.publisher-card h3 { color: var(--ink); margin: 4px 0 8px; }
.publisher-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.publisher-meta { display: grid; gap: 8px; margin: 0; }
.publisher-meta div { display: flex; gap: 12px; align-items: baseline; }
.publisher-meta dt { width: 76px; flex: none; color: var(--muted); font-size: 13px; }
.publisher-meta dd { margin: 0; color: var(--ink); font-weight: 800; }
.publisher-meta a { color: var(--red-dark); }
.publisher-meta a[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }

[data-shopxo-action][aria-disabled="true"] { opacity: .66; }

.lite-status {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(212,0,11,.07);
  color: var(--red-dark);
  font-size: 14px;
}
.lite-status.is-error { background: #fff0ed; color: #a3261d; }
.lite-status.is-success { background: #eef9ef; color: #2f6b37; }
.lite-empty { grid-column: 1 / -1; padding: 44px 24px; border: 1px dashed var(--line); border-radius: 24px; color: var(--muted); text-align: center; background: rgba(255,255,255,.7); }
.lite-product-card { min-height: 100%; }
.lite-product-media { min-height: 240px; background: #fff8f3; }
.lite-product-media img { width: 100%; height: 240px; object-fit: cover; }
.lite-shop-name { color: var(--red-dark); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lite-detail-card { overflow: hidden; }
.lite-detail-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.lite-stock { color: var(--muted); font-size: 14px; font-weight: 800; }
.lite-note { color: var(--muted); line-height: 1.8; }
.lite-buy-button { margin-top: 18px; width: 100%; }
.lite-buy-button:disabled { opacity: .5; cursor: not-allowed; }
.lite-content { padding: 28px 34px 34px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.9; white-space: pre-wrap; }
.lite-content h3 { color: var(--ink); margin-bottom: 8px; }
.lite-checkout-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.lite-summary-card { display: grid; grid-template-columns: 130px 1fr; overflow: hidden; }
.lite-summary-media { min-height: 150px; background: #fff8f3; }
.lite-summary-media img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.lite-summary-card .product-body { padding: 20px; }
.lite-summary-card h2 { font-size: 22px; margin: 8px 0; color: var(--ink); }
.lite-total-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.lite-total-row strong { color: var(--red); font-size: 23px; }
.lite-form-card { padding: 28px; }
.lite-form-card h2 { color: var(--ink); margin-bottom: 8px; }
.form-field.full, .form-actions { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lite-captcha-field { align-content: start; }
.lite-captcha-image { width: 160px; height: 50px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.lite-captcha-field .btn { justify-self: start; min-height: 34px; padding: 0 12px; font-size: 13px; }
.lite-form-card small { color: var(--muted); line-height: 1.6; }
.lite-form-card pre { overflow: auto; padding: 14px; border-radius: 14px; background: #241918; color: #fff4ec; white-space: pre-wrap; word-break: break-word; }
.lite-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.lite-modal[hidden] { display: none; }
.lite-modal-backdrop { position: absolute; inset: 0; background: rgba(36, 18, 15, .48); backdrop-filter: blur(5px); }
.lite-modal-dialog { position: relative; width: min(520px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: #fffaf5; box-shadow: 0 30px 90px rgba(36,18,15,.28); }
.lite-modal-dialog h2 { margin: 8px 0; color: var(--ink); }
.lite-modal-close { position: absolute; top: 12px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.lite-modal-close:hover { background: rgba(212,0,11,.08); color: var(--red); }
.lite-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 22px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff0ed; }
.lite-auth-tab { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: .2s ease; }
.lite-auth-tab:hover { color: var(--red); }
.lite-auth-tab.is-active { background: #fffaf5; color: var(--red); box-shadow: 0 4px 12px rgba(93, 26, 20, .1); }
.lite-address-editor { grid-column: 1 / -1; margin-top: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 247, 243, .72); }
.lite-address-editor[hidden] { display: none !important; }
.lite-address-select-row { display: flex; align-items: center; gap: 10px; }
.lite-address-select-row select { flex: 1; min-width: 0; }
.lite-address-select-row .btn { flex: 0 0 auto; white-space: nowrap; }
.lite-offline-payment { padding: 8px 0; }
.lite-checkout-grid > #lite-payment-result { grid-column: 1 / -1; }
.lite-offline-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lite-offline-header h3 { margin: 8px 0 8px; color: var(--ink); font-size: 28px; }
.lite-offline-header p, .lite-offline-instructions p { margin: 0; color: var(--muted); line-height: 1.8; }
.lite-payment-badge { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: rgba(212, 0, 11, .08); color: var(--red); font-size: 13px; font-weight: 800; }
.lite-offline-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 28px; padding-top: 26px; }
.lite-offline-main { min-width: 0; }
.lite-offline-order { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(212, 0, 11, .06); color: var(--ink); }
.lite-offline-order div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.lite-offline-order span, .lite-offline-contact span { color: var(--muted); font-size: 13px; }
.lite-offline-order strong { color: var(--red); letter-spacing: .04em; word-break: break-all; }
.lite-copy-order { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(212, 0, 11, .24); border-radius: 9px; background: #fff; color: var(--red); font: inherit; font-size: 12px; cursor: pointer; }
.lite-copy-order:hover { background: rgba(212, 0, 11, .06); }
.lite-offline-instructions { margin-top: 24px; }
.lite-offline-section-label { display: block; margin-bottom: 8px; color: var(--red-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.lite-offline-instructions h4 { margin: 0 0 8px; color: var(--ink); font-size: 19px; }
.lite-offline-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.lite-offline-steps li { display: flex; gap: 11px; min-height: 82px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .68); }
.lite-offline-steps li > span { color: var(--red); font-size: 12px; font-weight: 900; }
.lite-offline-steps strong, .lite-offline-steps small { display: block; }
.lite-offline-steps strong { color: var(--ink); font-size: 13px; line-height: 1.5; }
.lite-offline-steps small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lite-offline-side { display: grid; align-content: start; gap: 14px; }
.lite-offline-contact, .lite-offline-notice { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lite-offline-contact strong { display: block; margin: 5px 0 4px; color: var(--red); font-size: 21px; }
.lite-offline-contact small { display: block; color: var(--muted); line-height: 1.6; }
.lite-offline-notice { background: #fff8ed; border-color: #f2ca84; }
.lite-offline-notice strong { color: #8b5b14; }
.lite-offline-notice p { margin: 8px 0 0; color: #856a47; font-size: 13px; line-height: 1.8; }
.lite-offline-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.lite-payment-info, .lite-proof-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); }
.lite-payment-info.is-placeholder { border-color: #f2ca84; background: #fffaf0; }
.lite-payment-info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lite-payment-info-head h4, .lite-proof-panel h4 { margin: 0 0 7px; color: var(--ink); font-size: 19px; }
.lite-payment-config-badge { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: rgba(212,0,11,.08); color: var(--red); font-size: 12px; font-weight: 900; }
.lite-payment-info.is-placeholder .lite-payment-config-badge { background: #fff0cf; color: #8b5b14; }
.lite-payment-info-grid { display: grid; gap: 10px; margin-top: 17px; }
.lite-payment-info-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(92, 45, 38, .09); }
.lite-payment-info-grid span { color: var(--muted); font-size: 13px; }
.lite-payment-info-grid strong { color: var(--ink); text-align: right; word-break: break-all; }
.lite-payment-account strong { color: var(--red); letter-spacing: .04em; }
.lite-payment-info-note, .lite-proof-panel p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.lite-payment-info.is-placeholder .lite-payment-info-note { color: #856a47; }
.lite-proof-panel { display: grid; align-content: start; }
.lite-proof-upload { display: grid; gap: 5px; margin-top: 17px; padding: 15px; border: 1px dashed rgba(212,0,11,.35); border-radius: 15px; background: rgba(212,0,11,.035); cursor: pointer; }
.lite-proof-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lite-proof-upload span { color: var(--red-dark); font-weight: 900; }
.lite-proof-upload strong { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lite-proof-upload small { color: var(--muted); }
.lite-proof-note { display: grid; gap: 7px; margin-top: 13px; }
.lite-proof-note label { color: var(--red-dark); font-size: 13px; font-weight: 900; }
.lite-proof-note input { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.86); border-radius: 12px; padding: 11px 12px; color: var(--ink); font: inherit; }
.lite-proof-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.lite-proof-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
#lite-proof-status { color: var(--muted); font-size: 13px; line-height: 1.6; }
#lite-proof-status.is-success { color: #2f6b37; }
#lite-proof-status.is-error { color: var(--red); }

@media (max-width: 680px) {
  .publisher-card { grid-template-columns: 1fr; }
  .lite-checkout-grid { grid-template-columns: 1fr; }
  .lite-summary-card { grid-template-columns: 100px 1fr; }
  .lite-form-card { padding: 20px; }
  .lite-modal-dialog { padding: 24px 18px; }
  .lite-offline-header { flex-direction: column; gap: 14px; }
  .lite-offline-layout, .lite-offline-steps { grid-template-columns: 1fr; }
  .lite-offline-order { align-items: flex-start; flex-direction: column; }
  .lite-offline-extra { grid-template-columns: 1fr; }
  .lite-payment-info-grid > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .lite-payment-info-grid strong { text-align: left; }
}
@media (max-width: 980px) {
  .mall-hero, .store-head, .goods-layout { grid-template-columns: 1fr; }
  .mall-tabs { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mall-hero, .mall-tabs { width: min(100% - 24px, 1180px); }
  .mall-banner { padding: 28px; min-height: 360px; }
  .mall-tabs, .product-grid { grid-template-columns: 1fr; }
}

.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid[hidden] { display: none !important; }
.form-field { display:grid; gap: 8px; }
.form-field label { color: var(--red-dark); font-weight: 900; }
.form-field input, .form-field select, .form-field textarea { width:100%; border:1px solid var(--line); background:rgba(255,255,255,.86); border-radius:16px; padding:13px 14px; color:var(--ink); font:inherit; }
.form-field textarea { min-height: 110px; resize: vertical; }
.upload-box { border:1px dashed rgba(212,0,11,.38); background:rgba(212,0,11,.045); border-radius:18px; padding:18px; color:var(--muted); line-height:1.7; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.upload-box { cursor: pointer; display: block; }
.upload-box input[type="file"] { display: none; }
.upload-box .upload-title { display:block; color: var(--ink); font-weight: 900; margin-bottom: 6px; }
.upload-box .upload-hint { display:block; color: var(--muted); font-size: 14px; }
.upload-box .file-name { display:block; margin-top: 8px; color: var(--red); font-weight: 900; }

.feedback-box { display:none; margin-top:18px; border-radius:22px; padding:18px 20px; background:rgba(212,0,11,.07); border:1px solid rgba(212,0,11,.22); color:var(--ink); line-height:1.8; }
.feedback-box.show { display:block; }
.feedback-box strong { color:var(--red); }
.form-error { display:none; margin-top:14px; color:var(--red); font-weight:900; }
.form-error.show { display:block; }
button.btn { cursor:pointer; font-family:inherit; font-size:inherit; }

.mall-hero.full { grid-template-columns: 1fr; }
.mall-banner.with-photo { min-height: 520px; background: linear-gradient(90deg, rgba(73,0,4,.88), rgba(139,0,7,.52), rgba(0,0,0,.12)), var(--banner-image) center/cover no-repeat; }
.mall-banner.with-photo::before { color: rgba(255,255,255,.16); }
.product-media.has-photo, .store-cover.has-photo { background: #3a1614; padding: 0; }
.product-media.has-photo img, .store-cover.has-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.product-media.has-photo::before, .store-cover.has-photo::before { z-index:2; }
.product-media.has-photo::after, .store-cover.has-photo::after { z-index:2; }
.product-media.has-photo strong, .store-cover.has-photo strong { position:relative; z-index:3; padding: 12px 18px; border-radius: 18px; background: rgba(44,12,10,.42); backdrop-filter: blur(8px); }
.product-media.has-photo::selection, .store-cover.has-photo::selection { background: transparent; }

.mall-banner.banner-link { display:block; padding:0; min-height:520px; cursor:pointer; }
.mall-banner.banner-link::before, .mall-banner.banner-link::after { content:none; }
.product-media.has-photo::after, .store-cover.has-photo::after { content:none; }
.product-media.has-photo strong, .store-cover.has-photo strong { display:none; }

/* Banner without overlay */
.mall-banner.with-photo.banner-link { background: var(--banner-image) center/cover no-repeat !important; }

.banner-image-link { display:block; width:min(1180px, calc(100% - 40px)); margin:34px auto 0; border-radius:36px; overflow:hidden; box-shadow:0 34px 80px rgba(142,0,8,.18); background:#fff; }
.banner-image-link img { width:100%; height:auto; display:block; }
@media (max-width:680px){ .banner-image-link { width:min(100% - 24px, 1180px); border-radius:24px; } }

.license-image { max-width: 560px; width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 46px rgba(81, 30, 25, 0.12); margin: 12px 0; }
.status-pill { display:inline-flex; align-items:center; min-height:34px; padding:0 14px; border-radius:999px; background:rgba(212,0,11,.08); color:var(--red); font-weight:900; border:1px solid var(--line); }
