.pricelist-display {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
}

.pricelist-clean {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.price-item {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.price-item:hover {
    background-color: #f8f9fa;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.has-image {
    gap: 1.25rem;
}

.price-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.price-text-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.price-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-value-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.price-from-prefix {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.price-unit {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.pricelist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.price-card.has-image {
    padding-top: 1.5rem;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.card-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.25rem;
}

.card-unit {
    font-size: 0.9rem;
    color: #6c757d;
}

.pricelist-minimal {
    background: #ffffff;
    border-radius: 12px;
}

.price-line {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    gap: 1rem;
}

.price-line:last-child {
    border-bottom: none;
}

.price-line.has-image {
    gap: 1.25rem;
}

.price-line-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.price-line-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.price-line-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-line-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.price-line-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

.price-line-unit {
    font-size: 0.85rem;
    color: #6c757d;
}

.price-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.price-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-item-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.price-item-image.no-image .image-placeholder {
    font-size: 1.5rem;
    opacity: 0.4;
}

.price-card .price-item-image {
    width: 100%;
    height: 136px;
    margin: 0 auto 1rem;
}

.price-card .price-item-image.no-image {
    width: 80px;
    height: 80px;
}

.price-line .price-item-image {
    width: 50px;
    height: 50px;
}

.price-line .price-item-image.no-image {
    width: 50px;
    height: 50px;
}

.price-item-description-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
}

.price-item-description-toggle:hover {
    background: #495057;
    transform: scale(1.05);
}

.pricelist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.pricelist-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.pricelist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
}

.pricelist-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.pricelist-modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.pricelist-modal-close:hover {
    background: #f8f9fa;
}

.pricelist-modal-body {
    padding: 0 2rem 2rem;
    flex: 1;
    overflow-y: auto;
}

.pricelist-modal-footer {
    padding: 12px;
    text-align: right;
}

.description-viewer-content {
    line-height: 1.6;
    color: #495057;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.pricelist-load-more {
    text-align: center;
    margin-top: 3rem;
}

.pricelist-load-more button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pricelist-load-more button:hover {
    background: #333;
}

.pricelist-hidden-item {
    display: none !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .price-item,
    .price-line {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .price-item-content,
    .price-line-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .price-text-content,
    .price-line-text {
        width: 100%;
    }
    
    .price-value-section,
    .price-line-info {
        align-self: flex-end;
    }
    
    .pricelist-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-card {
        padding: 1.25rem;
    }
    
    .pricelist-modal {
        padding: 1rem;
    }
    
    .pricelist-modal-content {
        max-height: 85vh;
    }
    
    .pricelist-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .pricelist-modal-body {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .price-item-image {
        width: 50px;
        height: 50px;
    }
    
    .price-card .price-item-image {
        width: 70px;
        height: 70px;
    }
    
    .price-line .price-item-image {
        width: 40px;
        height: 40px;
    }
    
    .price-value {
        font-size: 1.1rem;
    }
    
    .card-price {
        font-size: 1.3rem;
    }
    
    .price-line-value {
        font-size: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    .pricelist-display {
        color: #e9ecef;
    }
    
    .pricelist-clean,
    .pricelist-minimal,
    .price-card {
        background: #1a1a1a;
        color: #e9ecef;
    }
    
    .price-item,
    .price-line {
        border-bottom-color: #333;
    }
    
    .price-item:hover {
        background-color: #2d2d2d;
    }
    
    .price-name,
    .card-title,
    .price-line-name,
    .price-value,
    .card-price,
    .price-line-value {
        color: #e9ecef;
    }
    
    .price-unit,
    .price-from-prefix,
    .card-unit,
    .price-line-unit {
        color: #adb5bd;
    }
    
    .price-item-image {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .price-card {
        border-color: #333;
    }
    
    .price-card:hover {
        border-color: #444;
    }
    
    .card-price-section {
        border-top-color: #333;
    }
    
    .pricelist-modal-content {
        background: #1a1a1a;
        color: #e9ecef;
    }
    
    .pricelist-modal-title {
        color: #e9ecef;
    }
    
    .description-viewer-content {
        color: #adb5bd;
    }
    
    .pricelist-modal-close {
        color: #adb5bd;
    }
    
    .pricelist-modal-close:hover {
        background: #2d2d2d;
    }
    
    .pricelist-load-more button {
        background: #333;
    }
    
    .pricelist-load-more button:hover {
        background: #444;
    }
}

@media print {
    .pricelist-clean,
    .pricelist-cards,
    .pricelist-minimal {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    .price-item-description-toggle {
        display: none;
    }
    
    .price-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}