:root{
  --bg:#f5f5f5; --card:#fff; --ink:#111; --muted:#777; --brand:#06c1f5; --brand-ink:#fff; --red-brand:#ed2027; --background-light-red:#ff4646;
  --ring:#ddd; --radius:12px; --shadow:0 2px 8px rgba(0,0,0,.06);
  --gap:14px; --sidebar-w:260px; --container-max:1200px; --font:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
body{height:100%; max-width: 100%;
  overflow-x: hidden; }
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto}

.catalog-wrapper{
  max-width:var(--container-max);
  margin:12px auto; padding:0 12px;
  display:grid; grid-template-columns: var(--sidebar-w) 1fr; gap:16px;
}
@media (max-width:920px){
  .catalog-wrapper{ grid-template-columns: 1fr; margin-top:20px; }
}

.filters-trigger-wrap{
  grid-column: 1 / -1;
  display:flex; justify-content:flex-start; margin:6px 0 2px 20px;
}
#openFilters{
  border:2px solid #000; background:#fff; color:#000; font-weight:800;
  padding:8px 20px; border-radius:999px; cursor:pointer;
}

@media (min-width:921px){ 
  .filters-trigger-wrap{ display:none;
   } }

.sidebar-filters{
  background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:16px; position:sticky; top:12px; align-self:start; z-index:10;
}
.filters-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:.95rem}
.filters-header a{color:var(--brand);text-decoration:underline;cursor:pointer}

.filter-section{
  display: flex;
  flex-wrap: wrap;           
  align-items: center;
  gap: 8px 10px;              
  margin: 14px 0;
}
.filters-close { display: none;}


#resetFilters { display: inline; }


@media (max-width:920px){
  .filters-close { display: flex; }
  #resetFilters { display: none; }
}

.filter-section h4{
  flex: 0 0 100%;
  margin: 0 0 8px;
}


.filter-section label{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;                   
  padding: 8px 12px;
  font-size: .85rem;
  border: 1px solid var(--ring);
  border-radius: 999px;        
  background: #fcfcfc;
  cursor: pointer;
  user-select: none;
}
.filter-section label input{
  margin: 0;                  
}

.filter-section label:has(input:checked){
  background: var(--background-light-red);
  color: var(--brand-ink);
  border-color:none;
}
:root{
  --brandBtnMin: 1rem;  
  --brandBtnH:   2.5rem;   
  --brandLogoMaxH: 1.6rem;
}

#brandButtons{
  display: grid;
  grid-template-columns: repeat(2, minmax(var(--brandBtnMin), 1fr));
  gap: 8px;         
  width: 100%;
}

#brandButtons .brand-button{
  margin: 0;           
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--brandBtnH);
  padding: 0 12px;    
  border: 1px solid var(--ring);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow);
  min-width: 0;  
}

#brandButtons .brand-button.active{
  background:#eeeeee;
  color: none;
  border-color: none;
}

#brandButtons .brand-button img{
  max-height: var(--brandLogoMaxH);
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

#brandButtons .brand-button .brand-label{
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px){
  :root{
    --brandBtnMin: 100px;
    --brandBtnH:   48px;
    --brandLogoMaxH: 30px;
  }
}

.brand-button{ margin: 0; }

.connectivity-tag{ margin: 0; }

.filter-section select{
  min-width: 200px;
  max-width: 100%;
  flex: 1 1 220px; 
}

.brand-button,.connectivity-tag{
  display:inline-block;margin:6px 6px 0 0;padding:6px 10px;font-size:.85rem;border:1px solid var(--ring);border-radius:8px;background:#ffffff;cursor:pointer;user-select:none
}
.brand-button.active,.connectivity-tag.active{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
select,input[type="radio"],input[type="checkbox"]{cursor:pointer}
#sortSelect{width:100%}
.filters-close { display: none; }

#resetFilters { 
    text-decoration:none;
    background-color:white;
    border: 1px solid black;
    color:black;
    padding:2px 10px;
    border-radius:200px;
    transition: 0.3s;
 }

#resetFilters:hover {
    cursor:pointer;
    background-color:black;
    color:white;
}

.filters-close { display: none; }


@media (max-width:920px){
  .filters-close { display: flex; }
  #resetFilters { display: none; }
}

@media (max-width:920px){
  .sidebar-filters{
    position:fixed; inset:0;
    width:100%; height:100%;
    background:#fff; 
    border-radius:0; box-shadow:none;
    transform:translateY(-100%);
    transition:transform .65s ease;
    overflow:auto;
    padding:18px; 
    z-index:100;
  }
  
  body.filters-open .sidebar-filters{ transform: translateY(0); }

  .filters-close{position:sticky; top:5px; display:flex; justify-content:flex-end; margin:-8px 0 8px 0;}
  .filters-close button{border:1px solid #bbb; background:#fff; border-radius:999px; padding:8px 12px; font-weight:600; cursor:pointer;}

  .filters-actions{
    position:sticky; bottom:0; width:100%;
    background:#fff; border-top:1px solid #eee; padding:10px 12px;
    display:flex; gap:10px; justify-content:space-between; align-items:center;
  }
  .filters-actions .secondary{
    flex:0 0 auto; border:1px solid #bbb; background:#fff; border-radius:10px; padding:10px 14px; font-weight:600; cursor:pointer;
  }
  .filters-actions .primary{
    flex:1 1 auto; border:none; border-radius:10px; padding:12px 16px; font-weight:800; cursor:pointer;
    background:#000; color:#fff;
  }
}

.product-grid{
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap:var(--gap); align-content:start;
}
@media (max-width:1100px){ .product-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width:820px){ .product-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }

.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:10px;display:flex;flex-direction:column;min-width:0}
.card-img{width:100%;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:10px;background:#ffffff;border:1px solid #eee}
.card-img img{max-width:100%;max-height:100%;object-fit:contain}
.card-name{font-weight:700;font-size:.90rem;margin:10px 4px 4px;text-align:center}
.card-desc{font-size:.70rem;color:var(--muted);text-align:center;margin-bottom:10px;padding:0 2px}
.item-texts{display:flex;flex-direction:column;gap:0;margin:0;}
.item-texts p{margin:0;padding:5px 8px!important;font-size:.7rem !important;background:#e9f7fe;border-left:4px solid var(--brand);margin-bottom:2px;}
.item-texts p .tick{margin-right:6px;color:#00bfff; }
.price{gap:10px;align-items:baseline;margin:4px 2px 8px}
.price .ex{color:#d9090b;font-weight:800; font-size:1.5rem;}
.circle-row{display:flex;gap:6px;flex-wrap:wrap;margin:4px 2px 10px}
.circle{width:12px;height:12px;border-radius:50%;border:1px solid #aaa; margin-bottom:1rem;}
.black{background:#000}.yellow{background:#fffb00}.magenta{background:#ff00ff}.cyan{background:#00bfff}
.lightmagenta{background:#ff99ff}.lightcyan{background:#99ffff}
.card-actions{margin-top:auto;display:flex;justify-content:center}
.card-actions a{display:inline-block;padding:6px 12px;border:2px solid #000;border-radius:999px;font-weight:700;color:#000;text-decoration:none;transition:.2s; font-size:.8rem;}
.card-actions a:hover{background:#000;color:#fff}
.pager{display:flex;gap:10px;justify-content:center;align-items:center;margin:18px 0 8px}
.pager .btn{border:1px solid #bbb;background:#fff;border-radius:999px;padding:10px 16px;font-weight:600;cursor:pointer}
.pager .page{width:40px;height:40px;border:1px solid #bbb;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff}
.pager .page.active{background:#000;color:#fff;border-color:#000}
.pager .dots{padding:0 4px;color:#888}

@media (min-width: 921px){
  .sidebar-filters .filters-actions{
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;

    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }
}

.catalog-search-wrap{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px 20px;
}

.catalog-search-wrap input[type="search"]{
  flex: 1 1 auto;           
  min-width: 0;             
  padding: 10px 40px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  font-size: .95rem;
  background: #fff;
  box-shadow: var(--shadow);
  outline: none;
}

.catalog-search-wrap select{
  flex: 0 0 auto;          
  max-width: 35ch;         
  padding: 10px 12px;
  border: 1px solid var(--ring);
  border-radius: 999px;
  font-size: .9rem;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  white-space: nowrap;
  outline: none;
}

.catalog-search-wrap input[type="search"]:focus{ border-color:#000; }

@media (max-width:920px){
  .catalog-search-wrap{
    margin: 6px auto;       
    width: 90vw;            
    max-width: 90vw;
    gap: 8px;
    overflow-x: hidden;    
  }

  .catalog-search-wrap input[type="search"]{
    padding: 10px 16px;     
  }

  .catalog-search-wrap select{
    max-width: 30vw;        
    font-size: .85rem;
  }
}



.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}


.active-tags{ display:flex; flex-wrap:wrap; gap:8px; }

@media (max-width:920px){
  .catalog-search-wrap{ flex-wrap: wrap; }         
  #activeTagChips{
    order: 3;                                     
    flex: 1 1 100%;                              
    margin-top: 15px;
  }
}

/* ==== product detail (no VAT, no stars) ==== */
.pd-wrap{
  max-width: var(--container-max);
  margin: 14px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
@media (max-width: 920px){
  .pd-wrap{ grid-template-columns: 1fr; }
}
.pd-media{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex; align-items:center; justify-content:center;
}
.pd-media .pd-hero{
  width:100%; aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center;
  border:1px solid #eee; border-radius: 10px; background:#fff; overflow:hidden;
}
.pd-media .pd-hero img{ max-width:100%; max-height:100%; object-fit:contain; }

.pd-side{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.pd-title{ font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; }
.pd-sub{ color: var(--muted); font-size:.95rem; margin-bottom: 8px; }

.pd-badges{ display:flex; gap:8px; flex-wrap:wrap; margin: 8px 0 10px; }
.pd-badge{ font-size:.8rem; font-weight:700; padding:.35rem .65rem; border-radius:999px; background:#fff4f4; color:#a80b10; border:1px solid #ffd7d7; }

.pd-price{ font-size:1.6rem; font-weight:800; color: var(--red-brand); margin: 10px 0; }

.pd-why p{ margin:.25rem 0; font-size:.9rem; }
.pd-why p::before{ content:"✔ "; color:#00bfff; font-weight:700; }

.pd-tags{ display:flex; flex-wrap:wrap; gap:6px; margin: 12px 0; }
.pd-tag{ background:#f3f4f6; border:1px solid var(--ring); padding:.25rem .6rem; border-radius:999px; font-size:.8rem; }

.pd-cta{ display:flex; gap:10px; align-items:center; margin-top: 10px; }
.pd-btn{
  display:inline-block; padding:.75rem 1.25rem; border-radius:999px; border:2px solid #000;
  background:#000; color:#fff; text-decoration:none; font-weight:800;
}
.pd-link{ font-weight:700; text-decoration:underline; }

.pd-stock{ color:#16a34a; font-weight:600; margin-top:8px; font-size:.95rem; }

.pd-tools{ margin-top:12px; display:flex; gap:10px; align-items:center; }
.pd-file{ font-size:.85rem; }

.pd-breadcrumbs{
  max-width: var(--container-max);
  margin: 10px auto 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: .9rem;
}
.pd-breadcrumbs a{ color: var(--muted); text-decoration:none; }
