/* HIBO Collection Page V1.14.27 */
.hibo-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.hibo-collection-page{padding:0 0 20px;background:var(--theme-page-bg)}
.hibo-collection-page-inner{min-width:0}
.hibo-collection-surface{min-width:0;padding:12px;border-radius:8px;background:#fff}
.hibo-collection-banners{display:flex;gap:10px;overflow-x:auto;margin-bottom:14px;scroll-snap-type:x proximity;scrollbar-width:none}
.hibo-collection-banners::-webkit-scrollbar{display:none}
.hibo-collection-banner{display:block;flex:0 0 100%;overflow:hidden;border-radius:10px;scroll-snap-align:start}
.hibo-collection-banner img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover}
.hibo-collection-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}
.hibo-collection-layout--full{grid-template-columns:1fr}
.hibo-collection-main{min-width:0}
.hibo-collection-sidebar{position:sticky;top:104px;min-width:0}
.theme-preview-bar~main .hibo-collection-sidebar{top:146px}
.hibo-collection-filter-close{display:none}
.hibo-collection-filter-form,.hibo-collection-sidebar-block{margin:0 0 18px}
.hibo-collection-selected-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px;padding:8px 10px;border-radius:8px;background:color-mix(in srgb,var(--theme-primary) 12%,#fff)}
.hibo-collection-selected-filter strong,.hibo-collection-selected-filter a{font-size:12px;color:var(--theme-primary)}
.hibo-collection-selected-filter a{font-weight:800;text-decoration:none}
.hibo-collection-filter-group{margin:0 0 14px}
.hibo-collection-filter-group h2,.hibo-collection-sidebar-block>h2{margin:0 0 9px;color:var(--theme-primary);font-size:14px;font-weight:800}
.hibo-collection-price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hibo-collection-price-inputs input{width:100%;height:34px;padding:6px 9px;border:1px solid #d7dde2;border-radius:4px;background:#fff;font:inherit;font-size:12px}
.hibo-collection-filter-apply,.hibo-collection-filter-submit{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:8px;padding:7px 13px;border:1px solid var(--theme-primary);border-radius:9px;background:var(--theme-primary);color:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hibo-collection-filter-submit{width:100%;margin-top:0}
.hibo-collection-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hibo-collection-filter-choice{position:relative;display:block;min-width:0;cursor:pointer}
.hibo-collection-filter-choice input{position:absolute;opacity:0;pointer-events:none}
.hibo-collection-filter-choice span{display:block;overflow:hidden;padding:6px 8px;border:1px solid #d7dde2;border-radius:4px;background:#fbfbfb;color:#666;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.hibo-collection-filter-choice input:checked+span,.hibo-collection-filter-choice:hover span{border-color:var(--theme-primary);color:var(--theme-primary)}
.hibo-collection-filter-list{display:grid;gap:5px;max-height:155px;overflow-y:auto;padding-right:2px;scrollbar-width:thin}
.hibo-collection-filter-check{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:6px;align-items:center;cursor:pointer;font-size:12px}
.hibo-collection-filter-check input{width:16px;height:16px;accent-color:var(--theme-primary)}
.hibo-collection-filter-check small{color:#9a9a9a}
.hibo-collection-price-presets{display:grid;gap:6px}
.hibo-collection-price-presets label{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:12px}
.hibo-collection-price-presets input{accent-color:var(--theme-primary)}
.hibo-collection-sidebar-menu{display:grid;gap:5px}
.hibo-collection-sidebar-menu>a{display:block;padding:7px 9px;border-radius:16px;background:#f7f7f7;color:#333;font-size:12px;font-weight:700;text-decoration:none}
.hibo-collection-sidebar-menu>a:hover{background:var(--theme-primary);color:#fff}
.hibo-collection-sidebar-submenu{display:grid;gap:3px;padding-left:9px}
.hibo-collection-sidebar-submenu a{padding:4px 6px;color:#666;font-size:11px;text-decoration:none}
.hibo-collection-tips>h2{display:inline-flex;margin-left:-2px;padding:7px 12px;border-radius:0 22px 22px 0;background:var(--theme-primary);color:#fff;text-transform:uppercase}
.hibo-collection-tip-list{display:grid}
.hibo-collection-tip{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;align-items:start;padding:8px 0;border-bottom:1px solid #e3e3e3}
.hibo-collection-tip-image{display:block;overflow:hidden;width:58px;height:48px;border-radius:3px;background:#f3f3f3}
.hibo-collection-tip-image img{display:block;width:100%;height:100%;object-fit:cover}
.hibo-collection-tip h3{margin:0;font-size:11px;font-weight:500;line-height:1.35}
.hibo-collection-tip h3 a{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#333;text-decoration:none}
.hibo-collection-tip h3 a:hover{color:var(--theme-primary)}
.hibo-collection-children{margin:0 0 10px}
.hibo-collection-child-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px}
.hibo-collection-child-card{display:flex;min-width:0;flex-direction:column;align-items:center;padding:2px;text-align:center;color:#111;text-decoration:none}
.hibo-collection-child-image{display:block;overflow:hidden;width:100%;aspect-ratio:1/1;border-radius:10%;background:#fff}
.hibo-collection-child-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hibo-collection-child-card:hover img{transform:scale(1.045)}
.hibo-collection-child-card strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-height:54px;margin-top:5px;color:#111;font-size:13px;font-weight:600;line-height:18px;overflow-wrap:anywhere}
.hibo-collection-child-card:hover strong{color:var(--theme-primary)}
.hibo-collection-sortbar{display:flex;align-items:center;gap:7px;overflow-x:auto;margin:5px 0 10px;padding:4px 0 8px;border-bottom:1px solid #dfe3e6;white-space:nowrap;scrollbar-width:thin}
.hibo-collection-sortbar>strong{flex:0 0 auto;font-size:13px}
.hibo-collection-sort-form{display:flex;gap:6px;flex:0 0 auto}
.hibo-collection-sort-form button{min-height:30px;padding:5px 10px;border:1px solid #d7dde2;border-radius:4px;background:#fff;color:#777;font:inherit;font-size:12px;cursor:pointer}
.hibo-collection-sort-form button:hover,.hibo-collection-sort-form button.is-active{border-color:var(--theme-primary);color:var(--theme-primary)}
.hibo-collection-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
.hibo-collection-products .hibo-product-card{min-width:0;border:1px solid #e0e0e0;border-radius:5px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.hibo-collection-products .product-card-body{padding:7px}
.hibo-collection-products .product-card-title{margin-top:5px}
.hibo-collection-products .product-card-title a{font-size:11px;line-height:1.45}
.hibo-collection-products .sale-price{font-size:13px}
.hibo-collection-products .product-price-row del,.hibo-collection-products .discount-inline{font-size:10px}
.hibo-collection-empty{grid-column:1/-1}
.hibo-collection-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin:24px 0}
.hibo-collection-pagination a,.hibo-collection-pagination span{display:grid;place-items:center;min-width:34px;height:34px;padding:0 7px;border:1px solid #d7dde2;border-radius:4px;background:#fff;color:var(--theme-primary);font-size:12px;text-decoration:none}
.hibo-collection-pagination a:hover,.hibo-collection-pagination .is-active{border-color:var(--theme-primary);background:var(--theme-primary);color:#fff}
.hibo-collection-pagination .is-disabled,.hibo-collection-pagination .is-ellipsis{color:#999}
.hibo-collection-pagination .is-ellipsis{border-color:transparent;background:transparent}
.hibo-collection-description{margin-top:16px;border-top:1px solid #e7e7e7;padding-top:14px}
.hibo-collection-description-content{position:relative;max-height:280px;overflow:hidden;color:#444;font-size:13px;line-height:1.6}
.hibo-collection-description-content.is-expanded{max-height:none}
.hibo-collection-description-content h2{margin:10px 0;border-left:2px solid var(--theme-primary);padding-left:9px;color:var(--theme-primary);font-size:16px}
.hibo-collection-description-content h3{font-size:15px}
.hibo-collection-description-content img{max-width:100%;height:auto}
.hibo-collection-description-fade{position:absolute;right:0;bottom:0;left:0;height:120px;background:linear-gradient(rgba(255,255,255,0),#fff)}
.hibo-collection-description-content.is-expanded .hibo-collection-description-fade{display:none}
.hibo-collection-description-actions{text-align:center}
.hibo-collection-description-actions button{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:7px 16px;border:0;border-radius:9px;background:#fff;box-shadow:0 1px 7px rgba(0,0,0,.16);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hibo-collection-description-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s ease}
.hibo-collection-description-actions button.is-expanded svg{transform:rotate(180deg)}
@media(max-width:991px){
  .hibo-collection-surface{padding:10px}
  .hibo-collection-layout{grid-template-columns:1fr}
  .hibo-collection-sidebar{position:fixed;z-index:170;top:auto!important;right:10px;bottom:66px;left:auto;width:calc(100% - 20px);max-width:420px;max-height:calc(100vh - 92px);overflow:auto;padding:14px;border-radius:10px;background:#fff;box-shadow:0 8px 30px rgba(0,0,0,.22);visibility:hidden;transform:translateX(110%);transition:transform .22s ease,visibility .22s ease}
  .hibo-collection-sidebar.is-open{visibility:visible;transform:translateX(0)}
  .hibo-collection-filter-close{display:grid;place-items:center;position:sticky;z-index:2;top:0;margin-left:auto;margin-bottom:4px;width:34px;height:34px;border:0;border-radius:50%;background:#f0f0f0;font-size:22px}
}
@media(max-width:767px){
  .hibo-collection-page{padding-bottom:10px}
  .hibo-collection-surface{padding:9px;border-radius:6px}
  .hibo-collection-child-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
  .hibo-collection-child-card strong{min-height:50px;font-size:10px;line-height:16px;-webkit-line-clamp:3}
  .hibo-collection-sortbar{margin-top:8px;padding-bottom:8px}
  .hibo-collection-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hibo-collection-description-content{font-size:12px}
}
@media(max-width:390px){
  .hibo-collection-surface{padding-left:8px;padding-right:8px}
  .hibo-collection-child-grid{gap:10px 6px}
  .hibo-collection-products{gap:8px}
}

.hibo-collection-filter-backdrop{position:fixed;z-index:160;inset:0;background:rgba(15,23,42,.45)}
.filter-drawer-open{overflow:hidden}


/* HIBO Collection V1.14.28 — compact Product Type filter.
   2 columns, about 10 rows visible; remaining values scroll vertically. */
.hibo-collection-filter-type-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  max-height:300px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--theme-primary) #f2f2f2;
}
.hibo-collection-filter-type-grid::-webkit-scrollbar{width:4px}
.hibo-collection-filter-type-grid::-webkit-scrollbar-track{
  background:#f2f2f2;
  border-radius:999px;
}
.hibo-collection-filter-type-grid::-webkit-scrollbar-thumb{
  background:var(--theme-primary);
  border-radius:999px;
}
.hibo-collection-filter-type-grid .hibo-collection-filter-choice span{
  min-height:24px;
  padding:5px 7px;
  font-size:11px;
  line-height:1.2;
}
@media(max-width:991px){
  .hibo-collection-filter-type-grid{max-height:300px}
}


/* HIBO Collection V1.14.29 — compact Brand filter.
   Same UX as Product Type: 2 columns, about 10 visible rows, then scroll. */
.hibo-collection-filter-brand-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  max-height:300px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:var(--theme-primary) #f2f2f2;
}
.hibo-collection-filter-brand-grid::-webkit-scrollbar{width:4px}
.hibo-collection-filter-brand-grid::-webkit-scrollbar-track{
  background:#f2f2f2;
  border-radius:999px;
}
.hibo-collection-filter-brand-grid::-webkit-scrollbar-thumb{
  background:var(--theme-primary);
  border-radius:999px;
}
.hibo-collection-filter-brand-grid .hibo-collection-filter-choice span{
  min-height:24px;
  padding:5px 7px;
  font-size:11px;
  line-height:1.2;
}
@media(max-width:991px){
  .hibo-collection-filter-brand-grid{max-height:300px}
}
