
:root{--page:#fafafa;--surface:#fff;--text:#4f4f4f;--muted:#777;--line:#dedede;--accent:#e8637a;--accent-soft:#fde9ed;--radius:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--text);font-family:'Lato',Arial,sans-serif}
.catalog-shell{width:min(1520px,calc(100% - 32px));margin:auto}
.catalog-intro{padding:28px 0 18px;background:#faf7f2;border-bottom:1px solid #e2dbd2}
.catalog-intro h1{margin:0 0 12px;text-align:center;font-size:clamp(28px,3vw,42px);color:#555}
.catalog-intro p{max-width:900px;margin:0 auto 8px;text-align:center;color:#666;font-size:15px;line-height:1.7}
main.catalog-shell{padding:18px 0 58px}
.feed-error{margin-bottom:14px;padding:13px 15px;border:1px solid #e9b4bd;background:#fff2f4;color:#a83c50;border-radius:8px}
.filters{position:sticky;top:0;z-index:20;padding:9px 0 8px;background:rgba(250,250,250,.96);backdrop-filter:blur(12px)}
.filter-group{margin-bottom:8px}
.filter-label{margin:0 2px 6px;color:#888;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.filter-row{display:flex;gap:7px;overflow-x:auto;padding:1px 2px 5px;scrollbar-width:thin}
.chip{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;color:#555;padding:7px 11px;font:inherit;font-size:12px;cursor:pointer}
.chip:hover{border-color:var(--accent);color:var(--accent)}
.chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
.more-filters{border:1px solid var(--line);border-radius:9px;background:#fff}
.more-filters summary{cursor:pointer;list-style:none;padding:9px 12px;font-size:13px;font-weight:700;color:#666}
.more-filters summary::-webkit-details-marker{display:none}
.more-filters summary::after{content:"+";float:right;color:var(--accent);font-size:17px}
.more-filters[open] summary::after{content:"−"}
.filter-content{padding:2px 10px 8px}
.color-row{display:flex;gap:10px;flex-wrap:wrap;padding:2px}
.color-swatch{width:29px;height:29px;border:2px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #cfcfcf;cursor:pointer}
.color-swatch.active{box-shadow:0 0 0 3px var(--accent)}
.color-swatch.all{background:conic-gradient(#e8637a,#f28b4e,#e5c64a,#62a36b,#4e7fc2,#9664aa,#e8637a);position:relative}
.color-swatch.all::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}
.active-filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.active-tag{border:0;border-radius:999px;background:var(--accent-soft);color:#c44f66;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer}
.catalog-status{display:flex;justify-content:space-between;gap:16px;margin:8px 2px 12px;color:#888;font-size:13px}
.fabric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.tile{position:relative;display:block;overflow:hidden;aspect-ratio:1;border-radius:var(--radius);background:#e9e4de}
.tile::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#e7e2dc 20%,#f4f1ed 40%,#e7e2dc 60%);background-size:220% 100%;animation:shimmer 1.3s infinite}
.tile.loaded::before{display:none}
.tile img{width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .25s,transform .25s}
.tile.loaded img{opacity:1}
.tile:hover img{transform:scale(1.045)}
.tile-overlay{position:absolute;inset:auto 0 0;padding:34px 10px 10px;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font-size:12px;font-weight:700;opacity:0;transition:.2s}
.tile:hover .tile-overlay{opacity:1}
@keyframes shimmer{to{background-position:-220% 0}}
.loading{text-align:center;color:#999;font-size:13px;padding:24px 0}
.empty{text-align:center;padding:50px 20px;color:#777}
.empty button{border:0;border-radius:999px;background:var(--accent);color:#fff;padding:11px 18px;font:inherit;font-weight:700;cursor:pointer}


@media(max-width:760px){
 .catalog-shell{width:calc(100% - 20px)}
 .catalog-intro{padding:20px 0 14px}
 .catalog-intro p{font-size:14px;line-height:1.6}
 .filters{position:static}
 .fabric-grid{grid-template-columns:repeat(3,1fr);gap:7px}
 .tile{border-radius:9px}.tile-overlay{display:none}
 .catalog-status{font-size:12px;align-items:flex-start}
}
@media(max-width:390px){.fabric-grid{grid-template-columns:repeat(2,1fr)}}

.chip{display:inline-flex;align-items:center;gap:6px}
.chip-icon{width:15px;height:15px;display:inline-flex;flex:0 0 15px}
.chip-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.chip-count{margin-left:1px;color:#999;font-size:10px;line-height:1}
.chip.active .chip-count{color:rgba(255,255,255,.78)}

@media(max-width:1100px){
  .fabric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
  .fabric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
}
@media(max-width:420px){
  .fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Slantastoffe header layout using the actual header classes */
header .shop-mainbar{
  min-height:145px;
}
header .shop-cart-link{
  z-index:2;
}
header .shop-logo{
  z-index:1;
}
header .shop-back-link{
  z-index:2;
}

@media(max-width:900px){
  header .shop-topbar{
    padding:16px 30px !important;
    justify-content:center !important;
  }

  header .shop-account-links{
    width:100% !important;
    justify-content:space-between !important;
    gap:18px !important;
  }

  header .shop-account-links a{
    font-size:14px !important;
    white-space:nowrap !important;
  }

  header .shop-mainbar{
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    align-items:center !important;
    min-height:auto !important;
    padding:28px 20px 20px !important;
    gap:16px !important;
  }

  header .shop-logo{
    position:static !important;
    order:1 !important;
    width:min(100%,520px) !important;
    margin:0 auto !important;
    transform:none !important;
  }

  header .shop-logo img{
    width:100% !important;
    height:auto !important;
    max-height:120px !important;
    object-fit:contain !important;
  }

  header .shop-cart-link{
    position:static !important;
    order:2 !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    justify-content:center !important;
  }

  header .shop-cart-link a{
    font-size:16px !important;
  }

  header .shop-back-link{
    position:static !important;
    order:3 !important;
    right:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    padding:13px 26px !important;
    font-size:15px !important;
  }

  header .shop-nav{
    justify-content:flex-start !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }

  header .shop-nav a{
    flex:0 0 auto !important;
    padding:17px 24px !important;
    font-size:14px !important;
  }
}

@media(max-width:560px){
  header .shop-topbar{
    padding:12px 14px !important;
  }

  header .shop-account-links{
    gap:10px !important;
  }

  header .shop-account-links a{
    font-size:12px !important;
  }

  header .shop-mainbar{
    padding:22px 14px 18px !important;
    gap:14px !important;
  }

  header .shop-logo{
    width:min(100%,430px) !important;
  }

  header .shop-cart-link a{
    font-size:15px !important;
  }

  header .shop-back-link{
    padding:12px 24px !important;
    font-size:14px !important;
  }

  header .shop-nav a{
    padding:15px 20px !important;
    font-size:13px !important;
  }
}
