/**
 * Desktop Grid Layout für Größen & Preise
 * 3-spaltig auf großen Bildschirmen
 */

/* Grid Container für Preise (nur Desktop) - IMMER RECHTS */
@media (min-width: 1200px) {
    .products-table td:nth-child(2) {
        text-align: right;
        padding-right: 20px;
    }
    
    /* Desktop: Horizontal Grid - Side by Side */
    .price-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 5px;
        justify-content: flex-start;
    }
    
    /* Price Cell - Horizontal: Badge Left, Input Right */
    .price-cell {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
        min-width: 160px;
        max-width: 180px;
        flex: 0 0 auto;
    }
    
    .price-cell:hover {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-color: #a7f3d0;
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.2);
        transform: translateY(-2px);
    }
    
    /* Size Label - Left Badge */
    .size-label {
        flex-shrink: 0;
        padding: 6px 12px;
        text-align: center;
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        color: #1e3a8a;
        border: 1px solid #93c5fd;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        min-width: 60px;
        max-width: 90px;
        overflow: auto;
    }
    
    /* Price Input - Right Field (Soft Amber/Orange) */
    .price-input {
        flex: 1 !important;
        text-align: left !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        border: 2px solid #fed7aa !important;
        border-radius: 8px !important;
        padding: 8px !important;
        transition: all 0.2s ease !important;
        color: #9a3412 !important;
        background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    }
    
    .price-input:hover {
        border-color: #fdba74 !important;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    }
    
    .price-input:focus {
        border-color: #fb923c !important;
        box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15) !important;
        outline: none !important;
        background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%) !important;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .products-table td:nth-child(2) {
        text-align: right;
        padding-right: 20px;
    }
    
    .price-grid {
        display: inline-grid;
        gap: 10px;
        padding: 5px;
        justify-content: end;
    }
    
    /* 2 Spalten default */
    .price-grid-3,
    .price-grid-4,
    .price-grid-5,
    .price-grid-6,
    .price-grid-7,
    .price-grid-8 {
        grid-template-columns: repeat(2, 130px);
    }
    
    .price-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e1e8ed;
    }
    
    .size-label {
        width: 100%;
        text-align: center;
    }
    
    .price-input {
        width: 100% !important;
        text-align: center;
    }
}

/* Optimierung für große Anzahl von Größen */
.price-grid.has-many-sizes {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* Hover-Effekt auf Desktop */
@media (min-width: 769px) {
    .price-cell {
        transition: all 0.2s;
        padding: 8px;
        border-radius: 6px;
    }
    
    .price-cell:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }
}

