main.container{padding-top:48px;padding-bottom:0}
@media (min-width:1024px){main.container{padding-top:64px}}
.breadcrumb{padding:0;margin-bottom:24px;font-size:12px;color:hsl(var(--muted-foreground))}
.breadcrumb a{transition:color .2s}
.breadcrumb a:hover{color:hsl(var(--foreground))}
.breadcrumb span{margin:0 8px}
.cat-header{padding-bottom:40px}
.cat-header-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:0;flex-wrap:wrap}
.cat-header .eyebrow{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:hsl(var(--muted-foreground));margin-bottom:12px}
.cat-header h1{font-family:'Fraunces',Georgia,serif;font-size:3rem;font-weight:500;line-height:1.05;margin-bottom:0;letter-spacing:-.02em}
@media (min-width:1024px){.cat-header h1{font-size:3.75rem}}
.cat-header .count{font-size:14px;color:hsl(var(--muted-foreground));margin-top:12px}
.cat-header .count strong{color:hsl(var(--foreground));font-weight:500}
.sort-filter{display:flex;align-items:center;gap:12px}
.sort-filter select{height:40px;padding:0 16px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--background));font-size:14px;font-family:'Inter',system-ui,sans-serif;outline:none;cursor:pointer;transition:border-color .2s}
.sort-filter select:focus{border-color:hsl(var(--primary))}
.cat-layout{display:grid;grid-template-columns:1fr;gap:40px;padding-bottom:80px}
@media (min-width:1024px){.cat-layout{grid-template-columns:260px 1fr;gap:40px}}
.cat-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.active-filters-wrap{margin-top:20px;padding-top:4px}
.active-filters-wrap[hidden]{display:none!important}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.active-filter-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 8px 6px 12px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.3;color:hsl(var(--foreground));background:hsl(var(--muted));border:1px solid hsl(var(--border))}
.active-filter-badge-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.active-filter-badge-remove{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:999px;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;flex-shrink:0;transition:background .2s,color .2s}
.active-filter-badge-remove:hover{background:hsl(var(--background));color:hsl(var(--foreground))}
.active-filter-badge-remove svg{display:block}
.grid-cols-toggle{display:none;align-items:center;gap:4px;padding:4px;border-radius:10px;border:1px solid hsl(var(--border));background:hsl(var(--background))}
@media (min-width:768px){.grid-cols-toggle{display:inline-flex}}
.grid-cols-btn{width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;transition:background .2s,color .2s;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.grid-cols-btn:hover{background:hsl(var(--muted))}
.grid-cols-btn.is-active{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.grid-cols-icon{display:flex;align-items:flex-end;justify-content:center;gap:2px;height:16px}
.grid-cols-bar{display:block;width:2px;height:100%;border-radius:2px;background:hsl(var(--muted-foreground));transition:background .2s}
.grid-cols-btn:hover .grid-cols-bar{background:hsl(var(--foreground))}
.grid-cols-btn.is-active .grid-cols-bar{background:hsl(var(--primary-foreground))}
.btn-filter-mobile{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--background));cursor:pointer;color:hsl(var(--foreground))}
.btn-filter-mobile:hover{border-color:hsl(var(--primary));color:hsl(var(--primary))}
@media (min-width:1024px){.btn-filter-mobile{display:none}}

/* —— Filter sidebar (Semcem) —— */
.sidebar{position:relative}
.semcem-filter-sidebar{position:relative}
.filter-drawer-overlay{display:none}
.filter-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 16px;margin-bottom:8px;border-bottom:1px solid hsl(var(--border))}
.filter-drawer-title{font-family:'Fraunces',Georgia,serif;font-size:1.125rem;font-weight:600;margin:0}
.filter-drawer-close{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:999px;background:hsl(var(--muted));cursor:pointer;color:hsl(var(--foreground))}
.filter-drawer-close:hover{background:hsl(var(--border))}
@media (min-width:1024px){.filter-drawer-head{display:none}.filter-drawer-overlay{display:none!important}}

@media (max-width:1023px){
  .sidebar{width:0;padding:0;overflow:visible;min-height:0}
  .filter-drawer-panel{position:fixed;top:0;right:0;bottom:0;width:min(320px,92vw);z-index:1050;background:hsl(var(--background));padding:20px;overflow-y:auto;transform:translateX(100%);transition:transform .3s ease;box-shadow:-4px 0 24px rgba(0,0,0,.12)}
  .semcem-filter-sidebar.is-open .filter-drawer-panel{transform:translateX(0)}
  .filter-drawer-overlay{display:block;position:fixed;inset:0;z-index:1040;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .3s}
  .semcem-filter-sidebar.is-open .filter-drawer-overlay{opacity:1;pointer-events:auto}
  body.filter-drawer-open{overflow:hidden}
}

.filter-panel{border-bottom:1px solid hsl(var(--border));padding-bottom:4px;margin-bottom:4px}
.filter-panel[hidden]{display:none!important}
.filter-panel-title{font-family:'Fraunces',Georgia,serif;font-size:1rem;font-weight:600;padding:14px 0;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;color:hsl(var(--foreground))}
.filter-panel-title::-webkit-details-marker{display:none}
.filter-panel-title::after{content:'';width:8px;height:8px;border-right:2px solid hsl(var(--muted-foreground));border-bottom:2px solid hsl(var(--muted-foreground));transform:rotate(45deg);transition:transform .2s;flex-shrink:0;margin-left:8px}
.filter-panel[open] .filter-panel-title::after{transform:rotate(-135deg);margin-top:4px}
.filter-panel-body{padding:0 0 16px}

.filter-option{display:flex;align-items:flex-start;gap:10px;cursor:pointer;padding:6px 0;font-size:14px;color:hsl(var(--muted-foreground))}
.filter-option input{accent-color:hsl(var(--primary));width:16px;height:16px;margin-top:2px;flex-shrink:0;cursor:pointer}
.filter-option-label{line-height:1.4;transition:color .2s,font-weight .2s}
.filter-option-label.is-active,.filter-option input:checked+.filter-option-label{color:hsl(var(--foreground));font-weight:600}
.filter-count{color:hsl(var(--muted-foreground));font-weight:400;font-size:12px}
.filter-option--color{align-items:center}
.filter-color-swatch{width:18px;height:18px;border-radius:50%;border:1px solid hsl(var(--border));flex-shrink:0}

.filter-options-list{list-style:none;margin:0;padding:0}
.filter-see-more{display:inline-block;margin-top:8px;padding:0;border:0;background:0;font-size:12px;font-weight:600;color:hsl(var(--primary));cursor:pointer}
.filter-see-more:hover{text-decoration:underline}
.filter-see-more[hidden]{display:none}

/* Category tree */
.category-tree-scroll{max-height:300px;overflow-y:auto}
.category-tree{list-style:none;margin:0;padding:0}
.category-tree-children{list-style:none;margin:0;padding:0 0 0 12px}
.category-tree-row{display:flex;align-items:flex-start;gap:4px}
.category-tree-toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:0;cursor:pointer;color:hsl(var(--muted-foreground));flex-shrink:0;border-radius:4px}
.category-tree-toggle:hover{color:hsl(var(--foreground));background:hsl(var(--muted))}
.category-tree-item.is-expanded>.category-tree-row .category-tree-toggle svg{transform:rotate(90deg)}
.category-tree-spacer{width:24px;flex-shrink:0}

/* Price range */
.price-range-filter{padding:4px 0}
.price-range-values{display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:hsl(var(--foreground));margin-bottom:12px}
.price-range-sliders{position:relative;height:28px}
.price-range-input{position:absolute;width:100%;height:6px;top:50%;transform:translateY(-50%);margin:0;-webkit-appearance:none;appearance:none;background:transparent;pointer-events:none}
.price-range-input::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:hsl(var(--muted))}
.price-range-input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:hsl(var(--primary));border:2px solid hsl(var(--background));box-shadow:0 1px 4px rgba(0,0,0,.15);pointer-events:auto;cursor:pointer;margin-top:-6px}
.price-range-input--max{z-index:2}
.price-range-input--min{z-index:1}

/* Product type tabs */
.product-type-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.product-type-pill{cursor:pointer}
.product-type-pill input{position:absolute;opacity:0;pointer-events:none}
.product-type-pill-label{display:inline-block;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:500;border:1px dashed hsl(var(--border));color:hsl(var(--muted-foreground));transition:all .2s}
.product-type-pill-label.is-active{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary));border-style:solid}

/* Product grid */
.product-grid{display:grid;gap:20px 20px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:1024px){.product-grid{gap:32px 20px}}
.product-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.product-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.product-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
@media (max-width:767px){
  .product-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-grid.cols-4,.product-grid.cols-5,.product-grid.cols-6{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:768px) and (max-width:1023px){
  .product-grid.cols-5{grid-template-columns:repeat(4,minmax(0,1fr))}
  .product-grid.cols-6{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.product{position:relative;display:flex;flex-direction:column;transition:transform .3s var(--ease-out-soft)}
.product .img-wrap{position:relative;background:hsl(var(--muted));aspect-ratio:4/5;border-radius:16px;overflow:hidden;margin-bottom:16px}
.product .img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease-out-soft)}
.product:hover .img-wrap img{transform:scale(1.05)}
.product .pbadge{position:absolute;top:12px;left:12px;background:hsla(var(--background)/.95);backdrop-filter:blur(8px);color:hsl(var(--primary));font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;border-radius:999px}
.product .add-btn{position:absolute;bottom:12px;right:12px;width:40px;height:40px;border-radius:999px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(8px);transition:all .3s var(--ease-out-soft);border:0;cursor:pointer}
.product:hover .add-btn{opacity:1;transform:translateY(0)}
.product .add-btn:hover{background:hsl(var(--gold));color:hsl(var(--primary))}
.product .seller{font-size:11px;color:hsl(var(--muted-foreground));letter-spacing:.05em;text-transform:uppercase;margin-bottom:6px}
.product h3{font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:600;margin-bottom:6px;color:hsl(var(--foreground));line-height:1.3;transition:color .2s}
.product:hover h3{color:hsl(var(--primary))}
.product .price-row{display:flex;align-items:center;justify-content:space-between;padding-top:4px}
.product .price{font-weight:600;color:hsl(var(--foreground));font-size:14px}
.product .rating{color:hsl(var(--muted-foreground));font-size:12px;display:flex;align-items:center;gap:4px}
.product .rating svg{width:14px;height:14px;fill:hsl(var(--gold));stroke:hsl(var(--gold))}

.listing-main{position:relative;min-height:200px}
.product-results{position:relative;min-height:280px}
.product-results.is-loading .product-grid{opacity:.4;pointer-events:none;transition:opacity .2s}
.product-results.is-loading .listing-pagination-wrap{opacity:.45;pointer-events:none}
.products-loading-overlay{display:none;position:absolute;inset:0;z-index:20;align-items:flex-start;justify-content:center;padding-top:min(10vh,96px);background:hsla(var(--background)/.78);backdrop-filter:blur(3px);border-radius:16px}
.product-results.is-loading .products-loading-overlay{display:flex}
.products-loading-inner{display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 28px;border-radius:16px;background:hsl(var(--card));border:1px solid hsl(var(--border));box-shadow:0 12px 40px hsla(var(--foreground)/.12)}
.products-loading-text{margin:0;font-size:14px;font-weight:500;color:hsl(var(--foreground));letter-spacing:.01em}
.products-loading-spinner{width:44px;height:44px;border:3px solid hsl(var(--border));border-top-color:hsl(var(--primary));border-radius:50%;animation:listing-spin .75s linear infinite}
@keyframes listing-spin{to{transform:rotate(360deg)}}
.listing-pagination-wrap{margin-top:40px;transition:opacity .2s}
.listing-pagination ul{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}
.listing-pagination a,.listing-pagination span{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:999px;font-size:14px;text-decoration:none;color:hsl(var(--muted-foreground));border:1px solid hsl(var(--border));transition:all .2s}
.listing-pagination a:hover{color:hsl(var(--foreground));border-color:hsl(var(--foreground))}
.listing-pagination .active span{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
.listing-pagination .disabled span,.listing-pagination .ellipsis span{border-color:transparent;cursor:default}
