/* Custom Catalog & Archive Page Styles */
.watt-catalog-page{
  background:#ffffff;
  min-height:80vh;
  padding:24px 0 60px;
  width:100%;
  box-sizing:border-box;
}
.watt-catalog-container{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px;
  width:100%;
  box-sizing:border-box;
}

/* Top Filter Header Bar */
.watt-catalog-header-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:20px;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:28px;
}
.watt-catalog-header-left{
  display:flex;
  align-items:center;
  gap:16px;
}
.watt-filter-toggle-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#ffffff!important;
  border:1px solid #d1d5db!important;
  border-radius:10px!important;
  padding:8px 16px!important;
  font-size:14px!important;
  font-weight:700!important;
  color:#111827!important;
  cursor:pointer;
  transition:all .15s ease;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
}
.watt-filter-toggle-btn:hover{
  background:#f9fafb!important;
  border-color:#9ca3af!important;
}
.watt-results-count{
  font-size:14px;
  font-weight:600;
  color:#6b7280;
}
.watt-active-filter-badge{
  background:var(--watt-red,#E30613);
  color:#ffffff;
  font-size:11px;
  font-weight:800;
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:4px;
}
.watt-current-cat-badge{
  background:#f3f4f6;
  color:#111827;
  padding:4px 12px;
  border-radius:20px;
  font-size:13px;
  font-weight:700;
  border:1px solid #e5e7eb;
}

/* Category Back and Active links */
.watt-cat-back-item{
  margin-bottom:6px;
  padding-bottom:6px;
  border-bottom:1px solid #f3f4f6;
}
.watt-cat-back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:700;
  color:var(--watt-red,#E30613)!important;
  text-decoration:none!important;
}
.watt-cat-back-link:hover{
  text-decoration:underline!important;
}
.watt-filter-cat-link.active{
  background:#fee2e2;
  color:var(--watt-red,#E30613)!important;
  font-weight:700;
}
.watt-price-range-info{
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  margin-bottom:8px;
}

/* Sort By Dropdown */
.watt-catalog-header-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.watt-sort-label{
  font-size:14px;
  font-weight:600;
  color:#4b5563;
}
.watt-sort-wrapper{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.watt-sort-select{
  appearance:none;
  -webkit-appearance:none;
  background:#ffffff!important;
  border:1px solid #d1d5db!important;
  border-radius:10px!important;
  padding:8px 34px 8px 14px!important;
  font-size:14px!important;
  font-weight:700!important;
  color:#111827!important;
  cursor:pointer;
  outline:none!important;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
  transition:border-color .15s ease;
}
.watt-sort-select:focus{
  border-color:var(--watt-red,#E30613)!important;
}
.watt-sort-chevron{
  position:absolute;
  right:12px;
  pointer-events:none;
  color:#6b7280;
}

/* Main Layout Grid: Sidebar (280px) + Products Grid */
.watt-catalog-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:36px;
  align-items:start;
}
.watt-catalog-main{
  min-width:0;
  width:100%;
  box-sizing:border-box;
}

/* Left Sidebar */
.watt-filter-sidebar{
  background:#ffffff;
}
.watt-filter-sidebar-header{
  display:none; /* visible only on mobile modal */
  align-items:center;
  justify-content:space-between;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #e5e7eb;
}
.watt-filter-sidebar-title{
  font-size:18px;
  font-weight:800;
  margin:0;
  color:#111827;
}
.watt-filter-sidebar-close{
  background:none!important;
  border:none!important;
  padding:4px;
  cursor:pointer;
  color:#4b5563;
}

.watt-filter-group{
  border-bottom:1px solid #f3f4f6;
  padding:16px 0;
}
.watt-filter-group:first-child{
  padding-top:0;
}
.watt-filter-group-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  user-select:none;
  margin-bottom:12px;
}
.watt-filter-group-title{
  font-size:15px;
  font-weight:800;
  color:#111827;
}
.watt-filter-chevron{
  color:#6b7280;
  transition:transform .2s ease;
}
.watt-filter-group.collapsed .watt-filter-chevron{
  transform:rotate(-90deg);
}
.watt-filter-group.collapsed .watt-filter-group-content{
  display:none;
}

/* Custom Checkbox */
.watt-checkbox-label{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 0;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  color:#374151;
  user-select:none;
}
.watt-checkbox-label input[type="checkbox"]{
  display:none;
}
.watt-checkbox-custom{
  width:18px;
  height:18px;
  border:1.8px solid #d1d5db;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .15s ease;
  flex-shrink:0;
  background:#fff;
}
.watt-checkbox-label input[type="checkbox"]:checked + .watt-checkbox-custom{
  background:var(--watt-red,#E30613);
  border-color:var(--watt-red,#E30613);
}
.watt-checkbox-label input[type="checkbox"]:checked + .watt-checkbox-custom::after{
  content:'';
  width:5px;
  height:9px;
  border:solid white;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
  margin-bottom:2px;
}
.watt-checkbox-text{
  flex:1;
}
.watt-filter-count{
  font-size:12px;
  font-weight:600;
  color:#9ca3af;
  margin-left:auto;
}

/* Category Filter Links */
.watt-filter-cat-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.watt-filter-cat-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 8px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  color:#374151!important;
  text-decoration:none!important;
  transition:background .15s ease,color .15s ease;
}
.watt-filter-cat-link:hover{
  background:#f3f4f6;
  color:var(--watt-red,#E30613)!important;
}

/* Manufacturer Scroll */
.watt-mfg-scroll{
  max-height:220px;
  overflow-y:auto;
  padding-right:4px;
}
.watt-mfg-scroll::-webkit-scrollbar{
  width:4px;
}
.watt-mfg-scroll::-webkit-scrollbar-thumb{
  background:#e5e7eb;
  border-radius:4px;
}

/* Price Inputs */
.watt-price-inputs{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.watt-price-box{
  position:relative;
  display:flex;
  align-items:center;
  flex:1;
}
.watt-price-currency{
  position:absolute;
  left:10px;
  font-size:13px;
  font-weight:600;
  color:#6b7280;
  pointer-events:none;
}
.watt-price-box input{
  width:100%;
  padding:8px 8px 8px 24px!important;
  border:1px solid #d1d5db!important;
  border-radius:8px!important;
  font-size:13px!important;
  font-weight:600!important;
  outline:none!important;
}
.watt-price-box input:focus{
  border-color:var(--watt-red,#E30613)!important;
}
.watt-price-sep{
  color:#9ca3af;
  font-weight:700;
}
.watt-price-apply-btn{
  width:100%;
  padding:8px 0;
  background:#111827!important;
  color:#ffffff!important;
  font-size:13px!important;
  font-weight:700!important;
  border:none!important;
  border-radius:8px!important;
  cursor:pointer;
  transition:background .15s ease;
}
.watt-price-apply-btn:hover{
  background:#000000!important;
}
.watt-reset-filters-btn{
  display:block;
  text-align:center;
  padding:10px 0;
  margin-top:14px;
  background:#fee2e2;
  color:var(--watt-red,#E30613)!important;
  font-size:13px;
  font-weight:700;
  border-radius:8px;
  text-decoration:none!important;
  transition:background .15s ease;
}
.watt-reset-filters-btn:hover{
  background:#fecaca;
}

/* Product Grid (4 columns desktop) */
.watt-product-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
  width:100%;
  box-sizing:border-box;
}
@media(max-width:1200px){
  .watt-product-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media(max-width:900px){
  .watt-catalog-layout{
    grid-template-columns:1fr;
    gap:20px;
  }
  .watt-filter-sidebar{
    position:fixed;
    inset:0;
    z-index:99999;
    background:#ffffff;
    padding:24px;
    overflow-y:auto;
    transform:translateX(-100%);
    transition:transform .3s cubic-bezier(0.16,1,0.3,1);
    box-shadow:0 0 30px rgba(0,0,0,0.25);
  }
  .watt-filter-sidebar.active{
    transform:translateX(0);
  }
  .watt-filter-sidebar-header{
    display:flex;
  }
  .watt-product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:16px;
  }
}

/* Product Card Matching Screenshot */
.watt-product-card{
  background:#ffffff;
  border-radius:16px;
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  transition:transform .2s ease,box-shadow .2s ease;
}
.watt-product-card:hover{
  transform:translateY(-3px);
}

/* Discount Badge top-left */
.watt-discount-badge{
  position:absolute;
  top:12px;
  left:12px;
  background:#fde047; /* Yellow badge as in screenshot */
  color:#000000;
  font-weight:800;
  font-size:12.5px;
  padding:3px 8px;
  border-radius:6px;
  z-index:2;
  line-height:1.2;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

/* Image Container */
.watt-product-img-wrap{
  display:block;
  background:#ffffff; /* Pure white container */
  border-radius:14px;
  overflow:hidden;
  aspect-ratio:1 / 1;
  position:relative;
  text-decoration:none;
  border:1px solid #f3f4f6;
}
.watt-product-img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:20px;
  box-sizing:border-box;
  transition:transform .3s ease;
}
.watt-product-card:hover .watt-product-img{
  transform:scale(1.05);
}

/* Info */
.watt-product-info{
  padding:14px 4px 6px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.watt-product-eyebrow{
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  margin-bottom:4px;
  text-transform:none;
}
.watt-product-title{
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  margin:0 0 8px 0;
  color:#111827;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.watt-product-title a{
  color:#111827!important;
  text-decoration:none!important;
  transition:color .15s;
}
.watt-product-title a:hover{
  color:var(--watt-red,#E30613)!important;
}

/* Prices */
.watt-product-prices{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:8px;
}
.watt-sale-price{
  font-size:18px;
  font-weight:800;
  color:var(--watt-red,#E30613);
}
.watt-reg-price{
  font-size:14px;
  font-weight:600;
  color:#9ca3af;
  text-decoration:line-through;
}

/* Stock Status */
.watt-product-stock{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  font-weight:700;
  margin-top:auto;
  margin-bottom:12px;
}
.watt-product-stock.in-stock{
  color:#16a34a; /* Green */
}
.watt-product-stock.out-of-stock{
  color:#dc2626; /* Red */
}
.watt-stock-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  display:inline-block;
}

/* Card Action Buttons (In den Warenkorb & Jetzt kaufen) */
.watt-card-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}
.watt-card-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  text-decoration:none!important;
  cursor:pointer;
  transition:all .2s ease;
  box-sizing:border-box;
  border:none;
}
.watt-card-btn svg{
  flex-shrink:0;
}
/* In den Warenkorb: High-contrast light gray background with red text or clean border */
.watt-card-btn-cart{
  background:#f3f4f6!important;
  color:#111827!important;
  border:1px solid #e5e7eb!important;
}
.watt-card-btn-cart:hover{
  background:#e5e7eb!important;
  color:#E30613!important;
  border-color:#d1d5db!important;
}
/* Jetzt kaufen: Brand Red with white text */
.watt-card-btn-buy{
  background:var(--watt-red,#E30613)!important;
  color:#ffffff!important;
  box-shadow:0 2px 8px rgba(227,6,19,0.25);
}
.watt-card-btn-buy:hover{
  background:#c0000c!important;
  color:#ffffff!important;
  box-shadow:0 4px 12px rgba(227,6,19,0.35);
  transform:translateY(-1px);
}
.watt-card-btn-disabled{
  background:#f3f4f6!important;
  color:#9ca3af!important;
  cursor:not-allowed!important;
}
/* Loading state when WooCommerce AJAX runs */
.watt-card-btn.loading{
  opacity:.6;
  pointer-events:none;
}
.watt-card-btn.added::after{
  content:' ✓';
  margin-left:4px;
}

/* Pagination */
.watt-pagination{
  margin-top:40px;
  display:flex;
  justify-content:center;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}
.watt-pagination ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  padding:0;
  margin:0;
  max-width:100%;
}
.watt-pagination a,
.watt-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 10px;
  border-radius:8px;
  font-size:14px;
  font-weight:700;
  color:#374151;
  text-decoration:none;
  border:1px solid #e5e7eb;
  transition:all .15s ease;
}
.watt-pagination span.current{
  background:var(--watt-red,#E30613);
  color:#fff;
  border-color:var(--watt-red,#E30613);
}
.watt-pagination a:hover{
  background:#f3f4f6;
  border-color:#d1d5db;
}

/* Empty products */
.watt-no-products{
  text-align:center;
  padding:60px 20px;
  background:#f9fafb;
  border-radius:16px;
}
.watt-no-products h3{
  font-size:20px;
  font-weight:800;
  color:#111827;
  margin:16px 0 8px;
}
.watt-no-products p{
  color:#6b7280;
  font-size:14px;
  margin:0 0 20px;
}
.watt-back-shop-btn{
  display:inline-block;
  background:var(--watt-red,#E30613);
  color:#fff!important;
  font-weight:800;
  font-size:14px;
  padding:12px 24px;
  border-radius:10px;
  text-decoration:none!important;
}

/* Mobile Specific Ergonomics & Fluid 2-Column Product Grid */
@media(max-width: 640px){
  .watt-catalog-page{
    padding: 10px 0 30px;
    overflow-x: hidden;
  }
  .watt-catalog-container{
    padding: 0 8px;
    max-width: 100vw;
  }
  .watt-catalog-header-bar{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .watt-catalog-header-left{
    gap: 6px;
    flex-wrap: wrap;
  }
  .watt-filter-toggle-btn{
    padding: 6px 10px!important;
    font-size: 12px!important;
    border-radius: 8px!important;
  }
  .watt-results-count{
    font-size: 12px;
  }
  .watt-sort-label{
    display: none;
  }
  .watt-sort-select{
    padding: 6px 26px 6px 8px!important;
    font-size: 12px!important;
    border-radius: 8px!important;
  }
  
  /* Modern clean 2-column mobile grid without clipping */
  .watt-product-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
    gap: 8px!important;
    width: 100%!important;
    margin: 0!important;
  }
  .watt-product-card{
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    padding: 6px;
    min-width: 0;
    overflow: hidden;
  }
  .watt-product-img-wrap{
    border-radius: 8px;
    border: none;
    width: 100%;
  }
  .watt-product-img{
    padding: 8px;
  }
  .watt-discount-badge{
    top: 4px;
    left: 4px;
    font-size: 10.5px;
    padding: 2px 5px;
    border-radius: 4px;
  }
  .watt-product-info{
    padding: 6px 2px 2px;
    min-width: 0;
  }
  .watt-product-eyebrow{
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .watt-product-title{
    font-size: 12px;
    line-height: 1.25;
    margin: 0 0 4px 0;
    min-height: 30px;
    word-break: break-word;
  }
  .watt-product-prices{
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .watt-sale-price{
    font-size: 14px;
  }
  .watt-reg-price{
    font-size: 11px;
  }
  .watt-product-stock{
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  /* Compact Touch-Friendly Buttons on Mobile without overflow */
  .watt-card-actions{
    gap: 5px;
    margin-top: 4px;
    width: 100%;
    min-width: 0;
  }
  .watt-card-btn{
    height: 34px;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 6px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .watt-card-btn span{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .watt-card-btn svg{
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  /* Compact Responsive Mobile Pagination */
  .watt-pagination{
    margin-top: 24px;
    width: 100%;
  }
  .watt-pagination ul{
    gap: 4px;
  }
  .watt-pagination a,
  .watt-pagination span{
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 6px;
  }
}
