.products-shell,
.products-admin {
    display: grid;
    gap: 1.25rem;
}

.products-heading,
.products-admin__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.products-heading h1,
.products-admin__heading h1 {
    margin: 0;
}

.products-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, .25fr) minmax(0, 1fr);
}

.product-panel,
.product-card {
    background: #fff;
    border: 1px solid #d8dfdc;
    border-radius: 8px;
    padding: 1rem;
}

.category-list,
.product-grid,
.option-list,
.product-form {
    display: grid;
    gap: .85rem;
}

.category-list a {
    border-bottom: 1px solid #e2e8e5;
    color: #17352b;
    display: grid;
    gap: .2rem;
    padding: .55rem 0;
    text-decoration: none;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
    display: grid;
    gap: .7rem;
}

.product-card h2 {
    margin: 0;
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.product-card__meta span {
    background: #eef4f1;
    border: 1px solid #c8d8d1;
    border-radius: 999px;
    color: #28473c;
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .5rem;
}

.product-filters,
.admin-actions,
.inline-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: end;
}

.product-filters label,
.product-form label,
.inline-grid label {
    display: grid;
    gap: .25rem;
    min-width: 150px;
}

.checkbox-line {
    align-items: center;
    display: flex !important;
    gap: .45rem;
}

.checkbox-line input {
    width: auto;
}

.button-link,
.products-admin button,
.products-shell button {
    border: 1px solid #b9c7c0;
    border-radius: 6px;
    background: #fff;
    color: #17352b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .65rem .8rem;
    text-align: center;
    text-decoration: none;
}

.button-link:hover,
.products-admin button:hover,
.products-shell button:hover {
    background: #e7f3ee;
}

.product-dl {
    display: grid;
    gap: .25rem .75rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.product-dl dt {
    color: #60746c;
    font-weight: 700;
}

.product-dl dd {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

.products-admin table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.products-admin th,
.products-admin td {
    border-bottom: 1px solid #d8dfdc;
    padding: .7rem;
    text-align: left;
    vertical-align: top;
}

.block {
    display: block;
}

.muted {
    color: #687772;
}

@media (max-width: 760px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-heading,
    .products-admin__heading {
        align-items: start;
        flex-direction: column;
    }
}
