:root {
	--wd-text-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #777777;
	--wd-text-font-size: 14px;
	--wd-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Poppins", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 15px;
	--wd-header-el-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 12px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: #83b735;
	--wd-alternative-color: rgb(129,215,66);
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(35,158,26);
	--btn-accented-bgcolor-hover: #74a32f;
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: rgb(255,255,255);
	background-image: none;
	background-repeat: repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 980px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	background-repeat: no-repeat;
	object-fit: contain;
	background-attachment: inherit;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
html .product-image-summary-wrap .product_title, html .wd-single-title .product_title {
	font-weight: 600;
}
.wd .product-label.onsale {
	background-color: rgb(52,170,70);
}
.wd .product-label.new {
	background-color: rgb(52,170,70);
}
.wd .product-label.featured {
	background-color: rgb(52,170,70);
}
.wd .product-label.out-of-stock {
	background-color: rgb(52,170,70);
}
.wd .product-label.attribute-label:not(.label-with-img) {
	background-color: rgb(52,170,70);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 0px;
}
:root{
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-bottom-active: -1px;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-default-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-bottom-active: -1px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--wd-brd-radius: 0px;
}



.wd-page-title {
background-color: rgb(255,255,255);
}

/* Skjul alle produkttags bortsett fra de tre første */
.single-product .product_meta .tagged_as a:nth-child(n+4) {
    display: none;
}

/* Valgfritt: Fjern kommaet etter den tredje tagen hvis det blir synlig */
.single-product .product_meta .tagged_as a:nth-of-type(3):after {
    content: "";
}

/* Tving 5 produkter per rekke uansett Elementor eller WoodMart */
@media (min-width: 1024px) {
    /* WoodMart og standard WooCommerce */
    .woocommerce ul.products,
    .products.elements-grid,
    .woodmart-products-element .products,
    div.products {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Elementor containers og kolonner */
    .elementor-widget-container .products,
    .elementor-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }

	
    /* Tving hvert enkelt produkt til å fylle ruten i griddet */
    .woocommerce ul.products li.product,
    .products.elements-grid .product,
    .woodmart-products-element .products .product,
    .elementor-grid .product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
    }
}


/* Hindre at merkelogoer og attributt-bilder strekkes eller kuttes */
.product-grid-item .woodmart-product-brands img,
.woodmart-product-brands img,
.product-labels img,
.product-grid-item .product-labels img {
    object-fit: contain !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 45px !important;
}



/* === 1. ALLE BLOGGINNLEGG AUTOMATISK (INGEN KODE PÅ HVER SIDE) === */
.single-post .entry-content,
.rs-vakuum-guide{max-width:1100px;margin:0 auto;font-family:inherit;font-size:15px;color:#1f2937;line-height:1.7;text-align:left}
.single-post .entry-content h2,
.rs-vakuum-guide h2{font-size:23px;font-weight:700;margin:32px 0 12px;color:#111827;line-height:1.3}
.single-post .entry-content h3,
.rs-vakuum-guide h3{font-size:18px;font-weight:700;margin:22px 0 8px;color:#111827;line-height:1.35}
.single-post .entry-content p,
.rs-vakuum-guide p{margin:0 0 14px}
.single-post .entry-content ul,
.single-post .entry-content ol,
.rs-vakuum-guide ul,
.rs-vakuum-guide ol{margin:0 0 18px;padding-left:22px}
.single-post .entry-content li,
.rs-vakuum-guide li{margin-bottom:8px}
.single-post .entry-content table,
.rs-vakuum-guide table{width:100%;border-collapse:collapse;background:#fff;margin:20px 0;display:block;overflow-x:auto}
.single-post .entry-content th,
.single-post .entry-content td,
.rs-vakuum-guide th,
.rs-vakuum-guide td{padding:11px 12px;border:1px solid #d1d5db;text-align:left;vertical-align:top;min-width:160px}
.single-post .entry-content thead th,
.rs-vakuum-guide thead th{background:#f3f4f6;font-weight:700;color:#111827}
.single-post .entry-content a[href*="/product-category/"],
.rs-category-link{display:inline-block;margin:12px 0;padding:10px 18px;background:#27851b;color:#fff!important;border-radius:6px;font-weight:700;text-decoration:none!important}
.single-post .entry-content a[href*="/product-category/"]:hover,
.rs-category-link:hover{background:#1f6b15}

/* === 2. FOOTER === */
.rs-footer{background:#181818;color:#e5e7eb;padding:42px 20px 28px;font-family:inherit;font-size:14px;line-height:1.6}
.rs-footer-inner{max-width:1240px;margin:0 auto}
.rs-footer-top{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;padding-bottom:32px;border-bottom:1px solid #2e2e2e}
.rs-footer h3,.rs-footer h6{color:#fff;font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;margin:0 0 18px;padding-bottom:10px;border-bottom:2px solid #d92b2b;display:inline-block}
.rs-footer ul{list-style:none!important;margin:0!important;padding:0!important}
.rs-footer ul li{margin-bottom:9px;padding-left:0!important}
.rs-footer ul li::before{display:none!important}
.rs-footer a{color:#d1d5db!important;text-decoration:none!important;transition:color .2s}
.rs-footer a:hover{color:#fff!important}
.rs-footer p{color:#d1d5db;margin:0 0 12px}
.rs-footer-check li{position:relative;padding-left:20px!important}
.rs-footer-check li::after{content:"✓";position:absolute;left:0;top:0;color:#d92b2b;font-weight:700}
.rs-footer-mid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:26px 0;border-bottom:1px solid #2e2e2e}
.rs-footer-contact-item{background:#222;border:1px solid #2f2f2f;border-radius:10px;padding:16px}
.rs-footer-contact-item strong{display:block;color:#fff;font-size:15px;margin-bottom:4px}
.rs-footer-bottom{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:28px;padding-top:28px;align-items:start}
.rs-footer-map{border-radius:10px;overflow:hidden;border:1px solid #2f2f2f}
.rs-footer-map iframe{width:100%;height:210px;display:block;border:0}

/* === 3. KONTAKT & SHOWROOM === */
.rs-k-wrap{background:#111111;color:#f3f4f6;padding:24px 16px 48px;font-family:inherit}
.rs-k-inner{max-width:1200px;margin:0 auto}
.rs-k-hero{border-radius:10px;overflow:hidden;margin-bottom:32px;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.rs-k-hero img{width:100%;height:auto;display:block}
.rs-k-intro{background:#1c1c1c;border:1px solid #2e2e2e;border-radius:10px;padding:30px;margin-bottom:36px}
.rs-k-intro h1{color:#ffffff;font-size:28px;margin:0 0 16px;font-weight:700}
.rs-k-intro p{color:#d1d5db;line-height:1.7;margin:0 0 12px;font-size:15px}
.rs-k-intro a{color:#f5b800;text-decoration:underline}
.rs-k-sup-head{text-align:center;margin:36px 0 24px}
.rs-k-sup-head span{display:inline-block;color:#f5b800;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.rs-k-sup-head h2{color:#ffffff;font-size:26px;margin:0;font-weight:700}
.rs-k-faq-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:32px}
.rs-k-faq-box{background:#1c1c1c;border:1px solid #2e2e2e;border-radius:10px;padding:26px 16px;text-align:center;display:flex;flex-direction:column;justify-content:space-between;transition:border-color .2s,transform .2s}
.rs-k-faq-box:hover{border-color:#f5b800;transform:translateY(-3px)}
.rs-k-icon{width:54px;height:54px;margin:0 auto 14px;border-radius:50%;background:rgba(245,184,0,.12);color:#f5b800;display:flex;align-items:center;justify-content:center}
.rs-k-icon svg{width:26px;height:26px;fill:currentColor}
.rs-k-faq-box h3{color:#ffffff;font-size:18px;margin:0 0 14px;font-weight:600}
.rs-k-btn{display:inline-block;background:#f5b800;color:#111111!important;font-weight:700;font-size:14px;padding:10px 22px;border-radius:6px;text-decoration:none!important;transition:background .2s}
.rs-k-btn:hover{background:#ffd038;color:#000000!important}
.rs-k-mid-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}
.rs-k-card{background:#1c1c1c;border:1px solid #2e2e2e;border-radius:10px;padding:26px;display:flex;flex-direction:column;justify-content:space-between}
.rs-k-card h2,.rs-k-card h3{color:#ffffff;font-size:20px;margin:0 0 12px;font-weight:700}
.rs-k-card h4{color:#f5b800;font-size:16px;margin:14px 0 6px;line-height:1.5}
.rs-k-card p{color:#d1d5db;font-size:14px;line-height:1.65;margin:0 0 12px}
.rs-k-card a:not(.rs-k-btn){color:#f5b800;text-decoration:none}
.rs-k-wa-btn{background:#25d366;color:#ffffff!important}
.rs-k-wa-btn:hover{background:#1ebe5d;color:#ffffff!important}
.rs-k-map{border-radius:10px;overflow:hidden;border:1px solid #2e2e2e;margin-bottom:36px}
.rs-k-map iframe{width:100%;height:320px;display:block;border:0}
.rs-k-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.rs-k-cat{background:#1c1c1c;border:1px solid #2e2e2e;border-radius:10px;overflow:hidden;text-align:center;text-decoration:none!important;transition:border-color .2s,transform .2s}
.rs-k-cat:hover{border-color:#f5b800;transform:translateY(-3px)}
.rs-k-cat img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.rs-k-cat span{display:block;padding:13px 10px;color:#ffffff;font-weight:700;font-size:15px}

@media(max-width:960px){.rs-footer-top,.rs-footer-bottom,.rs-k-mid-grid,.rs-k-cats{grid-template-columns:1fr}.rs-footer-mid,.rs-k-faq-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.rs-footer-mid,.rs-k-faq-grid{grid-template-columns:1fr}}@media (max-width: 576px) {
	/* Tvinger WoodMart til å vise hele innholdet uten rulling */
.wd-tab-content-wrapper,
.woodmart-tab-content,
.wc-tab-inner {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Fjerner den lille pilen/scroll-indikatoren hvis den finnes */
.wd-scroll-content {
    overflow-y: visible !important;
}
}

