/* Nemster shop */

.shop-hero .page-shell {
    max-width: 46rem;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.shop-toolbar input[type="search"],
.shop-toolbar input:not([type="checkbox"]),
.shop-toolbar select {
    min-width: 12rem;
    flex: 1 1 12rem;
}

.shop-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.shop-category-chips a {
    padding: 0.4rem 0.8rem;
    border: 1px solid #d5e2ef;
    border-radius: 0.4rem;
    color: #0b376d;
    background: #fff;
    text-decoration: none;
    font-size: 0.92rem;
}

.shop-category-chips a.active,
.shop-category-chips a:hover {
    border-color: #0b376d;
    background: #0b376d;
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dce7f1;
    border-radius: 0.55rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 38, 64, 0.06);
}

.shop-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e8eef5;
    overflow: hidden;
}

.shop-card-media img,
.shop-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-placeholder,
.shop-placeholder--large {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem;
    background:
        linear-gradient(145deg, rgba(11, 55, 109, 0.92), rgba(20, 98, 150, 0.85)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 50%);
    color: #fff;
}

.shop-placeholder strong,
.shop-placeholder--large strong {
    font-family: "Sora", Arial, sans-serif;
    font-size: 1.05rem;
}

.shop-placeholder--large {
    min-height: 18rem;
    border-radius: 0.4rem;
}

.shop-card-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.shop-card-cat {
    color: #627d98;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-card-body h3 {
    margin: 0;
    font-family: "Sora", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
}

.shop-card-body h3 a {
    color: #0b376d;
    text-decoration: none;
}

.shop-card-body p {
    margin: 0;
    color: #4a6078;
    font-size: 0.95rem;
}

.shop-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    margin-top: auto;
    padding-top: 0.35rem;
}

.shop-card-meta strong {
    color: #0b376d;
    font-family: "Sora", Arial, sans-serif;
}

.shop-card-meta span,
.shop-availability {
    color: #627d98;
    font-size: 0.9rem;
}

.shop-card .button-row {
    margin-top: 0.65rem;
}

.shop-empty {
    text-align: center;
    padding: 2rem 1.25rem;
}

.shop-detail {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.1rem;
    align-items: start;
}

.shop-price {
    margin: 0;
    font-family: "Sora", Arial, sans-serif;
    font-size: 1.55rem;
    color: #0b376d;
}

.shop-description {
    margin-top: 1rem;
    color: #24384f;
    line-height: 1.55;
}

.shop-pagination {
    margin-top: 1.5rem;
}

.shop-form-row {
    display: grid;
    grid-template-columns: 1fr 8rem;
    gap: 0.75rem;
}

.shop-form-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #e6eef6;
}

.shop-form-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.shop-form-heading {
    margin: 0 0 0.35rem;
    font-family: "Sora", Arial, sans-serif;
    font-size: 1.05rem;
    color: #0b376d;
}

.shop-field-help {
    margin: 0 0 0.85rem;
    color: #627d98;
    font-size: 0.94rem;
    line-height: 1.45;
}

.shop-form-section .req {
    color: #c0392b;
}

.shop-howto-panel .shop-howto-list,
.shop-howto-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    color: #24384f;
    line-height: 1.55;
}

.shop-howto-list li + li {
    margin-top: 0.45rem;
}

.shop-howto-banner {
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
    background: #f3f8fd;
    border: 1px solid #d5e4f2;
    color: #24384f;
    line-height: 1.45;
}

.shop-howto-banner a {
    color: #0b376d;
    font-weight: 600;
}

.shop-admin-preview {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem;
    border: 1px solid #dce7f1;
    border-radius: 0.5rem;
    background: #f7fbff;
    max-width: 280px;
}

.shop-preview-label {
    margin: 0 0 0.55rem;
    color: #627d98;
    font-size: 0.88rem;
}

.shop-admin-preview img {
    width: 100%;
    max-width: 240px;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    display: block;
    background: #e8eef5;
}

.admin-product-table-wrap {
    overflow-x: auto;
    border: 1px solid #dce7f1;
    border-radius: 0.55rem;
    background: #fff;
}

.admin-product-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-product-table th,
.admin-product-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e6eef6;
    text-align: left;
    vertical-align: top;
}

.admin-product-table th {
    background: #f5f8fb;
    color: #0b376d;
    font-family: "Sora", Arial, sans-serif;
    font-weight: 600;
}

.admin-product-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.admin-product-actions form {
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 960px) {
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-form-row {
        grid-template-columns: 1fr;
    }
}
