/* Native rpx values converted at the editor's 375px logical viewport (1rpx = .5px).
 * Namespaced preview styles never change the original mini-program template.
 */
.tp-header, .tp-footer, [class^="tp-"], [class*=" tp-"] { box-sizing: border-box; }
.tp-header { display: flex; align-items: center; min-height: 56px; padding: 0 18px; color: #fff; font-size: 17px; font-weight: 700; text-align: left; }
.tp-home-content { min-height: 560px; padding: 14px 14px 38px; color: #101828; background: var(--tp-page-bg, #f5f7fb); }
.tp-home-content.tp-density-compact { padding-left: 9px; padding-right: 9px; }
.tp-banner { border-radius: inherit; }
.tp-hero { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; height: 170px; border-radius: inherit; }
.tp-banner-compact .tp-hero { height: 120px; }
.tp-banner-tall .tp-hero { height: 220px; }
.tp-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.tp-banner-copy { position: relative; z-index: 1; width: 100%; padding: 0 22px; }
.tp-banner-copy.with-image { padding-top: 12px; padding-bottom: 12px; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent); }
.tp-banner-title { margin-top: 7px; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.4; opacity: .9; }
.tp-banner-subtitle { width: 82%; margin-top: 7px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.5; }
.tp-banner-copy[style*="text-align:center"] .tp-banner-subtitle { margin-left: auto; margin-right: auto; }
.tp-banner-copy[style*="text-align:right"] .tp-banner-subtitle { margin-left: auto; }
.tp-banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; padding: 0 0 1px; }
.tp-banner-dots .tp-dot { display: block; flex: none; width: 9px; height: 3px; min-height: 0; padding: 0; border: 0; border-radius: 2px; background: #d1d5db; cursor: pointer; }
.tp-banner-dots .tp-dot.is-active { width: 16px; }
.tp-category-scroll { width: 100%; margin-top: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.tp-category-scroll::-webkit-scrollbar { display: none; }
.tp-category-list { display: inline-flex; align-items: center; min-width: 100%; }
.tp-category-list .tp-category-item { position: relative; flex-shrink: 0; min-width: 75px; margin: 0; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: #667085; font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 500; text-align: center; cursor: pointer; }
.tp-category-item.is-active { font-weight: 700; }
.tp-category-item.is-active::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 20px; height: 2px; transform: translateX(-50%); border-radius: 1px; background: var(--tp-brand, #f97316); }
.tp-product-section-title { margin: 14px 1px 1px; padding: 0; color: #101828; font-size: 16px; line-height: 1.4; font-weight: 800; }
.tp-product-grid { display: grid; gap: 10px; margin-top: 10px; }
.tp-grid-card { min-width: 0; overflow: hidden; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 5px 15px rgba(16,24,40,.06); }
.tp-card-bordered .tp-grid-card { border: 1px solid #dfe5ed; box-shadow: none; }
.tp-card-minimal .tp-grid-card { background: transparent; box-shadow: none; }
.tp-radius-medium .tp-grid-card { border-radius: 5px; }
.tp-radius-square .tp-grid-card { border-radius: 0; }
.tp-grid-visual { position: relative; width: 100%; height: 140px; overflow: hidden; background: #eef2f6; }
.tp-columns-1 .tp-grid-visual { height: 220px; }
.tp-grid-cover { display: block; width: 100%; height: 100%; }
.tp-grid-visual .tp-model-label { position: absolute; left: 15px; bottom: 12px; width: 30px; height: 30px; border-radius: 9px; background: #d4dce5; color: #60758a; font-size: 12.5px; font-weight: 900; line-height: 30px; text-align: center; }
.tp-grid-content { padding: 9px 10px 11px; }
.tp-grid-name { color: #101828; font-size: 14px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.tp-grid-summary { height: 31px; margin-top: 4px; overflow: hidden; color: #667085; font-size: 11px; line-height: 15.5px; }
.tp-grid-price { margin-top: 6px; color: #ea580c; font-size: 13.5px; font-weight: 800; line-height: 1.4; }
.tp-price-unit { font-weight: inherit; white-space: nowrap; }
.tp-density-compact .tp-product-grid { gap: 6px; margin-top: 6px; }
.tp-density-compact .tp-grid-content { padding: 6.5px 7px 8px; }
.tp-footer { position: relative; display: flex; flex: none; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -4px 17px rgba(16,24,40,.10); }
.tp-footer .tp-tab { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; height: 56px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: inherit; cursor: pointer; }
.tp-footer .tp-tab:disabled { opacity: 1; cursor: default; }
.tp-tab-icon-wrap { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
.tp-tab-icon-wrap img { display: block; width: 23px; height: 23px; object-fit: contain; }
.tp-tab-label { position: absolute; right: 0; bottom: 4px; left: 0; font-size: 10px; line-height: 1; text-align: center; }
.tp-tab.is-active .tp-tab-icon-wrap { width: 38px; height: 38px; margin-top: -4px; }
.tp-tab.is-active img { width: 31px; height: 31px; }
.tp-tab.is-active .tp-tab-label { font-weight: 700; }
.tp-category-page { display: flex; min-height: 560px; color: #101828; }
.tp-left-nav { flex: none; width: 95px; background: #fff; border-right: 1px solid #eef1f5; }
.tp-left-nav .tp-left-item { position: relative; display: block; width: 100%; margin: 0; padding: 16px 7px; border: 0; border-radius: 0; background: #fff; color: #667085; font-family: inherit; font-size: 12.5px; line-height: 1.4; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.tp-left-nav .tp-left-item.is-active { color: var(--tp-brand, #f97316); font-weight: 800; background: #fff7ed; }
.tp-left-item.is-active::before { content: ''; position: absolute; left: 0; top: 50%; width: 3.5px; height: 22px; border-radius: 0 2.5px 2.5px 0; background: var(--tp-brand, #f97316); transform: translateY(-50%); }
.tp-right-content { flex: 1; min-width: 0; }
.tp-right-inner { padding: 12px; }
.tp-category-banner { position: relative; overflow: hidden; padding: 15px; border-radius: 12px; color: #fff; background: linear-gradient(140deg,#1f343d,#33cbd8); box-shadow: 0 7px 18px rgba(28,138,151,.18); }
.tp-category-banner::after { content: ''; position: absolute; right: -17.5px; top: -22.5px; width: 75px; height: 75px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.tp-banner-eyebrow { font-size: 9px; letter-spacing: 1.5px; opacity: .72; }
.tp-category-title { margin-top: 6px; font-size: 17.5px; line-height: 1.4; font-weight: 800; }
.tp-category-description { margin-top: 5px; font-size: 10.5px; line-height: 1.4; opacity: .82; }
.tp-category-products { margin-top: 11px; }
.tp-category-product { display: flex; gap: 9px; margin-bottom: 9px; padding: 9px; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(16,24,40,.06); }
.tp-category-cover { display: flex; flex: none; align-items: center; justify-content: center; width: 70px; height: 70px; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg,#243640,#67dce7); }
.tp-category-cover-image { width: 100%; height: 100%; }
.tp-category-cover .tp-model-label { color: #fff; font-size: 14px; font-weight: 900; }
.tp-category-product-body { flex: 1; min-width: 0; }
.tp-category-product-name { overflow: hidden; color: #101828; font-size: 13.5px; line-height: 1.4; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.tp-category-product-summary { height: 28.5px; margin-top: 3.5px; overflow: hidden; color: #667085; font-size: 10.5px; line-height: 14px; }
.tp-category-product-price { margin-top: 4px; color: #ea580c; font-size: 12.5px; line-height: 1.4; font-weight: 800; }
.tp-empty { margin-top: 10px; padding: 11px 12px; border-radius: 9px; background: #fff; color: #667085; font-size: 11.5px; line-height: 1.5; text-align: center; }
.tp-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-text-title { font-weight: 700; }
.tp-image-block img { display: block; width: 100%; }
.tp-image-empty { display: flex; align-items: center; justify-content: center; color: #98a2b3; font-size: 12px; background: #f2f4f7; }
.tp-item-grid { display: grid; }
.tp-item { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.tp-item-image { display: block; width: 100%; object-fit: contain; }
.tp-item-navigation .tp-item-image { width: 48px; max-width: 100%; height: 48px; margin: 0 auto; }
.tp-item-label { margin-top: 6px; font-size: inherit; line-height: 1.5; }
.tp-item-subtitle { margin-top: 3px; color: #667085; font-size: .8em; line-height: 1.5; }
.tp-item-placeholder { display: flex; align-items: center; justify-content: center; min-height: 48px; background: #f2f4f7; color: #98a2b3; font-size: 10px; }
.tp-custom-button { display: inline-block; padding: 12px 24px; border-radius: inherit; color: #fff; line-height: 1.4; }
.tp-header span, .tp-banner-copy, .tp-text, .tp-item-label { overflow-wrap: anywhere; }
.tp-category-item:focus-visible, .tp-left-item:focus-visible, .tp-tab:focus-visible, .tp-dot:focus-visible { outline: 2px solid #172033; outline-offset: -2px; }
