/* Approved BYHD card catalogue. Transactions remain in app.js. */
:root{--page:#f5f8f7;--ink:#193b38;--price:#b4471a;--muted:#566e68;--line:#d5e3de}
body{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
#home{display:block}.header{min-height:72px}.shop-notice{margin-top:12px;padding:9px 14px}.shop-heading{padding:18px 0 8px;gap:24px}.shop-heading h1{font-size:36px;letter-spacing:-1px}.shop-heading>div>p:last-child{font-size:14px;margin-top:6px}.catalog-tools{min-width:0}.search{width:280px}
.official-navigation{height:112px;display:flex;align-items:center;gap:10px;margin-bottom:4px;position:relative;min-width:0}.official-navigation h2{position:absolute;top:0;left:1px;font-size:11px;font-weight:500;color:var(--muted);margin:0;white-space:nowrap}.brand-rail{display:flex;flex:1;min-width:0;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:5px;scrollbar-width:none;padding:8px 5px}.brand-rail::-webkit-scrollbar{display:none}.official-brand{flex:1 0 180px;height:80px;display:flex;align-items:center;justify-content:center;gap:12px;scroll-snap-align:start;position:relative;border-radius:9px;font-size:22px;font-weight:600;color:var(--ink);text-decoration:none;transition:transform 180ms,background 180ms,box-shadow 180ms}.official-brand img{width:48px;height:48px;object-fit:contain;border-radius:9px;transition:transform 180ms}.official-brand:hover,.official-brand:focus-visible{transform:translateY(-3px);background:#fff;box-shadow:0 5px 16px #193b3810}.official-brand:hover img,.official-brand:focus-visible img{transform:scale(1.08)}.official-brand:active{transform:scale(.97)}.brand-tooltip{position:absolute;bottom:1px;font-size:11px;line-height:14px;font-weight:400;color:var(--brand);white-space:nowrap;opacity:0;transition:opacity 150ms}.official-brand:hover .brand-tooltip,.official-brand:focus-visible .brand-tooltip{opacity:1}.rail-arrow{flex:none;width:44px;height:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:white;font-size:27px;color:var(--brand)}.rail-arrow:hover:not(:disabled){background:var(--brand);color:white}.rail-arrow:disabled{opacity:.35;cursor:default}.rail-arrow[hidden]{display:none}
.shop-body{min-width:0}.category-tabs{display:flex!important;margin:6px 0 10px;overflow:auto;flex-wrap:nowrap;gap:6px;scrollbar-width:thin}.category-tabs button{white-space:nowrap;min-height:44px;padding:9px 16px;border-radius:8px;font-size:14px;flex:none}.catalog-meta{margin:0 0 12px}.product-grid{display:flex;flex-direction:column;gap:26px}.catalog-group{padding:0;background:none;border:0;border-radius:0}.catalog-group-heading{margin:0 0 12px}.catalog-group-heading h2{font-size:19px}.catalog-group-heading>span{background:none;color:var(--muted);padding:0}.group-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product{display:block;border:0;padding:0;border-radius:17px;min-width:0;overflow:hidden;position:relative;background:#ecf7f1}.product.tone-lilac{background:#eaf2fc}.product.tone-peach{background:#fcf5e8}.product-card{width:100%;height:100%;display:flex;flex-direction:column;padding:0;text-align:left;border:1px solid #193b380b;border-radius:17px;overflow:hidden;background:transparent;color:var(--ink);transition:border-color 180ms,box-shadow 180ms}.product-card:hover{border-color:#0f766e66;box-shadow:0 7px 22px #193b3810}.product-card:focus-visible{outline:3px solid var(--brand);outline-offset:-3px}
.product .product-cover.boutique-cover,.product .product-cover.custom-cover{position:relative;width:100%;height:165px;min-height:165px;aspect-ratio:auto;border:0;border-radius:0;padding:0;display:grid;place-items:center;background:#def0e8}.product .product-cover.theme-lilac{background:#dceafa}.product .product-cover.theme-peach{background:#f6eddb}.product .product-cover.tier-5x{background:#e4e9f8}.product .product-cover.tier-10x{background:#ebe3f6}.product .product-cover.tier-25x{background:#efead7}.product:has(.tier-5x){background:#eff2fb}.product:has(.tier-10x){background:#f4effa}.product:has(.tier-25x){background:#f8f4e6}.product .cover-app{width:112px;height:112px;border-radius:28px;display:grid;place-items:center;background:#fff;margin:0;box-shadow:0 4px 12px #193b3808;transition:transform 180ms}.product-card:hover .cover-app{transform:scale(1.035)}.product .cover-app img{width:90px;height:90px;object-fit:contain}.product .cover-app svg{width:76px;height:76px;color:#6c6444}.tier-label{position:absolute;right:12px;top:12px;background:#ffffffdc;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:650}.product .product-cover.custom-cover{background:#edf4f1}.product .product-cover.custom-cover img{height:100%;width:100%;object-fit:contain;padding:10px}.product-info{display:flex;flex-direction:column;flex:1;padding:16px;gap:7px;min-width:0;width:100%}.product-category{font-size:12px;color:var(--muted)}.product-name{font-size:19px;line-height:1.45;font-weight:650;overflow-wrap:anywhere}.product-labels{display:flex;flex-wrap:wrap;gap:5px;min-height:0;margin:0}.product-labels .delivery-label,.product-labels .product-tag{font-size:11px;line-height:1.5;padding:2px 6px;background:#ffffff80;color:var(--muted)}.stock-line{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:0 0 6px}.card-bottom{margin-top:auto;padding-top:5px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.product-price{font-size:23px;line-height:1.3;letter-spacing:-.6px;color:var(--price);font-weight:650;margin:0;overflow-wrap:anywhere}.card-action{border:1px solid #0f766e35;background:#ffffffa8;color:var(--brand);border-radius:20px;font-size:12px;min-height:34px;padding:6px 10px;white-space:nowrap}.sold-ribbon{position:absolute;top:12px;left:12px;font-size:11px;background:#fff;padding:4px 8px;border-radius:6px}.guide-section{position:static;width:100%;margin:30px 0 18px;padding:22px;background:none;border:1px solid var(--line);border-radius:14px}.guide-section h2{font-size:20px}.buy-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.buy-steps li{padding-left:38px;min-height:54px}.buy-steps li:before{width:27px;height:27px;font-size:13px}.guide-actions{display:flex;gap:10px;padding-top:15px}.guide-actions .button{min-width:140px}.store-service-note{margin:22px 0}.faq-section{margin-top:24px}#modal-close{width:44px;height:44px;min-height:44px}.detail-checkout .checkout-price-row{display:none}.detail-checkout{padding-top:14px}.detail-checkout select{min-height:44px}.detail-identity img{width:72px;height:72px;object-fit:contain}.detail-identity h2{overflow-wrap:anywhere}
@media(max-width:1000px) and (min-width:741px){.group-rows{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:740px){.wrap{width:calc(100% - 28px)}.header{min-height:60px}.header nav{display:none}.header-contact{font-size:12px;padding:8px 11px}.shop-notice{margin:10px 0 0;font-size:11px;padding:8px 10px}.shop-notice h2{display:none}.shop-heading{padding:14px 0 8px;display:block}.shop-heading h1{font-size:28px}.shop-heading>div>p:last-child{font-size:12px;margin:5px 0 10px}.shop-heading .catalog-tools{display:block;width:100%;margin-top:8px}.search{width:100%;min-height:44px}.official-navigation{height:104px;gap:2px;margin:0}.official-navigation h2{top:2px}.brand-rail{padding:18px 4px 3px;gap:10px;scroll-padding-inline:4px}.official-brand{flex:0 0 112px;height:78px;flex-direction:column;gap:2px;font-size:15px}.official-brand img{width:44px;height:44px;border-radius:8px}.brand-tooltip{bottom:-1px;font-size:10px;background:var(--page);border-radius:3px;padding:0 3px}.rail-arrow{width:30px;height:44px;margin-top:16px;font-size:24px}.category-tabs{position:sticky;top:0;z-index:3;background:var(--page);padding:7px 0;margin:0 0 8px;border-bottom:1px solid var(--line)}.category-tabs button{font-size:12px;padding:8px 11px}.category-tabs small{font-size:10px}.catalog-meta{margin-bottom:10px}.group-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-group{padding:0}.catalog-group-heading{margin-bottom:10px}.catalog-group-heading h2{font-size:16px}.product-grid{gap:20px}.product,.product-card{border-radius:14px}.product .product-cover.boutique-cover,.product .product-cover.custom-cover{height:120px;min-height:120px;padding:0;border-radius:0}.product .cover-app{width:88px;height:88px;border-radius:23px}.product .cover-app img{width:68px;height:68px}.product .cover-app svg{width:57px;height:57px}.tier-label{font-size:11px;top:7px;right:7px;padding:1px 7px}.product-info{display:flex;padding:12px 10px;gap:6px}.product-name{font-size:16px;line-height:1.45}.product-price{font-size:20px}.stock-line{font-size:10px;gap:5px}.card-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.card-action{justify-self:start;min-height:32px;padding:5px 10px}.product-labels .delivery-label,.product-labels .product-tag{font-size:10px}.guide-section{padding:16px;margin:25px 0 18px}.buy-steps{grid-template-columns:1fr 1fr;gap:16px 10px}.buy-steps li{padding-left:32px}.guide-actions{flex-wrap:wrap}.guide-actions .button{flex:1}.faq-section{margin-top:20px}dialog.product-modal .detail-identity{gap:12px}dialog.product-modal .detail-identity img{width:64px;height:64px}.modal-body .detail-identity h2{font-size:20px}dialog.product-modal .detail-checkout{position:sticky;bottom:0;background:#fff;padding:12px 0 max(12px,env(safe-area-inset-bottom));box-shadow:0 -8px 12px #fff}.detail-cta .button{min-height:44px}dialog.product-modal .modal-body{padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){.official-brand,.official-brand img,.cover-app,.product-card{transition:none!important}.official-brand:hover,.official-brand:focus-visible,.official-brand:active,.official-brand:hover img,.official-brand:focus-visible img,.product-card:hover .cover-app{transform:none!important}}
/* Reset inherited list coordinates when presenting cards. */
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product .product-cover.boutique-cover,.product .product-cover.custom-cover{justify-content:center;grid-template-columns:1fr}.product-info>*{grid-column:auto;grid-row:auto}.card-bottom .product-price{grid-column:auto;grid-row:auto;text-align:left;justify-content:flex-start}.shop-heading .catalog-tools{max-width:none}.card-bottom .card-action{grid-column:auto;grid-row:auto}.product-info .stock-line{line-height:1.5}.product-card .product-price{font-variant-numeric:tabular-nums}
@media(max-width:1000px) and (min-width:741px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:740px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-bottom .product-price,.card-bottom .card-action{grid-column:1;grid-row:auto}.product-info{gap:5px}.shop-heading .catalog-tools{max-width:none;width:100%}.catalog-tools .search{width:100%}.catalog-meta{font-size:11px}.product-price{font-size:20px}}
@media(max-width:740px){.shop-heading{padding-top:12px;padding-bottom:6px}.shop-heading .catalog-tools{margin-top:6px}}
.product-grid>.catalog-message,.product-grid>.catalog-error{grid-column:1/-1}.product-card,.official-brand,.rail-arrow{touch-action:manipulation}dialog{overscroll-behavior:contain}

.product-variant{align-self:flex-start;font-size:13px;line-height:1.5;font-weight:600;color:var(--brand);background:#ffffffa6;border:1px solid #0f766e25;border-radius:6px;padding:3px 8px;overflow-wrap:anywhere;max-width:100%}
@media(max-width:740px){.product-variant{font-size:12px;padding:3px 7px}}

.detail-identity .detail-variant{color:var(--brand);font-weight:600;font-size:14px;line-height:1.5;margin:5px 0 8px;overflow-wrap:anywhere}
