/* =====================================================
   GENERAL
===================================================== */

html,
body{
    margin:0;
    padding:0;
    height:100%;
    background:#f3f5f7;
    font-family:Arial,Helvetica,sans-serif;
    color:#333;
}

.ev-infinite-status{
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#5f6b76;
    font-size:14px;
}

.ev-infinite-status.is-loading{
    min-height:76px;
    color:#073f7c;
    font-weight:600;
}

.ev-infinite-status.is-loading .spinner-border{
    width:1.35rem;
    height:1.35rem;
    border-width:.18em;
}

/* =====================================================
   HEADER
===================================================== */
/*
.ev-header{

    position:sticky;
    top:0;
    z-index:1000;

    background:#ffffff;

    border-bottom:1px solid #d9d9d9;

    padding:14px 24px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}
*/
.ev-header{
    position:fixed !important;
    top:0 !important;
    left:0;
    right:0;
    z-index:99999;
    background:#fff;
    border-bottom:1px solid #ddd;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.ev-header h2{

    margin:0;

    font-size:28px;

    font-weight:600;

    color:#1c3f94;

}

.ev-brand{
    display:inline-flex;
    width:min(250px,100%);
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    max-width:100%;
    color:#174677;
    text-decoration:none;
    line-height:1;
}

.ev-brand:hover{
    color:#174677;
}

.ev-brand-logo{
    display:block;
    width:100%;
    height:auto;
}

.ev-brand-tagline{
    width:100%;
    padding-left:20%;
    color:#174677;
    font-size:12px;
    line-height:1.25;
    font-weight:600;
    letter-spacing:.15px;
    white-space:nowrap;
}

.main-container-wrapper {
    
    margin-top: 112px;
}

.ev-language-menu{
    position:relative;
    display:inline-flex;
    padding:8px 0;
}

.ev-language-current{
    width:48px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid #dce5e9;
    border-radius:10px;
    background:#f8fafb;
    box-shadow:0 2px 7px rgba(24,64,88,.12);
    cursor:default;
}

.ev-language-flag{
    width:29px;
    height:20px;
    display:block;
    object-fit:contain;
}

.ev-language-dropdown{
    position:absolute;
    top:calc(100% - 3px);
    right:0;
    z-index:100020;
    min-width:174px;
    padding:7px;
    border:1px solid #dce4e9;
    border-radius:9px;
    background:#fff;
    box-shadow:0 12px 30px rgba(16,54,82,.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(-5px);
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}

.ev-language-menu:hover .ev-language-dropdown,
.ev-language-menu:focus-within .ev-language-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.ev-language-menu:hover .ev-language-current,
.ev-language-menu:focus-within .ev-language-current{
    border-color:#d7e2e8;
    background:#f6f9fb;
}

.ev-language-option{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:38px;
    padding:7px 10px;
    border-radius:6px;
    color:#29485f;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    white-space:nowrap;
}

.ev-language-option:hover{
    background:#edf6f1;
    color:#086d4b;
}

.ev-language-option.is-selected{
    background:#08795a;
    color:#fff;
    font-weight:700;
}

.ev-language-option .ev-language-flag{
    width:24px;
    height:16px;
}

.ev-whatsapp-panel{
    position:fixed;
    right:20px;
    bottom:88px;
    z-index:100010;
    width:360px;
    max-width:calc(100vw - 30px);
    overflow:hidden;
    border-radius:16px;
    background:#075e54;
    color:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    opacity:0;
    visibility:hidden;
    transform:translateY(18px);
    transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
}

.ev-whatsapp-panel.is-open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.ev-whatsapp-head{
    position:relative;
    padding:18px 18px 14px;
    background:linear-gradient(180deg,#0b7a53 0%,#075e54 100%);
}

.ev-whatsapp-head h4{margin:0 0 8px;font-size:20px;font-weight:700;}
.ev-whatsapp-head p,.ev-whatsapp-content p{margin:0;font-size:13px;color:rgba(255,255,255,.9);}
.ev-whatsapp-close{position:absolute;right:11px;top:10px;width:34px;height:34px;border:0;background:transparent;color:#fff;font-size:18px;cursor:pointer;}
.ev-whatsapp-content{padding:16px;}
.ev-whatsapp-content p{margin-bottom:12px;}
.ev-whatsapp-content a{display:block;padding:13px 15px;border-radius:10px;background:rgba(255,255,255,.09);color:#fff;text-decoration:none;}
.ev-whatsapp-content strong,.ev-whatsapp-content span{display:block;}
.ev-whatsapp-content strong{margin-bottom:7px;font-size:16px;}
.ev-whatsapp-content span{font-size:13px;opacity:.9;}

.ev-whatsapp-button{
    position:fixed;
    right:20px;
    bottom:25px;
    z-index:100011;
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:12px 18px;
    border:0;
    border-radius:999px;
    background:#25d366;
    color:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
    font-weight:700;
    cursor:pointer;
}

.ev-whatsapp-button:focus-visible{outline:4px solid rgba(37,211,102,.28);}

@media (max-width:767px){
    .ev-whatsapp-panel{right:10px;bottom:82px;max-width:calc(100vw - 20px);}
    .ev-whatsapp-button{right:14px;bottom:20px;}
}

/* =====================================================
   SEARCH
===================================================== */

#ev-search{

    border-radius:25px;

    height:46px;

    border:1px solid #cfcfcf;

    padding-left:20px;

    font-size:15px;

}

/* =====================================================
   SIDEBAR
===================================================== */

.ev-sidebar{

    background:#fff;

    border-radius:10px;

    border:1px solid #ddd;

    padding:18px;

    position:sticky;

    top:90px;

    max-height:calc(100vh - 110px);

    overflow:auto;

}

.ev-sidebar h5{

    margin-bottom:18px;

    font-weight:600;

}

.ev-sidebar ul{

    margin:0;

    padding-left:18px;

    list-style:none;

}

.ev-sidebar li{

    margin:6px 0;

}

.ev-category{

    cursor:pointer;

    display:block;

    padding:5px 8px;

    border-radius:5px;

    transition:.2s;

}

.ev-category:hover{

    background:#edf4ff;

    color:#1c3f94;

}

/* =====================================================
   PRODUCT GRID
===================================================== */

.ev-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(270px,1fr));

    gap:22px;

    align-items:start;

}

/* =====================================================
   PRODUCT CARD
===================================================== */

.ev-card{

    background:#fff;

    border:1px solid #dadada;

    border-radius:12px;

    overflow:hidden;

    cursor:pointer;

    transition:all .25s ease;

    display:flex;

    flex-direction:column;

    height:100%;

}

.ev-card:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 28px rgba(0,0,0,.12);

    border-color:#1c3f94;

}

/* =====================================================
   PREVIEW AREA
===================================================== */
/*
.ev-preview{

    height:250px;

    background:#ffffff;

    display:flex;

    justify-content:center;

    align-items:center;

    border-bottom:1px solid #ececec;

    padding:12px;

    position:relative;

    overflow:visible;
}
*/
.ev-preview{

    height:250px;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    background:#fff;

    overflow:hidden;

    position:relative;
}

.ev-preview-2d,
.ev-preview-3d {
    width: 100%;
    height: 100%;
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:opacity .38s ease, visibility 0s linear .38s;
    will-change:opacity;
}

.ev-preview.ev-show-2d .ev-preview-2d,
.ev-preview:not(.ev-show-3d):not(.ev-show-2d) .ev-preview-3d,
.ev-preview.ev-show-3d .ev-preview-3d {
    opacity:1;
    visibility:visible;
    transition:opacity .38s ease, visibility 0s;
}

.img-preview-bg-active {
    background: #607D8B;
}

.ev-preview-image{

    max-width:90%;

    max-height:90%;

    width:auto;

    height:auto;

    object-fit:contain;

    display:block;

    margin:auto;
}

.ev-svg-preview{

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;
}

.ev-svg-preview svg{

    width:90%;

    height:90%;

    display:block;
}


/* Keep the entire drawing visible */
/*
.ev-svg-preview svg{

    preserveAspectRatio:xMidYMid meet;

}
*/
/* =====================================================
   Hide EngView annotations
===================================================== */

.ev-svg-preview svg g[ev-style-annotation="true"],

.ev-svg-preview svg [ev-style-annotation="true"],

.ev-svg-preview svg [ev-style="Dimensions"],

.ev-svg-preview svg text{

    display:none !important;

}

/* Use one restrained screen weight for confirmed dielines only. This gives
   catalog previews a little more presence without exposing helper geometry. */
.ev-svg-preview svg [ev-style-annotation="false"][stroke="rgb(255,0,0)"],
.ev-svg-preview svg [ev-style-annotation="false"][stroke="rgb(0,255,0)"]{
    vector-effect:non-scaling-stroke;
    stroke-width:.9px !important;
    stroke-opacity:1 !important;
}

/* =====================================================
   CARD BODY
===================================================== */

.ev-card-body{

    padding:16px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    flex-grow:1;

}

.ev-title{

    margin:0;

    font-size:17px;

    line-height:1.4;

    text-align:center;

    color:#2d2d2d;

    min-height:48px;

    font-weight:600;

}

/* =====================================================
   BUTTONS
===================================================== */

.ev-buttons{

    margin-top:16px;

    display:flex;

    justify-content:center;

    gap:10px;

}

.ev-btn-2d,

.ev-btn-3d{

    min-width:72px;

    border-radius:30px;

    font-size:13px;

}

/* =====================================================
   NO PREVIEW
===================================================== */

.ev-no-preview{

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#f5f5f5;

    color:#999;

    font-size:14px;

}

/* =====================================================
   BOOTSTRAP MODAL
===================================================== */

#evViewer .modal-dialog{

    width:96vw;

    max-width:96vw;

    height:96vh;

    margin:2vh auto;

}

#evViewer{

    z-index:100001;

}

.modal-backdrop{

    z-index:100000;

}

#evViewer .modal-content{

    border-radius:14px;

    overflow:hidden;

    background:#ffffff;

    border:none;

    height:100%;

    max-height:96vh;

    display:flex;

    flex-direction:column;

}

#evViewer .modal-header{

    background:#ffffff;

    border-bottom:1px solid #e5e5e5;

    padding:18px 24px;

    flex:0 0 auto;

}

#evViewer .modal-title{

    font-size:22px;

    font-weight:600;

    color:#1c3f94;

}

#evViewer .modal-body{

    min-height:0;

    background:#ffffff;

    padding:0;

    flex:1 1 auto;

    overflow:hidden;

}

/* =====================================================
   LOADING
===================================================== */

.ev-loading{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    min-height:650px;

    color:#666;

    font-size:18px;

}

.ev-loading .spinner-border{

    width:60px;

    height:60px;

}

/* =====================================================
   FOOTER
===================================================== */

.ev-footer{

    margin-top:40px;

    padding:18px 24px;

    background:#ffffff;

    border-top:1px solid #ddd;

    color:#666;

    font-size:14px;

}

/* =====================================================
   SCROLLBAR
===================================================== */

.ev-sidebar::-webkit-scrollbar{

    width:8px;

}

.ev-sidebar::-webkit-scrollbar-thumb{

    background:#c7c7c7;

    border-radius:20px;

}

.ev-sidebar::-webkit-scrollbar-track{

    background:#f5f5f5;

}

/* Firefox */

.ev-sidebar{

    scrollbar-width:thin;

    scrollbar-color:#c7c7c7 #f5f5f5;

}

/* =====================================================
   CATEGORY TREE
===================================================== */

.ev-sidebar ul{

    margin-left:10px;

    padding-left:14px;

    border-left:1px solid #ececec;

}

.ev-sidebar li{

    position:relative;

    margin-bottom:4px;

}

.ev-category.active{

    background:#1c3f94;

    color:#ffffff;

    font-weight:600;

}

.ev-category.active:hover{

    color:#ffffff;

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1200px){

    .ev-grid{

        grid-template-columns:repeat(auto-fill,minmax(240px,1fr));

    }

}

@media (max-width:991px){

    .ev-brand{
        width:240px;
    }

    .ev-brand-logo{
        width:100%;
    }

    .ev-sidebar{

        position:relative;

        top:0;

        max-height:none;

        margin-bottom:20px;

    }

    .ev-header{

        position:relative !important;

    }

    .ev-header .row{

        row-gap:15px;

    }

    .main-container-wrapper{
        margin-top:0;
        padding-top:14px;
    }

}

@media (max-width:768px){

    .ev-grid{

        grid-template-columns:repeat(2,minmax(0,1fr));

        gap:12px;

    }

    .ev-preview{

        height:clamp(150px,43vw,210px);

        padding:8px;

    }

    .ev-title{

        font-size:14px;

        min-height:0;

    }

    .ev-preview-2d,
    .ev-preview-3d{padding:8px;}

    .ev-card-body{padding:10px 8px 12px;}

    .ev-card{border-radius:9px;}

    .ev-sidebar{
        max-height:210px;
        overflow:auto;
        padding:14px;
        margin-bottom:14px;
    }

    .ev-sidebar h5{margin-bottom:10px;}

    .ev-header .container-fluid{padding:10px 12px !important;}

    .ev-header .row{row-gap:10px;}

    .ev-header .col-lg-4{gap:8px !important;}

    .ev-view-button{padding:6px 12px;font-size:13px;}

    .ev-language-menu{padding:0;}

    .ev-language-current{width:42px;height:34px;}

    .ev-language-flag{width:25px;height:17px;}

    .ev-search-box{height:42px;}

    .main-container-wrapper{padding-left:10px;padding-right:10px;}

}

/* Smaller popup thumbnails only on portrait phones. */
@media (max-width:768px) and (orientation:portrait){
    #evViewer .ev-thumb-strip{
        gap:6px;
        padding:7px 6px;
    }

    #evViewer .ev-thumb{
        width:74px;
        min-height:76px;
        border-width:2px;
        border-radius:5px;
    }

    #evViewer .ev-thumb-image{
        width:70px;
        height:52px;
    }

    #evViewer .ev-thumb img,
    #evViewer .ev-thumb object{
        max-width:65px;
        max-height:47px;
    }

    #evViewer .ev-thumb-svg{
        width:65px;
        height:47px;
    }

    #evViewer .ev-thumb-title{
        width:70px;
        padding:1px 2px 3px;
        font-size:10.5px;
        line-height:14px;
    }
}

/* Category template counts stay black in normal, hover and selected states. */
.ev-sidebar .ev-cat-count,
.ev-sidebar .ev-category:hover .ev-cat-count,
.ev-sidebar .ev-category.active .ev-cat-count,
.ev-sidebar .ev-tree a:hover .ev-cat-count,
.ev-sidebar .ev-tree a.active .ev-cat-count{
    color:#000 !important;
}

/* The floating contact control must not cover the modal controls/thumbs. */
body.modal-open .ev-whatsapp-button,
body.modal-open .ev-whatsapp-panel{
    display:none !important;
}

@media (max-width:768px){
    #evViewer .modal-dialog{
        width:calc(100vw - 16px);
        max-width:calc(100vw - 16px);
        height:calc(100dvh - 16px);
        margin:8px auto;
    }

    #evViewer .modal-content{
        max-height:calc(100dvh - 16px);
    }

    #evViewer .modal-header{
        padding:12px 16px;
    }

    #evViewer .modal-title{
        font-size:19px;
    }

    #viewerAnimationControls.ev-animation-controls{
        width:calc(100% - 20px);
        bottom:7px;
        display:grid;
        grid-template-columns:repeat(7,minmax(0,1fr));
        gap:5px;
        padding:7px;
    }

    #viewerAnimationControls.ev-animation-controls button{
        width:100%;
        min-width:0;
        height:30px;
        padding:0;
    }

    #viewerAnimationControls.ev-animation-controls input[type="range"]{
        grid-column:1 / span 5;
        width:100%;
        min-width:0;
        margin:0;
    }

    #viewerAnimationControls [data-ev-control="fit"]{
        grid-column:6;
    }

    #viewerFullscreen{
        grid-column:7;
    }

    #evViewer .ev-thumb-strip{
        padding:9px;
        gap:8px;
    }
}

@media (max-width:576px){

    .ev-header{

        padding:0;

    }

    .ev-header h2{

        font-size:22px;

    }

    .ev-brand{
        width:min(190px,62vw);
    }

    .ev-brand-logo{
        width:100%;
    }

    .ev-brand-tagline{
        font-size:9.5px;
    }

    #ev-search{

        height:42px;

    }

    .ev-language-dropdown{position:fixed;right:10px;top:auto;margin-top:2px;}

    .ev-whatsapp-button{padding:11px 15px;font-size:13px;}

}

@media (max-width:359px){
    .ev-grid{grid-template-columns:1fr;}
    .ev-preview{height:210px;}
}

/* =====================================================
   SVG DISPLAY
===================================================== */

/* Preserve entire drawing */

/* Hide only EngView annotation groups */

.ev-svg-preview svg g[ev-style-annotation="true"]{

    display:none !important;

}

/* Smooth rendering */

.ev-svg-preview svg{

    shape-rendering:geometricPrecision;

    text-rendering:geometricPrecision;

}

/* =====================================================
   TRANSITIONS
===================================================== */

.ev-card,

.ev-category,

.ev-btn-2d,

.ev-btn-3d{

    transition:all .25s ease;

}

/* =====================================================
   SELECTION
===================================================== */

::selection{

    background:#1c3f94;

    color:#ffffff;

}

/* ===========================================
   AJAX Loading Overlay
=========================================== */

#evProducts{

    position:relative;

}

#evOverlay{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.75);

    z-index:100;

}

/* ==========================================
   SEARCH
========================================== */

.ev-search-form{
    width:100%;
}

.ev-category-toggle,
.ev-category-backdrop{
    display:none;
}

.ev-search-box{

    position:relative;

    width:100%;

}

.ev-search-input{

    width:100%;

    height:48px;

    border:1px solid #d5dbe3;

    border-radius:999px;

    padding:0 60px 0 18px;

    font-size:15px;

    box-shadow:none;

}

.ev-search-input:focus{

    border-color:#0d6efd;

    box-shadow:0 0 0 .15rem rgba(13,110,253,.15);

}

.ev-search-btn{

    position:absolute;

    top:4px;

    right:4px;

    width:40px;

    height:40px;

    border:none;

    border-radius:50%;

    background:#0d6efd;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.2s;

}

.ev-search-btn:hover{

    background:#0b5ed7;

}

.ev-search-btn i{

    font-size:15px;

}

.toggle{

    cursor:pointer;

    width:18px;

    display:inline-block;

    color:#777;

}

.toggle.empty{

    visibility:hidden;

}

.category-link{

    color:#4a4a4a;

    text-decoration:none;

    font-size:15px;

    font-weight:500;

}

.category-link:hover{

    color:#0d6efd;

}

.ev-display-viewer{

    height:100%;

    min-height:0;

    display:flex;

    flex-direction:column;

}

.ev-toolbar{

    padding:15px;

    border-bottom:1px solid #ddd;

    background:#fff;

}

.ev-stage{

    flex:1;

    overflow:hidden;

    position:relative;

    background:#fff;

    min-height:0;

}

.viewer-page{

    width:100%;

    height:100%;

}

/* Centre the 2D stage; JS normalizes SVGs to their visible drawing bounds. */
#viewer2D{

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    position:relative;

}

.viewer-2d-content{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    touch-action:none;
    user-select:none;
}

.viewer-2d-content.is-pannable{
    cursor:grab;
}

.viewer-2d-content.is-dragging{
    cursor:grabbing;
}

/*.ev-thumb-strip{

    height:90px;

    border-top:1px solid #ddd;

    background:#fafafa;

    display:flex;

    align-items:center;

    padding:10px;

    gap:10px;

    overflow-x:auto;

}*/

.ev-thumb{

    width:90px;
    min-height:92px;

    border:2px solid #ddd;
    border-radius:6px;

    background:#fff;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:.2s;
}

.ev-thumb-image{
    width:86px;
    height:66px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ev-thumb-title{
    display:block;
    width:86px;
    padding:2px 3px 4px;
    overflow:hidden;
    color:#222;
    font-size:12px;
    line-height:16px;
    text-align:center;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.ev-thumb img,
.ev-thumb object{
    display:block;
    max-width:80px;
    max-height:60px;
    width:auto;
    height:auto;
    pointer-events:none;
}

.ev-thumb-svg{
    display:flex;
    width:80px;
    height:60px;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    pointer-events:none;
}

.ev-thumb-svg .ev-thumb-inline-svg{
    display:block;
    width:100%;
    height:100%;
    overflow:visible;
}

/* Match the main and additional popup diagram thumbnails to the catalog. */
.ev-thumb-svg .ev-thumb-inline-svg [ev-style-annotation="false"][stroke="rgb(255,0,0)"],
.ev-thumb-svg .ev-thumb-inline-svg [ev-style-annotation="false"][stroke="rgb(0,255,0)"]{
    vector-effect:non-scaling-stroke;
    stroke-width:.9px !important;
    stroke-opacity:1 !important;
}

.ev-thumb:hover{
    border-color:#0d6efd;
}

.ev-thumb.active{
    border-color:#0d6efd;
    box-shadow:0 0 0 2px rgba(13,110,253,.2);
}

.ev-thumb-strip{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;

    padding:15px;

    border-top:1px solid #ddd;
    background:#fff;

    flex-wrap:wrap;
}

/* ==========================================
   Viewer
========================================== */

.viewer-svg{

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    transform-origin:center center;

    transition:transform .16s ease-out;

}

.viewer-svg svg{

    width:90% !important;

    height:90% !important;

    max-width:90%;

    max-height:90%;

    display:block;

    flex:0 0 auto;

    object-fit:contain;

    object-position:center center;

}

.viewer-image{

    width:90%;

    height:90%;

    max-width:90%;

    max-height:90%;

    object-fit:contain;

    display:block;

    margin:auto;

    transform-origin:center center;

    transition:transform .16s ease-out;

}

.viewer-2d-content.is-dragging .viewer-svg,
.viewer-2d-content.is-dragging .viewer-image{
    transition:none;
}

.ev-2d-controls{
    min-width:auto;
}

.viewer-thumb{

    width:80px;

    height:70px;

    border:2px solid #ddd;

    border-radius:10px;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    background:#fff;

    font-weight:600;

}

.viewer-thumb.active{

    border-color:#0d6efd;

}

/***
   3D Viewer
   */
#viewer3D{

    position:relative;

    width:100%;

    height:100%;

    background:#ffffff;

    overflow:hidden;

}

#viewerCanvas{

    width:100%;

    height:100%;

    display:block;

}

#viewerLoading{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    width:320px;

    z-index:50;

}

#viewerPercent{

    text-align:center;

    margin-top:10px;

    font-weight:bold;

}

.viewer-thumb{

    width:110px;
    height:80px;

    border:2px solid #ddd;

    cursor:pointer;

    border-radius:4px;

    overflow:hidden;

    margin-right:8px;

}

.viewer-thumb img{

    width:100%;
    height:100%;
    object-fit:contain;

}

.viewer-thumb.active{

    border-color:#0d6efd;

    box-shadow:0 0 0 2px rgba(13,110,253,.2);

}

/* ==============================
   Category Tree
============================== */
/*
.ev-tree{
    list-style:none;
    padding-left:18px;
    margin:0;
}

.ev-tree-item{
    margin:3px 0;
}

.ev-tree-toggle{
    display:inline-block;
    width:18px;
    cursor:pointer;
    user-select:none;
    transition:transform .2s;
}

.ev-tree-toggle.open{
    transform:rotate(90deg);
}

.ev-tree-spacer{
    display:inline-block;
    width:18px;
}

.ev-tree-children{
    display:none;
    margin-left:16px;
}

.ev-tree-children.open{
    display:block;
}
*/
/*** end Category Tree ***/

/*==================================================
CATEGORY TREE
==================================================*/

.ev-tree{
    list-style:none;
    margin:0;
    padding:0;
}

.ev-tree ul{
    list-style:none;
    margin:0;
    padding-left:18px;
}

.ev-tree-item{
    position:relative;
    margin:2px 0;
    display:grid;
    grid-template-columns:18px minmax(0, 1fr);
    align-items:start;
}

/*---------------------------------------
Children
---------------------------------------*/

.ev-tree-children{
    display:none;
    grid-column:1 / -1;
    margin:0;
    padding:0;
    /*border-left:1px solid #e4e7eb;*/
}

.ev-tree-children.open{
    display:block;
}

/*---------------------------------------
Toggle
---------------------------------------*/

.ev-tree-toggle{

    display:inline-flex;

    width:18px;

    height:18px;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    color:#777;

    font-size:10px;

    transition:.2s;

    user-select:none;

    vertical-align:middle;
    grid-column:1;
    grid-row:1;
    margin-top:5px;
}

.ev-tree-toggle.open{

    transform:rotate(90deg);

}

.ev-tree-spacer{

    display:inline-block;

    width:18px;

    grid-column:1;

    grid-row:1;

}

/*---------------------------------------
Links
---------------------------------------*/

.ev-tree a{

    display:block;

    grid-column:2;

    grid-row:1;

    min-width:0;

    padding:4px 6px;

    color:#444;

    text-decoration:none;

    border-radius:5px;

    transition:.2s;

    font-size:14px;

    line-height:20px;

    overflow-wrap:anywhere;

}

.ev-tree a:hover{

    background:#edf5ff;

    color:#0d6efd;

}

.ev-tree a.active{

    background:#0d6efd;

    color:#fff;

    font-weight:600;

}

/*---------------------------------------
Counts
---------------------------------------*/

.ev-cat-count{

    color:#888;

    font-size:12px;

    margin-left:4px;

}

.ev-tree a.active .ev-cat-count{

    color:#fff;

}

/*---------------------------------------
Highlight
---------------------------------------*/

.ev-highlight{

    background:#fff4b5;

    padding:0 2px;

    border-radius:2px;

}

/*
.ev-highlight{

    background:#ffe082;

    color:#000;

    padding:0 2px;

    border-radius:2px;

    font-weight:600;

}
.ev-cat-count{

    color:#888;

    font-size:12px;

    font-weight:500;

    margin-left:3px;

}*/
/**** end tree*****/
.ev-animation-controls {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
    transform: translateX(-50%);
}

#viewer3DImage{
    position:absolute;
    inset:-12px;
    z-index:2;
    width:calc(100% + 24px);
    height:calc(100% + 24px);
    object-fit:contain;
    display:none;
    filter:blur(10px);
    transform:scale(1.025);
    opacity:1;
    transition:opacity .35s ease;
    pointer-events:none;
}

#viewer3DImage.ev-3d-preview-hidden{
    opacity:0;
}

#viewer3DExactMount{
    z-index:1;
}

#viewer3DExactMount.ev-3d-model-ready{
    z-index:3;
}

.ev-animation-controls button {
    width: 34px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    color: #334155;
    background: rgba(238, 242, 247, .42);
}

.ev-animation-controls button:not(:disabled):hover {
    color: #fff;
    background: rgba(37, 99, 235, .72);
}

.ev-animation-controls button:disabled {
    color: #94a3b8;
    background: rgba(226, 232, 240, .38);
    opacity: .72;
    cursor: not-allowed;
}

.ev-animation-controls button:disabled:hover {
    color: #b91c1c;
    background: rgba(254, 226, 226, .62);
    box-shadow: inset 0 0 0 1px #ef4444;
    cursor: not-allowed;
}

.ev-animation-controls input[type="range"] {
    width: min(28vw, 280px);
}

@media (max-width: 600px) {
    .ev-animation-controls {
        width: calc(100% - 24px);
        justify-content: center;
    }
    .ev-animation-controls input[type="range"] {
        width: 90px;
    }
}

/* =====================================================
   ESSENTIAL IMAGE GREEN THEME
===================================================== */
:root{
    --ev-green:#4aa848;
    --ev-green-dark:#328a38;
    --ev-green-deep:#267a32;
    --ev-green-light:#e6f5e7;
    --ev-green-ring:rgba(74,168,72,.20);
}

::selection{background:var(--ev-green);color:#fff;}

.ev-infinite-status.is-loading,
.ev-header h2,
.ev-modal-title,
#evViewer .modal-title,
.ev-brand,
.ev-brand:hover,
.ev-brand-tagline,
.category-link:hover,
.ev-tree a:hover,
.ev-retry-more{color:var(--ev-green-deep) !important;}

.ev-search-input:focus{
    border-color:var(--ev-green) !important;
    box-shadow:0 0 0 .15rem var(--ev-green-ring) !important;
}

.ev-search-btn,
.btn-primary,
.progress-bar,
.bg-primary{
    background-color:var(--ev-green) !important;
    border-color:var(--ev-green) !important;
}

.ev-search-btn:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active{
    background-color:var(--ev-green-dark) !important;
    border-color:var(--ev-green-dark) !important;
}

.btn-primary:focus,
.btn-outline-primary:focus,
.ev-view-button:focus{
    box-shadow:0 0 0 .2rem var(--ev-green-ring) !important;
}

.btn-outline-primary{
    color:var(--ev-green-deep) !important;
    border-color:var(--ev-green) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active{
    color:#fff !important;
    background-color:var(--ev-green) !important;
    border-color:var(--ev-green) !important;
}

.text-primary{color:var(--ev-green) !important;}

.ev-category:hover,
.ev-tree a:hover{
    background:var(--ev-green-light) !important;
    color:var(--ev-green-deep) !important;
}

/* Selected categories deliberately use a light brand tint. */
.ev-category.active,
.ev-tree a.active{
    background:var(--ev-green-light) !important;
    color:var(--ev-green-deep) !important;
    box-shadow:inset 3px 0 0 var(--ev-green);
    font-weight:700;
}

.ev-card:hover,
.ev-thumb:hover,
.ev-thumb.active,
.viewer-thumb.active{
    border-color:var(--ev-green) !important;
}

.ev-thumb.active,
.viewer-thumb.active{
    box-shadow:0 0 0 2px var(--ev-green-ring) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible{
    outline-color:var(--ev-green) !important;
}

.ev-animation-controls button:not(:disabled):hover{
    color:#fff;
    background:rgba(74,168,72,.82);
}

.ev-animation-controls input[type="range"]{
    accent-color:var(--ev-green);
}

.ev-animation-controls input[type="range"]::-webkit-slider-runnable-track{
    border-color:var(--ev-green);
}

.ev-animation-controls input[type="range"]::-webkit-slider-thumb{
    background:var(--ev-green);
    border-color:var(--ev-green-deep);
}

.ev-animation-controls input[type="range"]::-moz-range-progress{
    background:var(--ev-green);
}

.ev-animation-controls input[type="range"]::-moz-range-thumb{
    background:var(--ev-green);
    border-color:var(--ev-green-deep);
}

/* Listing cards match the popup thumbnail's black hover border. */
.ev-card:hover{
    border-color:#000 !important;
}

/* Text-color corrections retained from v76/v77. */
.ev-infinite-status.is-loading{
    color:#000 !important;
}

#evViewer .modal-title,
#evViewer .ev-modal-title{
    color:#000 !important;
}

/* Popup thumbnail interaction uses a neutral black highlight. */
#evViewer .ev-thumb:hover,
#evViewer .ev-thumb.active,
#evViewer .viewer-thumb:hover,
#evViewer .viewer-thumb.active{
    border-color:#000 !important;
}

#evViewer .ev-thumb.active,
#evViewer .viewer-thumb.active{
    box-shadow:0 0 0 2px rgba(0,0,0,.18) !important;
}

/* Keep WhatsApp above the listing footer/counter on every viewport. */
.ev-whatsapp-button{
    bottom:82px;
}

.ev-whatsapp-panel{
    bottom:145px;
}

@media (max-width:768px){
    /* Let the document body grow with infinite-scroll content. A fixed 100%
       body height ends the sticky containing block after one viewport. */
    html,
    body{
        height:auto;
        min-height:100%;
        overflow:visible;
    }

    /* Compact mobile header: branding and controls share the top line. */
    .ev-header{
        position:-webkit-sticky !important;
        position:sticky !important;
        top:0 !important;
        left:auto;
        right:auto;
        width:100%;
        z-index:99999;
        border-bottom:8px solid #f3f5f7;
    }

    .ev-header .container-fluid{
        position:relative;
        padding:calc(11px + env(safe-area-inset-top, 0px)) 9px 8px !important;
    }

    .ev-header .row{
        row-gap:6px;
    }

    .ev-header .col-lg-3{
        min-height:41px;
        padding-right:145px;
    }

    .ev-brand{
        width:min(158px,44vw);
    }

    .ev-brand-logo{
        width:100%;
    }

    .ev-brand-tagline{
        max-width:158px;
        font-size:8px;
        line-height:1.15;
        white-space:nowrap;
    }

    .ev-header .col-lg-4{
        position:absolute;
        top:calc(11px + env(safe-area-inset-top, 0px));
        right:9px;
        width:auto;
        padding:0;
        gap:5px !important;
    }

    .ev-view-button{
        min-width:34px;
        height:30px;
        padding:3px 8px;
        border-radius:6px;
        font-size:12px;
        line-height:1;
    }

    .ev-language-current{
        width:36px;
        height:30px;
        border-radius:7px;
    }

    .ev-language-flag{
        width:23px;
        height:15px;
    }

    .ev-search-box,
    #ev-search{
        height:38px;
    }

    .ev-search-form{
        display:flex;
        align-items:center;
        gap:6px;
    }

    .ev-search-box{
        flex:1 1 auto;
        min-width:0;
    }

    .ev-category-toggle{
        flex:0 0 38px;
        width:38px;
        height:38px;
        display:grid;
        place-items:center;
        padding:0;
        border:1px solid #38a84a;
        border-radius:9px;
        background:#fff;
        color:#29913a;
        box-shadow:0 2px 7px rgba(24,64,88,.12);
        transition:background .18s ease,color .18s ease,transform .18s ease;
    }

    .ev-category-toggle.is-panel-offscreen,
    .ev-category-toggle[aria-expanded="true"]{
        background:#38a84a;
        color:#fff;
    }

    .ev-category-toggle:active{
        transform:scale(.96);
    }

    .ev-category-backdrop{
        position:fixed;
        inset:0;
        z-index:99996;
        display:block;
        padding:0;
        border:0;
        background:rgba(18,35,45,.28);
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transition:opacity .22s ease,visibility .22s ease;
    }

    .ev-category-backdrop.is-active{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }

    body.ev-category-sheet-open{
        overflow:hidden;
    }

    body.ev-category-sheet-open .ev-whatsapp-button,
    body.ev-category-sheet-open .ev-whatsapp-panel{
        opacity:0;
        visibility:hidden;
        pointer-events:none;
    }

    body .ev-sidebar.ev-mobile-floating{
        position:fixed !important;
        left:10px;
        right:10px;
        z-index:99998;
        width:auto;
        max-height:min(56vh,390px);
        margin:0;
        overflow:auto;
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translateY(-14px) scale(.985);
        transform-origin:top center;
        box-shadow:0 16px 38px rgba(18,35,45,.28);
        transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
    }

    body .ev-sidebar.ev-mobile-floating.is-open{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0) scale(1);
    }

    .ev-search-input{
        height:38px;
        padding-left:15px;
        padding-right:48px;
        font-size:13px;
    }

    .ev-search-btn{
        top:3px;
        right:3px;
        width:32px;
        height:32px;
    }

    /* Shorter, denser category block while retaining vertical scrolling. */
    .ev-sidebar{
        max-height:172px;
        padding:10px 11px;
        margin-bottom:12px;
        font-size:12.5px;
        line-height:1.25;
    }

    .ev-sidebar h5{
        margin-bottom:6px;
        font-size:17px;
        line-height:1.2;
    }

    .ev-sidebar ul{
        margin-left:6px;
        padding-left:10px;
    }

    .ev-sidebar li{
        margin:2px 0;
    }

    .ev-category{
        padding:3px 6px;
    }

    .ev-whatsapp-button{
        right:12px;
        bottom:76px;
        padding:9px 13px;
        font-size:12px;
    }

    .ev-whatsapp-panel{
        right:10px;
        bottom:128px;
        max-width:calc(100vw - 20px);
    }
}
