/* This file is loaded only for the configured category and its checkout. */
.catalog-section,.catalog-item{--catalog-accent:#169862;--catalog-soft:rgba(22,152,98,.09);color:var(--acg-text-strong)}
[data-theme="dark"] .catalog-section,[data-theme="dark"] .catalog-item{--catalog-accent:#7cddb0;--catalog-soft:rgba(124,221,176,.1)}
.catalog-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:8px 0 26px}
.catalog-back{font-size:13px;color:var(--acg-text-muted);display:inline-block;margin-bottom:12px}
.catalog-heading h1{font-size:28px;letter-spacing:-.6px;font-weight:750;margin:0 0 8px;color:var(--acg-text-strong)}
.catalog-heading p,.catalog-products-head p{color:var(--acg-text-muted);margin:0;line-height:1.7}
.catalog-query{border:1px solid var(--acg-border);padding:10px 16px;border-radius:12px;background:var(--acg-card-bg);white-space:nowrap;color:var(--acg-text-strong)}
.catalog-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.catalog-sidebar,.catalog-products,.catalog-item-card{border:1px solid var(--acg-border);border-radius:16px;background:var(--acg-card-bg);box-shadow:0 6px 22px var(--acg-shadow)}
.catalog-sidebar{padding:18px 12px;position:sticky;top:20px}
.catalog-sidebar h2{font-size:12px;letter-spacing:1px;color:var(--acg-text-muted);padding:0 12px;margin:0 0 16px}
.catalog-category{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px 10px calc(12px + var(--category-depth,0)*10px);border-radius:10px;color:var(--acg-text-strong);margin-bottom:4px}
.catalog-category span{overflow-wrap:anywhere;font-weight:550}.catalog-category small{min-width:22px;border-radius:6px;text-align:center;padding:2px 5px;font-variant-numeric:tabular-nums;color:var(--acg-text-muted);background:var(--acg-surface-soft)}
.catalog-category:hover,.catalog-category.is-active{background:var(--catalog-soft);color:var(--catalog-accent)}
.catalog-category.is-active{box-shadow:inset 3px 0 var(--catalog-accent)}
.catalog-sidebar-note{padding:18px 12px 4px;margin-top:20px;border-top:1px solid var(--acg-border);font-size:12px;line-height:1.8;color:var(--acg-text-muted)}
.catalog-sidebar-note strong{color:var(--acg-text-strong);font-size:13px}.catalog-sidebar-note p{margin:6px 0 10px}.catalog-sidebar-note a{color:var(--catalog-accent)}
.catalog-nav-toggle{display:none}
#catalog-section #catalog-categories{max-height:max(220px,calc(100dvh - 300px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.catalog-products{overflow:hidden;min-height:410px}.catalog-products-head{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.catalog-products-head h2{font-size:19px;margin:0 0 5px;font-weight:700}
#catalog-search{display:flex;border:1px solid var(--acg-border);border-radius:10px;overflow:hidden;min-width:240px;background:var(--acg-input-bg)}
#catalog-keyword{border:0;background:transparent;color:var(--acg-text-strong);padding:10px 12px;min-width:0;width:100%;outline-offset:-3px}
#catalog-search button{border:0;border-left:1px solid var(--acg-border);padding:0 14px;white-space:nowrap;background:var(--catalog-soft);color:var(--catalog-accent);font-weight:600}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px 16px;border-bottom:1px solid var(--acg-border)}
.catalog-stock-tabs{display:flex;gap:5px}.catalog-stock-tabs button{min-height:34px;padding:6px 14px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--acg-text-muted)}
.catalog-stock-tabs button[aria-pressed="true"]{border-color:var(--acg-brand-border);background:var(--catalog-soft);color:var(--catalog-accent)}
.catalog-sort-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--acg-text-muted)}
#catalog-sort{padding:7px 9px;max-width:150px;border:1px solid var(--acg-border);border-radius:8px;color:var(--acg-text-strong);background:var(--acg-card-bg)}
.catalog-table{width:100%;border-collapse:collapse;table-layout:fixed}.catalog-table th{font-size:12px;font-weight:500;color:var(--acg-text-muted);padding:14px 22px;text-align:left;background:var(--acg-surface-soft)}
.catalog-table th:first-child{width:52%}.catalog-table th:last-child{width:100px;text-align:right}.catalog-table td{padding:18px 22px;border-bottom:1px solid var(--acg-border);vertical-align:middle}
.catalog-table tr:last-child td{border-bottom:0}.catalog-table tbody tr:hover{background:var(--catalog-soft)}
.catalog-product-name{display:flex;align-items:center;gap:12px;min-width:0}.catalog-product-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:var(--catalog-soft);color:var(--catalog-accent);font-size:20px}
.catalog-product-title{margin:0;font-size:14px;font-weight:600;line-height:1.65;overflow-wrap:anywhere;color:var(--acg-text-strong)}
.catalog-product-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.catalog-product-tags span{font-size:10px;padding:2px 6px;border-radius:4px;color:var(--acg-text-muted);background:var(--acg-surface-soft)}
.catalog-product-price{font-size:16px;font-weight:750;color:var(--catalog-accent);font-variant-numeric:tabular-nums;white-space:normal}.catalog-product-stock{font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap}.catalog-product-stock.is-empty{color:var(--acg-text-muted)}
.catalog-table td:last-child{text-align:right}.catalog-buy{display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px solid var(--acg-brand-border);border-radius:8px;padding:7px 13px;font-weight:600;background:var(--catalog-soft);color:var(--catalog-accent)}
.catalog-buy:hover{background:var(--catalog-accent);color:var(--acg-card-bg)}.catalog-buy[aria-disabled="true"]{cursor:default;color:var(--acg-text-muted);background:transparent;border-color:var(--acg-border)}
.catalog-state{min-height:240px;padding:44px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:var(--acg-text-muted)}
.catalog-state strong{font-size:16px;color:var(--acg-text-strong)}.catalog-state p{max-width:360px;line-height:1.8;margin:0}.catalog-state button{border:1px solid var(--acg-border);padding:8px 16px;background:var(--acg-input-bg);border-radius:8px;color:var(--catalog-accent)}
.catalog-loader{width:24px;height:24px;border:2px solid var(--acg-border);border-top-color:var(--catalog-accent);border-radius:50%;animation:catalog-spin .8s linear infinite}
@keyframes catalog-spin{to{transform:rotate(360deg)}}
.catalog-footnote{border-top:1px solid var(--acg-border);padding:14px 24px;margin:0;color:var(--acg-text-muted);font-size:12px;line-height:1.7}
.catalog-modal{padding:0;border:1px solid var(--acg-border);border-radius:18px;color:var(--acg-text-strong);background:var(--acg-card-bg);width:min(700px,calc(100vw - 32px));max-width:100%;height:min(800px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);box-shadow:0 24px 90px rgba(0,0,0,.32)}
.catalog-modal::backdrop{background:rgba(5,12,24,.62)}.catalog-modal[open]{display:flex;flex-direction:column}.catalog-modal>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-bottom:1px solid var(--acg-border)}
.catalog-modal h2{font-size:15px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-modal [data-close-checkout]{border:0;border-radius:8px;width:36px;height:36px;font-size:26px;color:var(--acg-text-muted);background:var(--acg-surface-soft)}
.catalog-modal-status{font-size:12px;padding:8px 20px;margin:0;color:var(--acg-text-muted);background:var(--acg-surface-soft)}
#catalog-checkout-frame{flex:1;min-height:0;position:relative}#catalog-checkout-frame iframe{border:0;display:block;width:100%;height:100%;background:var(--acg-card-bg)}
body:has(.catalog-modal[open]){overflow:hidden}body:has(.catalog-modal[open]) #wuhu-support-link{visibility:hidden;pointer-events:none}
.catalog-section [hidden]{display:none!important}.catalog-section :is(a,button,input,select):focus-visible,.catalog-item :is(a,button,input,select):focus-visible{outline:2px solid var(--catalog-accent);outline-offset:3px}
.catalog-item{max-width:760px}.catalog-item-card{padding:28px}.catalog-item-heading h1{font-size:23px;line-height:1.5;margin:8px 0 14px;font-weight:750}.catalog-item-label{font-size:12px;letter-spacing:.4px;color:var(--catalog-accent)}
.catalog-item-badges{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.catalog-item-badges .shared-button{margin-left:auto;border:0;padding:5px 0;background:transparent;color:var(--acg-text-muted);font-size:12px}
.catalog-item-description{padding:22px 0;line-height:1.9;overflow-wrap:anywhere}.catalog-item-description :is(img,video){max-width:100%;height:auto}.catalog-item-description p:last-child{margin-bottom:0}
.catalog-order{border-top:1px solid var(--acg-border);padding-top:22px}.catalog-price-label{display:flex;justify-content:space-between;gap:10px;font-weight:600}.catalog-price-label span{font-size:12px;font-weight:400;color:var(--acg-text-muted)}
.catalog-item .abacus{margin:10px 0 22px}.catalog-item .abacus .price{font-size:30px;color:var(--catalog-accent);font-weight:750}.catalog-item .abacus .price .unit{color:inherit}.catalog-item .qty-group{box-shadow:none;border-color:var(--acg-border);background:var(--acg-input-bg)}
.catalog-item .qty-group button{background:var(--catalog-soft);color:var(--catalog-accent);box-shadow:none}.catalog-item .cash-pay{border-top:1px solid var(--acg-border);border-radius:0;margin-top:4px;padding-top:16px!important;background:transparent;box-shadow:none}
.catalog-item .pay-list .pay{border:1px solid var(--acg-brand-border);color:var(--catalog-accent);background:var(--catalog-soft);box-shadow:none;min-height:44px;border-radius:10px}.catalog-item .pay-list .pay[aria-disabled="true"]{opacity:.55;pointer-events:none}
.catalog-item .captcha-img{background:#fff!important;filter:none!important;min-width:60px}.catalog-order-note{font-size:12px;color:var(--acg-text-muted);margin:14px 0 0;line-height:1.7}
body.storefront-body.catalog-checkout{background:var(--acg-card-bg)!important;min-height:100vh}.catalog-checkout>.navbar,.catalog-checkout .home-footer,.catalog-checkout #wuhu-support-link,.catalog-checkout .catalog-item-back{display:none!important}.catalog-checkout .catalog-item{max-width:none;padding:0!important}.catalog-checkout .catalog-item-card{border:0;border-radius:0;box-shadow:none;padding:24px}
@media(max-width:991.98px){.catalog-layout{grid-template-columns:185px minmax(0,1fr);gap:14px}.catalog-products-head{align-items:stretch;flex-direction:column;gap:12px;padding:18px}.catalog-toolbar{padding:0 18px 14px}.catalog-table td,.catalog-table th{padding:14px 12px}.catalog-table th:first-child{width:46%}}
@media(max-width:680px){.catalog-heading{margin:0 0 18px;gap:10px}.catalog-heading h1{font-size:23px}.catalog-heading p{font-size:12px}.catalog-query{padding:9px 11px;font-size:12px}.catalog-layout{grid-template-columns:1fr;gap:14px}.catalog-sidebar{position:static;padding:12px}.catalog-sidebar h2,.catalog-sidebar-note{display:none}.catalog-nav-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:8px 12px;border:0;border-radius:8px;min-height:40px;color:var(--catalog-accent);font-weight:600;background:var(--catalog-soft)}.catalog-sidebar nav{display:none;margin-top:10px}.catalog-sidebar.is-open nav{display:block}.catalog-products{min-height:360px}.catalog-products-head h2{font-size:17px}.catalog-table thead{display:none}.catalog-table,.catalog-table tbody{display:block}.catalog-table tr{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;padding:16px;border-bottom:1px solid var(--acg-border);gap:8px 12px}.catalog-table td{display:block;border:0;padding:0}.catalog-table td:first-child{grid-column:1/-1}.catalog-table td:nth-child(2){grid-column:1;grid-row:2}.catalog-table td:nth-child(3){grid-column:1;grid-row:3;color:var(--acg-text-muted);font-size:12px}.catalog-table td:last-child{grid-column:2;grid-row:2/4;align-self:center}.catalog-product-title{font-size:14px}.catalog-product-icon{width:30px;height:30px;border-radius:8px}.catalog-product-price{font-size:18px}.catalog-product-stock::before{content:attr(data-label) ' ';}.catalog-buy{min-height:42px;min-width:72px}.catalog-footnote{padding:13px 16px;font-size:11px}.catalog-modal{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.catalog-modal>header{padding:12px 16px}.catalog-item-card,.catalog-checkout .catalog-item-card{padding:18px}.catalog-item-heading h1{font-size:20px}.catalog-item .form-control{font-size:16px}.catalog-section{padding-bottom:max(100px,env(safe-area-inset-bottom))!important}}
@media(prefers-reduced-motion:reduce){.catalog-loader{animation:none;border-color:var(--catalog-accent)}}
@media(max-width:680px){#catalog-section #catalog-categories{max-height:300px}}
