/* My Green List page. BEM block: sg-gl. Mobile first. */

.sg-gl {
    padding: 32px 0 64px;
}

.sg-gl__hero {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--sg-line);
    margin-bottom: 32px;
}

.sg-gl__title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sg-gl__scan-link {
    display: inline-block;
}

.sg-gl__empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--sg-muted);
}

.sg-gl__empty-text {
    margin: 0 0 24px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.sg-gl__section {
    margin-bottom: 40px;
}

.sg-gl__section-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 8px;
}

.sg-gl__section-title--green {
    background-color: var(--sg-green);
    color: #ffffff;
}

.sg-gl__section-title--amber {
    background-color: #E8A000;
    color: #ffffff;
}

.sg-gl__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-gl__card {
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius);
    padding: 16px 18px;
    background-color: var(--sg-bg);
    box-shadow: var(--sg-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-gl__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sg-gl__product-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.sg-gl__remove-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--sg-line);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sg-muted);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.sg-gl__remove-btn:hover {
    border-color: var(--sg-red);
    color: var(--sg-red);
}

.sg-gl__headline {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sg-green);
}

.sg-gl__card--amber .sg-gl__headline {
    color: #c48f00;
}

.sg-gl__reason {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--sg-muted);
}

.sg-gl__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
}

.sg-gl__tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: var(--sg-green-soft);
    color: var(--sg-green);
}

.sg-gl__date {
    font-size: 0.82rem;
    color: var(--sg-muted);
}

@media (min-width: 48rem) {
    .sg-gl__card {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .sg-gl__card-body {
        flex: 1;
    }

    .sg-gl__card-actions {
        flex-shrink: 0;
    }
}
