.shopping-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}

.recipe-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.recipe-checkbox {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.recipe-checkbox:hover {
    border-color: #2a5f2a;
    background: #f5f5f5;
}

.recipe-checkbox.selected {
    border-color: #2a5f2a;
    background: #e8f5e9;
}

.recipe-checkbox label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.recipe-portions {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.recipe-portions.hidden {
    display: none;
}

.recipe-portions label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.recipe-portions input {
    width: 45px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    pointer-events: auto;
}

.recipe-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.shopping-list {
    display: grid;
    gap: 8px;
}

.ingredient-item {
    padding: 10px 12px;
    background: #f9f9f9;
    border-left: 3px solid #2a5f2a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ingredient-item:hover {
    background: #f0f0f0;
}

.ingredient-item.unknown {
    border-left-color: #ff9800;
    background: #fff8f0;
}

.ingredient-item.unknown:hover {
    background: #ffe8cc;
}

.ingredient-info {
    flex: 1;
}

.ingredient-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.ingredient-sources {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.ingredient-source {
    display: inline-block;
    background: white;
    padding: 2px 6px;
    margin-right: 4px;
    margin-top: 2px;
    border-radius: 2px;
    border: 1px solid #ddd;
}

.ingredient-unit {
    min-width: 50px;
    text-align: right;
    color: #666;
    font-size: 13px;
}

.discount-badge {
    display: inline-flex;
    flex-direction: column;
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #e65100;
}

.discount-shop {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 10px;
    margin-bottom: 2px;
}

.discount-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-now {
    font-weight: 700;
    color: #d32f2f;
    font-size: 14px;
}

.price-before {
    text-decoration: line-through;
    color: #888;
    font-size: 11px;
}

.discount-info {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.ingredient-item.checked {
    opacity: 0.5;
    background: #e8f5e9;
}

.ingredient-item.checked .ingredient-name {
    text-decoration: line-through;
}

.empty-state-shopping {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.empty-state-shopping svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state-shopping p {
    margin: 0;
    font-size: 14px;
}

.print-btn {
    background: #2a5f2a;
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.print-btn:hover {
    background: #1e4620;
}

.actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

@media print {
    header, .actions, .recipe-selector, .recipe-checkbox {
        display: none;
    }

    .ingredient-checkbox {
        display: none;
    }

    body {
        background: white;
    }

    .shopping-list {
        break-inside: avoid;
    }
}
