/* ============================================================================
   ENSKILD PRODUKTSIDA — shop-single.css
   Ny design för /shop/ (feature-flaggad).
   ============================================================================ */


/* === 1. FOUC & GLOBAL WRAPPER === */

.sp-ss-hero {
    opacity: 1 !important;
    transition: opacity 0.15s ease;
}

body:has(.sp-ss-page-layout) {
    background-image: none !important;
    background-color: #EEEAE4 !important;
}

.sp-ss {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 0 0 60px;
    margin-bottom: 40px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3a3a3a;
    line-height: 1.5;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.page-wrapper:has(.sp-ss) {
    display: block;
}

.sp-ss-inner {
    max-width: 823px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-ss *,
.sp-ss *::before,
.sp-ss *::after,
.sp-ss-hero *,
.sp-ss-hero *::before,
.sp-ss-hero *::after {
    box-sizing: border-box;
}


/* === 2. SIDLAYOUT (produkt + sidofält) === */

.sp-ss-page-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding-top: 20px;
}

.sp-ss-page-main {
    flex: 1;
    min-width: 0;
    max-width: 880px;
}

.sp-ss-sidebar {
    flex: 0 0 280px;
    align-self: flex-start;
}

.sp-ss-sidebar-inner {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}


/* === 3. BRÖDSMULOR (visuellt dolda, kvar i HTML för SEO) === */

body:has(.sp-ss-page-layout) .page-header {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* === 4. HERO-SEKTION === */

.sp-ss-hero {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    background: #fff;
}

.sp-ss-hero-image {
    position: relative;
    overflow: hidden;
    max-height: 480px;
}

.sp-ss-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sp-ss-hero-info {
    background: #fff;
    max-width: 823px;
    margin: 0 auto;
    padding: 28px 40px 24px;
}


/* === 5. BADGES === */

/* Gemensam bas */
.sp-ss-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    z-index: 1;
}

/* AIP Godkänd — övre vänster */
.sp-ss-badge--aip {
    top: 16px;
    left: 16px;
    background: rgba(240, 245, 249, 0.95);
    color: #587B99;
}

/* Paleo — övre vänster */
.sp-ss-badge--paleo {
    top: 16px;
    left: 16px;
    background: rgba(248, 245, 242, 0.95);
    color: #8C857A;
}

/* Vi rekommenderar — övre höger */
/* Reko-badge under titel */
.sp-ss-reko-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: #FFFDE7;
    color: #A67B00;
    border: 1px solid #F5E8B7;
    border-radius: 50px;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

/* Nytt — under AIP/Paleo (om den finns), annars övre vänster */
.sp-ss-badge--nytt {
    top: 16px;
    left: 16px;
    background: rgba(255, 253, 231, 0.95);
    color: #A67B00;
}

/* Nytt-badge förskjuts nedåt om AIP/Paleo-badge finns */
.sp-ss-badge--aip ~ .sp-ss-badge--nytt,
.sp-ss-badge--paleo ~ .sp-ss-badge--nytt {
    top: 44px;
}


/* === 6. TITEL === */

.sp-ss-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
    line-height: 1.25;
}


/* === 7. META-RAD === */

.sp-ss-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.sp-ss-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.sp-ss-meta-item svg {
    flex-shrink: 0;
    color: #8aaa8e;
}

/* Varumärke i hero */
.sp-ss-meta-brand {
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 50px;
    font-family: 'Proxima Nova Semibold', proxima_nova_semibold, 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* Prisnivå i hero */
.sp-ss-meta-price {
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 50px;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3D5F42;
    letter-spacing: 2px;
}

/* Kategoritaggar i meta */
.sp-ss-meta-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-ss-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f4f1ec;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sp-ss-tag:hover {
    background: #e8e4dd;
    color: #3D5F42;
}

/* Separator mellan meta-items */
.sp-ss-meta-item + .sp-ss-meta-item::before {
    content: '·';
    margin-right: 10px;
    color: #ccc;
    font-size: 14px;
    font-weight: 700;
    display: none;
}

/* Taggar-meta behöver ingen separator */
.sp-ss-meta-tags::before {
    display: none !important;
}


/* === 8. INGRESS === */

.sp-ss-ingress {
    margin-top: 12px;
}

.sp-ss-ingress p {
    font-family: proxima_nova_regular, 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 12px;
}

.sp-ss-ingress p:last-child {
    margin-bottom: 0;
}

.sp-ss-ingress a,
.sp-ss-product-desc a {
    color: #3D5F42;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-ss-ingress a:hover,
.sp-ss-product-desc a:hover {
    color: #2c2c2c;
}


/* === 9. KÖPKNAPPAR === */

.sp-ss-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sp-ss-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #3D5F42;
    color: #fff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
}

.sp-ss-buy-btn:hover {
    background: #2f4a33;
    transform: translateY(-1px);
    color: #fff !important;
}

.sp-ss-buy-btn svg {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.7;
}

/* Sekundär köpknapp — outline */
.sp-ss-buy-btn--secondary {
    background: transparent;
    color: #3D5F42 !important;
    border: 1.5px solid #3D5F42;
}

.sp-ss-buy-btn--secondary:hover {
    background: #3D5F42;
    color: #fff !important;
}

/* Tillfälligt ej tillgänglig */
.sp-ss-unavailable {
    margin-top: 16px;
    padding: 12px 18px;
    background: #f9f7f3;
    border: 1px solid #e8e4dd;
    border-radius: 8px;
}

.sp-ss-unavailable p {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #888;
    margin: 0;
    font-style: italic;
}


/* Affiliate-disclaimer under meta-rad */
.sp-ss-affiliate-note {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 16px 0 0;
    padding: 12px 0;
    border-top: 1px dotted #e0dcd6;
    border-bottom: 1px dotted #e0dcd6;
    font-style: italic;
    line-height: 1.5;
}


/* === 9b. RABATTBANNER === */

.sp-ss-discount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 18px;
    background: rgba(61, 95, 66, 0.06);
    border: 1px solid rgba(61, 95, 66, 0.15);
    border-radius: 10px;
}

.sp-ss-discount-text {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 14px;
    color: #3D5F42;
}

.sp-ss-discount-code {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3D5F42;
    background: rgba(61, 95, 66, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    border: 1px dashed rgba(61, 95, 66, 0.3);
    user-select: all;
    cursor: text;
}

/* Rabattinfo under rubrik i produktkort */
.sp-ss-discount--inline {
    margin: 4px 0 8px;
    padding: 6px 12px;
    background: rgba(61, 95, 66, 0.04);
    border: 1px solid rgba(61, 95, 66, 0.12);
    border-radius: 8px;
    align-self: flex-start;
}

.sp-ss-discount--inline .sp-ss-discount-text {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 14px;
    color: #3D5F42;
}

.sp-ss-discount--inline .sp-ss-discount-code {
    font-size: 14px;
    padding: 4px 12px;
}

@media (max-width: 600px) {
    .sp-ss-discount {
        flex-wrap: wrap;
    }
}


/* === 10. HÖJDPUNKTER-BOX === */

.sp-ss-highlights {
    background: #f9f7f3;
    border: 1px solid #e8e4dd;
    border-left: 3px solid #3D5F42;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 0 0 32px;
}

.sp-ss-highlights-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 14px;
    line-height: 1.3;
}

.sp-ss-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-ss-highlights-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 16px;
    color: #4D524D;
    line-height: 1.5;
}

.sp-ss-highlights-list li:last-child {
    margin-bottom: 0;
}

.sp-ss-highlights-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 15px;
    font-weight: 700;
    color: #3D5F42;
    line-height: 1.5;
}


/* === 10b. REKOMMENDERADE PRODUKTER (RFG-kort) === */

.sp-ss-products {
    margin: 0 0 32px;
}

.sp-ss-products-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px;
    line-height: 1.3;
}

/* Snabbnavigation vid 5+ produkter */
.sp-ss-quicklinks {
    margin: 0 0 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid #e8e4dd;
}

.sp-ss-quicklinks-label {
    display: block;
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
}

.sp-ss-quicklinks-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-ss-quicklinks-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px 7px 16px;
    background: #f9f7f3;
    color: #3D5F42;
    border: 1px solid #e8e4dd;
    border-radius: 50px;
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sp-ss-quicklinks-pill::after {
    content: '';
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%233D5F42' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.sp-ss-quicklinks-pill:hover {
    background: #3D5F42;
    color: #fff;
    border-color: #3D5F42;
}

.sp-ss-quicklinks-pill:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E");
    opacity: 1;
}

.sp-ss-product-card {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 12px;
    scroll-margin-top: 24px;
    background: #f9f7f3;
    border: 1px solid #e8e4dd;
    border-radius: 12px;
    transition: border-color 0.15s ease;
}

.sp-ss-product-card:last-child {
    margin-bottom: 0;
}

.sp-ss-product-card:hover {
    border-color: #d0ccc5;
}

.sp-ss-product-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e4dd;
    align-self: flex-start;
}

.sp-ss-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-ss-product-info {
    flex: 1;
    min-width: 0;
}

.sp-ss-product-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sp-ss-product-name {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
}

.sp-ss-product-desc {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.sp-ss-product-desc p {
    margin: 0 0 10px;
}

.sp-ss-product-desc p:last-child {
    margin-bottom: 0;
}

.sp-ss-product-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-ss-product-price {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 50px;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3D5F42;
    letter-spacing: 2px;
}

.sp-ss-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #3D5F42;
    color: #fff !important;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sp-ss-product-btn:hover {
    background: #2f4a33;
    transform: translateY(-1px);
    color: #fff !important;
}

.sp-ss-product-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Mobil: stapla produktkort vertikalt */
@media (max-width: 600px) {
    .sp-ss-product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 20px;
    }

    .sp-ss-product-thumb {
        width: 100%;
        height: 160px;
    }

    .sp-ss-product-footer {
        flex-direction: row;
        justify-content: space-between;
    }

    .sp-ss-product-btn {
        flex: 1;
        justify-content: center;
    }
}


/* === 10c. RELATERADE RECEPT === */

.sp-ss-recipes {
    margin: 32px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid #e8e4dd;
}

.sp-ss-recipes-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px;
    line-height: 1.3;
}

.sp-ss-recipes-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sp-ss-recipe-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f9f7f3;
    border: 1px solid #e8e4dd;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.sp-ss-recipe-item:hover {
    border-color: #d0ccc5;
}

.sp-ss-recipe-item--locked {
    opacity: 0.85;
}

.sp-ss-recipe-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0ede8;
}

.sp-ss-recipe-info {
    padding: 10px 12px 12px;
}

.sp-ss-recipe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge på receptbild (matchar receptarkivets sp-rc-badge) */
.sp-ss-recipe-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    z-index: 1;
}

.sp-ss-recipe-badge--aip {
    background: rgba(240, 245, 249, 0.95);
    color: #587B99;
}

.sp-ss-recipe-badge--paleo {
    background: rgba(248, 245, 242, 0.95);
    color: #8C857A;
}

/* Lås-ikon på receptbild */
.sp-ss-recipe-thumb .sp-ss-recipe-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.sp-ss-recipe-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.sp-ss-recipe-item:hover .sp-ss-recipe-title {
    color: #3D5F42;
}

.sp-ss-recipe-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.sp-ss-recipe-meta svg {
    flex-shrink: 0;
    color: #8aaa8e;
}

.sp-ss-recipe-meta .sp-ss-sidebar-badge {
    display: none;
}

/* Medlemskaps-CTA under receptlistan */
.sp-ss-recipes-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #faf8f5 0%, #f3efe9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 10px;
}

.sp-ss-recipes-cta-text {
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif;
    font-size: 14px;
    color: #555;
}

.sp-ss-recipes-cta-link {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3D5F42;
    text-decoration: none;
    white-space: nowrap;
}

.sp-ss-recipes-cta-link:hover {
    color: #2f4a33;
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 768px) {
    .sp-ss-recipes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil: lista istället för grid */
@media (max-width: 600px) {
    .sp-ss-recipes-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .sp-ss-recipe-item {
        flex-direction: row;
        align-items: center;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 0;
    }

    .sp-ss-recipe-item:last-child {
        border-bottom: none;
    }

    .sp-ss-recipe-thumb {
        width: 90px;
        height: 65px;
        border-radius: 10px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .sp-ss-recipe-badge,
    .sp-ss-recipe-thumb .sp-ss-recipe-lock {
        display: none;
    }

    .sp-ss-recipe-info {
        padding: 0;
        margin-left: 12px;
    }

    .sp-ss-recipe-meta .sp-ss-sidebar-badge {
        display: inline-block;
    }

    .sp-ss-recipes-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* === 11. ARTIKELINNEHÅLL === */

.sp-ss-content {
    padding-top: 0;
    font-family: proxima_nova_regular, 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.56;
    color: #4D524D;
    letter-spacing: 0.01em;
}

/* Topp-margin om höjdpunkter finns ovanför */
.sp-ss-highlights + .sp-ss-content {
    padding-top: 0;
}

.sp-ss-content h2 {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 40px 0 16px;
    line-height: 1.25;
}

.sp-ss-content h3 {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 32px 0 12px;
    line-height: 1.3;
}

.sp-ss-content h4 {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 24px 0 8px;
    line-height: 1.3;
}

.sp-ss-content p {
    margin: 0 0 16px;
}

.sp-ss-content a {
    color: #3D5F42;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-ss-content a:hover {
    color: #2c2c2c;
}

.sp-ss-content strong,
.sp-ss-content b {
    font-family: 'Proxima Nova Semibold', proxima_nova_semibold, 'Proxima Nova', sans-serif;
    font-weight: 600;
    color: #49412A;
}

.sp-ss-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
    display: block;
}

.sp-ss-content blockquote {
    margin: 24px 0;
    padding: 20px 30px !important;
    border-left: 5px solid #299471 !important;
    background: rgba(41, 148, 113, 0.05) !important;
    border-radius: 0 !important;
    font-family: proxima_nova_regular, 'Proxima Nova', sans-serif !important;
    font-style: italic !important;
    font-size: inherit !important;
    line-height: 1.6 !important;
    color: #4d524d !important;
}

.sp-ss-content blockquote p {
    margin: 0;
    font-size: inherit !important;
}

/* Bullet-listor */
.sp-ss-content ul {
    list-style: none;
    margin: 0 0 20px;
    padding-left: 20px;
}

.sp-ss-content ul li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 24px;
    line-height: 1.7;
}

.sp-ss-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3D5F42;
}

.sp-ss-content ul ul {
    margin-top: 10px;
    margin-bottom: 0;
}

.sp-ss-content ul ul li::before {
    background: transparent;
    border: 1.5px solid #3D5F42;
}

/* Numrerade listor */
.sp-ss-content ol {
    list-style: none;
    margin: 0 0 20px;
    padding-left: 20px;
    counter-reset: sp-ol;
}

.sp-ss-content ol li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 36px;
    line-height: 1.7;
    counter-increment: sp-ol;
}

.sp-ss-content ol li::before {
    content: counter(sp-ol) ".";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #3D5F42;
    min-width: 28px;
    line-height: 1.7;
}

.sp-ss-content ol ol {
    margin-top: 10px;
    margin-bottom: 0;
    counter-reset: sp-ol-nested;
}

.sp-ss-content ol ol li {
    counter-increment: sp-ol-nested;
    padding-left: 32px;
}

.sp-ss-content ol ol li::before {
    content: counter(sp-ol-nested, lower-alpha) ".";
    font-size: 14px;
    font-weight: 600;
}

.sp-ss-content hr {
    border: none;
    border-top: 1px solid #e8e4dd;
    margin: 32px 0;
}

.sp-ss-content .wp-block-image,
.sp-ss-content figure {
    margin: 24px 0;
}

.sp-ss-content figcaption {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.sp-ss-content iframe {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
}


/* === 12. INNEHÅLLS-CTA (upprepad köpknapp) === */

.sp-ss-content-cta {
    margin: 32px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid #e8e4dd;
    text-align: center;
}



/* === 13. TAGGAR & KATEGORIER === */

.sp-ss-tags-cats {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e4dd;
}

.sp-ss-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-ss-tags-cats-label {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-ss-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    background: #f4f1ec;
    color: #555;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sp-ss-tag-pill:hover {
    background: #e8e4dd;
    color: #3D5F42;
}


/* === 14. KOMMENTARER === */

/* Göm wpDiscuz login + tomrum för utloggade */
.sp-ss-comments #wpdcom.wpdiscuz_unauth .wpd-form-head {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.sp-ss-comments #wpdcom.wpdiscuz_unauth .wc_social_plugin_wrapper {
    display: none !important;
}

.sp-ss-comments .wpdiscuz_top_clearing {
    display: none !important;
}

.sp-ss-comments {
    padding-top: 16px;
    margin-top: 32px;
    border-top: 1px solid #e8e4dd;
}


/* === 15. SIDOFÄLT === */

.sp-ss-sidebar-title {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 2px solid #3D5F42;
}

.sp-ss-sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-ss-sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.sp-ss-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-ss-sidebar-item:first-child {
    padding-top: 0;
}

.sp-ss-sidebar-thumb {
    width: 90px;
    height: 65px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0ede8;
}

.sp-ss-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-ss-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.sp-ss-sidebar-item-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.sp-ss-sidebar-item-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.sp-ss-sidebar-item:hover .sp-ss-sidebar-item-title {
    color: #3D5F42;
}

/* Mini-badges i sidofältet */
.sp-ss-sidebar-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.sp-ss-sidebar-badge--aip {
    background: #F0F5F9;
    color: #587B99;
}

.sp-ss-sidebar-badge--paleo {
    background: #F8F5F2;
    color: #8C857A;
}

/* Sökruta i sidofältet */
.sp-ss-sidebar-search {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.sp-ss-sidebar-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sp-ss-sidebar-search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    pointer-events: none;
    flex-shrink: 0;
}

.sp-ss-sidebar-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e0dcd6;
    border-radius: 10px;
    background: #fff;
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    color: #3a3a3a;
    outline: none;
    transition: border-color 0.2s ease;
}

.sp-ss-sidebar-search-input::placeholder {
    color: #aaa;
}

.sp-ss-sidebar-search-input:focus {
    border-color: #3D5F42;
}

/* Bläddra-CTA */
.sp-ss-sidebar-cta {
    background: linear-gradient(135deg, #faf8f5 0%, #f3efe9 100%);
    border: 1px solid #e8e5e1;
    border-radius: 10px;
    padding: 20px 18px;
    margin-top: 20px;
    text-align: center;
}

.sp-ss-sidebar-cta-heading {
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sp-ss-sidebar-cta-text {
    font-family: proxima_nova_regular, 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.45;
}

.sp-ss-sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    color: #3D5F42 !important;
    border: 1.5px solid #3D5F42;
    font-family: 'Montserrat', 'Proxima Nova', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none !important;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.1s ease;
}

.sp-ss-sidebar-cta-btn:hover {
    background: #3D5F42;
    transform: translateY(-1px);
    color: #fff !important;
}


/* === 16. PRINT === */

@media print {
    .header,
    .sp-footer,
    .sp-mobile-menu-trigger,
    .sp-ss-sidebar,
    .sp-ss-comments,
    .page-header,
    .sp-ss-badge,
    .sp-ss-hero-actions,
    .sp-ss-content-cta {
        display: none !important;
    }

    body:has(.sp-ss-page-layout) {
        background: #fff !important;
    }

    .sp-ss-page-layout {
        display: block !important;
    }

    .sp-ss-hero {
        box-shadow: none !important;
    }

    .sp-ss {
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

    .sp-ss-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .sp-ss-content {
        font-size: 12pt !important;
    }

    .sp-ss-title {
        font-size: 18pt !important;
    }
}


/* === 17. TABLET/MOBILANPASSNING (max-width: 1024px) === */

@media (max-width: 1024px) {
    body:has(.sp-ss-page-layout) .container,
    body:has(.sp-ss-page-layout) .mm-page > .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body:has(.sp-ss-page-layout) .page-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sp-ss-page-layout {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0;
    }

    .sp-ss-inner {
        padding: 0 20px;
    }

    .sp-ss-page-main {
        max-width: 100%;
    }

    .sp-ss-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .sp-ss-sidebar-search {
        display: none;
    }

    /* 2-kolumns grid för relaterade produkter på tablet */
    .sp-ss-sidebar-products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sp-ss-sidebar-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        border-bottom: none;
    }

    .sp-ss-sidebar-thumb {
        width: 100%;
        height: 120px;
    }

    .sp-ss-sidebar-item-info {
        padding: 0 2px 4px;
    }

    .sp-ss-hero {
        border-radius: 12px 12px 0 0;
    }

    .sp-ss-hero-image {
        max-height: none;
        padding: 5px 0;
    }

    .sp-ss-hero-info {
        padding: 20px 20px 16px;
    }

    .sp-ss-title {
        font-size: 22px;
    }

    .sp-ss-meta {
        gap: 8px;
    }

    .sp-ss {
        border-radius: 0 0 12px 12px;
        box-shadow: none;
    }

    .sp-ss-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}


/* === 18. MOBILANPASSNING (max-width: 768px) === */

@media (max-width: 768px) {
    .sp-ss-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-ss-buy-btn {
        justify-content: center;
        width: 100%;
    }

    .sp-ss-highlights {
        padding: 20px 22px;
    }
}


/* === 19. LITEN MOBIL (max-width: 600px) === */

@media (max-width: 600px) {
    .sp-ss-title {
        font-size: 20px;
    }

    .sp-ss-hero-info {
        padding: 20px;
    }

    .sp-ss-content {
        font-size: 16px;
    }

    .sp-ss-content h2 {
        font-size: 20px;
        margin: 32px 0 12px;
    }

    .sp-ss-content h3 {
        font-size: 17px;
        margin: 24px 0 10px;
    }

    .sp-ss-meta-item {
        font-size: 13px;
    }

    .sp-ss-ingress p {
        font-size: 16px;
    }

    .sp-ss-highlights-list li {
        font-size: 15px;
    }

    .sp-ss-sidebar-search-input,
    .sp-ss-content input,
    .sp-ss-content textarea {
        font-size: 16px;
    }

    .sp-ss-buy-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}
