:root {
  --green: #174c35;
  --green-2: #23704d;
  --cash: #e84f2f;
  --gold: #c79a43;
  --gold-2: #efd69b;
  --rose: #c97874;
  --ink: #18231d;
  --muted: #6f7b73;
  --line: #e8e1d3;
  --bg: #f6f0e7;
  --card: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbf7ef 0%, #f5efe6 38%, #f7f4ef 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, .86);
  border-bottom: 1px solid rgba(232, 225, 211, .9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 13px; align-items: center; }
.logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-shadow: 0 10px 30px rgba(23, 76, 53, .24);
}
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.top-nav {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.top-nav button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
}
.top-nav button.active {
  background: var(--green);
  color: white;
}
.shop-channel-nav {
  position: sticky;
  top: 72px;
  z-index: 28;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-channel-nav::-webkit-scrollbar {
  display: none;
}
.shop-channel-nav button,
.shop-channel-nav .channel-link {
  flex: 0 0 auto;
  border: 1px solid rgba(232, 225, 211, .88);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 253, 248, .92);
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23,35,29,.06);
  backdrop-filter: blur(14px);
}
.shop-channel-nav button:hover,
.shop-channel-nav button.active,
.shop-channel-nav .channel-link:hover {
  border-color: rgba(23, 76, 53, .24);
  background: var(--green);
  color: #fff;
}
.admin-entry {
  border: 1px solid rgba(23, 76, 53, .16);
  background: rgba(255, 253, 248, .86);
  color: rgba(111, 123, 115, .58);
  font-size: 12px;
}
.floating-admin-entry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border-radius: 999px;
  padding: 9px 13px;
  box-shadow: 0 12px 30px rgba(23, 35, 29, .10);
  backdrop-filter: blur(12px);
}
.admin-entry:hover {
  color: var(--green);
  border-color: rgba(23, 76, 53, .28);
  background: #fff;
}
.back-top {
  position: fixed;
  right: 18px;
  bottom: 64px;
  z-index: 80;
  border: 1px solid rgba(23, 76, 53, .18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(23, 76, 53, .94);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(23, 35, 29, .12);
}

#top,
#businessNav,
#flashSale,
#hotSale,
#brandMarket,
#fanBenefits,
#products {
  scroll-margin-top: 136px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.hero-commerce {
  min-height: 470px;
  margin: 28px auto 20px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
  position: relative;
  background:
    linear-gradient(90deg, rgba(16, 55, 38, .96) 0%, rgba(16, 55, 38, .90) 42%, rgba(16, 55, 38, .24) 69%, rgba(16, 55, 38, .10) 100%),
    url("/hero-cashback-shopping.png") center right / cover no-repeat,
    linear-gradient(135deg, #123a29, #1f6a48 55%, #b46d1f);
  color: white;
  box-shadow: 0 28px 80px rgba(23, 76, 53, .24);
}
.hero-commerce::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 36%),
    radial-gradient(circle at 83% 18%, rgba(255, 222, 126, .32), transparent 23%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 72px);
  align-self: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  max-width: 610px;
  letter-spacing: 0;
}
.hero-sub {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.78;
}
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-benefits span {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.90);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.primary-link, .hero-actions button, .admin-hero button {
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  text-decoration: none;
  font-weight: 800;
}
.primary-link {
  background: #fff;
  color: #173524;
}
.hero-actions button, .admin-hero button {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
}
.hero-visual {
  position: relative;
  min-height: 470px;
  z-index: 1;
}
.hero-poster {
  position: absolute;
  left: 24px;
  right: 26px;
  bottom: 24px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255,253,248,.90), rgba(255,255,255,.68));
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
}
.poster-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff1dc;
  color: var(--cash);
  font-size: 12px;
  font-weight: 950;
}
.hero-poster strong {
  display: block;
  margin-top: 12px;
  max-width: 430px;
  font-size: 30px;
  line-height: 1.16;
}
.hero-poster p {
  max-width: 470px;
  margin: 12px 0 0;
  color: #5f6a62;
  line-height: 1.6;
}
.hero-logo-wall {
  position: absolute;
  top: 24px;
  right: 24px;
  width: min(430px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hero-logo-wall span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 253, 248, .84);
  color: #173524;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  backdrop-filter: blur(16px);
}
.hero-logo-wall img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.poster-card {
  position: absolute;
  left: 58px;
  right: 54px;
  top: 84px;
  min-height: 250px;
  border-radius: 24px;
  padding: 30px;
  background: rgba(255,253,248,.94);
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(0,0,0,.20);
}
.poster-card::before {
  content: "CASHBACK";
  position: absolute;
  right: 24px;
  top: 24px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff0dc;
  color: var(--cash);
  font-size: 12px;
  font-weight: 950;
}
.poster-card span {
  color: var(--green-2);
  font-weight: 800;
  font-size: 14px;
}
.poster-card strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.15;
}
.poster-card em {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
}
.floating-product {
  position: absolute;
  display: grid;
  place-items: center;
  width: 120px;
  height: 150px;
  border-radius: 30px;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  box-shadow: 0 22px 44px rgba(0,0,0,.24);
}
.bottle-one {
  right: 48px;
  bottom: 52px;
  background: linear-gradient(160deg, #352419, #c79a43);
}
.bottle-two {
  left: 30px;
  bottom: 42px;
  background: linear-gradient(160deg, #173524, #8ab392);
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}
.trust-strip div {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.trust-strip strong {
  display: block;
  font-size: 24px;
  color: var(--green);
}
.trust-strip span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.business-gateway {
  margin: 0 0 26px;
}
.business-title {
  align-items: end;
  margin: 4px 0 14px;
}
.business-title h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.14;
}
.business-title span {
  color: var(--muted);
}
.business-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.business-card {
  position: relative;
  min-height: 245px;
  border: 1px solid rgba(232, 225, 211, .92);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(23, 35, 29, .12);
}
.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 32, 24, .12), rgba(12, 32, 24, .68));
  pointer-events: none;
}
.business-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.business-card span,
.business-card strong,
.business-card p,
.business-card em {
  position: relative;
  z-index: 1;
}
.business-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(12px);
}
.business-card strong {
  display: block;
  margin-top: auto;
  font-size: 30px;
  line-height: 1.12;
}
.business-card p {
  min-height: 72px;
  margin: 12px 0 18px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.65;
}
.business-card em {
  width: fit-content;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}
.business-card:hover {
  transform: translateY(-2px);
}
.business-card[type="button"] {
  border: 1px solid rgba(232, 225, 211, .92);
  cursor: pointer;
}
.dutyfree-business {
  background:
    linear-gradient(135deg, rgba(16,55,38,.82), rgba(23,112,77,.34)),
    url("/menu-posters/photo-bg-beauty-hall.png") center / cover no-repeat,
    #174c35;
}
.beauty-business {
  background:
    linear-gradient(135deg, rgba(76, 38, 72, .78), rgba(232,79,47,.32)),
    url("/hero-cashback-shopping.png") center right / cover no-repeat,
    #7b4b64;
}
.health-business {
  background:
    linear-gradient(135deg, rgba(19, 96, 77, .82), rgba(222, 177, 82, .24)),
    url("/supplements-hero-wellness.png") center / cover no-repeat,
    #23704d;
}
.category-gateway {
  margin: 0 0 26px;
  border: 1px solid rgba(205, 190, 159, .72);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,253,248,.98), rgba(245,250,244,.94));
  box-shadow: 0 18px 50px rgba(23,35,29,.07);
}
.category-gateway-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.category-gateway-head span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf5ee;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}
.category-gateway-head h2 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.18;
}
.category-gateway-head button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}
.category-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-gateway-card {
  min-width: 0;
  border: 1px solid rgba(205, 190, 159, .70);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 5px 12px;
  align-items: center;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(23,35,29,.05);
}
.category-gateway-card:hover,
.category-gateway-card.active {
  border-color: rgba(23, 76, 53, .36);
  background: linear-gradient(135deg, #ffffff, #eef8f1);
}
.category-gateway-card.coming {
  opacity: .62;
  cursor: default;
}
.category-icon {
  grid-row: span 4;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #ffe6aa;
  font-weight: 950;
}
.category-gateway-card strong {
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
}
.category-gateway-card p {
  grid-column: 2;
  margin: 0;
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.category-gateway-card em {
  grid-column: 2;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff1e9;
  color: var(--cash);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}
.category-gateway-card small {
  grid-column: 2;
  color: rgba(111,123,115,.86);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 26px;
}
.campaign-card {
  min-height: 160px;
  border-radius: 22px;
  padding: 22px;
  color: white;
  position: relative;
  overflow: hidden;
}
.campaign-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -42px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.campaign-card span { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.78); }
.campaign-card h2 { margin: 18px 0 8px; font-size: 25px; }
.campaign-card p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }
.campaign-card.gold { background: linear-gradient(135deg, #6a4724, #c79a43); }
.campaign-card.green { background: linear-gradient(135deg, #173524, #23704d); }
.campaign-card.rose { background: linear-gradient(135deg, #6e3335, #c97874); }
.campaign-action {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 850;
}

.promo-banner-slot {
  margin: 10px 0 26px;
}
.promo-banner-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 88% 22%, rgba(255,214,120,.42), transparent 28%),
    linear-gradient(135deg, #174c35, #276c4b 58%, #e84f2f);
  box-shadow: 0 18px 46px rgba(23, 76, 53, .16);
}
.promo-banner-2 {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.30), transparent 25%),
    linear-gradient(135deg, #22342b, #8a6531 55%, #f3b24b);
}
.promo-banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.24), rgba(0,0,0,.02));
}
.promo-banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-banner-card.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17,48,34,.78), rgba(17,48,34,.20));
}
.promo-banner-card.has-image::before,
.promo-banner-card.has-image::after {
  display: none;
}
.promo-banner-card.has-image span,
.promo-banner-card.has-image strong,
.promo-banner-card.has-image p,
.promo-banner-card.has-image em {
  display: none;
}
.promo-banner-card span,
.promo-banner-card strong,
.promo-banner-card p,
.promo-banner-card em {
  position: relative;
  z-index: 2;
}
.promo-banner-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.18);
  color: #ffe0a1;
  font-size: 12px;
  font-weight: 900;
}
.promo-banner-card strong {
  display: block;
  max-width: 360px;
  margin-top: 16px;
  font-size: 28px;
  line-height: 1.15;
}
.promo-banner-card p {
  max-width: 420px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  line-height: 1.55;
}
.promo-banner-card em {
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255,255,255,.92);
  color: #173524;
  font-style: normal;
  font-weight: 900;
}

.marketing-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 16px;
  margin: 4px 0 30px;
}
.marketing-main-card,
.welfare-card,
.hot-card,
.brand-special-card,
.marketing-admin-card {
  border: 1px solid rgba(205, 190, 159, .72);
  background: rgba(255,253,248,.96);
  box-shadow: 0 16px 40px rgba(23,35,29,.07);
}
.marketing-main-card {
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23,76,53,.97), rgba(23,76,53,.84) 42%, rgba(232,79,47,.20)),
    url("/hero-cashback-shopping.png") center right / cover no-repeat;
  color: #fff;
}
.module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.module-head span,
.welfare-card > span,
.hot-card > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.88);
  color: var(--cash);
  font-size: 12px;
  font-weight: 950;
}
.module-head h2,
.welfare-card h3,
.hot-card h3 {
  margin: 10px 0 0;
  line-height: 1.14;
}
.module-head h2 { font-size: 32px; }
.module-head p,
.welfare-card p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}
.module-head > strong {
  flex: 0 0 auto;
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255,255,255,.14);
  color: #ffe6aa;
}
.flash-product-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.marketing-product-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  text-align: left;
}
.marketing-img {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fffaf1;
}
.marketing-img img,
.compact-hot-product img,
.brand-special-product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.marketing-product-card strong {
  display: block;
  height: 40px;
  margin-top: 9px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
}
.marketing-product-card em {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff1e9;
  color: var(--cash);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}
.marketing-product-card small {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-weight: 900;
}
.marketing-side {
  display: grid;
  gap: 16px;
}
.welfare-card,
.hot-card {
  border-radius: 24px;
  padding: 18px;
}
.welfare-card {
  min-height: 230px;
  background: linear-gradient(135deg, #fffdf8, #fff1e9);
}
.welfare-card h3,
.hot-card h3 {
  color: var(--ink);
  font-size: 24px;
}
.welfare-card p {
  color: var(--muted);
}
.welfare-card em {
  display: block;
  margin-top: 8px;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}
.fan-sample-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.fan-sample-product {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  background: #fff;
  text-align: left;
}
.fan-sample-product span {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  overflow: hidden;
  background: #fffaf1;
}
.fan-sample-product img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fan-sample-product strong {
  display: block;
  height: 33px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
}
.fan-sample-product em {
  display: inline-flex;
  margin-top: 5px;
  padding: 4px 6px;
  background: #fff1e9;
  color: var(--cash);
  font-size: 10px;
  font-weight: 950;
}
.compact-hot-product {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: transparent;
  text-align: left;
}
.compact-hot-product span {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf1;
}
.compact-hot-product strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}
.compact-hot-product em {
  color: var(--cash);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}
.brand-market {
  margin: 8px 0 32px;
}
.brand-market-title a {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.brand-special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.brand-market-category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
}
.brand-market-category-tabs::-webkit-scrollbar {
  display: none;
}
.brand-market-category-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,253,248,.92);
  color: var(--muted);
  font-weight: 900;
}
.brand-market-category-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.brand-market-category-tabs em {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(23,76,53,.08);
  color: inherit;
  font-size: 11px;
  font-style: normal;
}
.brand-special-card {
  border-radius: 22px;
  padding: 16px;
}
.brand-special-card header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.brand-mini-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(135deg, #173524, #23704d);
  color: #fff7d8;
  overflow: hidden;
  text-align: center;
}
.brand-mini-logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  padding: 4px;
  background: #fff;
  object-fit: contain;
}
.brand-mini-logo img.broken { display: none; }
.brand-mini-logo span {
  max-width: 100%;
  padding: 0 5px;
  font-size: 12px;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.brand-special-card h4 {
  margin: 0;
  font-size: 20px;
}
.brand-special-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.brand-special-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.brand-special-product {
  min-width: 0;
  border: 1px solid rgba(232, 225, 211, .95);
  border-radius: 13px;
  padding: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf8, #fff7ec);
  text-align: left;
  box-shadow: 0 8px 18px rgba(23,35,29,.06);
}
.brand-special-product span {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(232, 225, 211, .74);
  border-radius: 10px;
  overflow: hidden;
  background: #f2eadc;
}
.brand-special-product em {
  display: block;
  height: 35px;
  padding: 6px 2px 0;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  overflow: hidden;
}
.marketing-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.marketing-admin-card {
  border-radius: 18px;
  padding: 16px;
}
.marketing-admin-card h4 {
  margin: 0;
  font-size: 18px;
}
.marketing-admin-card p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.marketing-admin-card textarea {
  min-height: 58px;
}
.promo-admin-card {
  grid-column: 1 / -1;
}
.promo-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.promo-admin-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.62);
}
.promo-admin-item > strong {
  display: block;
  margin-bottom: 8px;
}

.shop-toolbar {
  margin: 32px 0 16px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 20px;
  align-items: end;
}
.shop-toolbar h2 {
  margin: 0;
  font-size: 32px;
}
.shop-toolbar p {
  margin: 9px 0 0;
  color: var(--muted);
}
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 15px 17px;
  outline: none;
  box-shadow: 0 10px 30px rgba(23, 35, 29, .06);
}
.category-tabs, .sort-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
}
.category-tabs button, .sort-tabs button, .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
}
.category-tabs button em {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(23,76,53,.08);
  color: inherit;
  font-size: 11px;
  font-style: normal;
}
.category-tabs button.active, .sort-tabs button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.product-section {
  padding: 8px 0 70px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 18px;
}
.section-title h3 { margin: 0; font-size: 24px; }
.section-title span { color: var(--muted); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.brand-section {
  background: rgba(255,253,248,.96);
  border: 1px solid rgba(205, 190, 159, .72);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(23,35,29,.06);
}
.brand-section-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(23,76,53,.98), rgba(42,91,73,.96));
  color: #fff;
}
.brand-section-logo {
  min-height: 126px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.12);
  text-align: center;
}
.brand-section-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  padding: 7px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.brand-section-logo img.broken { display: none; }
.brand-section-logo span {
  max-width: 100%;
  padding: 0 10px;
  color: #fff7d8;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.brand-section-logo small {
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.brand-section-title {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.brand-section-title h4 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}
.brand-section-title p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.74);
}
.brand-section-saving {
  flex: 0 0 auto;
  min-width: 150px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.13);
  text-align: right;
}
.brand-section-saving span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}
.brand-section-saving strong {
  display: block;
  margin-top: 5px;
  color: #ffe9a8;
  font-size: 28px;
}
.brand-product-list {
  display: grid;
}
.brand-product-row {
  display: grid;
  grid-template-columns: 78px minmax(240px, 1fr) 92px 92px 96px 230px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(232,225,211,.85);
}
.brand-product-row:nth-child(even) {
  background: rgba(247,243,236,.58);
}
.product-main {
  min-width: 0;
}
.product-image-link {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(232,225,211,.92);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: #fffaf1;
  box-shadow: 0 8px 22px rgba(23,35,29,.06);
}
.product-image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .18s ease;
}
.product-image-link:hover img {
  transform: scale(1.06);
}
.product-row-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 880;
  line-height: 1.42;
}
.product-title-link {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 900;
  line-height: 1.42;
}
.product-title-link:hover {
  color: var(--cash);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.copy-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.copy-icon:hover,
.copy-icon.copied {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.product-row-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.product-row-meta span {
  border-radius: 999px;
  padding: 4px 7px;
  background: #f3eee4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}
.row-price span,
.row-cashback span,
.row-net span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}
.row-price strong,
.row-cashback strong,
.row-net strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}
.row-price strong { color: #8a641f; }
.row-cashback strong { color: var(--cash); }
.row-net strong { color: var(--green); }
.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.row-actions a,
.row-actions button {
  min-width: 0;
  border: 0;
  border-radius: 10px;
  padding: 9px 7px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}
.row-actions a {
  background: #fff0dc;
  color: #9a5e18;
}
.row-actions button.secondary {
  background: #f1eadc;
  color: #76591f;
}
.row-actions .intent-btn {
  background: var(--green);
  color: #fff;
}
.brand-more {
  width: 100%;
  border: 0;
  padding: 12px 16px 15px;
  border-top: 1px solid rgba(232,225,211,.85);
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  background: rgba(255,250,241,.72);
}
.brand-more:hover {
  background: #f4ead8;
}
.product-card {
  background:
    linear-gradient(180deg, rgba(255,253,248,.98), rgba(255,250,241,.96));
  border: 1px solid rgba(205, 190, 159, .72);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(23,35,29,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(23,35,29,.13);
}
.deal-badge {
  position: relative;
  min-height: 188px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(23,76,53,.98), rgba(39,85,72,.96) 44%, rgba(176,109,31,.92));
  color: #fff;
  overflow: hidden;
}
.deal-badge::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px;
  pointer-events: none;
}
.deal-badge::after {
  content: "DG CASHBACK";
  position: absolute;
  right: 14px;
  bottom: 72px;
  color: rgba(255,255,255,.10);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}
.deal-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.deal-topline span {
  min-width: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deal-topline strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--cash);
  font-size: 13px;
  font-weight: 950;
}
.brand-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 210px);
  min-height: 76px;
  margin: 12px auto 8px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.12);
  color: #fff7d8;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.brand-logo img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  padding: 5px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.brand-logo img.broken {
  display: none;
}
.brand-logo img:not(.broken) + span {
  font-size: 18px;
  margin-top: 1px;
}
.brand-logo span {
  max-width: 100%;
  padding: 0 12px;
  display: block;
  overflow-wrap: anywhere;
  line-height: 1;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}
.brand-logo small {
  display: block;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.logo-chanel span,
.logo-dior span,
.logo-laprairie span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .08em;
}
.logo-lamer span {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .06em;
}
.logo-sk2 span,
.logo-ysl span,
.logo-hr span {
  font-size: 30px;
}
.logo-sk2 img:not(.broken) + span,
.logo-ysl img:not(.broken) + span,
.logo-hr img:not(.broken) + span {
  font-size: 22px;
}
.logo-lancome span,
.logo-estee span,
.logo-shiseido span {
  font-size: 22px;
  letter-spacing: .05em;
}
.deal-name {
  position: relative;
  z-index: 1;
  height: 40px;
  margin-top: 8px;
  text-align: center;
  line-height: 1.45;
  font-size: 14px;
  font-weight: 780;
  overflow: hidden;
}
.deal-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 16px;
  text-align: center;
}
.deal-bottom span {
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.deal-bottom em {
  color: #fff;
  font-style: normal;
  font-size: 18px;
  font-weight: 950;
}
.product-info {
  padding: 14px;
}
.brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.brand-line span {
  min-width: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-line em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  background: #f5efe3;
  color: #936d29;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.product-info h4 {
  height: 43px;
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  overflow: hidden;
}
.product-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 12px;
}
.price-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.price {
  color: #b46d1f;
  font-weight: 900;
  font-size: 22px;
}
.cashback-chip {
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 8px 9px;
  background: #fff0dc;
  color: var(--cash);
  font-size: 13px;
  font-weight: 950;
}
.net-price {
  margin-top: 9px;
  border-radius: 12px;
  padding: 9px 10px;
  background: #f5f8ee;
  color: var(--green);
  font-size: 13px;
}
.net-price strong {
  font-size: 18px;
}
.service-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.service-points span {
  min-width: 0;
  border-radius: 10px;
  padding: 7px 5px;
  background: #fff8ed;
  color: #7b5b20;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.stock-note { color: var(--muted); font-size: 12px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 11px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #f2eee5;
  color: #84611e;
}
.reference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
}
.reference-row a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}
.reference-row span {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-actions {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 8px;
  margin-top: 14px;
}
.card-actions button, .primary {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--green);
  color: white;
  font-weight: 800;
}
.card-actions button.secondary {
  background: #f2eadc;
  color: #76591f;
}
.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.detail-actions .primary {
  flex: 1 1 180px;
  min-height: 46px;
}
.detail-icon-action {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 14px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}
.detail-icon-action.active {
  background: #fff1e9;
  border-color: #f2c3ad;
  color: var(--cash);
}
.detail-light-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.text-link-btn {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 850;
}
.detail-final-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.detail-share {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff1e9;
  color: var(--cash);
  font-weight: 850;
}
.detail-favorite {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #f7f0df;
  color: #8a641f;
  font-weight: 850;
}
.detail-favorite.active {
  background: #ffe2c9;
  color: #a44521;
}
.share-preview {
  margin-top: 14px;
  border: 1px dashed #e8cfa7;
  border-radius: 16px;
  padding: 14px;
  background: #fff9ef;
}
.share-preview span {
  display: block;
  color: #9a5e18;
  font-size: 12px;
  font-weight: 900;
}
.share-preview p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.share-card {
  position: relative;
  margin-top: 16px;
  border: 1px solid rgba(232, 207, 167, .92);
  border-radius: 20px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 251, 242, .97), rgba(255, 239, 222, .96)),
    radial-gradient(circle at 88% 10%, rgba(232,79,47,.18), transparent 34%);
  box-shadow: 0 18px 42px rgba(154, 94, 24, .10);
}
.share-card::after {
  content: "CASHBACK";
  position: absolute;
  right: -18px;
  bottom: 18px;
  color: rgba(199,154,67,.16);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 0;
  transform: rotate(-12deg);
}
.share-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.share-card-top span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #9a5e18;
  font-size: 12px;
  font-weight: 900;
}
.share-card-top strong {
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--cash);
  color: #fff;
  font-size: 15px;
}
.share-card-brand {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}
.share-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 14px;
  max-width: 560px;
  font-size: 23px;
  line-height: 1.28;
}
.share-card-money {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.share-card-money div {
  border-radius: 14px;
  padding: 11px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(232,207,167,.72);
}
.share-card-money span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.share-card-money strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 19px;
}
.share-card-money div:nth-child(2) strong {
  color: var(--cash);
}
.share-card p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #5f6a62;
  line-height: 1.65;
}
.share-card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}
.share-card-actions button {
  border: 0;
  border-radius: 12px;
  padding: 11px 10px;
  font-weight: 900;
}
.share-card-actions button:first-child {
  background: var(--green);
  color: #fff;
}
.share-card-actions button:nth-child(2) {
  background: #fff1e9;
  color: var(--cash);
}
.share-card-actions button:nth-child(3) {
  background: #eef4ea;
  color: var(--green);
}
.share-card-actions button:nth-child(4) {
  background: #fff;
  color: #76591f;
}
.share-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: #8a7560;
  font-size: 12px;
  line-height: 1.5;
}
.share-poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 18, 14, .58);
  backdrop-filter: blur(10px);
}
.share-poster-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border-radius: 24px;
  padding: 18px;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  text-align: center;
}
.share-poster-panel h3 {
  margin: 4px 42px 4px;
  color: var(--ink);
  font-size: 20px;
}
.share-poster-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.share-poster-loading {
  border-radius: 18px;
  padding: 52px 18px;
  background: #f8f1e6;
  color: var(--green);
  font-weight: 850;
}
.share-poster-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.wechat-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 132;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 18px 18px;
  background: rgba(10, 18, 14, .58);
  backdrop-filter: blur(10px);
}
.wechat-guide-panel {
  position: relative;
  width: min(420px, 100%);
  border-radius: 24px;
  padding: 22px;
  background: #fffdf8;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
}
.wechat-guide-arrow {
  position: absolute;
  right: 20px;
  top: -58px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--cash);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(232,79,47,.28);
}
.wechat-guide-panel h3 {
  margin: 0 42px 8px 0;
  color: var(--ink);
  font-size: 22px;
}
.wechat-guide-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.wechat-guide-card {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: #fff8ed;
  text-align: left;
}
.wechat-guide-card strong {
  color: var(--ink);
  line-height: 1.35;
}
.wechat-guide-card span {
  color: var(--cash);
  font-size: 13px;
  font-weight: 850;
}
.wechat-guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.wechat-guide-actions button {
  border: 0;
  border-radius: 14px;
  padding: 12px 10px;
  font-weight: 900;
}
.wechat-guide-actions button:first-child {
  background: var(--green);
  color: #fff;
}
.wechat-guide-actions button:nth-child(2) {
  background: #fff1e9;
  color: var(--cash);
}
.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff0dc;
  color: #a15a17;
  text-decoration: none;
  font-weight: 850;
}
.external-link.disabled {
  background: #f2eee5;
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, calc(100% - 32px));
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(22, 56, 38, .94);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 20, 16, .48);
  display: grid;
  place-items: end center;
  padding: 24px;
}
.drawer-panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fffdf8;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.26);
}
.detail-panel {
  width: min(820px, 100%);
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 17px;
  background: rgba(255,255,255,.82);
  font-size: 22px;
  z-index: 2;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}
.compact-detail-layout {
  align-items: stretch;
}
.detail-hero {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #f0eadf;
  overflow: hidden;
}
.product-image-hero {
  border: 1px solid rgba(232,225,211,.92);
  background: #fffaf1;
}
.product-image-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}
.no-image-hero .deal-badge {
  height: 100%;
  min-height: 420px;
  border-radius: 20px;
}
.no-image-hero .brand-logo {
  width: min(100%, 330px);
  min-height: 132px;
  border-radius: 22px;
}
.no-image-hero .brand-logo span {
  font-size: 38px;
}
.no-image-hero .brand-logo img {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  padding: 8px;
}
.no-image-hero .brand-logo img:not(.broken) + span {
  font-size: 30px;
}
.no-image-hero .logo-lancome span,
.no-image-hero .logo-estee span,
.no-image-hero .logo-shiseido span {
  font-size: 32px;
}
.no-image-hero .deal-name {
  height: auto;
  min-height: 64px;
  font-size: 22px;
  padding: 0 18px;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-copy {
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.detail-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}
.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.detail-meta-line span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f6f1e8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0;
  color: #b46d1f;
  font-size: 34px;
  font-weight: 950;
}
.detail-cashback {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.detail-cashback div {
  border-radius: 16px;
  padding: 14px;
  background: #fff7ea;
  border: 1px solid #f0d8aa;
}
.detail-cashback div:nth-child(2) {
  background: #fff1e9;
  border-color: #f2c3ad;
}
.detail-cashback span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.detail-cashback strong {
  display: block;
  margin-top: 5px;
  color: var(--cash);
  font-size: 24px;
}
.detail-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.info-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.info-box span { display: block; color: var(--muted); font-size: 12px; }
.info-box strong { display: block; margin-top: 5px; font-size: 15px; }
.detail-selling {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.selling-point {
  border-radius: 14px;
  background: #f6f1e8;
  padding: 14px;
}
.selling-point strong { display: block; color: var(--green); }
.selling-point span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.external-note {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.external-note strong {
  color: var(--green);
}
.external-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.description-images {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.description-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.muted { color: var(--muted); line-height: 1.7; }
form { display: grid; gap: 14px; }
form h2 { margin: 0; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
label input, label textarea, label select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
.checkbox { display: flex; align-items: center; }

.admin-page {
  padding: 28px 0 70px;
}
.admin-hero {
  border-radius: 24px;
  padding: 34px;
  background: #163826;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.admin-hero h1 { margin: 0; font-size: 36px; }
.admin-hero p { color: rgba(255,255,255,.74); }
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-module-nav {
  position: sticky;
  top: 78px;
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(226, 213, 194, .9);
  border-radius: 18px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 14px 32px rgba(23, 35, 29, .08);
  backdrop-filter: blur(14px);
}
.admin-module-nav button {
  flex: 1 0 118px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.admin-module-nav button:hover {
  background: #f7efe0;
  color: var(--ink);
}
.admin-module-nav button.active {
  background: #163826;
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 56, 38, .18);
}
.admin-summary {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.admin-kpi, .inquiry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.admin-kpi strong { display: block; font-size: 28px; color: var(--green); }
.analytics-summary {
  margin-top: 0;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.analytics-panel h4 {
  margin: 0 0 14px;
  font-size: 16px;
}
.campaign-link-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}
.campaign-link-panel p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.campaign-preset-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.campaign-preset-list button {
  flex: 0 0 auto;
  border: 1px solid #eadfcf;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fffaf1;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.campaign-preset-list button:hover {
  border-color: rgba(21, 91, 59, .35);
  background: #edf7ef;
  color: var(--green);
}
.campaign-link-fields {
  align-items: end;
}
.campaign-link-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.campaign-link-output input {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: #f9f4ea;
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}
.analytics-row,
.trend-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0 13px;
  border-bottom: 1px solid #f0eadf;
}
.trend-row {
  grid-template-columns: 44px 34px minmax(90px, 1fr);
}
.analytics-row:last-child,
.trend-row:last-child {
  border-bottom: 0;
}
.analytics-row span,
.trend-row span,
.trend-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-row strong,
.trend-row strong {
  color: var(--green);
}
.analytics-row em,
.trend-row em {
  position: absolute;
  left: 0;
  bottom: 5px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.analytics-product-list {
  display: grid;
  gap: 8px;
}
.analytics-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 280px;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8f3ea;
}
.analytics-product-row strong,
.analytics-product-row span,
.analytics-product-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-product-row span {
  color: var(--muted);
}
.analytics-product-row em {
  color: var(--green);
  font-style: normal;
  font-size: 12px;
}
.admin-product-title {
  gap: 16px;
  align-items: flex-end;
}
.admin-product-title > div:first-child {
  display: grid;
  gap: 4px;
}
.admin-product-tools {
  display: flex;
  gap: 10px;
  min-width: min(520px, 100%);
}
.admin-product-tools input,
.admin-product-tools select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}
.compact-admin-section {
  padding-bottom: 28px;
}
.category-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.category-board-card {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
}
.category-board-card strong {
  font-size: 18px;
}
.category-board-card span {
  color: var(--muted);
  font-size: 12px;
}
.category-board-card.active-board {
  border-color: rgba(35, 112, 77, .42);
  background: #eff8f2;
}
.image-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.image-audit-card {
  display: grid;
  gap: 7px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fffaf1, #f7fbf3);
  color: var(--ink);
}
.image-audit-card span {
  color: var(--muted);
  font-size: 12px;
}
.image-audit-card strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1;
}
.image-audit-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.image-audit-card:hover {
  border-color: rgba(35, 112, 77, .42);
  transform: translateY(-1px);
}
.admin-product-tools input {
  flex: 1;
}
.admin-product-list {
  display: grid;
  gap: 10px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 74px minmax(260px, 1fr) minmax(420px, .95fr) 128px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.admin-product-row.inactive {
  opacity: .58;
  background: #f3f0ea;
}
.admin-product-thumb {
  width: 74px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f2e8;
  border: 1px solid var(--line);
}
.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-product-name strong {
  display: block;
  line-height: 1.35;
}
.admin-product-name span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.admin-product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.admin-product-tags span,
.admin-product-tags em {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4efe5;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.admin-product-tags em {
  background: #eaf4ed;
  color: var(--green);
  font-weight: 850;
}
.admin-product-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.admin-product-metrics div {
  border-radius: 12px;
  padding: 9px;
  background: #fff8ec;
}
.admin-product-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.admin-product-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 16px;
}
.admin-product-actions {
  display: grid;
  gap: 8px;
}
.affiliate-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 16px;
  align-items: start;
}
.affiliate-admin-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fffdf8;
  box-shadow: 0 16px 40px rgba(23,35,29,.06);
}
.affiliate-brand-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8f3ea;
}
.affiliate-brand-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.affiliate-brand-form input,
.affiliate-brand-form select,
.affiliate-brand-form textarea,
.affiliate-claim-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.affiliate-brand-form textarea {
  min-height: 84px;
  resize: vertical;
}
.affiliate-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.affiliate-product-manager {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(35,112,77,.14);
  border-radius: 16px;
  padding: 12px;
  background: #fffdf8;
}
.compact-product-title {
  margin: 0;
  align-items: center;
}
.compact-product-title h3 {
  margin: 0;
  font-size: 18px;
}
.affiliate-product-editor {
  display: grid;
  gap: 12px;
}
.affiliate-product-edit-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.affiliate-product-image-preview {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf4ed, #fff4da);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.affiliate-product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.affiliate-product-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.affiliate-brand-list,
.affiliate-claim-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.affiliate-brand-row,
.affiliate-claim-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.affiliate-brand-row.inactive {
  opacity: .58;
  background: #f3f0ea;
}
.affiliate-brand-logo {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(35,112,77,.16);
  background: linear-gradient(135deg, #edf7ed, #fff6df);
  color: var(--green);
  font-weight: 950;
}
.affiliate-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.affiliate-brand-row strong,
.affiliate-claim-row strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}
.affiliate-brand-row p,
.affiliate-claim-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.affiliate-row-actions {
  display: grid;
  gap: 8px;
}
.affiliate-claim-row {
  grid-template-columns: minmax(0, 1fr) 104px 132px;
}
.affiliate-claim-money {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 10px;
  background: #fff8ec;
}
.affiliate-claim-money span {
  color: var(--muted);
  font-size: 11px;
}
.affiliate-claim-money strong {
  color: var(--cash);
  font-size: 18px;
}
.product-edit-panel {
  width: min(860px, 100%);
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-order-title {
  gap: 14px;
  align-items: flex-end;
}
.order-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(6, minmax(120px, 150px));
  gap: 10px;
  margin: 0 0 14px;
}
.order-filter-bar input,
.order-filter-bar select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}
.order-summary {
  margin-top: 6px;
}
.inquiry-list { display: grid; gap: 12px; }
.inquiry-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px 170px;
  gap: 16px;
  align-items: center;
}
.order-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.order-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4efe5;
  color: var(--muted);
  font-size: 12px;
}
.order-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.order-stage-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eaf4ed;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}
.order-money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.order-money div {
  border-radius: 12px;
  padding: 10px;
  background: #fff8ec;
}
.order-money span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.order-money strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 18px;
}
.order-money div:nth-child(2) strong {
  color: var(--cash);
}
.order-tools {
  display: grid;
  gap: 8px;
}
.order-detail-panel {
  width: min(980px, 100%);
}
.order-detail-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px 130px;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff8ec;
}
.order-detail-head div {
  min-width: 0;
}
.order-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.order-detail-head strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.order-timeline {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.order-timeline h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 150px 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #f0eadf;
  padding: 10px 0;
}
.timeline-row span {
  color: var(--muted);
  font-size: 12px;
}
.timeline-row strong {
  color: var(--green);
  font-size: 13px;
}
.timeline-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.brand-application-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.inquiry-card h4 { margin: 0 0 7px; }
.status-pill {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f5efe3;
  color: #936d29;
  font-size: 12px;
  font-weight: 850;
}
.status-select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

@media (max-width: 1040px) {
  .hero-commerce {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(16, 55, 38, .96) 0%, rgba(16, 55, 38, .90) 48%, rgba(16, 55, 38, .22) 100%),
      url("/hero-cashback-shopping.png") center bottom / cover no-repeat,
      linear-gradient(135deg, #123a29, #1f6a48 55%, #b46d1f);
  }
  .hero-visual { min-height: 360px; }
  .business-card-grid {
    grid-template-columns: 1fr;
  }
  .business-card {
    min-height: 210px;
  }
  .marketing-hub {
    grid-template-columns: 1fr;
  }
  .brand-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marketing-admin-grid {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: 1fr; }
  .brand-product-row {
    grid-template-columns: 72px minmax(250px, 1fr) 88px 88px 92px;
  }
  .inquiry-order-card {
    grid-template-columns: 1fr;
  }
  .order-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-detail-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-product-row {
    grid-template-columns: 1fr;
  }
  .admin-product-tools {
    min-width: 0;
  }
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-product-row {
    grid-template-columns: 1fr;
  }
  .category-board-grid,
  .image-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-money {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body {
    background: #f7f4ef;
  }
  .site-header {
    position: sticky;
    height: 66px;
    padding: 9px 14px;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    border-bottom: 0;
    background: rgba(255,253,248,.94);
    box-shadow: 0 10px 28px rgba(23,35,29,.08);
  }
  .shop-channel-nav {
    top: 66px;
    width: 100%;
    padding: 8px 12px 9px;
    background: rgba(247,244,239,.92);
    backdrop-filter: blur(14px);
  }
  .shop-channel-nav button {
    padding: 9px 13px;
    font-size: 13px;
  }
  #top,
  #businessNav,
  #flashSale,
  #hotSale,
  #brandMarket,
  #fanBenefits,
  #products {
    scroll-margin-top: 124px;
  }
  .back-top {
    right: 14px;
    bottom: 58px;
  }
  .floating-admin-entry {
    right: 14px;
    bottom: 14px;
  }
  .brand {
    min-width: 0;
    flex: 1;
    gap: 10px;
  }
  .logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(23,76,53,.18);
  }
  .brand strong {
    font-size: 16px;
    white-space: nowrap;
  }
  .brand span {
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-actions {
    width: 100%;
  }
  .admin-actions button {
    flex: 1;
  }
  .drawer {
    padding: 0;
    place-items: end center;
  }
  .drawer-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 22px 16px 20px;
  }
  .detail-panel {
    max-height: 94vh;
    padding-top: 46px;
  }
  #detailDrawer .close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 78px);
    right: 14px;
    z-index: 120;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(24, 35, 29, .92);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 32px rgba(0,0,0,.24);
  }
  .admin-module-nav {
    top: 72px;
    margin: 12px 0 14px;
    padding: 6px;
    border-radius: 16px;
  }
  .admin-module-nav button {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 13px;
  }
  main {
    width: 100%;
    padding: 0 12px 28px;
  }
  .hero-commerce {
    min-height: 0;
    margin: 12px 0 12px;
    border-radius: 24px;
    display: block;
    background:
      linear-gradient(145deg, rgba(15,55,38,.98) 0%, rgba(25,94,64,.94) 62%, rgba(232,79,47,.20) 100%),
      url("/hero-cashback-shopping.png") center right / cover no-repeat;
    box-shadow: 0 18px 48px rgba(23,76,53,.20);
  }
  .hero-commerce::after {
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 46%);
  }
  .hero-copy {
    padding: 22px 20px;
  }
  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .hero-copy h1 {
    max-width: 300px;
    font-size: 30px;
    line-height: 1.08;
  }
  .hero-sub {
    max-width: 320px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.62;
  }
  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 18px;
  }
  .hero-benefits span {
    min-width: 0;
    border-radius: 14px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
  }
  .primary-link,
  .hero-actions button {
    min-height: 43px;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
  }
  .hero-visual {
    display: none;
  }
  .promo-banner-slot {
    margin: 10px 0 18px;
  }
  .promo-banner-card {
    min-height: 124px;
    border-radius: 22px;
    padding: 17px;
  }
  .promo-banner-card strong {
    margin-top: 12px;
    font-size: 22px;
  }
  .promo-banner-card p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
  }
  .promo-banner-card em {
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .hero-logo-wall {
    position: static;
    width: 100%;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .hero-logo-wall::-webkit-scrollbar { display: none; }
  .hero-logo-wall span {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 11px;
    padding: 0 10px;
  }
  .hero-logo-wall img {
    width: 18px;
    height: 18px;
  }
  .hero-poster {
    position: static;
    margin-bottom: 10px;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,253,248,.92);
  }
  .poster-label {
    padding: 5px 9px;
    font-size: 11px;
  }
  .hero-poster strong {
    margin-top: 8px;
    font-size: 20px;
  }
  .hero-poster p {
    margin-top: 7px;
    font-size: 12px;
  }
  .trust-strip {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    margin: 12px 0 14px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-strip div {
    flex: 0 0 142px;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
  }
  .trust-strip strong {
    font-size: 20px;
  }
  .trust-strip span {
    font-size: 12px;
  }
  .business-gateway {
    margin: 0 0 16px;
  }
  .business-title {
    margin: 10px 0 12px;
  }
  .business-title h2 {
    font-size: 24px;
  }
  .business-title span {
    font-size: 13px;
  }
  .business-card-grid {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .business-card-grid::-webkit-scrollbar { display: none; }
  .business-card {
    flex: 0 0 286px;
    min-height: 214px;
    border-radius: 22px;
    padding: 18px;
  }
  .business-card strong {
    font-size: 24px;
  }
  .business-card p {
    min-height: 66px;
    font-size: 13px;
  }
  .business-card em {
    padding: 9px 12px;
    font-size: 12px;
  }
  .category-gateway {
    margin: 0 0 16px;
    border-radius: 20px;
    padding: 15px;
  }
  .category-gateway-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .category-gateway-head h2 {
    font-size: 21px;
  }
  .category-gateway-head button {
    display: none;
  }
  .category-gateway-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .category-gateway-grid::-webkit-scrollbar { display: none; }
  .category-gateway-card {
    flex: 0 0 232px;
    border-radius: 18px;
    padding: 14px;
  }
  .category-gateway-card strong {
    font-size: 16px;
  }
  .category-gateway-card p {
    min-height: 36px;
  }
  .campaign-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .campaign-grid::-webkit-scrollbar { display: none; }
  .campaign-card {
    flex: 0 0 245px;
    min-height: 128px;
    border-radius: 20px;
    padding: 17px;
  }
  .campaign-card h2 {
    margin-top: 12px;
    font-size: 22px;
  }
  .campaign-card p {
    font-size: 13px;
  }
  .marketing-hub {
    display: block;
    margin: 4px 0 18px;
  }
  .marketing-main-card,
  .welfare-card,
  .hot-card {
    border-radius: 20px;
  }
  .marketing-main-card {
    padding: 17px;
  }
  .module-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }
  .module-head h2 {
    font-size: 25px;
  }
  .module-head p {
    font-size: 13px;
  }
  .module-head > strong {
    padding: 9px 11px;
    font-size: 13px;
  }
  .flash-product-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .flash-product-row::-webkit-scrollbar { display: none; }
  .marketing-product-card {
    flex: 0 0 142px;
    border-radius: 17px;
  }
  .marketing-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  .welfare-card,
  .hot-card {
    padding: 16px;
    background: #fff;
  }
  .welfare-card {
    min-height: 0;
  }
  .welfare-card h3,
  .hot-card h3 {
    font-size: 21px;
  }
  .compact-hot-product {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }
  .compact-hot-product span {
    width: 50px;
    height: 50px;
  }
  .brand-market {
    margin: 2px 0 18px;
  }
  .brand-market-title {
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .brand-market-title h3 {
    font-size: 22px;
  }
  .brand-market-title a {
    display: none;
  }
  .brand-special-grid {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .brand-special-grid::-webkit-scrollbar { display: none; }
  .brand-special-card {
    flex: 0 0 308px;
    border-radius: 20px;
    padding: 14px;
    background: #fff;
  }
  .brand-special-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-special-product em {
    height: 31px;
  }
  .shop-toolbar {
    display: block;
    margin: 20px 0 10px;
  }
  .shop-toolbar h2 {
    font-size: 24px;
  }
  .shop-toolbar p {
    margin-top: 6px;
    font-size: 13px;
  }
  .search-box {
    margin-top: 12px;
  }
  .search-box input {
    border-radius: 18px;
    padding: 15px 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23,35,29,.07);
  }
  .category-tabs,
  .sort-tabs {
    gap: 8px;
    padding: 3px 0 9px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar,
  .sort-tabs::-webkit-scrollbar { display: none; }
  .category-tabs button,
  .sort-tabs button {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    background: #fff;
  }
  .product-section {
    padding-bottom: 36px;
  }
  .section-title {
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 12px;
    flex-direction: column;
  }
  .section-title h3 {
    font-size: 22px;
  }
  .section-title span {
    font-size: 12px;
  }
  .admin-product-title,
  .admin-product-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-product-metrics,
  .analytics-grid,
  .category-board-grid,
  .image-audit-grid,
  .form-grid.two,
  .form-grid.three,
  .form-grid.four {
    grid-template-columns: 1fr;
  }
  .order-filter-bar,
  .order-detail-head,
  .timeline-row {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: 1fr; gap: 13px; }
  .brand-section {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23,35,29,.06);
  }
  .brand-section-head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #173524, #23704d);
  }
  .brand-section-logo {
    min-height: 74px;
    border-radius: 16px;
    gap: 3px;
  }
  .brand-section-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    padding: 4px;
  }
  .brand-section-logo span {
    font-size: 12px;
    line-height: 1.05;
  }
  .brand-section-logo small {
    display: none;
  }
  .brand-section-title {
    min-width: 0;
    align-items: stretch;
    flex-direction: row;
  }
  .brand-section-title h4 {
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-section-title p {
    margin-top: 6px;
    font-size: 12px;
  }
  .brand-section-saving {
    width: auto;
    min-width: 88px;
    border-radius: 14px;
    padding: 9px;
    text-align: right;
  }
  .brand-section-saving strong {
    font-size: 20px;
  }
  .brand-product-row {
    position: relative;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 10px;
    margin: 10px;
    border: 1px solid rgba(232,225,211,.9);
    border-radius: 18px;
    padding: 10px;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(23,35,29,.04);
    align-items: center;
  }
  .brand-product-row + .brand-product-row {
    border-top: 1px solid rgba(232,225,211,.9);
  }
  .brand-product-row:nth-child(even) {
    background: #fffdf8;
  }
  .order-money {
    grid-template-columns: 1fr;
  }
  .product-main {
    grid-column: 2 / 3;
    min-width: 0;
  }
  .product-image-link {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }
  .product-row-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .product-row-meta {
    gap: 5px;
    margin-top: 6px;
  }
  .product-row-meta span {
    padding: 3px 6px;
    font-size: 10px;
  }
  .row-price,
  .row-cashback,
  .row-net {
    text-align: right;
  }
  .row-price {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: start;
  }
  .row-cashback {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: end;
    margin-top: 38px;
  }
  .row-net {
    display: none;
  }
  .row-price span,
  .row-cashback span,
  .row-net span {
    font-size: 10px;
  }
  .row-price strong,
  .row-cashback strong,
  .row-net strong {
    font-size: 16px;
  }
  .row-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .row-actions a,
  .row-actions button {
    border-radius: 13px;
    padding: 10px 8px;
    font-size: 12px;
  }
  .brand-more {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f1e7;
  }
  .product-info { padding: 11px; }
  .product-info h4 { height: 40px; font-size: 14px; }
  .price { font-size: 20px; }
  .cashback-chip { font-size: 12px; padding: 7px 8px; }
  .card-actions { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-copy { padding-right: 0; }
  .external-note { grid-template-columns: 1fr; }
  .detail-grid, .detail-selling, .detail-cashback { grid-template-columns: 1fr 1fr; }
  .share-card-money,
  .share-card-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand span {
    max-width: 138px;
  }
  .top-nav button {
    padding: 7px 8px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .campaign-card {
    flex-basis: 228px;
  }
  .brand-special-card {
    flex-basis: 292px;
  }
  .product-grid { gap: 10px; }
  .brand-product-row {
    grid-template-columns: 70px minmax(0, 1fr) 74px;
    gap: 8px;
  }
  .product-image-link {
    width: 70px;
    height: 70px;
  }
  .brand-section-head {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }
  .brand-section-logo {
    min-height: 64px;
  }
  .brand-section-saving {
    display: none;
  }
  .row-price strong,
  .row-cashback strong {
    font-size: 15px;
  }
  .row-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid, .detail-selling, .detail-cashback { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .affiliate-admin-layout {
    grid-template-columns: 1fr;
  }
  .affiliate-claim-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shop-channel-nav .channel-link {
    padding: 9px 13px;
    font-size: 13px;
  }
  .affiliate-admin-card {
    padding: 14px;
    border-radius: 16px;
  }
  .affiliate-brand-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .affiliate-brand-logo {
    width: 48px;
    border-radius: 13px;
  }
  .affiliate-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .affiliate-brand-form {
    padding: 12px;
  }
  .affiliate-product-edit-row {
    grid-template-columns: 1fr;
  }
  .affiliate-product-image-preview {
    width: 100%;
    max-width: 128px;
  }
}
