
.more-button-wines {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 16px 14px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  font-size: 18px;
}


.more-button-wines:hover {
  background: rgba(153, 54, 51, 0.05);
}

.more-button-wines .product-price-row {
   flex: 1;
   padding: 0;
 }

 .modal {
  width: min(760px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  box-shadow: 0 25px 80px rgba(31, 41, 55, 0.20);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.close:hover {
  color: var(--text);
}

.modal-title {
  margin: 0 0 10px;
  color: var(--accent);
}

.modal-description {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-meta {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf2;
}

.modal-subtitle {
  margin: 16px 0 10px;
}

.modal-image-placeholder {
  height: 180px;
  border: 2px dashed rgba(153, 54, 51, 0.25);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(153, 54, 51, 0.03);
  margin-bottom: 12px;
}

body.modal-open {
  overflow: hidden;
}

.wine-filters {                                                                                                                                                                                              
  max-width: 860px;                                                                                                                                                                                          
  margin: 0 auto;                                                                                                                                                                                            
  padding: 0 18px;                                                                                                                                                                                           
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-search { margin: 14px 0 10px; }                                                                                                                                                                      
                                                                                                                                                                                                              
.filter-search input {                                                                                                                                                                                       
  width: 100%;                                                                                                                                                                                               
  padding: 12px 14px;                                                                                                                                                                                        
  border: 1px solid var(--border);                                                                                                                                                                           
  border-radius: 12px;                                                                                                                                                                                       
  background: var(--surface);                                                                                                                                                                                
  color: var(--text);                                                                                                                                                                                        
  font-size: 1rem;                                                                                                                                                                                           
  outline: none;                                                                                                                                                                                             
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-search input:focus {                                                                                                                                                                                 
  border-color: rgba(153, 54, 51, 0.45);                                                                                                                                                                     
  box-shadow: 0 0 0 4px var(--accent-soft);                                                                                                                                                                  
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-controls {                                                                                                                                                                                           
  display: flex;                                                                                                                                                                                             
  flex-wrap: wrap;                                                                                                                                                                                           
  gap: 8px;                                                                                                                                                                                                  
  align-items: center;                                                                                                                                                                                       
  margin-bottom: 18px;                                                                                                                                                                                       
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-select {                                                                                                                                                                                             
  padding: 10px 12px;                                                                                                                                                                                        
  border: 1px solid var(--border);                                                                                                                                                                           
  border-radius: 12px;                                                                                                                                                                                       
  background: var(--surface);                                                                                                                                                                                
  color: var(--text);                                                                                                                                                                                        
  font-size: 0.9rem;                                                                                                                                                                                         
  outline: none;                                                                                                                                                                                             
  cursor: pointer;                                                                                                                                                                                           
  flex: 1 1 120px;                                                                                                                                                                                           
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-select:focus {                                                                                                                                                                                       
  border-color: rgba(153, 54, 51, 0.45);                                                                                                                                                                     
  box-shadow: 0 0 0 4px var(--accent-soft);                                                                                                                                                                  
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-apply-btn {                                                                                                                                                                                          
  padding: 10px 18px;                                                                                                                                                                                        
  border-radius: 12px;                                                                                                                                                                                       
  border: none;                                                                                                                                                                                              
  background: var(--accent);                                                                                                                                                                                 
  color: #fff;                                                                                                                                                                                               
  font-size: 0.9rem;                                                                                                                                                                                         
  font-weight: 600;                                                                                                                                                                                          
  cursor: pointer;                                                                                                                                                                                           
  white-space: nowrap;                                                                                                                                                                                       
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-apply-btn:hover { background: rgba(153, 54, 51, 0.85); }                                                                                                                                            
                                                                                                                                                                                                              
.filter-clear-btn {                                                                                                                                                                                          
  padding: 10px 14px;                                                                                                                                                                                        
  border-radius: 12px;                                                                                                                                                                                       
  border: 1px solid var(--border);                                                                                                                                                                           
  background: var(--surface);                                                                                                                                                                                
  color: var(--muted);                                                                                                                                                                                       
  font-size: 0.9rem;                                                                                                                                                                                         
  font-weight: 600;                                                                                                                                                                                          
  text-decoration: none;                                                                                                                                                                                     
  white-space: nowrap;                                                                                                                                                                                       
}                                                                                                                                                                                                            
                                                                                                                                                                                                              
.filter-clear-btn:hover {                                                                                                                                                                                    
  background: var(--accent-soft);                                                                                                                                                                            
  color: var(--accent);                                                                                                                                                                                      
  border-color: rgba(153, 54, 51, 0.3);                                                                                                                                                                      
}

.filter-checkbox-label {
    display: flex;                                                                                                                                                                                                     
    align-items: center;                                
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);                                                                                                                                                                                   
    border-radius: 12px;                                                                                                                                                                                               
    background: var(--surface);                                                                                                                                                                                        
    color: var(--muted);                                                                                                                                                                                               
    font-size: 0.9rem;                                  
    cursor: pointer;                                                                                                                                                                                                   
    white-space: nowrap;
    user-select: none;                                                                                                                                                                                                 
  }                                                     

  .filter-checkbox-label:has(input:checked) {                                                                                                                                                                          
    background: var(--accent-soft);
    border-color: rgba(153, 54, 51, 0.4);                                                                                                                                                                              
    color: var(--accent);                                                                                                                                                                                              
    font-weight: 600;
  }                                                                                                                                                                                                                    
                                                        
  .filter-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
  }

/* Desktop: cap Acidity from growing wider than the other selects */
.wine-filters .filter-select {
  max-width: 140px;
}

.wine-detail {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  /* ---- Price rows: tighter columns, name stays left ---- */
  .product-price-header,
  .more-button-wines .product-price-row {
    grid-template-columns: 1fr repeat(var(--price-cols), 3rem);
  }

  .product-price-header .product-price-cell,
  .more-button-wines .product-price-cell {
    font-size: 0.78rem;
  }

  .more-button-wines {
    padding-left: 8px;
    padding-right: 8px;
  }

  .more-button-wines .product-name {
    font-size: 0.9rem;
  }

  /* ---- Filter bar: 2-per-row ---- */
  .filter-select {
    flex: 1 1 calc(50% - 4px);
  }

  /* Override desktop max-width so wine selects fill their 50% column equally */
  .wine-filters .filter-select {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
  }

  .filter-apply-btn,
  .filter-clear-btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  .filter-checkbox-label {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}
.wine-modal-image-frame {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
  padding: 16px;
  border-radius: 14px;
  background: #f8f8f8;
  border: 1px solid var(--border);
}

.wine-modal-image {
  display: block;
  width: 100%;
  height: auto;
}