
.product-catalog-section{
  --pink:#ed0048;
  --pink-dark:#d90042;
  --text:#20202a;
  --muted:#777c86;
  --line:#e7e8ec;
  --soft:#f5f6f8;
  --page:#fff;
  color:var(--text);
  background:#fff;
  padding:28px 0 70px;
}
.product-breadcrumb{height: 42px;background: #f5f5f5;margin: 0 -12px 20px;padding: 0 20px;display: flex;align-items: center;justify-content: flex-start;gap: 9px;font-size: 11px;color: #777;}
.product-catalog-section *{box-sizing:border-box}
.catalog-container{width:min(1770px,calc(100% - 80px));margin:auto}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:30px;align-items:start;direction:ltr;}
.catalog-main{min-width:0}
.catalog-heading-row{height:62px;display:flex;align-items:flex-start;justify-content:flex-end}
.catalog-heading-row h1{font-size:22px;font-weight:800;margin:0;padding-top:5px}
.catalog-toolbar{display:flex;flex-direction:row-reverse;gap:24px;align-items:center;margin-bottom:28px}
.sort-box{height:44px;background:#eef0f4;border-radius:15px;display:flex;align-items:center;justify-content:flex-start;gap:25px;padding:0 18px;flex:1;direction: rtl;}
.sort-label{font-size:13px;font-weight:700;white-space:nowrap}
.sort-btn{border:0;background:transparent;font-size:13px;color:#2c2d32;padding:9px 0;cursor:pointer;white-space:nowrap}
.sort-btn.active{color:var(--pink);font-weight:800}
.compare-open-btn{height:44px;width:185px;border:0;border-radius:12px;background:var(--pink);color:#fff;font-size:15px;font-weight:700;cursor:pointer;flex:none}
.compare-open-btn:hover{background:var(--pink-dark)}

.products-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.product-cards{min-width:0;background:#fff;border:1px solid #e9ebef;border-radius:14px;box-shadow:0 4px 14px rgba(30,35,45,.08);overflow:hidden;position:relative;transition:.2s}
.product-cards:hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(30,35,45,.12)}
.product-image{height:275px;display:flex;align-items:center;justify-content:center;padding:15px 10px 4px;background:#fff}
.product-image img{width:100%;height:100%;object-fit:contain;display:block}
.product-content{padding:8px 14px 14px}
.product-specs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;border-bottom:0;margin-bottom:12px}
.spec{text-align:center;min-width:0}
.spec-icon{font-size:18px;line-height:20px;color:#182331;height:23px}
.spec-text{font-size:9px;line-height:14px;color:#252932;white-space:nowrap}
.product-name{height:55px;font-size:12px;line-height:21px;text-align:right;margin:0 0 4px;font-weight:500;overflow:hidden}
.product-code{font-size:10px;color:#555;text-align:right}
.product-price{font-size:16px;font-weight:900;margin-top:14px;direction:rtl}
.product-price small{font-size:10px;font-weight:700}
.unavailable .product-image{height:245px}
.unavailable .product-content{padding-top:0}
.unavailable .product-name{height:45px}
.unavailable-label{border-top:1px solid #e3e3e3;color:#e40043;text-align:center;padding:10px 0 2px;font-size:12px}
.catalog-bottom{text-align:right;padding:34px 6px;color:#555;font-size:12px}

.filter-sidebar{min-width:0;direction: rtl;}
.filter-card{border:1px solid #dfe1e5;border-radius:14px;background:#fff;overflow:hidden}
.filter-title{height:58px;border-bottom:1px solid #e3e4e7;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:15px;font-weight:800}
.filter-icon-btn{border:0;background:transparent;font-size:24px;transform:rotate(-25deg);color:#3d4149}
.filter-body{padding:10px 18px 12px}
.stock-switch-row{height:58px;display:flex;align-items:center;justify-content:space-between;font-size:12px}
.switch{position:relative;width:34px;height:19px;display:inline-block}
.switch input{display:none}
.slider{position:absolute;inset:0;background:#ddd;border-radius:30px;cursor:pointer;transition:.2s}
.slider:before{content:"";position:absolute;width:15px;height:15px;right:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #aaa;transition:.2s}
.switch input:checked+.slider{background:var(--pink)}
.switch input:checked+.slider:before{transform:translateX(-15px)}

.filter-group{border-top:1px solid #f0f0f2;padding:12px 0}
.filter-group-title{border:0;background:transparent;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:800;padding:0;cursor:pointer}
.chevron{font-size:15px;color:#9aa1ad}
.filter-group:not(.open) .filter-options,.filter-group:not(.open) .brand-search,.filter-group:not(.open) .brand-list,.filter-group:not(.open) .show-all,.filter-group:not(.open) .price-inputs,.filter-group:not(.open) .range-wrap{display:none}
.price-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0 12px}
.price-inputs>div{background:#f5f5f6;border-radius:10px;padding:8px;text-align:center}
.price-inputs small{display:block;font-size:8px;color:#555;margin-bottom:5px}
.price-inputs b{font-size:10px}
.range-wrap{position:relative;height:32px;margin:0 0 2px}
.range-wrap input{position:absolute;inset:4px 0 auto;width:100%;height:5px;pointer-events:none;appearance:none;background:transparent}
.range-wrap:before{content:"";position:absolute;left:2px;right:2px;top:7px;height:5px;border-radius:5px;background:#d6d8dc}
.range-wrap input::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border-radius:50%;background:var(--pink);cursor:pointer;pointer-events:auto}
.range-wrap input::-moz-range-thumb{width:17px;height:17px;border:0;border-radius:50%;background:var(--pink);cursor:pointer;pointer-events:auto}
.range-wrap input::-webkit-slider-runnable-track{height:5px;background:transparent}
.range-wrap input::-moz-range-track{height:5px;background:transparent}
.brand-search{height:38px;border:1px solid #dfe2e7;border-radius:9px;margin:15px 0 8px;display:flex;align-items:center;padding:0 10px}
.brand-search input{border:0;outline:0;width:100%;font-size:11px;background:transparent;text-align:right}
.brand-search span{font-size:20px;color:#9ca4af}
.brand-list{max-height:250px;overflow:hidden}
.brand-row{display:flex;align-items:center;justify-content:space-between;height:34px;border-bottom:1px solid #f2f2f3;font-size:11px}
.brand-row label{display:flex;align-items:center;justify-content:space-between;width:100%;cursor:pointer}
.brand-row input,.filter-options input{appearance:none;width:17px;height:17px;border:1px solid #d8dce2;border-radius:4px;margin:0;position:relative;cursor:pointer}
.brand-row input:checked,.filter-options input:checked{background:var(--pink);border-color:var(--pink)}
.brand-row input:checked:after,.filter-options input:checked:after{content:"✓";position:absolute;color:#fff;font-size:12px;left:3px;top:-1px}
.show-all{border:0;background:transparent;color:#8a8e96;font-size:10px;margin:9px 0 0;cursor:pointer}
.filter-options{display:grid;gap:9px;margin-top:14px}
.filter-options label{font-size:11px;display:flex;align-items:center;gap:8px;cursor:pointer}
.more-filters{width:100%;height:38px;border:0;background:#eef0f2;color:#666;border-radius:7px;font-size:11px;margin-top:10px}

.popular-tags{border:1px solid #dddfe3;margin-top:18px}
.popular-title{background:#dedede;padding:14px 16px;text-align:right;font-size:13px;font-weight:800}
.tag-pill{display:inline-block;background:#1495dc;color:#fff;margin:13px;border-radius:3px;padding:5px 13px;font-size:10px;position:relative}
.tag-pill:after{content:"";position:absolute;right:-7px;top:0;border-top:14px solid transparent;border-bottom:14px solid transparent;border-right:7px solid #1495dc}

.compare-drawer{position:fixed;right:0;left:0;bottom:-150px;background:#fff;box-shadow:0 -5px 25px rgba(0,0,0,.14);z-index:9999;transition:.25s;padding:13px 0}
.compare-drawer.show{bottom:0}
.compare-inner{width:min(1200px,calc(100% - 30px));margin:auto;display:flex;align-items:center;gap:18px}
.compare-inner>div:first-child{min-width:160px}
.compare-inner strong{display:block;font-size:13px}
.compare-inner span{font-size:10px;color:#777}
.compare-items{display:flex;gap:8px;flex:1;overflow:auto}
.compare-item{position:relative;width:60px;height:60px;border:1px solid #ddd;border-radius:8px;flex:none;background:#fff}
.compare-item img{width:100%;height:100%;object-fit:contain}
.compare-item button{position:absolute;right:-6px;top:-6px;width:18px;height:18px;border:0;border-radius:50%;background:#222;color:#fff;font-size:10px}
.compare-close{border:0;background:#222;color:#fff;border-radius:8px;padding:10px 18px;font-size:11px}

@media(max-width:1500px){
  .catalog-container{width:min(1400px,calc(100% - 35px))}
  .products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1100px){
  .catalog-layout{grid-template-columns:280px minmax(0,1fr)}
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-toolbar{flex-direction:column-reverse;align-items:stretch}
  .compare-open-btn{width:100%}
}
@media(max-width:768px){
  .catalog-container{width:calc(100% - 24px)}
  .catalog-layout{display:flex;flex-direction:column}
  .filter-sidebar{order:-1;width:100%}
  .catalog-heading-row{height:auto;margin:8px 0 18px}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-image{height:210px}
  .product-name{font-size:11px}
  .sort-box{overflow:auto;gap:18px}
}
@media(max-width:450px){
  .products-grid{grid-template-columns:1fr 1fr}
  .product-image{height:165px}
  .product-content{padding:7px 8px 11px}
  .product-specs{gap:1px}
  .spec-text{font-size:8px}
  .product-price{font-size:13px}
}
