/* ton3q-style shell: themes change tokens, not the product/order behavior. */
[hidden] { display: none !important; }
.original-hero, .legacy-field { display: none; }

html, body { min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 96%, var(--bg)); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { max-width: 1144px; min-height: 70px; margin: 0 auto; padding: 0 2px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; }
.brand-mark, .footer-mark { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff; font: 800 19px/1 Georgia, serif; box-shadow: 0 5px 13px color-mix(in srgb, var(--primary) 25%, transparent); }
.brand-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.header-links { display: flex; align-items: center; gap: 27px; }
.header-links a, .site-footer a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .18s; }
.header-links a:hover, .site-footer a:hover { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--primary) 5%, var(--bg)); color: var(--muted); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s, color .18s, background .18s; }
.icon-button:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--bg)); transform: translateY(-1px); }
.login-button { min-width: 55px; height: 36px; border: 0; border-radius: 999px; padding: 0 16px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 22%, transparent); }

.shop-shell { max-width: 1144px; margin: 24px auto 46px; display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 28px; align-items: start; }
.category-panel, .order-panel { background: var(--card); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 26px #25205508; }
.category-panel { padding: 18px 16px 20px; position: sticky; top: 94px; }
.panel-heading, .catalog-heading { display: flex; align-items: center; gap: 9px; }
.heading-rule { width: 4px; height: 17px; flex: 0 0 4px; border-radius: 999px; background: var(--primary); }
.panel-heading h1, .catalog-heading h2 { color: var(--text); font-size: 15px; line-height: 1.2; font-weight: 800; }
.market-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 18px 0 10px; padding: 4px; border-radius: 11px; background: var(--field-bg); }
.market-tab { border: 0; border-radius: 8px; padding: 9px 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.market-tab.active { color: var(--primary); background: var(--card); box-shadow: 0 3px 9px #26205a10; }
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-item { width: 100%; border: 0; border-radius: 12px; padding: 11px 12px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 700; transition: background .18s, color .18s, transform .18s; }
.category-item:hover, .category-item.active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--card)); }
.category-item:hover { transform: translateX(2px); }
.empty-hint { padding: 18px 10px; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.legacy-control { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.shop-main { min-width: 0; }
.search-bar { height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 19px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 6px 18px #25205506; }
.search-bar > span { color: var(--muted); font-size: 22px; line-height: 1; transform: translateY(-1px); }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-bar input::placeholder { color: #aaa8b6; }
.catalog-heading { margin: 0 0 11px; }
.catalog-count { color: var(--muted); font-size: 12px; }
.product-list { display: flex; flex-direction: column; gap: 8px; }
.product-row { min-height: 88px; width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 22px; align-items: center; gap: 14px; padding: 9px 14px 9px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-align: left; box-shadow: 0 5px 14px #25205505; transition: border-color .18s, box-shadow .18s, transform .18s; }
.product-row:hover, .product-row.active { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 12%, transparent); transform: translateY(-1px); }
.product-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 68%, #19b6b0)); font-size: 25px; box-shadow: inset 0 0 0 1px #ffffff35; }
.product-icon:is(img) { object-fit: cover; }
.product-details { min-width: 0; display: grid; grid-template-columns: minmax(84px, 105px) minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 4px; }
.product-details small { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase; }
.product-details strong { overflow: hidden; font-size: 13px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.product-details em { grid-column: 1 / -1; width: fit-content; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, #22b7a1 13%, var(--card)); color: #20a18e; font-size: 10px; font-style: normal; font-weight: 800; }
.product-price { white-space: nowrap; color: var(--text); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.product-arrow { color: var(--muted); font-size: 25px; line-height: 1; }

.order-panel { margin-top: 18px; padding: 20px; }
.order-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 900; letter-spacing: 1.7px; }
.order-heading h2 { margin-top: 4px; color: var(--text); font-size: 17px; }
.selected-product { max-width: 48%; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.selected-description { max-width: 620px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 17px; }
.field { min-width: 0; margin: 0; }
.field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.field-label i { color: var(--primary); font-style: normal; }
.select-wrap, .metric, .stepper, .text-input { min-height: 43px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--field-bg); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; top: 50%; right: 13px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select, .text-input { width: 100%; height: 42px; padding: 0 31px 0 12px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; appearance: none; }
.text-input { display: block; padding: 0 12px; }
.text-input::placeholder { color: #aaa8b6; }
.metric { display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.metric strong { color: var(--primary); font-size: 16px; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 11px; }
.stepper { display: flex; align-items: center; gap: 5px; padding: 4px; }
.stepper input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); text-align: center; font-size: 13px; }
.step-btn { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--primary); font-size: 19px; line-height: 1; }
.step-btn:hover { background: var(--primary); color: #fff; }
.sex-group { display: flex; align-items: center; gap: 12px; min-height: 43px; }
.sex-item { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.sex-item input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--field-bg); }
.sex-item input:checked { border: 4px solid var(--primary); background: var(--card); }
.email-field { grid-column: span 2; }
.form-tip { min-height: 19px; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.action-bar { position: static; left: auto; bottom: auto; transform: none; width: auto; max-width: none; margin: 14px -20px -20px; padding: 14px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); border-radius: 0 0 17px 17px; background: color-mix(in srgb, var(--primary) 3%, var(--card)); box-shadow: none; }
.total-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.total-price { color: var(--muted); font-size: 12px; }
.total-price strong { color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; }
.order-btn { width: 145px; height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 25%, transparent); }
.order-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.site-footer { margin-top: 30px; padding: 38px 20px 24px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--card) 72%, var(--bg)); }
.footer-inner { max-width: 1144px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-mark { margin-bottom: 12px; }
.site-footer strong { display: block; color: var(--text); font-size: 15px; }
.site-footer p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.site-footer h3 { margin: 2px 0 12px; color: var(--text); font-size: 12px; }
.site-footer a { display: block; margin: 8px 0; font-size: 12px; font-weight: 500; }
.copyright { max-width: 1144px; margin: 34px auto 0 !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px !important; }

@media (max-width: 900px) {
  .header-inner, .shop-shell, .footer-inner { max-width: none; margin-left: 18px; margin-right: 18px; }
  .shop-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
  .header-links { gap: 13px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 34px; height: 34px; }
  .product-row { grid-template-columns: 54px minmax(0, 1fr) auto 16px; gap: 10px; }
  .product-icon { width: 54px; height: 54px; }
  .product-details { display: block; }
  .product-details small { display: block; margin-bottom: 3px; }
  .product-details em { display: block; margin-top: 4px; }
}


@media (max-width: 680px) {
  .site-header { position: static; }
  .header-inner { min-height: 62px; margin: 0 14px; gap: 14px; }
  .header-links { display: none; }
  .header-actions .icon-button:nth-child(-n+2) { display: none; }
  .shop-shell { display: block; margin: 14px 12px 30px; }
  .category-panel { position: static; margin-bottom: 14px; padding: 14px; }
  .market-tabs { margin-top: 12px; }
  .category-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .category-item { padding: 9px 8px; }
  .search-bar { margin-bottom: 14px; }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-field { grid-column: span 2; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); margin: 0 14px; gap: 25px 18px; }
}

/* tgsss account-store template */
html[data-catalog="tgsss"] body { background: #f7f9fd; color: #25324a; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
html[data-catalog="tgsss"] .site-header { background: #fff; border-bottom: 1px solid #edf1f7; }
html[data-catalog="tgsss"] .header-inner { max-width: 960px; min-height: 70px; }
html[data-catalog="tgsss"] .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 0 13px 0 13px; background: url("/assets/tgsss/logo.jpg") center / cover no-repeat; box-shadow: none; font-size: 0; clip-path: none; }
html[data-catalog="ton3q"] .brand-mark, html[data-catalog="ton3q"] .footer-mark { background: url("/assets/ton3q/common-2026-08-7248ae1d-0b78-41aa-9588-ecc9296fa605.png") center / cover no-repeat; font-size: 0; }
html[data-catalog="tgsss"] .brand-name { color: #3b8de8; font-family: "Microsoft YaHei", sans-serif; font-size: 21px; letter-spacing: 0; }
html[data-catalog="tgsss"] .header-links { display: none; }
html[data-catalog="tgsss"] .header-actions { gap: 12px; }
html[data-catalog="tgsss"] .header-actions .icon-button:first-child { display: inline-flex; background: #fff8ed; color: #f4a13a; }
html[data-catalog="tgsss"] .icon-button { width: auto; min-width: 86px; height: 38px; padding: 0 16px; border-radius: 22px; background: #fff8ed; color: #f4a13a; font-size: 13px; }
html[data-catalog="tgsss"] .header-actions .icon-button:nth-child(2) { background: #f7f9fd; color: #44536d; }
html[data-catalog="tgsss"] .header-actions .icon-button:nth-child(3) { background: #3d8fe8; color: #fff; }
html[data-catalog="tgsss"] .login-button { display: none; }
html[data-catalog="tgsss"] .shop-shell { display: block; max-width: 960px; margin: 15px auto 32px; }
html[data-catalog="tgsss"] .catalog-notice { display: block; margin-bottom: 18px; padding: 15px 18px; border-left: 5px solid #4c91ed; border-radius: 0 15px 15px 0; background: linear-gradient(110deg, #fafdff, #edf4ff 72%, #fff); box-shadow: 0 8px 25px rgba(47, 105, 181, .09); color: #4e596b; font-size: 13px; line-height: 1.7; }
html[data-catalog="tgsss"] .catalog-notice p { margin: 0; }
html[data-catalog="tgsss"] .catalog-notice a { color: #3888e7; text-decoration: none; }
html[data-catalog="tgsss"] .catalog-notice .external-link { color: #3888e7; }
html[data-catalog="tgsss"] .catalog-notice .catalog-warning { color: #424b5b; font-weight: 700; }
html[data-catalog="tgsss"] .category-panel { position: static; padding: 0; border: 0; background: transparent; box-shadow: none; }
html[data-catalog="tgsss"] .panel-heading,
html[data-catalog="tgsss"] .market-tabs,
html[data-catalog="tgsss"] .legacy-control { display: none !important; }
html[data-catalog="tgsss"] .category-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
html[data-catalog="tgsss"] .category-item { width: auto; min-height: 38px; padding: 0 17px; border: 1px solid #e1e9f5; border-radius: 21px; background: linear-gradient(#fff, #f4f8ff); color: #52627b; font-size: 14px; box-shadow: 0 5px 13px rgba(61, 109, 173, .08); }
html[data-catalog="tgsss"] .category-item img { display: none; }
html[data-catalog="tgsss"] .category-item:hover,
html[data-catalog="tgsss"] .category-item.active { border-color: #3b8de8; background: #3d91e9; color: #fff; box-shadow: 0 7px 17px rgba(48, 136, 227, .23); }
html[data-catalog="tgsss"] .shop-main { min-width: 0; }
html[data-catalog="tgsss"] .search-bar { width: min(700px, 100%); margin: 0 auto 16px; border-radius: 24px; background: #fff; }
html[data-catalog="tgsss"] .search-bar input { height: 48px; }
html[data-catalog="tgsss"] .catalog-heading { display: none; }
html[data-catalog="tgsss"] .product-list { display: grid; gap: 16px; }
html[data-catalog="tgsss"] .category-section { overflow: hidden; border-radius: 8px; }
html[data-catalog="tgsss"] .category-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-radius: 8px 8px 0 0; background: linear-gradient(100deg, #dceaff, #eff5ff); color: #345d9d; }
html[data-catalog="tgsss"] .category-title { margin: 0; font-size: 14px; font-weight: 800; }
html[data-catalog="tgsss"] .category-toggle-icon { color: #6e86a9; font-size: 17px; }
html[data-catalog="tgsss"] .category-content { display: grid; gap: 5px; padding-top: 5px; }
html[data-catalog="tgsss"] .tgsss-card { position: relative; min-height: 62px; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; padding: 6px 14px; border: 1px solid #e7ecf4; border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgba(58, 81, 112, .07); text-align: left; }
html[data-catalog="tgsss"] .tgsss-card:hover { border-color: #6ca8ed; box-shadow: 0 5px 17px rgba(54, 132, 223, .14); transform: translateY(-1px); }
html[data-catalog="tgsss"] .tgsss-card .product-icon { width: 52px; height: 52px; border-radius: 50%; }
html[data-catalog="tgsss"] .tgsss-card .product-details { min-width: 0; justify-content: center; }
html[data-catalog="tgsss"] .tgsss-card .product-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #303b4e; font-size: 13px; }
html[data-catalog="tgsss"] .tgsss-card .product-details em { color: #4a8edc; font-size: 12px; font-style: normal; }
html[data-catalog="tgsss"] .tgsss-card .product-price { color: #e65b69; font-size: 16px; font-weight: 800; white-space: nowrap; }
html[data-catalog="tgsss"] .product-actions { display: flex; gap: 8px; white-space: nowrap; }
html[data-catalog="tgsss"] .product-actions span { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 32px; padding: 0 9px; border-radius: 17px; font-size: 12px; font-weight: 800; }
html[data-catalog="tgsss"] .product-actions .buy-now { background: linear-gradient(135deg, #ff6d62, #ff9861); color: #fff; }
html[data-catalog="tgsss"] .product-actions .add-cart { background: #fff2df; color: #eea04b; }
html[data-catalog="tgsss"] .site-footer { max-width: 960px; margin: 18px auto 0; padding: 22px 0; background: transparent; border-top: 1px solid #e7edf5; }
html[data-catalog="tgsss"] .footer-inner { display: block; }
html[data-catalog="tgsss"] .footer-inner > div:not(:first-child) { display: none; }
html[data-catalog="tgsss"] .footer-inner p { margin: 4px 0; }
html[data-catalog="tgsss"] .copyright { margin-top: 12px !important; padding-top: 12px; border-top: 0; text-align: center; }
html[data-catalog="tgsss"] .order-panel { margin-top: 18px; }
@media (max-width: 680px) {
  html[data-catalog="tgsss"] .shop-shell { margin: 12px 12px 24px; }
  html[data-catalog="tgsss"] .header-inner { margin: 0 13px; }
  html[data-catalog="tgsss"] .brand-name { font-size: 17px; }
  html[data-catalog="tgsss"] .header-actions .icon-button { min-width: 39px; padding: 0 10px; font-size: 0; }
  html[data-catalog="tgsss"] .header-actions .icon-button::first-letter { font-size: 16px; }
  html[data-catalog="tgsss"] .tgsss-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px; }
  html[data-catalog="tgsss"] .tgsss-card .product-icon { width: 42px; height: 42px; }
  html[data-catalog="tgsss"] .product-actions { display: none; }
  html[data-catalog="tgsss"] .tgsss-card .product-price { font-size: 13px; }
}
@media (max-width: 420px) {
  .brand-name { max-width: 135px; }
  .header-actions .icon-button:nth-child(5) { display: none; }
  .login-button { min-width: 48px; padding: 0 12px; }
  .product-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; padding-right: 10px; }
  .product-icon { width: 48px; height: 48px; }
  .product-arrow { display: none; }
  .product-price { font-size: 12px; }
  .order-panel { padding: 15px; }
  .action-bar { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
  .order-btn { width: 124px; }
}

/* target catalog layout: categories and product cards are visible on first load */
html[data-catalog="ton3q"] body { background: #f8f8fc; }
html[data-catalog="ton3q"] .header-inner,
html[data-catalog="ton3q"] .shop-shell,
html[data-catalog="ton3q"] .footer-inner,
html[data-catalog="ton3q"] .copyright { max-width: 1132px; }
html[data-catalog="ton3q"] .site-header { background: rgba(255, 255, 255, .92); }
html[data-catalog="ton3q"] .header-inner { min-height: 66px; gap: 24px; }
html[data-catalog="ton3q"] .header-links { gap: 22px; }
html[data-catalog="ton3q"] .header-links a:nth-child(n+3) { color: var(--text); }
html[data-catalog="ton3q"] .shop-shell { width: calc(100% - 48px); grid-template-columns: 245px minmax(0, 1fr); gap: 28px; margin-top: 22px; }
html[data-catalog="ton3q"] .catalog-notice { grid-column: 1 / -1; }
html[data-catalog="ton3q"] .category-panel { padding: 18px 14px; border-radius: 14px; box-shadow: 0 5px 20px rgba(49, 43, 101, .05); }
html[data-catalog="ton3q"] .market-tabs,
html[data-catalog="ton3q"] .legacy-control { display: none !important; }
html[data-catalog="ton3q"] .category-list { display: grid; gap: 4px; margin-top: 14px; }
html[data-catalog="ton3q"] .category-item { min-height: 48px; justify-content: flex-start; gap: 10px; border: 0; border-radius: 10px; padding: 7px 9px; background: transparent; color: var(--muted); text-align: left; }
html[data-catalog="ton3q"] .category-item img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: cover; background: var(--field-bg); }
html[data-catalog="ton3q"] .category-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-catalog="ton3q"] .category-item:hover,
html[data-catalog="ton3q"] .category-item.active { background: color-mix(in srgb, var(--primary) 9%, var(--card)); color: var(--primary); }
html[data-catalog="ton3q"] .search-bar { margin-bottom: 18px; border-radius: 12px; }
html[data-catalog="ton3q"] .catalog-heading { margin-bottom: 12px; }
html[data-catalog="ton3q"] .catalog-heading h2 { font-size: 16px; }
html[data-catalog="ton3q"] .product-list { display: grid; gap: 9px; }
html[data-catalog="ton3q"] .product-row { min-height: 88px; grid-template-columns: 62px minmax(0, 1fr) auto 40px 14px; gap: 12px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 3px 13px rgba(49, 43, 101, .035); }
html[data-catalog="ton3q"] .product-row:hover,
html[data-catalog="ton3q"] .product-row.active { border-color: color-mix(in srgb, var(--primary) 36%, var(--line)); box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 11%, transparent); transform: translateY(-1px); }
html[data-catalog="ton3q"] .product-icon { width: 62px; height: 62px; border-radius: 12px; }
html[data-catalog="ton3q"] .product-details small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[data-catalog="ton3q"] .product-details strong { overflow: visible; text-overflow: clip; white-space: normal; font-size: 14px; }
html[data-catalog="ton3q"] .product-cart { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; }
html[data-catalog="ton3q"] .product-arrow { min-width: 14px; color: #9693a2; font-size: 20px; font-weight: 500; }
html[data-catalog="ton3q"] .order-panel { margin-top: 18px; }
html[data-catalog="ton3q"] .site-footer { margin-top: 8px; background: #fff; }
html[data-catalog="ton3q"] .announcement-mask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(24, 24, 34, .57); backdrop-filter: blur(7px); }
html[data-catalog="ton3q"] .announcement-card { position: relative; width: min(510px, 100%); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 22px 70px rgba(25, 21, 55, .25); color: #262534; }
html[data-catalog="ton3q"] .announcement-icon { width: 42px; height: 42px; margin: 22px 0 0 24px; display: grid; place-items: center; border: 1px solid #a6e4df; border-radius: 50%; background: #e7fbfa; color: #36b9b4; font: 700 24px Georgia, serif; }
html[data-catalog="ton3q"] .announcement-card h2 { margin: -34px 58px 21px 82px; font-size: 18px; }
html[data-catalog="ton3q"] .announcement-card ol { margin: 0; padding: 0 30px 25px 42px; color: #44424d; font-size: 13px; line-height: 1.9; }
html[data-catalog="ton3q"] .announcement-x { position: absolute; top: 21px; right: 22px; width: 34px; height: 34px; border: 1px solid #222; border-radius: 50%; background: #fff; color: #25242d; font-size: 24px; line-height: 1; }
html[data-catalog="ton3q"] .announcement-actions { display: flex; align-items: center; gap: 12px; padding: 14px 25px 17px; border-top: 1px solid #eeeef2; color: #9997a4; font-size: 12px; }
html[data-catalog="ton3q"] .announcement-actions button { border: 0; background: transparent; color: inherit; font-size: inherit; }
html[data-catalog="ton3q"] .announcement-actions .announcement-close { margin-left: auto; min-width: 62px; height: 36px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; }
@media (max-width: 680px) {
  html[data-catalog="ton3q"] .shop-shell { display: block; margin: 14px 12px 28px; }
  html[data-catalog="ton3q"] .category-panel { position: static; margin-bottom: 14px; }
  html[data-catalog="ton3q"] .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-catalog="ton3q"] .header-links a:nth-child(n+3) { display: none; }
}

/* Original single-page ordering form. */
html[data-catalog="original"] body { background: #eef1f5; color: #222; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
html[data-catalog="original"] .category-panel,
html[data-catalog="original"] .search-bar,
html[data-catalog="original"] .catalog-heading,
html[data-catalog="original"] #productList,
html[data-catalog="original"] .site-footer { display: none; }
html[data-catalog="original"] .site-header { display: block; width: min(480px, 100%); margin: 0 auto; border-bottom: 1px solid #eceff3; background: #fff; }
html[data-catalog="original"] .header-inner { min-height: 48px; max-width: 480px; margin: 0 auto; padding: 0 10px; justify-content: flex-start; }
html[data-catalog="original"] .brand-mark,
html[data-catalog="original"] .header-links,
html[data-catalog="original"] .header-actions { display: none; }
html[data-catalog="original"] .brand-name { color: #3b9eff; font-size: 17px; font-weight: 500; letter-spacing: 0; }
html[data-catalog="original"] .brand-name { max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
html[data-catalog="original"] .shop-shell { display: block; width: 100%; max-width: 480px; margin: 0 auto 28px; padding: 0; }
html[data-catalog="original"] .original-hero { display: flex; box-sizing: border-box; min-height: 450px; margin: 0 0 11px; padding: 0 12px; align-items: flex-end; background-color: #4a90e2; background-image: var(--hero-image); background-position: center top; background-size: cover; background-repeat: no-repeat; }
html[data-catalog="original"] .original-hero .merchant { width: 100%; margin: 0; padding: 16px 16px 19px; border-radius: 14px; background: var(--card); color: var(--text); }
html[data-catalog="original"] .original-hero .merchant h2,
html[data-catalog="original"] .order-heading h2 { position: relative; margin: 0 0 14px; padding-bottom: 8px; font-size: 16px; line-height: 24px; }
html[data-catalog="original"] .original-hero .merchant h2::after,
html[data-catalog="original"] .order-heading h2::after { position: absolute; bottom: 0; left: 0; width: 72px; height: 3px; border-radius: 2px; background: var(--primary); content: ""; }
html[data-catalog="original"] .merchant-row { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-radius: 9px; background: #f3f5f8; color: #666; font-size: 13px; }
html[data-catalog="original"] .merchant-row strong { color: var(--text); font-size: 14px; font-weight: 500; }
html[data-catalog="original"] .catalog-notice { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 0 12px 12px; padding: 8px 14px; border: 0; border-radius: 12px; background: #fff; color: var(--text); font-size: 12px; line-height: 1.4; }
html[data-catalog="original"] .catalog-notice::before { flex: 0 0 auto; color: #fa7189; content: "🔊 公告"; }
html[data-catalog="original"] .catalog-notice p { overflow: hidden; margin: 0 0 0 42px; color: #888; text-overflow: ellipsis; white-space: nowrap; }
html[data-catalog="original"] .shop-main { min-width: 0; }
html[data-catalog="original"] .order-panel { display: block; margin: 0 12px; padding: 16px 14px; border-radius: 14px; background: var(--card); }
html[data-catalog="original"] .order-heading { margin-bottom: 14px; padding: 0; border: 0; }
html[data-catalog="original"] .order-heading .eyebrow,
html[data-catalog="original"] .selected-product,
html[data-catalog="original"] #selectedDescription { display: none; }
html[data-catalog="original"] .order-heading h2 { margin: 0; padding-bottom: 8px; font-size: 18px; line-height: 24px; }
html[data-catalog="original"] .order-grid { grid-template-columns: 1fr; gap: 13px; padding-top: 0; }
html[data-catalog="original"] .legacy-field { display: grid; gap: 7px; }
html[data-catalog="original"] .legacy-field .legacy-control { position: static; width: 100%; height: 48px; overflow: visible; padding: 0 12px; opacity: 1; pointer-events: auto; border: 0; border-radius: 8px; background: #f3f5f8; color: var(--text); }
html[data-catalog="original"] .field-label { margin: 0; color: #333; font-size: 14px; font-weight: 500; }
html[data-catalog="original"] .legacy-field .field-label i { color: #ed4b52; }
html[data-catalog="original"] .compact-field { min-height: 42px; }
html[data-catalog="original"] .sex-group { justify-content: flex-start; }
html[data-catalog="original"] .email-field { grid-column: auto; }
html[data-catalog="original"] .action-bar { left: 50%; width: min(480px, 100%); margin-top: 14px; transform: translateX(-50%); }
@media (max-width: 680px) {
  html[data-catalog="original"] .shop-shell { margin: 0 auto 24px; }
  html[data-catalog="original"] .original-hero { min-height: 450px; }
  html[data-catalog="original"] .order-grid { grid-template-columns: 1fr; }
  html[data-catalog="ton3q"] .header-inner { max-width: 1132px; }
  html[data-catalog="ton3q"] .shop-shell { width: calc(100% - 24px); }
  html[data-catalog="ton3q"] .product-row { grid-template-columns: 50px minmax(0, 1fr) auto 34px 12px; gap: 8px; padding: 7px 9px; }
  html[data-catalog="ton3q"] .product-icon { width: 50px; height: 50px; }
}

@media (max-width: 900px) {
  html[data-catalog="ton3q"] .product-row { grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 10px; padding: 9px 12px; }
  html[data-catalog="ton3q"] .product-icon { grid-row: 1 / 3; }
  html[data-catalog="ton3q"] .product-details { grid-column: 2; grid-row: 1; display: block; min-width: 0; }
  html[data-catalog="ton3q"] .product-details strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[data-catalog="ton3q"] .product-price { grid-column: 2; grid-row: 2; }
  html[data-catalog="ton3q"] .product-cart,
  html[data-catalog="ton3q"] .product-arrow { display: none; }
}
