*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:#f3f6fb;color:#1f2937}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#eaf2ff,#f8fbff 55%,#eef6ff)}
.login-card{width:min(430px,100%);background:#fff;border:1px solid #dbe7f5;border-radius:24px;box-shadow:0 24px 70px rgba(15,23,42,.16);padding:26px}
.login-brand-row{display:flex;align-items:center;gap:12px;margin-bottom:20px}.brand-name.dark{color:#0f172a}.seller-info.dark{color:#64748b}.login-card h1{margin:0 0 8px;font-size:25px;letter-spacing:-.04em}.login-card p{margin:0 0 18px;color:#64748b;line-height:1.5}.inline-login-form{display:grid;gap:10px}.login-footer-note{margin-top:14px;color:#64748b;font-size:12px;text-align:center;line-height:1.4}.catalog-app[hidden]{display:none!important}
.catalog-topbar{position:sticky;top:0;z-index:50;background:#0f172a;color:#fff;display:grid;grid-template-columns:minmax(180px,230px) minmax(220px,520px) minmax(170px,1fr);gap:12px;align-items:center;padding:8px 14px;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 8px 24px rgba(15,23,42,.18)}
.brand-block{display:flex;align-items:center;gap:9px;min-width:0}.brand-mark{width:34px;height:34px;border-radius:11px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:950;letter-spacing:-.04em;flex:0 0 auto}.brand-text-block{min-width:0}.brand-name{font-size:16px;font-weight:950;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seller-info{font-size:11px;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-search{display:grid;grid-template-columns:1fr auto;gap:7px;min-width:0;max-width:520px;width:100%;justify-self:start}.top-search input{height:36px;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:#fff;color:#111827;padding:8px 11px;font-size:13px}.top-search button,.shop-category-head button{border:1px solid #d8dee9;background:#fff;border-radius:11px;padding:8px 11px;font-weight:900;cursor:pointer}.account-block{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-width:0}.session-badge{display:inline-flex;max-width:100%;padding:6px 9px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.10);border-radius:999px;font-weight:850;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-login-actions{display:flex;gap:7px;flex-wrap:wrap}.catalog-login-actions button{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.14);color:#fff;border-radius:999px;padding:7px 10px;font-weight:900;cursor:pointer}.catalog-login-actions button:hover{background:rgba(255,255,255,.22)}
.catalog-shell{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px;padding:16px;align-items:start}.catalog-main,.order-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 12px 35px rgba(15,23,42,.08)}.catalog-main{padding:15px}.order-panel{position:sticky;top:68px;padding:16px}.shop-category-row{border:1px solid #e6edf5;background:#f8fbff;border-radius:16px;padding:12px;margin-bottom:14px}.shop-category-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.shop-category-head strong{font-size:17px}.category-chips{display:flex;gap:8px;overflow:auto;padding:2px 1px 4px}.category-chip{min-width:136px;border:1px solid #dbeafe;background:#eff6ff;border-radius:14px;padding:10px 11px;text-align:left;cursor:pointer;color:#1e3a8a}.category-chip.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.category-chip b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-chip span{display:inline-flex;margin-top:5px;background:#fff;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900;color:#2563eb}.category-chip.active span{color:#1d4ed8}.category-select{display:none}.empty-chip{color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:14px;padding:12px}.catalog-status{color:#475569;font-size:14px;margin:8px 2px 16px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.catalog-card{border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:100%;transition:.15s ease;box-shadow:0 8px 22px rgba(15,23,42,.05)}.catalog-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.11)}.catalog-img{height:165px;background:#eef2f7;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:40px}.catalog-img img{width:100%;height:100%;object-fit:cover}.catalog-body{padding:13px;display:flex;flex-direction:column;gap:7px;flex:1}.catalog-category{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#2563eb;font-weight:900}.catalog-name{font-size:15px;font-weight:950;line-height:1.25}.catalog-desc{font-size:13px;color:#64748b;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.catalog-meta{font-size:12px;color:#64748b}.catalog-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto}.catalog-price{font-size:18px;font-weight:950;color:#111827}.add-area{display:flex;gap:7px;align-items:center}.qty-input{width:58px;border:1px solid #d8dee9;border-radius:10px;padding:9px;text-align:center}.add-btn,.option-btn{border:0;background:#16a34a;color:#fff;border-radius:11px;padding:10px 12px;font-weight:900;cursor:pointer;white-space:nowrap}.option-btn{background:#1d4ed8}.add-btn:disabled{background:#cbd5e1;cursor:not-allowed}.catalog-pager{display:flex;justify-content:center;align-items:center;gap:12px;padding:18px 0 4px;color:#475569;font-weight:800}.catalog-pager button{border:1px solid #d8dee9;background:#fff;border-radius:12px;padding:10px 13px;font-weight:900;cursor:pointer}.catalog-pager button:disabled{opacity:.45;cursor:not-allowed}.order-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.order-panel h2{margin:0;font-size:20px}.order-panel-head span{background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}.cart-list{border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;max-height:280px;overflow:auto}.cart-list.empty{padding:18px;color:#64748b;text-align:center}.cart-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid #f1f5f9}.cart-row:last-child{border-bottom:0}.cart-row b{display:block;font-size:14px}.cart-row small{color:#64748b}.cart-qty{display:flex;align-items:center;gap:7px}.cart-qty button{width:28px;height:28px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;font-weight:900;cursor:pointer}.remove-cart{border:0;background:transparent;color:#dc2626;font-weight:900;cursor:pointer}.cart-total-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;font-size:18px}.contact-box input,.order-notes{border:1px solid #d8dee9;border-radius:12px;padding:11px 12px;font-size:14px;background:#fff}.order-notes{width:100%;min-height:68px;resize:vertical}.submit-order{width:100%;margin-top:12px;border:0;background:#1d4ed8;color:#fff;border-radius:14px;padding:14px 16px;font-size:16px;font-weight:950;cursor:pointer}.submit-order:disabled{background:#94a3b8;cursor:not-allowed}.order-message{margin-top:12px;font-size:14px;line-height:1.45}.order-message.ok{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:12px;padding:12px}.order-message.err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:12px;padding:12px}.seller-footer{margin-top:12px;color:#64748b;font-size:12px;text-align:center}.variant-modal{display:none;position:fixed;inset:0;z-index:1000}.variant-modal.open{display:block}.variant-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}.variant-dialog{position:relative;margin:5vh auto;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.3);width:min(880px,calc(100vw - 24px));max-height:90vh;overflow:auto;padding:22px}.variant-close{position:absolute;right:14px;top:12px;border:0;background:#f1f5f9;border-radius:999px;width:36px;height:36px;font-size:24px;cursor:pointer}.catalog-login-form input{border:1px solid #d8dee9;border-radius:12px;padding:13px;font-size:15px}.catalog-login-form button{border:0;background:#1d4ed8;color:#fff;border-radius:13px;padding:13px 16px;font-weight:950;cursor:pointer}.catalog-login-form button:disabled{background:#94a3b8}.browse-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#334155;font-weight:900}.browse-status small{color:#64748b;font-weight:700}.mini-back{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:7px 11px;font-weight:900;cursor:pointer}.browse-card,.empty-browse-card{border:1px solid #e5e7eb;background:#fff;border-radius:18px;padding:18px;min-height:145px;box-shadow:0 8px 22px rgba(15,23,42,.05);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;text-align:left}.browse-card{cursor:pointer}.browse-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.11);border-color:#bfdbfe}.browse-card-icon{font-size:34px}.browse-card b{font-size:20px;color:#111827}.browse-card span{background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.home-panel{grid-column:1/-1;border:1px solid #e5e7eb;background:#fff;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.05);padding:14px}.home-tabs{display:flex;gap:8px;overflow:auto;border-bottom:1px solid #edf2f7;padding-bottom:10px;margin-bottom:14px}.home-tab{border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:9px 13px;font-weight:950;cursor:pointer;white-space:nowrap}.home-tab.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-feature-grid .catalog-card{min-height:auto}.home-feature-grid .catalog-img{height:130px}.home-empty{border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;color:#64748b;padding:22px;text-align:center;grid-column:1/-1}.variant-card-grid .catalog-img{height:150px}
@media(max-width:1180px){.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1060px){.catalog-topbar{grid-template-columns:minmax(0,1fr);gap:9px}.account-block{justify-content:space-between}.top-search{max-width:none}.catalog-shell{grid-template-columns:1fr;padding:14px}.order-panel{position:static}.seller-info{white-space:normal}.catalog-img{height:150px}}
@media(max-width:520px){.catalog-grid,.home-feature-grid{grid-template-columns:1fr}.catalog-bottom{align-items:flex-start;flex-direction:column}.order-panel{padding:14px}.category-chip{min-width:128px}.top-search{grid-template-columns:1fr}.catalog-topbar{padding:9px 12px}.variant-dialog{margin:2vh auto;padding:16px}.login-card{padding:20px}}

/* V3.0 v12 - All current browse button */
.browse-card-all{background:#1d4ed8!important;border-color:#1d4ed8!important;color:#fff!important;}
.browse-card-all b{color:#fff!important;}
.browse-card-all span{background:#fff!important;color:#1d4ed8!important;}
.browse-card-all:hover{background:#1e40af!important;border-color:#1e40af!important;}

/* V3.0 v13.7 - clearer catalog option cards */
.catalog-option-label{
  font-size:12px;
  color:#475569;
  margin-top:2px;
  line-height:1.25;
}
.variant-card-grid .catalog-category{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* V3.14 - Shopping-mall tree + item filter layout */
.item-filter-panel{
  grid-column:1/-1;
  border:1px solid #dbeafe;
  background:#f8fbff;
  border-radius:16px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:2px;
}
.item-filter-title{
  font-weight:950;
  color:#1e3a8a;
  font-size:13px;
}
.item-filter-group{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}
.item-filter-group strong{
  font-size:12px;
  color:#475569;
  margin-right:2px;
}
.item-filter-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.item-filter-btn.active{
  background:#1d4ed8;
  border-color:#1d4ed8;
  color:#fff;
}
.item-filter-btn span{
  opacity:.78;
  margin-left:3px;
}
.item-card-grid .catalog-category{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* V3.15 Product Notice / Qty Discount */
.catalog-discount-badge{display:inline-block;margin-top:6px;padding:3px 8px;border-radius:999px;background:#ecfdf5;color:#166534;font-size:12px;font-weight:700;border:1px solid #bbf7d0}
.catalog-cart-discount{display:block!important;color:#166534;margin-top:3px;font-weight:700}

/* V3.15.4 - Catalog cart height, clear cart, review modal */
@media (min-width: 900px){
  .catalog-shell{align-items:stretch;}
  .order-panel{display:flex;flex-direction:column;max-height:calc(100vh - 86px);}
  .order-panel .cart-list{max-height:none;flex:1 1 auto;min-height:340px;}
}
.cart-actions-top{display:flex;justify-content:flex-end;margin:-4px 0 8px;}
.clear-cart-btn{border:1px solid #fecaca;background:#fff1f2;color:#b91c1c;border-radius:999px;padding:7px 11px;font-weight:900;cursor:pointer;font-size:12px;}
.clear-cart-btn:hover{background:#fee2e2;}
.cart-row{align-items:center;}
.catalog-review-list{max-height:min(58vh,520px);overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff;}
.catalog-review-row{display:grid;grid-template-columns:58px 1fr auto;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #eef2f7;}
.catalog-review-row:last-child{border-bottom:0;}
.catalog-review-img{width:58px;height:58px;border-radius:12px;background:#eef2f7;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94a3b8;font-size:22px;}
.catalog-review-img img{width:100%;height:100%;object-fit:cover;}
.catalog-review-name{font-weight:950;color:#0f172a;line-height:1.25;}
.catalog-review-meta{font-size:12px;color:#64748b;margin-top:3px;}
.catalog-review-note{font-size:12px;color:#166534;margin-top:3px;font-weight:800;}
.catalog-review-qty{font-weight:950;color:#0f172a;white-space:nowrap;text-align:right;}
.catalog-review-total{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:950;padding:14px 2px 2px;}
@media (max-width: 899px){.catalog-review-row{grid-template-columns:50px 1fr}.catalog-review-qty{grid-column:2;text-align:left}}


/* V3.15.10 - Catalog image fit + desktop hover preview */
.catalog-img{
  position:relative;
  overflow:hidden;
  background:#f8fafc;
}
.catalog-img img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  padding:8px;
  box-sizing:border-box;
  transition:transform .16s ease;
}
.catalog-card:hover .catalog-img img{
  transform:scale(1.035);
}
.catalog-image-hover-preview{
  position:fixed;
  z-index:99998;
  display:none;
  width:320px;
  height:320px;
  border-radius:18px;
  border:1px solid #dbe4f0;
  background:#fff;
  box-shadow:0 22px 70px rgba(15,23,42,.34);
  padding:12px;
  pointer-events:none;
}
.catalog-image-hover-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
@media(max-width:760px){
  .catalog-img img{padding:6px;}
  .catalog-image-hover-preview{display:none!important;}
}

/* V3.19.2 - Catalog Folder Mode cleanup */
.catalog-main.catalog-folder-mode .shop-category-row{
  display:none!important;
}
.catalog-main.catalog-folder-mode .catalog-status{
  margin:0 0 14px;
  padding:12px 14px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  border-radius:14px;
}
.catalog-main.catalog-folder-mode .browse-status.folder-status{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
}
.catalog-main.catalog-folder-mode .browse-status.folder-status span{
  font-size:17px;
  color:#0f172a;
}
.catalog-main.catalog-folder-mode .folder-status-actions{
  margin-left:auto;
  display:flex;
  gap:8px;
}
.catalog-folder-card{
  min-height:116px;
  padding:16px 17px;
  justify-content:center;
  border-radius:16px;
}
.catalog-folder-card .browse-card-icon{
  font-size:28px;
  line-height:1;
}
.catalog-folder-card b{
  font-size:17px;
  line-height:1.2;
}
.catalog-folder-card span{
  font-size:11px;
  padding:5px 9px;
}
.catalog-main.catalog-folder-mode .catalog-grid{
  gap:12px;
}
.catalog-main.catalog-folder-mode .empty-browse-card{
  grid-column:1/-1;
  min-height:95px;
}
@media(max-width:760px){
  .catalog-main.catalog-folder-mode .folder-status-actions{margin-left:0;width:100%;}
  .catalog-folder-card{min-height:105px;}
}

/* V3.19.14 product image gallery: card remains clean, detail modal shows main + extra images. */
.catalog-img-click{position:relative;cursor:pointer;overflow:hidden}
.catalog-img-click:after{content:'View';position:absolute;right:8px;bottom:8px;background:rgba(15,23,42,.72);color:#fff;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;opacity:0;transition:.12s ease}
.catalog-card:hover .catalog-img-click:after{opacity:1}
.catalog-img-count{position:absolute;left:8px;top:8px;background:rgba(29,78,216,.92);color:#fff;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:950;box-shadow:0 4px 10px rgba(15,23,42,.18)}
.catalog-gallery-modal{padding:8px 2px 2px}
.catalog-gallery-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:0 42px 12px 0;border-bottom:1px solid #edf2f7;margin-bottom:14px}
.catalog-gallery-title b{font-size:18px;color:#111827;line-height:1.25}
.catalog-gallery-title small{color:#64748b;font-weight:800;white-space:nowrap}
.catalog-gallery-main{height:min(62vh,560px);background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.catalog-gallery-main img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.catalog-gallery-nav{display:flex;justify-content:center;align-items:center;gap:12px;margin:12px 0;color:#475569;font-weight:900}
.catalog-gallery-nav button{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:8px 13px;font-weight:900;cursor:pointer}
.catalog-gallery-nav button:disabled{opacity:.45;cursor:not-allowed}
.catalog-gallery-thumbs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.catalog-gallery-thumb{width:58px;height:58px;border:2px solid transparent;border-radius:10px;background:#fff;padding:2px;overflow:hidden;cursor:pointer}
.catalog-gallery-thumb.active{border-color:#2563eb}
.catalog-gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:7px}
@media(max-width:720px){.catalog-gallery-main{height:54vh}.catalog-gallery-title{display:block}.catalog-gallery-title small{display:block;margin-top:4px}.catalog-gallery-thumb{width:50px;height:50px}}

/* V3.19.18 - Catalog image gallery description panel */
.catalog-gallery-desc{
  margin:12px 0 4px;
  padding:12px 14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  color:#334155;
}
.catalog-gallery-desc-title{
  font-size:12px;
  font-weight:950;
  color:#1d4ed8;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}
.catalog-gallery-desc-text{
  font-size:13px;
  line-height:1.45;
  max-height:130px;
  overflow:auto;
  white-space:normal;
}
@media(max-width:720px){
  .catalog-gallery-desc{padding:10px 12px;}
  .catalog-gallery-desc-text{max-height:150px;}
}


/* V3.19.40 - Catalog filters collapsed by default + sticky folder navigation */
.catalog-main.catalog-folder-mode .catalog-status{
  position:sticky;
  top:64px;
  z-index:40;
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}
.catalog-main.catalog-folder-mode .browse-status.folder-status{
  min-height:34px;
}
.catalog-main.catalog-folder-mode .folder-status-actions .mini-back{
  min-width:72px;
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 2px 8px rgba(15,23,42,.06);
}
.item-filter-panel{
  padding:10px!important;
  gap:8px!important;
}
.item-filter-head{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
}
.item-filter-toggle{
  flex:1;
  min-width:0;
  border:0;
  background:#fff;
  color:#0f172a;
  border-radius:12px;
  padding:9px 11px;
  cursor:pointer;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  text-align:left;
  font-weight:950;
  box-shadow:inset 0 0 0 1px #dbeafe;
}
.item-filter-toggle span{
  color:#1e3a8a;
}
.item-filter-toggle small{
  color:#64748b;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.item-filter-toggle b{
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  white-space:nowrap;
}
.item-filter-clear{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#b91c1c;
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.item-filter-body{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.item-filter-panel.is-collapsed .item-filter-body{
  display:none;
}
.item-filter-panel.is-collapsed{
  margin-bottom:2px;
}
@media(max-width:1060px){
  .catalog-main.catalog-folder-mode .catalog-status{top:126px;}
}
@media(max-width:760px){
  .catalog-main.catalog-folder-mode .catalog-status{top:118px;}
  .item-filter-head{align-items:stretch;flex-direction:column;}
  .item-filter-toggle{grid-template-columns:auto 1fr auto;}
  .item-filter-clear{width:100%;}
}

/* V3.19.41 SPECIAL offer price display */
.catalog-price{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.catalog-old-price{text-decoration:line-through;color:#94a3b8;font-size:14px;font-weight:800}
.catalog-price-arrow{color:#94a3b8;font-size:13px;font-weight:900}
.catalog-special-price{color:#dc2626;font-size:20px;font-weight:1000}
.catalog-special-badge{display:inline-flex;align-items:center;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:1000;letter-spacing:.04em}


/* V3.19.59 CLOSEOUT catalog badge display */
.catalog-closeout-badge{display:inline-flex;align-items:center;background:#f8fafc;color:#334155;border:1px solid #cbd5e1;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:1000;letter-spacing:.04em;white-space:nowrap}
.catalog-cart-badge{margin-left:5px;padding:1px 5px;font-size:9px;vertical-align:middle}
.catalog-review-badge{margin-left:6px;padding:1px 5px;font-size:9px;vertical-align:middle}

.catalog-closeout-price{font-size:18px;font-weight:1000;color:#334155}


/* V3.19.63 - make CLOSEOUT badges more visible in customer catalog */
.catalog-closeout-badge{
  background:#dc2626 !important;
  color:#ffffff !important;
  border:1px solid #991b1b !important;
  box-shadow:0 1px 4px rgba(220,38,38,.28) !important;
}
.catalog-closeout-price{
  color:#b91c1c !important;
}

/* V3.19.68 - MODEL BADGE safe catalog ribbon + current folder refresh */
.shop-category-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.catalog-refresh-mini{background:#eff6ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important}
.catalog-model-badge-ribbon{
  position:absolute;
  left:-37px;
  top:13px;
  width:128px;
  min-height:32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transform:rotate(-45deg);
  transform-origin:center;
  z-index:5;
  background:#111827;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 5px 14px rgba(15,23,42,.24);
  font-size:10px;
  font-weight:1000;
  letter-spacing:.05em;
  line-height:1.05;
  text-transform:uppercase;
  pointer-events:none;
  text-align:center;
  padding:2px 4px;
}
.catalog-model-badge-ribbon span{display:block;white-space:nowrap;max-width:110px;overflow:hidden;text-overflow:ellipsis}
.catalog-model-badge-ribbon span:last-child{font-size:9px;letter-spacing:.12em;opacity:.95}
.catalog-img-count{left:auto!important;right:8px!important;top:8px!important}
@media(max-width:760px){
  .shop-category-actions{width:100%;justify-content:flex-end}
  .catalog-model-badge-ribbon{left:-34px;top:12px;width:120px;min-height:30px;font-size:9px}
  .catalog-model-badge-ribbon span{max-width:102px}
  .catalog-model-badge-ribbon span:last-child{font-size:8px}
}

/* V3.19.92 - Flexible Catalog Badge Text */
.catalog-model-badge-ribbon{left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:auto!important;min-height:0!important;max-width:88%!important;min-width:54px!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;border-radius:999px!important;padding:5px 9px!important;line-height:1.05!important;letter-spacing:.01em!important;text-transform:none!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;background:#111827!important;color:#fff!important;border:1px solid rgba(255,255,255,.42)!important;box-shadow:0 6px 16px rgba(15,23,42,.26)!important}
.catalog-model-badge-ribbon span{display:block!important;white-space:normal!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important}
.catalog-badge-pos-top_left{top:8px!important;left:8px!important}.catalog-badge-pos-top_right{top:8px!important;right:8px!important}.catalog-badge-pos-bottom_left{bottom:8px!important;left:8px!important}.catalog-badge-pos-bottom_right{bottom:8px!important;right:8px!important}.catalog-badge-pos-center{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;max-width:92%!important}
.catalog-badge-size-short{font-size:12px!important}.catalog-badge-size-medium{font-size:10.5px!important}.catalog-badge-size-long{font-size:9.5px!important}.catalog-badge-size-xlong{font-size:8.5px!important;max-width:92%!important}
.catalog-gallery-main .catalog-model-badge-ribbon,.catalog-gallery-modal .catalog-model-badge-ribbon{display:none!important}
.add-btn:disabled{opacity:.58;cursor:not-allowed}.qty-input:disabled{opacity:.55;cursor:not-allowed;background:#f8fafc}

/* V3.19.94 - Catalog Mix Option */
.catalog-mix-badge{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-size:11px;font-weight:950}
.catalog-mix-modal{padding:4px 0 0}.catalog-mix-product{font-size:13px;color:#475569;font-weight:800;margin:6px 0 10px}
.catalog-mix-progress{display:inline-flex;padding:6px 10px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-weight:950;margin-bottom:10px}.catalog-mix-progress.ready{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.catalog-mix-order-qty{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;margin:8px 0 10px;padding:8px 10px;border:1px solid #dbeafe;background:#f8fbff;border-radius:11px}.catalog-mix-order-qty span{font-size:12px;font-weight:900;color:#475569}.catalog-mix-order-qty b{font-size:16px;color:#1d4ed8}.catalog-mix-order-qty small{color:#64748b;font-weight:800;text-align:right}.catalog-mix-list{display:grid;gap:8px;margin-top:4px}.catalog-mix-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:9px 10px}.catalog-mix-name{font-weight:950;color:#0f172a}.catalog-mix-qty{display:inline-flex;align-items:center;gap:7px}.catalog-mix-qty button{width:32px;height:32px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;font-weight:950;cursor:pointer}.catalog-mix-qty button:disabled{opacity:.4;cursor:not-allowed}.catalog-mix-qty input{width:58px;height:32px;border:1px solid #cbd5e1;border-radius:9px;text-align:center;font-weight:950;color:#0f172a;background:#fff}.catalog-mix-note{font-size:12px;color:#64748b;font-weight:800;margin-top:10px}.catalog-mix-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.catalog-cart-mix,.online-order-mix{display:block;color:#3730a3;font-weight:900;margin-top:3px}.catalog-review-note{font-weight:850}.edit-cart-mix{border:0;background:transparent;color:#1d4ed8;font-weight:850;font-size:11px;cursor:pointer;padding:0;margin:4px 8px 0 0;text-decoration:underline}.edit-cart-mix:hover{color:#1e40af}@media(max-width:520px){.catalog-mix-order-qty{grid-template-columns:auto auto}.catalog-mix-order-qty small{grid-column:1/-1;text-align:left}.catalog-mix-row{align-items:flex-start}.catalog-mix-qty{gap:5px}}

/* V3.19.103 Catalog Badge Text: diagonal corner ribbons; Center remains horizontal */
.catalog-model-badge-ribbon{
  --ct-badge-width:154px;
  position:absolute!important;
  z-index:7!important;
  width:var(--ct-badge-width)!important;
  max-width:none!important;
  min-width:0!important;
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:row!important;
  padding:3px 10px!important;
  border-radius:3px!important;
  background:#1d4ed8!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:0 5px 14px rgba(30,64,175,.32)!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
  line-height:1.05!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-transform:none!important;
  pointer-events:none!important;
}
.catalog-model-badge-ribbon span{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.catalog-badge-pos-top_left{top:17px!important;left:-43px!important;right:auto!important;bottom:auto!important;transform:rotate(-45deg)!important}
.catalog-badge-pos-top_right{top:17px!important;right:-43px!important;left:auto!important;bottom:auto!important;transform:rotate(45deg)!important}
.catalog-badge-pos-bottom_left{bottom:17px!important;left:-43px!important;right:auto!important;top:auto!important;transform:rotate(45deg)!important}
.catalog-badge-pos-bottom_right{bottom:17px!important;right:-43px!important;left:auto!important;top:auto!important;transform:rotate(-45deg)!important}
.catalog-badge-pos-center{
  left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:auto!important;max-width:90%!important;min-width:58px!important;
  min-height:0!important;border-radius:999px!important;padding:6px 10px!important;
}
.catalog-model-badge-ribbon.catalog-badge-size-short{--ct-badge-width:132px;font-size:12px!important}
.catalog-model-badge-ribbon.catalog-badge-size-medium{--ct-badge-width:154px;font-size:10.5px!important}
.catalog-model-badge-ribbon.catalog-badge-size-long{--ct-badge-width:172px;font-size:9.25px!important}
.catalog-model-badge-ribbon.catalog-badge-size-xlong{--ct-badge-width:184px;font-size:8.25px!important}
.catalog-badge-pos-center.catalog-badge-size-short{font-size:12px!important}
.catalog-badge-pos-center.catalog-badge-size-medium{font-size:10.5px!important}
.catalog-badge-pos-center.catalog-badge-size-long{font-size:9.5px!important}
.catalog-badge-pos-center.catalog-badge-size-xlong{font-size:8.5px!important}
.catalog-badge-pos-top_left ~ .catalog-img-count{left:auto!important;right:8px!important}
.catalog-badge-pos-top_right ~ .catalog-img-count{left:8px!important;right:auto!important}
.catalog-gallery-main .catalog-model-badge-ribbon,.catalog-gallery-modal .catalog-model-badge-ribbon{display:none!important}
@media(max-width:760px){
  .catalog-model-badge-ribbon{min-height:31px!important}
  .catalog-badge-pos-top_left{top:15px!important;left:-45px!important}
  .catalog-badge-pos-top_right{top:15px!important;right:-45px!important}
  .catalog-badge-pos-bottom_left{bottom:15px!important;left:-45px!important}
  .catalog-badge-pos-bottom_right{bottom:15px!important;right:-45px!important}
}

/* V3.19.177 - inventory confirmed catalog icon */
.catalog-category-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.catalog-category-row .catalog-category{min-width:0;flex:1}
.catalog-inventory-confirmed{width:27px;height:27px;flex:0 0 27px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe4ea;border-radius:7px;background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.08);overflow:hidden}
.catalog-inventory-confirmed img{width:24px;height:24px;object-fit:contain;display:block}

/* V3.19.178 - catalog confirmed icon public asset + narrow card Out of Stock fit */
.catalog-bottom{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:center;
  gap:8px;
}
.catalog-bottom .add-area{
  min-width:0;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:6px;
}
.catalog-bottom .qty-input{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding-left:4px;
  padding-right:4px;
}
.catalog-bottom .add-btn{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding-left:5px;
  padding-right:5px;
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.catalog-bottom .add-btn:disabled{
  font-size:11.5px;
  letter-spacing:-.15px;
}


/* V3.19.179 - confirmed icon self-contained + guaranteed Out of Stock fit */
.catalog-bottom.catalog-bottom-blocked{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.catalog-bottom.catalog-bottom-blocked .catalog-price{
  font-size:17px!important;
  white-space:nowrap!important;
}
.catalog-bottom.catalog-bottom-blocked .add-area{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
}
.catalog-bottom.catalog-bottom-blocked .qty-input{
  width:42px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:8px 2px!important;
}
.catalog-bottom.catalog-bottom-blocked .add-btn{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:9px 3px!important;
  font-size:10.5px!important;
  letter-spacing:-.25px!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
@media(max-width:520px){
  .catalog-bottom.catalog-bottom-blocked{grid-template-columns:max-content minmax(0,1fr)!important}
}


/* V3.19.180 - inventory-confirmed icon moved to product image top-left */
.catalog-inventory-confirmed{
  position:absolute!important;
  left:8px!important;
  top:8px!important;
  right:auto!important;
  bottom:auto!important;
  z-index:10!important;
  width:27px!important;
  height:27px!important;
  flex:0 0 27px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #dbe4ea!important;
  border-radius:7px!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(15,23,42,.14)!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
.catalog-inventory-confirmed img{width:24px!important;height:24px!important;object-fit:contain!important;display:block!important}
/* If a diagonal Model Badge also uses the top-left corner, keep both visible. */
.catalog-badge-pos-top_left + .catalog-inventory-confirmed{top:45px!important}
.catalog-category-row{display:block!important}


/* V3.19.187 - confirmed inventory shown by quantity color, not icon */
.catalog-inventory-confirmed{display:none!important}
/* V3.19.188 - high-visibility confirmed stock badge */
.catalog-stock-confirmed{
  display:inline-block!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:#146b3a!important;
  color:#fff!important;
  font-weight:900!important;
  line-height:1.2!important;
  box-shadow:0 1px 3px rgba(15,23,42,.18)!important;
}
.catalog-stock-confirmed-zero{color:#cf1322!important;font-weight:800!important}


/* V3.19.189 - Catalog confirmed quantity badge render-path fix */
.catalog-stock-badge{display:inline-block;white-space:nowrap;vertical-align:middle}
.catalog-meta .catalog-stock-badge.catalog-stock-confirmed{
  padding:3px 8px!important;
  border-radius:999px!important;
  background:#0f6b36!important;
  color:#fff!important;
  font-weight:900!important;
  line-height:1.2!important;
  box-shadow:0 1px 3px rgba(15,23,42,.22)!important;
}
.catalog-meta .catalog-stock-badge.catalog-stock-confirmed-zero{
  color:#cf1322!important;
  font-weight:900!important;
}


/* V3.19.192 - promo price stack + protected Qty/Add row */
.catalog-promo-price-stack{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:3px!important;
  min-width:0!important;
}
.catalog-promo-price-row{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  min-width:0!important;
}
.catalog-promo-price-stack .catalog-old-price{
  display:block!important;
  line-height:1.05!important;
}
.catalog-bottom.catalog-bottom-promo{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:8px!important;
  min-width:0!important;
}
.catalog-bottom.catalog-bottom-promo .catalog-price{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}
.catalog-bottom.catalog-bottom-promo .add-area{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
.catalog-bottom.catalog-bottom-promo .qty-input{
  width:52px!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.catalog-bottom.catalog-bottom-promo .add-btn,
.catalog-bottom.catalog-bottom-promo .option-btn{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
/* Promo layout wins over the older blocked two-column footer so Out of Stock also stays inside the card. */
.catalog-bottom.catalog-bottom-promo.catalog-bottom-blocked{
  grid-template-columns:1fr!important;
}
.catalog-bottom.catalog-bottom-promo.catalog-bottom-blocked .add-area{
  grid-template-columns:52px minmax(0,1fr)!important;
}


/* V3.19.193 - unified 2-row Catalog footer; Qty/Add are equal halves */
.catalog-bottom,
.catalog-bottom.catalog-bottom-promo,
.catalog-bottom.catalog-bottom-blocked,
.catalog-bottom.catalog-bottom-promo.catalog-bottom-blocked{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  align-items:stretch!important;
  gap:7px!important;
  min-width:0!important;
}
.catalog-bottom .catalog-price,
.catalog-bottom.catalog-bottom-promo .catalog-price,
.catalog-bottom.catalog-bottom-blocked .catalog-price{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
}
/* SPECIAL/CLOSEOUT stays on one compact price line: old price + sale price + badge. */
.catalog-promo-price-stack{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
.catalog-promo-price-row{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
.catalog-promo-price-stack .catalog-old-price{
  display:inline!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
/* Every single-item card uses the same 50 / 50 quantity + action row. */
.catalog-bottom .add-area,
.catalog-bottom.catalog-bottom-promo .add-area,
.catalog-bottom.catalog-bottom-blocked .add-area,
.catalog-bottom.catalog-bottom-promo.catalog-bottom-blocked .add-area{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
.catalog-bottom .qty-input,
.catalog-bottom.catalog-bottom-promo .qty-input,
.catalog-bottom.catalog-bottom-blocked .qty-input{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  padding:9px 6px!important;
}
.catalog-bottom .add-btn,
.catalog-bottom.catalog-bottom-promo .add-btn,
.catalog-bottom.catalog-bottom-blocked .add-btn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  box-sizing:border-box!important;
  padding:10px 8px!important;
  font-size:12px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
/* Multi-option cards have no quantity field, so keep View Options full width. */
.catalog-bottom > .option-btn{
  width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:520px){
  .catalog-bottom,
  .catalog-bottom.catalog-bottom-promo,
  .catalog-bottom.catalog-bottom-blocked,
  .catalog-bottom.catalog-bottom-promo.catalog-bottom-blocked{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
}

/* V3.19.205 - Catalog folder inventory-confirmed marker visibility tune */
.catalog-folder-card{position:relative;}
.catalog-folder-card .catalog-folder-confirmed{
  position:absolute;
  top:9px;
  right:9px;
  width:22px;
  height:22px;
  min-width:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  border:1px solid #8fc59d;
  border-radius:999px;
  background:#e8f5eb;
  color:#24733b;
  font-size:14px;
  font-weight:900;
  line-height:1;
  opacity:1;
  box-shadow:0 1px 3px rgba(15,23,42,.12);
  pointer-events:none;
}


/* V3.19.236 - primary-phone SMS login + multiple-account chooser */
.catalog-login-code-btn{background:#fff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;}
.catalog-login-code-btn:hover{background:#eff6ff!important;}
.catalog-login-code-btn:disabled{background:#f8fafc!important;color:#94a3b8!important;border-color:#e2e8f0!important;}
.catalog-account-select[hidden]{display:none!important;}
.catalog-account-select{margin-top:4px;border:1px solid #dbeafe;background:#f8fbff;border-radius:14px;padding:12px;display:grid;gap:9px;}
.catalog-account-select-title{font-size:15px;font-weight:950;color:#0f172a;}
.catalog-account-select-note{font-size:12px;line-height:1.4;color:#64748b;}
.catalog-account-select-list{display:grid;gap:8px;}
.catalog-login-form .catalog-account-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#fff;color:#0f172a;border:1px solid #cbd5e1;padding:11px 12px;}
.catalog-login-form .catalog-account-choice:hover{border-color:#60a5fa;background:#eff6ff;}
.catalog-login-form .catalog-account-choice strong{font-size:14px;}
.catalog-login-form .catalog-account-choice span{font-size:12px;font-weight:700;color:#64748b;}
.catalog-login-form .catalog-account-choice:disabled{opacity:.6;cursor:wait;}
.catalog-login-form .catalog-account-select-cancel{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;}
.catalog-login-form .catalog-account-select-cancel:hover{background:#e2e8f0;}


/* V3.19.237 - dedicated mobile-friendly SMS OTP verification */
.catalog-otp-area[hidden]{display:none!important;}
.catalog-otp-area{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:10px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;}
.catalog-otp-area input{min-width:0;letter-spacing:.14em;font-weight:900;text-align:center;}
.catalog-login-form .catalog-otp-area button{white-space:nowrap;background:#1d4ed8;color:#fff;}
.catalog-login-form .catalog-otp-area button:disabled{opacity:.6;cursor:wait;}
@media (max-width:520px){.catalog-otp-area{grid-template-columns:1fr}.catalog-login-form .catalog-otp-area button{width:100%;}}

/* V3.19.284 - Root-card crop stays matched; add per-folder text corner/alignment and optional count badge. */
.catalog-folder-root-card{
  position:relative;
  aspect-ratio:10 / 7;
  min-height:0!important;
  padding:0;
  justify-content:flex-end;
  gap:0;
  overflow:hidden;
  border:1px solid #dbe4ef;
  background:#dfe7ef;
}
.catalog-folder-root-media{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:linear-gradient(180deg,#e8eef5 0%,#dbe5ef 100%);
}
.catalog-folder-root-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(10,18,32,0) 0%,rgba(10,18,32,.05) 45%,rgba(10,18,32,.56) 100%);
  pointer-events:none;
}
.catalog-folder-root-card.text-top-left .catalog-folder-root-media::after,
.catalog-folder-root-card.text-top-right .catalog-folder-root-media::after{
  background:linear-gradient(180deg,rgba(10,18,32,.56) 0%,rgba(10,18,32,.05) 55%,rgba(10,18,32,0) 100%);
}
.catalog-folder-root-media img{
  position:absolute;
  left:0;
  top:0;
  width:auto;
  height:auto;
  max-width:none;
  max-height:none;
  object-fit:fill;
  padding:0;
  background:transparent;
  box-sizing:border-box;
}
.catalog-folder-root-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#f3f7fb 0%,#e1e9f2 100%)!important;
  color:#6b7c93!important;
  padding:0!important;
  font-size:38px!important;
  line-height:1!important;
}
.catalog-folder-root-info{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  padding:54px 14px 13px;
  color:#fff;
}
.catalog-folder-root-info b{
  font-size:18px!important;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
  color:#fff!important;
  text-shadow:0 1px 6px rgba(0,0,0,.34);
}
.catalog-folder-root-info span{
  font-size:11px!important;
  padding:5px 10px!important;
  background:rgba(15,23,42,.68)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.2)!important;
  box-shadow:0 2px 8px rgba(15,23,42,.2);
  backdrop-filter:blur(3px);
}
.catalog-folder-root-card.text-top-left .catalog-folder-root-info,
.catalog-folder-root-card.text-top-right .catalog-folder-root-info{
  top:0;
  bottom:auto;
  padding:13px 14px 54px;
}
.catalog-folder-root-card.text-top-right .catalog-folder-root-info,
.catalog-folder-root-card.text-bottom-right .catalog-folder-root-info{
  align-items:flex-end;
  text-align:right;
}
.catalog-folder-root-card.text-top-left .catalog-folder-root-info,
.catalog-folder-root-card.text-bottom-left .catalog-folder-root-info{
  align-items:flex-start;
  text-align:left;
}
.catalog-folder-root-card.text-top-right .catalog-folder-confirmed{left:9px;right:auto;}
@media(max-width:760px){
  .catalog-folder-root-card{aspect-ratio:10 / 7;min-height:0!important;}
  .catalog-folder-root-info{padding:42px 12px 12px;}
  .catalog-folder-root-card.text-top-left .catalog-folder-root-info,
  .catalog-folder-root-card.text-top-right .catalog-folder-root-info{padding:12px 12px 42px;}
  .catalog-folder-root-info b{font-size:17px!important;}
}
