.jerksp-products {
    display: block;
    margin: 2rem auto;
    color: inherit;
}

@font-face {
    font-family: "Vinyl Regular";
    src: url("../fonts/Vinyl-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.jerksp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.jerksp-filter-search input[type="search"] {
    min-width: 220px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.jerksp-filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jerksp-filter-categories label {
    font-size: 12px;
	display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #f8f8f8;
    cursor: pointer;
    transition: background 0.2s ease;
}

.jerksp-filter-categories input[type="checkbox"] {
    accent-color: #0073aa;
}

.jerksp-filter-categories label:hover {
    background: #f0f6fc;
}

.jerksp-products-grid {
    position: relative;
    min-height: 80px;
}

.jerksp-products-grid.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.jerksp-products-grid.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    border: 3px solid #0073aa;
    border-right-color: transparent;
    animation: jerksp-spin 0.75s linear infinite;
    z-index: 2;
}

@keyframes jerksp-spin {
    to {
        transform: rotate(360deg);
    }
}

.jerksp-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.jerksp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.jerksp-card-media {
    position: relative;
    padding-top: 66%;
    background: #fff;
}

.jerksp-card-media img,
.jerksp-card-media picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jerksp-placeholder {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px dashed #e5e5e5;
}

.jerksp-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem 1.5rem;
    flex: 1 1 auto;
}

.jerksp-card-title {
    margin: 0;
    font-size: 2.3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #6E8074;
    font-family: "Vinyl Regular", serif;
}

.jerksp-card-info {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1 1 auto;
}

.jerksp-card-info p {
    margin: 0 0 0.75rem;
}

.jerksp-card-info p:last-child {
    margin-bottom: 0;
}

.jerksp-info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border: 0px solid #0073aa;
    border-radius: 999px;
    background: #0073aa;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: auto;
    align-self: center;
}

.jerksp-info-button:hover,
.jerksp-info-button:focus-visible {
    background: #E9CD75;
}

.jerksp-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.jerksp-ingredients {
    margin-top: -0.3rem;
    padding: 0.85rem 0.75rem;
    background: #f7fbff;
    border: 0px solid #E9CD75;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.jerksp-ingredient-list {
    margin: 0;
    padding-left: 1.1rem;
}

.jerksp-ingredient-list li {
    margin-bottom: 0.35rem;
}

.jerksp-ingredient-list li:last-child {
    margin-bottom: 0;
}

.jerksp-no-results {
    margin: 0;
    padding: 1.5rem;
    background: #fff0f0;
    border: 1px solid #ffd7d7;
    border-radius: 10px;
    text-align: center;
}

body.jerksp-modal-open {
    overflow: hidden;
}

.jerksp-ingredients-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(26, 32, 44, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.jerksp-ingredients-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.jerksp-ingredients-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: min(80vh, 520px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.jerksp-ingredients-modal.is-open .jerksp-ingredients-modal__panel {
    transform: translateY(0) scale(1);
}

.jerksp-ingredients-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 0;
    background: #f0f4f8;
    color: #2f3b47;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.jerksp-ingredients-modal__close:hover,
.jerksp-ingredients-modal__close:focus-visible {
    background: #e2e8f0;
}

.jerksp-ingredients-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.jerksp-ingredients-modal__title {
    margin: 0 0 0.9rem;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #1f2937;
    font-family: "Vinyl Regular", serif;
}

.jerksp-ingredients-modal__content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2f3b47;
}

@media (max-width: 600px) {
    .jerksp-filter-categories {
        width: 100%;
    }

    .jerksp-filter-search input[type="SÃ¶k"] {
        flex: 1 1 100%;
    }
}
