
#scroller-catalog {
    overflow-anchor: none;      
    height: var(--virtual-scroller-height);
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    position: absolute; 
    width: 100%;  
    padding: 0;
    margin: 0;  
}
.product-card  { 
    height: var(--catalog-card-height);
    overflow: hidden;    
    padding: 5px;    
    position: relative;
    display: flex; 
    flex-direction: column; 
    min-width: 0;    
    contain: layout paint style;    
}


.product-card-inner {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px;    
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.cat-image-wrapper {
  width: 100%;
  height: 60%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1%; 
}

.cat-image-wrapper img {
    width: 100%;
    height: 100%;    
    object-fit: cover;       
    object-position: center; 
    
}

.subtitle { 
    font-size: 14px; 
    color: var(--hint); 
    margin-bottom: 10px; 
}

.row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.price { 
    font-size: clamp(14px, 1rem, 16px); 
    font-weight: var(--title-font-weight); ; 
}

.added-badge { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background: #28a745; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 12px; 
    font-size: 12px; 
    display: none; 
    box-shadow: 0 5px 8px rgba(153, 80, 31, 0.15); 
}

.product-options {     
    display: flex; 
    flex-direction: row; 
    gap: 6px; 
    margin-bottom: 8px; 
}

.product-options input { 
    width: 40%; 
    padding: 5px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    font-size: 12px; 
}

.product-options select { 
    width: 100%; 
    padding: 5px; 
    border-radius: 5px; 
    border: 1px solid #ccc; 
    font-size: 12px; 
}
#spacer{
  width: 100%;
  padding: 0;
  margin: 0;   
}

#viewport{
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  /* gap: 10px; */
  width: 100%;
  padding: 0;
  top: 0;
  left: 0;
  position: absolute;  
  transform: translateY(0); 
  will-change: transform;  
} 



  