:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --ink: #17231f;
  --muted: #66736e;
  --line: #dce3df;
  --page: #f4f7f5;
  --surface: #ffffff;
  --forest: #176b50;
  --forest-dark: #0f503b;
  --forest-soft: #e8f4ef;
  --orange: #f27932;
  --orange-dark: #d95d1a;
  --orange-soft: #fff0e6;
  --red: #bd3c42;
  --shadow: 0 12px 30px rgba(20, 43, 35, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 14px; letter-spacing: 0; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.9; }

.site-header { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 30px; padding: 0 max(28px, calc((100vw - 1360px) / 2)); border-bottom: 1px solid rgba(23,35,31,.09); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; border: 0; padding: 0; background: transparent; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--forest); }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.brand-copy { display: grid; text-align: left; line-height: 1.05; }
.brand-copy strong { font-size: 18px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { min-height: 36px; padding: 0 14px; border: 0; border-radius: 5px; background: transparent; color: #3d4945; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--forest); background: var(--forest-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action, .icon-action, .primary-action, .secondary-action { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; font-weight: 700; }
.header-action { padding: 0 12px; border: 1px solid transparent; color: #3d4945; background: transparent; }
.header-action:hover { color: var(--forest); background: #f3f7f5; }
.header-action.register { padding-inline: 16px; border-color: var(--orange); color: white; background: var(--orange); box-shadow: 0 5px 14px rgba(242,121,50,.2); }
.header-action.register:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.icon-action { position: relative; width: 38px; border: 1px solid var(--line); color: #41504a; background: #fff; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; color: white; background: var(--red); font-size: 9px; }
.mobile-menu { display: none; }

.hero { position: relative; min-height: calc(100vh - 108px); display: flex; align-items: center; overflow: hidden; background: url("./assets/hero-shirt.webp") center 37% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(8, 31, 25, .67); }
.hero-inner { position: relative; z-index: 1; width: min(1360px, calc(100% - 56px)); margin: 0 auto; padding: 74px 0 118px; color: white; }
.hero-copy { max-width: 660px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #cce7dd; font-size: 13px; font-weight: 750; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 620px; margin: 0; font-size: 52px; line-height: 1.14; letter-spacing: 0; }
.hero-copy > p { max-width: 560px; margin: 22px 0 0; color: #e1eae7; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.primary-action, .secondary-action { min-height: 46px; padding: 0 20px; border: 1px solid transparent; }
.primary-action { color: #fff; border-color: var(--orange); background: var(--orange); }
.primary-action:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.secondary-action { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.secondary-action:hover { background: rgba(255,255,255,.15); }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; }
.hero-point { display: flex; align-items: center; gap: 9px; color: #eef5f2; font-size: 13px; }
.hero-point span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(255,255,255,.1); }
.hero-point .icon { width: 15px; height: 15px; }
.hero-stats { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(1360px, calc(100% - 56px)); transform: translate(-50%, 40%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.hero-stat { min-height: 94px; display: grid; align-content: center; padding: 18px 24px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { color: var(--forest); font-size: 25px; line-height: 1; }
.hero-stat span { margin-top: 9px; color: var(--muted); font-size: 12px; }

.section { padding: 96px 28px; background: #fff; }
.section.alt { background: var(--page); }
.section-inner { width: min(1360px, 100%); margin: 0 auto; }
.section-head { display: flex; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head > div { min-width: 0; }
.section-kicker { color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.section-head h2 { margin: 7px 0 0; font-size: 30px; line-height: 1.25; }
.section-head p { max-width: 620px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.section-head .head-action { margin-left: auto; }
.catalog-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.category-tab { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }
.category-tab.active, .category-tab:hover { color: var(--forest); border-color: #a9cfbf; background: var(--forest-soft); }
.catalog-search { width: min(320px, 100%); height: 38px; display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.catalog-search:focus-within { border-color: #7caf99; box-shadow: 0 0 0 3px rgba(23,107,80,.08); }
.catalog-search .icon { color: var(--muted); width: 16px; height: 16px; }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(22, 46, 37, .09); }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: #edf1ef; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-body { padding: 15px; }
.product-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.product-tag { padding: 3px 6px; border-radius: 4px; color: #a84f19; background: var(--orange-soft); font-weight: 750; }
.product-body h3 { margin: 10px 0 0; font-size: 16px; }
.product-body p { min-height: 42px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.product-foot { display: flex; align-items: end; gap: 10px; margin-top: 15px; }
.product-price { display: grid; }
.product-price small { color: var(--muted); font-size: 10px; }
.product-price strong { margin-top: 3px; color: var(--forest); font-size: 20px; }
.product-price strong::before { content: "¥"; font-size: 12px; }
.add-cart { width: 38px; height: 38px; display: grid; place-items: center; margin-left: auto; border: 1px solid var(--forest); border-radius: 6px; color: white; background: var(--forest); }
.add-cart:hover { background: var(--forest-dark); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; color: var(--forest); background: var(--forest-soft); }
.service-card:nth-child(2) .service-icon { color: #b9551d; background: var(--orange-soft); }
.service-card:nth-child(3) .service-icon { color: #356a91; background: #eaf2f8; }
.service-card h3 { margin: 20px 0 0; font-size: 17px; }
.service-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.75; }
.service-card a { display: inline-flex; align-items: center; gap: 5px; margin-top: 17px; color: var(--forest); font-size: 12px; font-weight: 750; }
.service-card a .icon { width: 14px; height: 14px; }

.site-footer { padding: 34px 28px; color: #b8c4bf; background: #14251f; }
.footer-inner { width: min(1360px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.footer-inner .brand { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; font-size: 12px; }
.copyright { color: #879790; font-size: 11px; }

.auth-screen { position: fixed; z-index: 80; inset: 68px 0 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr); overflow: auto; background: #edf2ef; }
.auth-showcase { position: relative; min-height: 630px; overflow: hidden; color: #fff; background: #17372d url('./assets/hero-shirt.webp') center 38% / cover no-repeat; }
.auth-showcase-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,28,22,.82) 0%, rgba(7,28,22,.48) 48%, rgba(7,28,22,.14) 100%); }
.auth-showcase-copy { position: absolute; z-index: 1; left: clamp(42px, 7vw, 118px); bottom: clamp(54px, 10vh, 104px); width: min(500px, calc(100% - 84px)); }
.auth-kicker { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 800; }
.auth-showcase h2 { margin: 18px 0 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.12; }
.auth-showcase p { max-width: 460px; margin: 18px 0 0; color: #e2ece8; font-size: 15px; line-height: 1.8; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; }
.auth-benefits span { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 700; }
.auth-benefits .icon { width: 16px; height: 16px; color: #ffb06f; }
.auth-panel { position: relative; min-height: 630px; display: grid; place-items: center; padding: 48px 40px; background: #f6f8f7; }
.auth-close { position: absolute; z-index: 2; top: 20px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; }
.auth-close:hover { color: var(--ink); border-color: #aebbb5; }
.auth-card { width: min(440px, 100%); overflow: hidden; border: 1px solid #dfe6e2; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(16,48,37,.12); }
.auth-tabs { min-height: 74px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; border: 0; color: #97a49e; background: #fff; font-size: 16px; font-weight: 800; }
.auth-tab + .auth-tab::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ''; position: absolute; left: 28%; right: 28%; bottom: -1px; height: 3px; background: var(--orange); }
.auth-card-body { padding: 30px 34px 28px; }
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-heading-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 7px; color: var(--forest); background: var(--forest-soft); }
.auth-heading h2 { margin: 0; font-size: 18px; }
.auth-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.auth-options { display: flex; align-items: center; gap: 12px; }
.auth-options > button { margin-left: auto; border: 0; padding: 0; color: var(--forest); background: transparent; font-size: 11px; font-weight: 750; }
.auth-submit { width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--orange); border-radius: 6px; color: #fff; background: var(--orange); box-shadow: 0 6px 14px rgba(234,115,51,.2); font-weight: 800; }
.auth-submit:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; color: #8a9791; font-size: 10px; }
.auth-security .icon { width: 14px; height: 14px; }
.checkout-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(10,22,18,.58); }
.checkout-modal { width: min(920px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(4,15,11,.28); }
.checkout-head { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.checkout-head h2 { margin: 0; font-size: 18px; }
.checkout-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.checkout-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 24px; padding: 24px; }
.checkout-summary { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f8; }
.checkout-summary h3 { margin: 0 0 12px; font-size: 14px; }
.checkout-item { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5ebe8; }
.checkout-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 5px; }
.checkout-item span { min-width: 0; }
.checkout-item strong, .checkout-item small { display: block; }
.checkout-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.checkout-item b { font-size: 11px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.checkout-total span { color: var(--muted); font-size: 11px; }
.checkout-total strong { color: var(--forest); font-size: 20px; }
.checkout-layout form .auth-submit { margin-top: 2px; }
.close-button { width: 34px; height: 34px; display: grid; place-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: white; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #48554f; font-size: 11px; font-weight: 750; }
.input-wrap { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #cfd8d3; border-radius: 6px; background: #fff; }
.input-wrap:focus-within { border-color: #75ab96; box-shadow: 0 0 0 3px rgba(23,107,80,.08); }
.input-wrap .icon { width: 16px; height: 16px; color: #87938e; }
.input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.check-row.full { grid-column: 1 / -1; }
.check-row input { margin-top: 2px; accent-color: var(--forest); }
.form-error { min-height: 18px; margin-top: 10px; color: var(--red); font-size: 11px; }
.light-action { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; color: #48554f; background: #fff; font-weight: 700; }
.solid-action { min-height: 42px; border: 1px solid var(--forest); border-radius: 6px; color: #fff; background: var(--forest); font-weight: 750; }
.solid-action:hover { background: var(--forest-dark); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(10,22,18,.36); }
.cart-drawer { position: fixed; z-index: 71; inset: 0 0 0 auto; width: min(430px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 42px rgba(13,31,24,.16); }
.cart-head { min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 17px; }
.cart-list { min-height: 0; flex: 1; overflow: auto; padding: 10px 18px; }
.cart-empty { height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; }
.cart-empty .icon { width: 34px; height: 34px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 11px; padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.cart-thumb { width: 64px; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #edf0ee; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { margin: 2px 0 0; font-size: 13px; }
.cart-item p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.qty-control { width: 92px; height: 30px; display: grid; grid-template-columns: 30px 1fr 30px; margin-top: 8px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.qty-control button { border: 0; color: #52605a; background: #f5f7f6; }
.qty-control span { display: grid; place-items: center; font-size: 11px; }
.remove-item { width: 30px; height: 30px; display: grid; place-items: center; border: 0; color: var(--red); background: transparent; }
.cart-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.cart-total span { color: var(--muted); }
.cart-total strong { color: var(--forest); font-size: 24px; }
.cart-total strong::before { content: "¥"; font-size: 13px; }
.cart-foot .solid-action { width: 100%; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #b9d9cc; border-radius: 7px; color: #174c3a; background: #f2faf7; box-shadow: var(--shadow); }
.toast .icon { width: 17px; height: 17px; margin-top: 1px; }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; margin-top: 3px; color: #5e7069; font-size: 10px; }
.toast.error { color: #8f2f2f; border-color: #e7bebe; background: #fff6f6; }
.toast.error span { color: #8f5555; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--page); }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; z-index: 20; display: flex; flex-direction: column; color: white; background: #14251f; }
.portal-sidebar .brand { height: 68px; padding: 0 18px; color: white; border-bottom: 1px solid rgba(255,255,255,.09); }
.portal-sidebar-close { display: none; }
.portal-nav { display: grid; gap: 4px; padding: 18px 12px; }
.portal-nav button { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 6px; color: #b9c7c1; background: transparent; text-align: left; }
.portal-nav button.active, .portal-nav button:hover { color: white; background: rgba(255,255,255,.09); }
.portal-nav button.active { box-shadow: inset 3px 0 var(--orange); }
.portal-nav .icon { width: 17px; height: 17px; }
.merchant-card { margin: auto 12px 12px; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(255,255,255,.06); }
.merchant-card strong { display: block; font-size: 12px; }
.merchant-card span { display: block; margin-top: 4px; color: #95a79f; font-size: 10px; }
.portal-main { grid-column: 2; min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 15; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.portal-topbar strong { font-size: 15px; }
.portal-topbar .top-spacer { flex: 1; }
.portal-user { display: flex; align-items: center; gap: 9px; }
.portal-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--forest); font-size: 11px; font-weight: 800; }
.portal-user span { display: grid; }
.portal-user small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.portal-content { padding: 24px; }
.portal-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.portal-heading h1 { margin: 0; font-size: 23px; }
.portal-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.portal-heading .primary-action { min-height: 38px; margin-left: auto; padding-inline: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-card { min-height: 118px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; color: var(--forest); background: var(--forest-soft); }
.metric-icon .icon { width: 15px; height: 15px; }
.metric-value { margin-top: 12px; font-size: 25px; font-weight: 780; }
.metric-foot { margin-top: 5px; color: var(--muted); font-size: 10px; }
.portal-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 14px; }
.portal-panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.portal-panel-head { min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.portal-panel-head h2 { margin: 0; font-size: 14px; }
.portal-panel-head button { margin-left: auto; border: 0; color: var(--forest); background: transparent; font-size: 11px; font-weight: 750; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th { height: 36px; padding: 0 12px; color: var(--muted); background: #fafbfa; font-size: 10px; text-align: left; }
.order-table td { padding: 12px; border-top: 1px solid #edf0ee; font-size: 11px; }
.order-table td strong { display: block; }
.order-table td small { display: block; margin-top: 4px; color: var(--muted); }
.order-status { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border-radius: 12px; color: #176b50; background: var(--forest-soft); font-size: 9px; font-weight: 750; }
.order-status.orange { color: #a8511c; background: var(--orange-soft); }
.synced-orders th:nth-child(2), .synced-orders td:nth-child(2) { min-width: 190px; }
.synced-orders th:nth-child(4), .synced-orders td:nth-child(4) { min-width: 150px; }
.portal-orders-panel { width: 100%; }
.portal-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.portal-empty .icon { width: 30px; height: 30px; }
.portal-empty strong { color: var(--ink); }
.portal-empty span { font-size: 10px; }
.quick-list { display: grid; padding: 8px; }
.quick-item { min-height: 58px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; }
.quick-item:hover { background: #f4f7f5; }
.quick-item > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--forest); background: var(--forest-soft); }
.quick-item strong { display: block; font-size: 11px; }
.quick-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.quick-item > .icon { width: 15px; height: 15px; color: #8b9892; }
.portal-menu-button { display: none; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .auth-screen { grid-template-columns: minmax(0, 1fr) minmax(400px, .85fr); }
  .auth-showcase-copy { left: 42px; width: calc(100% - 84px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 60px; gap: 8px; padding: 0 14px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 16px; }
  .header-actions .header-action { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu { display: inline-grid; }
  .mobile-nav { position: fixed; z-index: 60; top: 60px; left: 0; right: 0; display: grid; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 12px 24px rgba(18,37,30,.12); }
  .mobile-nav .nav-link { justify-content: flex-start; text-align: left; }
  .mobile-nav .header-action { display: inline-flex; }
  .hero { min-height: 700px; background-position: 54% center; }
  .hero::before { background: rgba(8,31,25,.72); }
  .hero-inner { width: calc(100% - 32px); padding: 66px 0 168px; }
  .hero h1 { font-size: 36px; line-height: 1.18; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions button { width: 100%; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; transform: translate(-50%, 45%); }
  .hero-stat { min-height: 76px; padding: 13px 15px; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-stat strong { font-size: 20px; }
  .section { padding: 112px 16px 66px; }
  .section.alt { padding-top: 66px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 25px; }
  .section-head .head-action { display: none; }
  .catalog-toolbar { display: grid; }
  .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .category-tab { white-space: nowrap; }
  .catalog-search { width: 100%; margin-left: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { margin-left: 0; }
  .auth-screen { inset: 60px 0 0; display: block; background: #f6f8f7; }
  .auth-showcase { min-height: 290px; background-position: center 32%; }
  .auth-showcase-shade { background: linear-gradient(90deg, rgba(7,28,22,.78), rgba(7,28,22,.24)); }
  .auth-showcase-copy { left: 24px; bottom: 26px; width: calc(100% - 48px); }
  .auth-kicker { min-height: 26px; }
  .auth-showcase h2 { margin-top: 12px; font-size: 32px; }
  .auth-showcase p { display: none; }
  .auth-benefits { margin-top: 16px; }
  .auth-panel { min-height: auto; padding: 20px 14px 28px; }
  .auth-close { top: -278px; right: 12px; color: #fff; border-color: rgba(255,255,255,.35); background: rgba(7,28,22,.35); }
  .auth-card { width: min(480px, 100%); }
  .auth-tabs { min-height: 64px; }
  .auth-card-body { padding: 24px 20px 22px; }
  .checkout-backdrop { padding: 10px; }
  .checkout-modal { max-height: calc(100vh - 20px); }
  .checkout-head { min-height: 64px; padding: 0 16px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .checkout-summary { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .auth-options.full, .check-row.full { grid-column: auto; }
  .portal-shell { display: block; }
  .portal-sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  .portal-shell.menu-open .portal-sidebar { transform: translateX(0); }
  .portal-sidebar-close { position: absolute; top: 13px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: white; background: rgba(255,255,255,.07); }
  .portal-main { min-width: 0; }
  .portal-topbar { height: 60px; padding: 0 14px; }
  .portal-menu-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
  .portal-user span { display: none; }
  .portal-content { padding: 16px; }
  .portal-heading { align-items: stretch; flex-direction: column; }
  .portal-heading .primary-action { width: 100%; margin-left: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 108px; }
  .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
  .order-table { min-width: 650px; }
}

@media (max-width: 420px) {
  .brand-copy strong { font-size: 15px; }
  .hero h1 { font-size: 32px; }
  .hero-points { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
}

/* Merchant product designer */
.designer-page { min-height: 100vh; color: var(--ink); background: #edf1ef; }
.designer-header { position: sticky; top: 0; z-index: 45; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid #d8dfdb; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.designer-brand { min-width: 0; display: flex; align-items: center; gap: 11px; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.designer-brand > .icon { width: 20px; height: 20px; color: var(--forest); }
.designer-brand > span { min-width: 0; display: grid; }
.designer-brand strong { font-size: 15px; }
.designer-brand small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.designer-header-status { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2c9a70; box-shadow: 0 0 0 4px rgba(44,154,112,.1); }
.designer-exit { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; color: #4c5a54; background: #fff; font-weight: 700; }
.designer-exit:hover { color: var(--forest); border-color: #98b9ab; }

.designer-main { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 260px 72px minmax(480px,1fr) 294px; }
.designer-assets { min-width: 0; border-right: 1px solid #d8dfdb; background: #fff; }
.designer-tablist { height: 58px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.designer-asset-tab { position: relative; min-width: 0; display: grid; place-items: center; align-content: center; gap: 4px; border: 0; color: #76827d; background: #fff; font-size: 10px; }
.designer-asset-tab .icon { width: 16px; height: 16px; }
.designer-asset-tab.active { color: var(--forest); background: #f7faf8; }
.designer-asset-tab.active::after { content: ''; position: absolute; left: 16%; right: 16%; bottom: -1px; height: 2px; background: var(--forest); }
.designer-asset-content { height: calc(100vh - 122px); overflow: auto; padding: 16px; }
.asset-panel-heading { display: grid; margin-bottom: 13px; }
.asset-panel-heading strong { font-size: 13px; }
.asset-panel-heading small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.product-asset-card { width: 100%; display: grid; grid-template-columns: 62px minmax(0,1fr) 18px; gap: 10px; align-items: center; padding: 7px; border: 1px solid #b8d0c6; border-radius: 6px; color: var(--ink); background: var(--forest-soft); text-align: left; }
.product-asset-card img { width: 62px; height: 62px; object-fit: cover; border-radius: 4px; background: #e3e8e5; }
.product-asset-card > span { min-width: 0; display: grid; }
.product-asset-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.product-asset-card small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.product-asset-card > .icon { color: var(--forest); width: 16px; height: 16px; }
.asset-help { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding: 11px; border-radius: 5px; color: #587168; background: #f4f7f5; font-size: 9px; line-height: 1.65; }
.asset-help .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--forest); }
.material-grid, .background-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.material-grid button, .background-grid button { min-width: 0; min-height: 92px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; color: #43504b; background: #fff; }
.material-grid button:hover, .background-grid button:hover { border-color: #9abdad; background: #f6faf8; }
.material-grid button > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--material-color); background: color-mix(in srgb, var(--material-color) 12%, white); }
.material-grid button .icon { width: 21px; height: 21px; }
.material-grid strong, .background-grid strong { overflow: hidden; max-width: 100%; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.background-grid button > span { width: 48px; height: 40px; border: 1px solid rgba(20,35,30,.12); border-radius: 5px; background: var(--asset-color); box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); }
.designer-upload { min-height: 182px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; border: 1px dashed #9ab5aa; border-radius: 7px; color: #44534d; background: #f7faf8; text-align: center; cursor: pointer; }
.designer-upload:hover { border-color: var(--forest); background: var(--forest-soft); }
.designer-upload input { display: none; }
.designer-upload > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 7px; color: var(--forest); background: #fff; box-shadow: 0 5px 16px rgba(19,61,46,.09); }
.designer-upload > span .icon { width: 23px; height: 23px; }
.designer-upload strong { font-size: 12px; }
.designer-upload small { max-width: 170px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.upload-checks { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.upload-checks span { display: flex; align-items: center; gap: 7px; }
.upload-checks .icon { width: 14px; height: 14px; color: var(--forest); }
.designer-text-field { display: grid; gap: 7px; color: #4b5853; font-size: 10px; font-weight: 700; }
.designer-text-field textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid #cdd6d2; border-radius: 6px; outline: 0; color: var(--ink); background: #fff; line-height: 1.55; }
.designer-text-field textarea:focus { border-color: #7ead98; box-shadow: 0 0 0 3px rgba(23,107,80,.08); }
.text-style-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: 10px; }
.text-style-row select, .text-style-row input { min-width: 0; height: 38px; border: 1px solid #cdd6d2; border-radius: 5px; background: #fff; }
.text-style-row select { padding: 0 8px; }
.text-style-row input { padding: 4px; }
.asset-primary { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border: 1px solid var(--forest); border-radius: 6px; color: white; background: var(--forest); font-weight: 750; }

.designer-parts { display: grid; align-content: start; gap: 7px; padding: 14px 8px; border-right: 1px solid #d8dfdb; background: #f8faf9; overflow: auto; }
.designer-part { min-width: 0; display: grid; place-items: center; gap: 4px; padding: 6px 2px; border: 1px solid transparent; border-radius: 5px; color: #6d7a74; background: transparent; }
.designer-part > span { width: 45px; height: 45px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.designer-part > span img { width: 100%; height: 100%; object-fit: contain; background: #f4f7f5; }
.designer-part .icon { width: 21px; height: 21px; }
.designer-part strong { font-size: 9px; font-weight: 650; }
.designer-part.active { color: var(--forest); border-color: #a9cabc; background: #fff; }
.designer-part.active > span { color: white; border-color: var(--forest); background: var(--forest); }
.designer-part.active > span img { background: #eef7f3; }

.designer-workspace { min-width: 0; display: flex; flex-direction: column; padding: 14px; overflow: auto; }
.designer-note { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #ebc27b; border-radius: 6px; color: #72501d; background: #fff9e8; font-size: 9px; line-height: 1.5; }
.designer-note > .icon { width: 17px; height: 17px; color: #ce7b20; }
.designer-note strong { display: inline; margin-right: 6px; font-size: 10px; }
.designer-resolution { margin-left: auto; white-space: nowrap; color: #786b55; }
.designer-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 5px; }
.designer-tool { min-width: 42px; height: 37px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; color: #64716c; background: transparent; }
.designer-tool:hover, .designer-tool.active { color: var(--forest); border-color: #c7d9d1; background: #fff; }
.designer-tool .icon { width: 17px; height: 17px; }
.designer-tool span { display: none; font-size: 9px; font-weight: 700; }
.toolbar-separator { width: 1px; height: 23px; margin: 0 4px; background: #cfd7d3; }
.designer-canvas-shell { position: relative; width: min(640px,100%); aspect-ratio: 16 / 15; flex: 0 0 auto; margin: 0 auto; overflow: hidden; border: 1px solid #c6d0cb; background-color: #eef1ef; background-image: linear-gradient(45deg,#d9dddb 25%,transparent 25%),linear-gradient(-45deg,#d9dddb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9dddb 75%),linear-gradient(-45deg,transparent 75%,#d9dddb 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; box-shadow: 0 8px 22px rgba(17,41,32,.08); }
.designer-canvas-shell .canvas-container { width: 100% !important; height: 100% !important; }
.designer-canvas-shell .lower-canvas, .designer-canvas-shell .upper-canvas { width: 100% !important; height: 100% !important; }
.designer-canvas-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); background: rgba(245,248,246,.9); font-size: 10px; }
.designer-canvas-loading.hidden { display: none; }
.loading-spinner { width: 24px; height: 24px; border: 2px solid #c9d8d2; border-top-color: var(--forest); border-radius: 50%; animation: designer-spin .7s linear infinite; }
@keyframes designer-spin { to { transform: rotate(360deg); } }
.designer-canvas-foot { min-height: 34px; width: min(640px,100%); display: flex; align-items: center; gap: 14px; margin: 0 auto; color: var(--muted); font-size: 9px; }
.designer-canvas-foot span:nth-child(2) { margin-left: auto; }
.designer-canvas-foot strong { color: var(--forest); }

.designer-spec { min-width: 0; padding: 14px; border-left: 1px solid #d8dfdb; background: #fff; overflow: auto; }
.designer-spec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.designer-spec-head > span { display: grid; }
.designer-spec-head strong { font-size: 13px; }
.designer-spec-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.designer-spec-head button { width: 32px; height: 32px; display: grid; place-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }
.designer-spec-head .icon { width: 15px; height: 15px; }
.designer-preview { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #e9edeb; }
.designer-preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-part-badge { position: absolute; left: 8px; bottom: 8px; min-height: 24px; display: flex; align-items: center; padding: 0 8px; border-radius: 4px; color: white; background: rgba(15,48,37,.78); font-size: 9px; font-weight: 750; }
.designer-spec-block { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid #e8ecea; }
.designer-spec-block > strong { font-size: 11px; }
.designer-spec-block > small { color: var(--muted); font-size: 9px; }
.spec-label { color: #74817b; font-size: 9px; font-weight: 750; }
.designer-colors { display: flex; flex-wrap: wrap; gap: 7px; }
.designer-color { width: 29px; height: 29px; display: grid; place-items: center; padding: 3px; border: 1px solid #cbd3cf; border-radius: 4px; background: #fff; }
.designer-color span { width: 100%; height: 100%; border: 1px solid rgba(10,30,22,.13); border-radius: 2px; background: var(--swatch); }
.designer-color.active { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(23,107,80,.1); }
.designer-sizes { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; }
.designer-sizes button { min-width: 0; height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 3px; color: #596660; background: #fff; font-size: 9px; }
.designer-sizes button.active { color: white; border-color: var(--forest); background: var(--forest); }
.designer-quantity { grid-template-columns: 1fr auto; align-items: center; }
.designer-quantity .qty-control { margin-top: 0; }
.designer-quantity .qty-control input { min-width: 0; width: 100%; border: 0; outline: 0; text-align: center; font-size: 10px; }
.designer-summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 8px; }
.designer-summary span { color: var(--muted); font-size: 10px; }
.designer-summary strong { color: var(--forest); font-size: 20px; }
.designer-spec-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7px; }
.designer-save, .designer-cart { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 5px; font-size: 10px; font-weight: 750; }
.designer-save { border: 1px solid var(--forest); color: var(--forest); background: #fff; }
.designer-cart { border: 1px solid var(--orange); color: white; background: var(--orange); }
.designer-cart:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.designer-save .icon, .designer-cart .icon { width: 15px; height: 15px; }

.product-card-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.design-product { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--forest); border-radius: 6px; color: white; background: var(--forest); font-size: 10px; font-weight: 750; }
.design-product:hover { background: var(--forest-dark); }
.design-product .icon { width: 15px; height: 15px; }
.quick-add { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #a9c4b8; border-radius: 6px; color: var(--forest); background: #fff; }
.cart-design-badge { display: inline-flex; align-items: center; min-height: 19px; margin-top: 5px; padding: 0 6px; border-radius: 3px; color: #a9511d; background: var(--orange-soft); font-size: 8px; font-weight: 750; }

.product-detail-link { border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.product-card .product-image { width: 100%; }
.product-name { display: block; margin-top: 10px; font-size: 16px; font-weight: 750; }
.product-name:hover { color: var(--forest); }
.detail-page { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 64px; }
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--muted); font-size: 12px; }
.detail-breadcrumb button { border: 0; padding: 0; color: var(--forest); background: transparent; }
.detail-hero { display: grid; grid-template-columns: minmax(360px,.9fr) minmax(480px,1.1fr); gap: 48px; padding: 18px 0 48px; }
.detail-main-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f1f4f2; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-count { position: absolute; right: 12px; bottom: 12px; min-width: 34px; padding: 4px 8px; border-radius: 12px; color: #fff; background: rgba(20,35,30,.52); font-size: 10px; text-align: center; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.detail-thumb { aspect-ratio: 1; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.detail-thumb.active { border: 2px solid var(--forest); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary { padding-top: 8px; }
.detail-summary-head { display: flex; align-items: flex-end; gap: 16px; }
.detail-summary-head > div { flex: 1; }
.detail-kicker { color: var(--orange-dark); font-size: 11px; font-weight: 800; }
.detail-summary h1 { margin: 8px 0 0; font-size: 28px; }
.text-action { border: 0; color: var(--forest); background: transparent; font-weight: 750; }
.detail-price { display: flex; align-items: center; gap: 28px; margin-top: 22px; padding: 18px 10px; border-block: 1px solid var(--line); }
.detail-price span { color: var(--muted); }
.detail-price strong { color: #e9513d; font-size: 25px; }
.detail-specs { display: grid; grid-template-columns: 60px repeat(4,minmax(0,1fr)); gap: 12px; padding: 20px 10px; border-bottom: 1px solid var(--line); }
.detail-spec-label { color: var(--muted); }
.detail-specs div { display: grid; gap: 6px; }
.detail-specs strong { font-size: 13px; }
.detail-specs small { color: var(--muted); font-size: 10px; }
.detail-option { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.detail-option label { width: 50px; color: var(--muted); }
.color-swatch { width: 26px; height: 26px; border: 2px solid var(--forest); border-radius: 50%; background: #fff; }
.size-pill { min-height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 17px; color: var(--muted); background: #fff; }
.size-pill.active, .size-pill:hover { border-color: var(--forest); color: var(--forest); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.detail-primary, .detail-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 22px; border-radius: 6px; font-weight: 750; }
.detail-primary { border: 1px solid var(--forest); color: #fff; background: var(--forest); }
.detail-secondary { border: 1px solid var(--forest); color: var(--forest); background: #fff; }
.detail-tabs { position: sticky; top: 68px; z-index: 12; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #f5f7f6; }
.detail-tabs button { min-height: 38px; border: 0; border-radius: 5px; color: #3d4945; background: transparent; font-weight: 750; }
.detail-tabs button.active { color: #fff; background: var(--forest); }
.detail-body { min-height: 300px; padding: 32px 0; }
.detail-copy h3, .detail-recommend h2 { margin: 0 0 18px; font-size: 16px; }
.detail-copy dl { display: grid; grid-template-columns: 130px 1fr 130px 1fr; margin: 0; border-top: 1px solid var(--line); }
.detail-copy dt, .detail-copy dd { margin: 0; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.detail-copy dt { color: var(--muted); background: #f7f9f8; }
.detail-copy p { margin: 24px 0 0; color: var(--muted); line-height: 1.9; }
.detail-table-title { display: flex; align-items: center; margin-bottom: 12px; font-weight: 750; }
.detail-table-title button { margin-left: auto; border: 0; color: var(--forest); background: transparent; }
.detail-table { width: 100%; border-collapse: collapse; background: #fff; }
.detail-table th, .detail-table td { padding: 14px; border: 1px solid var(--line); text-align: left; }
.detail-table th { background: #f5f7f6; }
.detail-recommend { padding-top: 12px; border-top: 1px solid var(--line); }
.detail-recommend-grid { display: grid; grid-template-columns: repeat(2,minmax(0,230px)); gap: 14px; }
.recommend-card { display: grid; gap: 8px; padding: 0 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; }
.recommend-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recommend-card span, .recommend-card strong { padding: 0 12px; }
.recommend-card strong { color: var(--forest); }

@media (max-width: 900px) {
  .detail-page { width: min(100% - 28px,720px); padding-top: 12px; }
  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-summary h1 { font-size: 23px; }
  .detail-specs { grid-template-columns: repeat(2,1fr); }
  .detail-spec-label { grid-column: 1 / -1; }
  .detail-tabs { top: 60px; overflow-x: auto; grid-template-columns: repeat(4,minmax(105px,1fr)); }
  .detail-copy dl { grid-template-columns: 110px 1fr; }
}

@media (max-width: 1280px) {
  .designer-main { grid-template-columns: 230px 64px minmax(440px,1fr) 270px; }
  .designer-assets .designer-asset-content { padding: 13px; }
  .designer-spec { padding: 12px; }
}

@media (min-width: 1450px) {
  .designer-tool span { display: inline; }
  .designer-tool { min-width: 54px; }
}

@media (max-width: 900px) {
  .designer-header { height: 60px; padding: 0 12px; }
  .designer-header-status { display: none; }
  .designer-brand { flex: 1; }
  .designer-brand strong { font-size: 13px; }
  .designer-main { min-height: 0; display: flex; flex-direction: column; }
  .designer-assets { order: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .designer-tablist { height: 54px; }
  .designer-asset-content { height: auto; max-height: 245px; overflow: auto; padding: 13px; }
  .product-asset-card { max-width: 420px; }
  .material-grid, .background-grid { grid-template-columns: repeat(4,minmax(100px,1fr)); overflow-x: auto; }
  .material-grid button, .background-grid button { min-height: 80px; }
  .designer-upload { min-height: 138px; }
  .designer-parts { order: 2; display: flex; gap: 6px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .designer-part { min-width: 62px; padding: 4px; }
  .designer-part > span { width: 36px; height: 36px; }
  .designer-part .icon { width: 18px; height: 18px; }
  .designer-workspace { order: 3; padding: 10px; overflow: visible; }
  .designer-note { align-items: flex-start; }
  .designer-resolution { display: none; }
  .designer-toolbar { justify-content: flex-start; overflow-x: auto; }
  .designer-tool { flex: 0 0 40px; padding: 0 5px; }
  .designer-canvas-shell { width: min(640px,100%); }
  .designer-canvas-foot { flex-wrap: wrap; gap: 5px 12px; padding-top: 4px; }
  .designer-canvas-foot span:nth-child(2) { margin-left: 0; }
  .designer-spec { order: 4; padding: 14px; border-top: 1px solid var(--line); border-left: 0; overflow: visible; }
  .designer-spec-head, .designer-preview { max-width: 420px; margin-left: auto; margin-right: auto; }
  .designer-preview { aspect-ratio: 4 / 3; }
  .designer-spec-actions { position: sticky; z-index: 12; bottom: 0; margin: 0 -14px -14px; padding: 10px 14px max(10px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
}

@media (max-width: 520px) {
  .designer-exit { width: 34px; padding: 0; overflow: hidden; color: transparent; }
  .designer-exit::after { content: '×'; color: var(--ink); font-size: 20px; }
  .designer-brand small { max-width: 230px; }
  .designer-asset-content { max-height: 214px; }
  .designer-note { font-size: 8px; }
  .designer-toolbar { gap: 0; }
  .toolbar-separator { margin-inline: 2px; }
  .designer-tool { flex-basis: 36px; min-width: 36px; }
  .designer-tool .icon { width: 16px; height: 16px; }
  .designer-canvas-foot span:nth-child(2) { display: none; }
  .designer-spec { padding: 12px; }
  .designer-spec-actions { margin: 0 -12px -12px; padding-inline: 12px; }
}
.preview-config-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 3px;
  color: #fff;
  background: rgba(23, 107, 80, .82);
  font-size: 10px;
  font-weight: 800;
}
