.safetya-shop-modern {
    --shop-bg: #f7f8f2;
    --shop-surface: #ffffff;
    --shop-primary: #9bad3e;
    --shop-primary-dark: #7d902f;
    --shop-accent: #e96656;
    --shop-text: #253039;
    --shop-muted: #6a7680;
    --shop-border: #dfe6cf;
    max-width: 1240px;
    margin: 30px auto 60px;
    padding: 0 20px;
    color: var(--shop-text);
}

.safetya-shop-modern__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.safetya-shop-modern__title {
    color: var(--shop-text);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.safetya-shop-mobile-toggle {
    appearance: none;
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 10px 16px;
    text-transform: uppercase;
}

.safetya-shop-filters {
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(37, 48, 57, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
}

.safetya-shop-filters__search-wrap {
    flex: 1 1 280px;
    min-width: 240px;
}

.safetya-shop-filters__search {
    background: #fff;
    border: 1px solid #d1dbc2;
    border-radius: 12px;
    color: var(--shop-text);
    font-size: 15px;
    min-height: 44px;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.safetya-shop-filters__search:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(155, 173, 62, 0.2);
}

.safetya-shop-filters__categories {
    display: flex;
    flex: 3 1 520px;
    flex-wrap: wrap;
    gap: 10px;
}

.safetya-shop-category {
    appearance: none;
    background: #fff;
    border: 1px solid #d3dcc5;
    border-radius: 999px;
    color: #3b464e;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25px;
    min-height: 40px;
    padding: 8px 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.safetya-shop-category:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary-dark);
}

.safetya-shop-category.is-active {
    background: linear-gradient(140deg, var(--shop-primary), #b5c85b);
    border-color: var(--shop-primary);
    color: #fff;
}

.safetya-shop-results-meta {
    color: var(--shop-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.safetya-shop-results {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safetya-shop-card {
    background: var(--shop-surface);
    border: 1px solid #e5ead9;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.safetya-shop-card__image {
    align-items: center;
    background: linear-gradient(180deg, #f8f9f4 0%, #eef2e4 100%);
    display: flex;
    justify-content: center;
    min-height: 180px;
    padding: 14px;
}

.safetya-shop-card__image img {
    height: auto;
    max-height: 180px;
    object-fit: contain;
    width: auto;
}

.safetya-shop-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.safetya-shop-card__title {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
    min-height: 40px;
}

.safetya-shop-card__title a {
    color: #202b33;
}

.safetya-shop-card__price {
    color: var(--shop-text);
    font-size: 16px;
    font-weight: 700;
    min-height: 28px;
}

.safetya-shop-card__price del {
    color: var(--shop-muted);
    font-size: 13px;
}

.safetya-shop-card .button {
    align-self: flex-start !important;
    background: var(--shop-accent) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-top: auto !important;
    padding: 10px 2% !important;
    text-transform: uppercase !important;
    width: 96% !important;
    transition: background 0.2s ease !important;
}

.safetya-shop-card .button:hover {
    background: #cc4f41 !important;
}

.safetya-shop-loader {
    color: var(--shop-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 16px 4px;
    text-align: center;
}

.safetya-shop-empty {
    background: #fff;
    border: 1px dashed #d7dfc8;
    border-radius: 14px;
    color: #4e5a63;
    font-size: 15px;
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    text-align: center;
}

@media screen and (max-width: 1100px) {
    .safetya-shop-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .safetya-shop-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .safetya-shop-mobile-toggle {
        display: inline-flex;
    }

    .safetya-shop-filters {
        background: transparent;
        border: 0;
        box-shadow: none;
        bottom: 16px;
        left: 16px;
        margin: 0;
        max-width: calc(100vw - 32px);
        padding: 0;
        position: fixed;
        transform: translateY(calc(100% + 20px));
        transition: transform 0.25s ease;
        width: 360px;
        z-index: 999;
    }

    .safetya-shop-filters.is-open {
        transform: translateY(0);
    }

    .safetya-shop-filters__search-wrap,
    .safetya-shop-filters__categories {
        background: var(--shop-bg);
        border: 1px solid var(--shop-border);
        border-radius: 14px;
        box-shadow: 0 14px 34px rgba(37, 48, 57, 0.2);
        flex: 1 1 100%;
        min-width: 0;
        padding: 12px;
    }
}

@media screen and (max-width: 500px) {
    .safetya-shop-modern {
        padding: 0 12px;
    }

    .safetya-shop-modern__title {
        font-size: 26px;
    }

    .safetya-shop-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .safetya-shop-results {
        grid-template-columns: 1fr;
    }

    .safetya-shop-filters {
        left: 10px;
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
    }
}
