/* ===== Product Grid (pg2) ===== */
.pg2-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pg-header {
    margin-bottom: 40px;
    width: 100%;
}

.pg-eyebrow {
    display: block;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 11px;
    line-height: 15.4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.54px;
    color: #0D1117;
    margin-bottom: 16px;
}

.pg-title {
    font-family: "Archivo Black", sans-serif;
    font-size: 40px;
    line-height: 46px;
    font-weight: 400;
    letter-spacing: -0.8px;
    color: #0D1117;
    margin: 0;
    text-wrap: balance;
}

.pg-desc {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 300;
    color: #3F3F3F;
    margin-top: 18px;
}

.pg-grid {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px #E2E2DD;
}

.pg-card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 0 0 0.5px #E2E2DD;
    background-color: #FFFFFF;
    background-image:
        linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Let the final row expand when the card count is uneven */
.pg-card:last-child:nth-child(3n + 1) {
    flex-basis: 100%;
    max-width: 100%;
}

.pg-card:nth-last-child(2):nth-child(3n + 1),
.pg-card:nth-last-child(1):nth-child(3n + 2) {
    flex-basis: 50%;
    max-width: 50%;
}

.pg-card-body-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

.pg-card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    flex-shrink: 0;
}

.pg-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-card-content-inner {
    padding: 18px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.pg-card-tag {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 14px 0;
    color: #4F7A38;
    background: transparent;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 11px;
    line-height: 15.4px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 0;
    border: none;
}

.pg-card-title {
    font-family: "Archivo Black", sans-serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: #0D1117;
    margin: 0 0 14px 0;
}

.pg-card-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 27.2px;
    font-weight: 400;
    color: #3F3F3F;
    margin: 0 0 22px 0;
}

.pg-card-header-mobile {
    display: none;
}

.pg-card-toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #5D8D42;
    flex-shrink: 0;
}

.pg-icon-minus {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pg-header {
        margin-bottom: 26px;
    }

    .pg-title {
        font-size: 26px;
        line-height: 30px;
        letter-spacing: -0.4px;
    }

    .pg-eyebrow {
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 1.2px;
        margin-bottom: 12px;
    }

    .pg-desc {
        font-size: 15px;
        line-height: 26px;
    }

    .pg-card {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .pg-card:last-child:nth-child(2n + 1) {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .pg-header {
        margin-bottom: 24px;
    }

    .pg-title {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.4px;
    }

    .pg-eyebrow {
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 1.2px;
        margin-bottom: 12px;
    }

    .pg-desc {
        font-size: 15px;
        line-height: 26px;
    }

    .pg-grid {
        display: block;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .pg-card {
        flex: 0 0 100%;
        flex-basis: 100%;
        width: 100%;
        display: block;
        max-width: 100%;
        border-radius: 6px;
        box-shadow: 0 0 0 1px #E2E2DD;
        margin-bottom: 8px;
        overflow: hidden;
    }

    .pg-card:last-child:nth-child(3n + 1),
    .pg-card:nth-last-child(2):nth-child(3n + 1),
    .pg-card:nth-last-child(1):nth-child(3n + 2),
    .pg-card:last-child:nth-child(2n + 1) {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }

    .pg-card-header-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px 0 0;
        min-height: 76px;
        cursor: pointer;
        user-select: none;
        overflow: hidden;
    }

    .pg-mobile-thumbnail {
    width: 76px;
    height: 76px;
    background-size: cover;
    background-position: center center;
    border-radius: 6px 0 0 6px;
    flex-shrink: 0;
}

    .pg-card-title-mobile {
        font-family: "Archivo Black", sans-serif;
        font-size: 16px;
        line-height: 22px;
        font-weight: 400;
        letter-spacing: -0.08px;
        margin: 0;
        flex-grow: 1;
        color: #0D1117;
    }

    .pg-card-body-wrapper {
        display: none;
        padding: 16px;
    }

    .pg-card.is-active .pg-card-body-wrapper {
        display: flex;
    }

    .pg-card.is-active .pg-icon-plus {
        display: none;
    }

    .pg-card.is-active .pg-icon-minus {
        display: inline;
    }

    .pg-card-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 10px;
    }

    .pg-card-text {
        font-size: 15px;
        line-height: 25.5px;
        margin-bottom: 16px;
    }
}


/* Mat-grid-panel styling (mirrors produktkort-pg1's rule so it also loads on pages using pg2, e.g. Forpackningar page) */
.mat-grid-panel,
.mat-grid-panel .elementor-widget-container {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #D9D9D2;
    border-radius: 8px;
    overflow: hidden;
}
.mat-grid-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}
.mat-grid-panel table {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 !important;
    background: transparent;
    border: none !important;
    border-collapse: collapse;
}
.mat-grid-panel td {
    background: transparent !important;
    border: none !important;
}
.mat-grid-panel td:first-child {
    border-right: 1px solid #D9D9D2 !important;
}
.mat-grid-panel tr:not(:last-child) td {
    border-bottom: 1px solid #D9D9D2 !important;
}
