/*
Theme Name: Polaris
Theme URI: adhost.dk
Template: Divi
Author: adhost.dk
Author URI: adhost.dk
Version: 5.0.1.1773132320
Updated: 2026-03-10 08:45:20
*/

/* Typography and Colors */

/* Hide inactive content */
.atv-trim-content-item { display: none; }
.atv-trim-content-item.active { display: block; }

/* Swiper Tabs (Top Section) */
.atv-trim-swiper {
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
}
.atv-trim-tab {
    text-align: center !important;
    cursor: pointer;
    position: relative;
    width: 120px; /* Adjust based on preference */
    opacity: 0.6;
    transition: all 0.3s ease;
}
.atv-trim-tab img { max-width: 80px; margin: 0 auto 10px; display: block; }
.atv-trim-tab span { font-size: 12px; font-weight: bold; text-transform: uppercase; }

/* Active Tab State (Blue text and arrow) */
.atv-trim-tab.active-tab {
    opacity: 1;
    color: #005a8c; /* Polaris Blue */
}
.atv-trim-tab.active-tab::after {
    content: '▼';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #005a8c;
    font-size: 12px;
}

/* Header & Main Image */
.atv-header h2 { font-size: 32px; font-weight: 900; margin-bottom: 5px; text-transform: uppercase;}
.atv-header .atv-price { font-size: 18px; font-weight: bold; }
.header-price { margin-bottom: 5px; }
.atv-main-image-container { text-align: center; margin: 40px 0; }
.atv-main-image { max-width: 100%; height: auto; max-height: 500px; }

/* Bottom Grid Layout */
.atv-bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Specs, 33% Variants */
    gap: 40px;
}
.atv-specs-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split specs into 2 columns */
    gap: 20px;
}
.atv-specs-section h4, .atv-variants-section h4 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.atv-specs-section ul { padding-left: 20px; }
.atv-specs-section li { margin-bottom: 8px; font-size: 14px; }


/* ========================================================= */
/* Variants Section & Color Swatches                         */
/* ========================================================= */
.atv-variant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.color-selector-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #fcfcfc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-selector-row:hover {
    border-color: #d1d1d1;
}

/* Active Highlight: Grey BG + Sharp Black Border */
.color-selector-row.active {
    border-color: #000000 !important;
    background-color: #eee;
}

/* The Square Image Wrapper */
.swatch-wrap {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.swatch-image, .swatch-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Beside the Color Image */
.variant-text-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.variant-title {
    font-size: 15px;
    color: #111;
    text-transform: uppercase;
}

.variant-price {
    font-size: 13px;
    color: #555;
}

.selected-variant-box {
    margin-bottom: 15px;
    background: #f0f7fb;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.dynamic-color-name {
    color: #005a8c;
}

.fakta-toggle-wrapper {
    text-align: center;
    margin-top: 50px;
}

.dynamic-fakta {
    margin-top: 40px;
    animation: fadeIn 0.4s ease;
}

.calc-link { color: #005a8c; text-decoration: none; font-size: 14px; font-weight: bold; display: block; margin-top: 15px;}
/* ========================================================= */


/* Align the Swiper thumbnail tabs to the right */
.atv-trim-swiper .swiper-wrapper {
    justify-content: flex-end;
}

/* Optional: If you also want the text inside the thumbnails to align right instead of center */
.atv-trim-tab {
    text-align: right;
}

/* Mobile Responsiveness */
@media (max-width: 980px) {
    .atv-bottom-grid { grid-template-columns: 1fr; }
    .atv-specs-section { grid-template-columns: 1fr; }
}

/* --- FAKTA SECTION CONTAINER --- */
.atv-fakta-wrapper {
    margin-top: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, sans-serif;
}

.fakta-headline {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #000;
}

/* --- TABS NAVIGATION --- */
.fakta-tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eaeaea; /* The long horizontal line */
    margin-bottom: 0; /* Keep it attached to the table area */
}

.fakta-tab-btn {
    background: transparent;
    border: none;
    padding: 20px 30px;
    font-size: 14px;
    font-weight: 800; 
    color: #000;
    cursor: pointer;
    text-transform: uppercase;
    /* Setup invisible borders so it doesn't jump when active */
    border-top: 3px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    /* This negative margin pulls the button down 1px to cover the long horizontal line */
    margin-bottom: -1px; 
    transition: color 0.2s ease;
}

/* Hover state for inactive tabs */
.fakta-tab-btn:not(.active):hover {
    color: #005a8c;
}

/* Active Tab Styling */
.fakta-tab-btn.active {
    color: #005a8c !important; /* Polaris Blue */
    border-top: 3px solid #005a8c !important;
    border-left: 1px solid #eaeaea !important;
    border-right: 1px solid #eaeaea !important;
    border-bottom: 1px solid #fff !important; /* White bottom to blend with the content */
    background: #fff !important;
}

/* --- TABLE STYLING --- */
.fakta-tabs-content {
    padding-top: 20px;
}

/* Hide inactive tabs, show active */
.fakta-tab-pane {
    display: none !important;
    animation: fadeIn 0.4s ease;
}
.fakta-tab-pane.active {
    display: block !important;
}

/* The actual table grid */
.fakta-tab-pane table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.fakta-tab-pane table td {
    padding: 16px 0;
    border-bottom: 1px solid #eaeaea;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 15px;
    color: #111;
    vertical-align: middle;
}

/* Left Column: Label */
.fakta-tab-pane table tr td:first-child {
    width: 40%;
    text-transform: uppercase;
}

/* Right Column: Value */
.fakta-tab-pane table tr td:last-child {
    width: 60%;
}

/* Smooth fade animation for tab switching */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness (Stack tabs on small screens) */
@media (max-width: 768px) {
    .fakta-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    .fakta-tab-btn {
        margin-bottom: 0;
        border-bottom: 1px solid #eaeaea;
    }
    .fakta-tab-btn.active {
        border-bottom: 1px solid #005a8c !important;
    }
    .fakta-tab-pane table tr td:first-child,
    .fakta-tab-pane table tr td:last-child {
        width: 50%;
    }
}

/* Hide inactive variants */
.atv-trim-content-item {
    display: none;
    animation: fadeIn 0.4s ease;
}
/* Show active variant */
.atv-trim-content-item.active {
    display: block;
}


.model-page-link {font-size: 16px;margin-top: 15px;}


.sidenav {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
}

.ctas-list {border-radius: 5px !important;}

.ctas-list-item {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1px;
}

.sidenav-link {
    display: flex;
    align-items: center;
    background-color: #004481; /* Polaris Blue */
    color: #fff;
    text-decoration: none;
    height: 60px;
    transition: all 0.3s ease;
}

.sidenav-link-icon {
    width: 60px; /* Fixed width for the icon area */
    height: 60px;
    padding: 15px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidenav-link-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Barlow", sans-serif;
    font-size: 14px;
    padding: 0;
}

/* Hover Logic */
.sidenav-link:hover {
    background-color: #003366;
}

.sidenav-link:hover .sidenav-link-label {
    max-width: 300px; /* Large enough for long text */
    padding: 0 20px;
    opacity: 1;
}

@media (max-width: 767px) {
    .sidenav {
        top: auto;
        bottom: 0;
        right: 0;
        transform: none;
        width: 100%;
        flex-direction: row;
    }

    .ctas-list {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0;
        border-radius: 0 !important;
    }

    .ctas-list-item {
        flex: 1;
        display: flex;
        justify-content: stretch;
        margin-bottom: 0;
    }

    .sidenav-link {
        width: 100%;
        min-height: 56px;
        height: auto;
        border-radius: 0;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .sidenav-link-icon {
        width: 28px;
        height: 28px;
        padding: 0;
    }

    .sidenav-link-label {
        max-width: 100%;
        opacity: 1;
        font-size: 11px;
        padding: 0 6px;
        text-align: center;
    }

    .sidenav-link:hover .sidenav-link-label {
        max-width: 100%;
        padding: 0 6px;
    }
}
/* 1. Only apply relative positioning to text-based containers */
.et_pb_module .gfield_type_text, 
.et_pb_module .gfield_type_email, 
.et_pb_module .gfield_type_tel, 
.et_pb_module .gfield_type_textarea,
.et_pb_module .gfield_type_url {
    position: relative !important;
    margin-top: 15px !important;
    overflow: visible !important;
}

/* 2. Style ONLY the labels of those specific fields */
.gfield_type_text .gfield_label, 
.gfield_type_email .gfield_label, 
.gfield_type_tel .gfield_label, 
.gfield_type_textarea .gfield_label {
    position: absolute !important;
    top: 12px !important; /* Adjust based on your Divi input height */
    left: 15px !important;
    font-size: 16px !important;
    transition: all 0.2s ease-in-out !important;
    pointer-events: none !important;
    z-index: 99 !important;
}

/* 3. The "Floating" state (triggered by JS) */
.label-floating .gfield_label {
    top: -12px !important;
    left: 10px !important;
    font-size: 12px !important;
    background-color: #ffffff !important; /* MUST match your background color */
    padding: 0 5px !important;
    color: #2ea3f2 !important; /* Your brand color */
}

/* 4. Reset standard behavior for Checkbox, Radio, and Select (The "Safe Zone") */
.gfield_type_checkbox .gfield_label,
.gfield_type_radio .gfield_label,
.gfield_type_select .gfield_label {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: auto !important;
}


#wpsl-wrap a {color:#004481 !important;}

/* ========================================================= */
/* POLARIS CATALOG PAGE (Grouped by Anvendelse)              */
/* ========================================================= */

.polaris-catalog-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 0;
}

/* Top Navigation Menu */
.polaris-catalog-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px; /* Space between links */
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.catalog-nav-link {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-nav-link:hover {
    color: #004481; /* Polaris Blue */
}

/* Sections */
.polaris-catalog-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px; 
}

/* Blue Header Bar */
.polaris-section-header {
    background-color: #004481; /* Polaris Blue */
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 10px;
    width: 100%;
    transform: skew(-10deg, 0deg);
}

.polaris-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    transform: skew(10deg, 0deg);
}

.polaris-section-desc {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px !important;
}

/* 4-Column Product Grid */
.polaris-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 30px; /* More vertical space between rows */
}

.polaris-catalog-card {
    text-align: left; 
}

.catalog-img-link {
    display: block;
    margin-bottom: 15px;
    background: transparent; /* No grey background box */
    padding: 0; 
    transition: transform 0.3s ease;
    text-align: center;
}

.catalog-img-link:hover {
    transform: scale(1.03); /* Very subtle zoom on hover */
}

.catalog-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: inline-block;
}

.catalog-card-title {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.catalog-card-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-card-title a:hover {
    color: #004481;
}

.catalog-card-price {
    font-size: 13px;
    color: #000;
    margin: 0;
}

/* Make the actual price bold */
.catalog-card-price strong {
    font-weight: 900;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .polaris-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .polaris-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-card-img { height: 140px; }
}

@media (max-width: 480px) {
    .polaris-catalog-grid { grid-template-columns: 1fr; }
    .polaris-catalog-card { text-align: center; } /* Center text on mobile */
    .catalog-card-img { height: 180px; }
}

/* Clickable Header Link Styles */
.polaris-header-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: block; /* Makes the whole header area slightly easier to click */
}

.polaris-header-link:hover {
    opacity: 0.8;
}


/* ── Tab nav: text left, image right ── */
.df_at_nav_container .df_at_nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}

.df_at_nav_container .df_at_nav .at_nav_content {
    order: 1;
    flex: 1;
}

.df_at_nav_container .df_at_nav .at_image_wrap {
    order: 2;
    flex-shrink: 0;
}
