* {
    box-sizing:border-box;
}

html,
body {
    margin:0;
    padding:0;
    width:100%;
    height:100%;
}

body {
    background-image:url('/site/Gam2/images/Mar_Desenhar_Top_background.png');
    background-size:cover;
    background-attachment:fixed;
    font-family:Arial, Helvetica, sans-serif;
    overflow:hidden;
    position:fixed;
    width:100%;
    height:100%;
    
    user-select: none;
    -webkit-user-select: none; /* Para navegadores baseados em WebKit */
    -moz-user-select: none;    /* Para navegadores Firefox */
    -ms-user-select: none;  
    -webkit-user-drag: none;
    user-drag: none;

    -webkit-touch-callout: none;

    -webkit-user-modify: read-only;
}

.link-add-app {
        text-align:center;
        font-family: Open Sans;
        margin: 5px 5px 0 5px; 
        font-size: 0.8em;
}


/* =========================================================
   WRAPPER CENTRAL
========================================================= */

.app-wrapper {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100%;
    width:100%;
}


/* =========================================================
   CAIXA PRINCIPAL
========================================================= */

.canvas-container {
    position:relative;
    width:450px;
    height:450px;
    border:10px solid #3d3c3c;
    border-radius:5px;
    background:#fff;
    display:flex;
    flex-direction:column;
    padding:7px;
    overflow:hidden;
}


/* =========================================================
   BARRA DE FERRAMENTAS
========================================================= */

.toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:10px;
    flex-shrink:0;
}

.product-count {
    font-size:11px;
    color:#666;
}

.filter-button {
    padding:8px 12px;
    border:none;
    border-radius:5px;
    background:#3d3c3c;
    color:#fff;
    font-size:12px;
    font-weight:bold;
    cursor:pointer;
}

.filter-button:hover {
    opacity:.85;
}


/* =========================================================
   FILTROS
========================================================= */

.filter-panel {
    display:none;
    padding:10px;
    margin-bottom:10px;
    background:#f2f2f2;
    border:1px solid #ddd;
    border-radius:5px;
    flex-shrink:0;
}

.filter-panel.active {
    display:block;
}

.filter-panel label {
    display:block;
    font-size:12px;
    font-weight:bold;
    color:#444;
    margin-bottom:5px;
}

.filter-panel select {
    width:100%;
    padding:8px;
    border:1px solid #ccc;
    border-radius:5px;
    background:#fff;
    font-size:13px;
}


/* =========================================================
   ÁREA DE ROLAGEM DO CANVAS
========================================================= */

.product-scroll {
    flex:1;
    min-height:0;
    width:100%;
    overflow-y:auto;
    overflow-x:hidden;

    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;

    padding:2px 4px 8px 1px;
}

/* Barra de rolagem */

.product-scroll::-webkit-scrollbar {
    width:5px;
}

.product-scroll::-webkit-scrollbar-thumb {
    background:#999;
    border-radius:5px;
}

.product-scroll::-webkit-scrollbar-track {
    background:#eee;
}


/* =========================================================
   VITRINE
========================================================= */

.gd-vitrine {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    align-items:start;
}


/* =========================================================
   PRODUTOS
========================================================= */

.gd-produto {
    border:1px solid #e5e5e5;
    border-radius:9px;
    padding:10px;
    background:#fff;

    display:flex;
    flex-direction:column;

    min-width:0;
}

.gd-produto[hidden] {
    display:none !important;
}

.gd-produto img {
    width:100%;
    height:115px;
    object-fit:contain;
    display:block;
    margin-bottom:7px;
}

.gd-produto h3 {
    font-size:13px;
    line-height:1.3;
    color:#333;
    margin:0px 0;
    overflow-wrap:anywhere;
}

.gd-categoria {
    font-size:10px;
    color:#777;
    margin:3px 0;
}

.gd-preco {
    font-size:17px;
    font-weight:bold;
    color:#333;
    margin:10px 0;
}

.gd-botao {
    display:block;
    text-align:center;
    background:#252525;
    color:#fff !important;
    padding:10px;
    border-radius:6px;
    text-decoration:none;
    font-size:12px;
    font-weight:bold;
    margin-top:auto;
}

.gd-botao:hover {
    opacity:.85;
}

.empty-message {
    grid-column:1 / -1;
    text-align:center;
    padding:25px 10px;
    font-size:13px;
    color:#777;
}


/* =========================================================
   AVISO DE AFILIADOS
========================================================= */

.affiliate-notice {
    flex-shrink:0;
    font-size:10px;
    color:#777;
    text-align:center;
    padding-top:7px;
}


/* =========================================================
   MENU INFERIOR
========================================================= */

.menu-bar {
    width:450px;
    margin-top:10px;
    background-color:#3d3c3c;
    color:#fff;
    padding:10px;
    border-radius:5px;
    font-family:'Rock Salt', cursive;

    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
}

.menu-bar .logo img {
    display:block;
    max-width:100px;
    height:32px;
    object-fit:contain;
}

.apps-menu-btn {
    width:auto;
    padding:6px 12px;
    margin:0;
    font-size:0.8em;
    font-family:Arial, Helvetica, sans-serif;
    border:none;
    border-radius:4px;
    cursor:pointer;
}


/* =========================================================
   OVERLAY
========================================================= */

#apps-menu-overlay {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    background:rgba(0,0,0,.25);
    padding:10px;
}

#apps-menu-overlay.active {
    display:flex;
}

.apps-menu-content {
    background:#fff;
    padding:20px;
    border-radius:15px;
    width:600px;
    max-width:95%;
    max-height:90vh;
    overflow-y:auto;
    text-align:center;
    box-shadow:0 0 20px rgba(0,0,0,.2);
    position:relative;
}

#apps-menu-close {
    position:absolute;
    right:12px;
    top:8px;
    background:none;
    border:none;
    font-size:20px;
    cursor:pointer;
    color:#333;
}

.menu-content {
    display:none;
}

.menu-content.active {
    display:block;
}

.menu-columns {
    display:flex;
    gap:20px;
    justify-content:space-between;
    align-items:flex-start;
}

.menu-col {
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1;
}

.menu-col p {
    margin:0 0 8px;
    font-size:14px;
}

.apps-menu-content a {
    display:block;
    margin:4px 0;
}

.menu-col a:hover {
    transform:scale(1.05);
    transition:.2s;
}


/* =========================================================
   COMO USAR
========================================================= */

.how-to {
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    line-height:1.5;
    color:#444;
}

/* =========================================================
   DESCRIÇÃO
========================================================= */

.gd-descricao {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    margin: 2px 0 2px;
}

.gd-descricao p {
    margin: 0 0 2px;
}

.gd-descricao p:last-child {
    margin-bottom: 0;
}

.gd-descricao ul,
.gd-descricao ol {
    margin: 8px 0;
    padding-left: 20px;
}

.gd-descricao h1,
.gd-descricao h2,
.gd-descricao h3,
.gd-descricao h4 {
    margin: 2px 0 2px;
}

/* =========================================================
   CAMPO DE BUSCA 
========================================================= */

#productSearch {

    width: 100%;
    box-sizing: border-box;

    padding: 12px;

    margin: 8px 0 18px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 15px;

    outline: none;

    background: #fff;

    color: #333;

}

#productSearch:focus {

    border-color: #555;

    box-shadow: 0 0 4px rgba(0,0,0,0.15);

}

#productSearch::placeholder {

    color: #999;

}

/* =====================================================
   CABEÇALHO GARIMPO
===================================================== */

.header-garimpo {

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 80px;

    gap: 5px;

    box-sizing: border-box;

    padding: 0px;

}

/* ÁREA DA IMAGEM E CABEÇALHO */

.header-image {

    width: 80px;

    min-width: 200px;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}

.header-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}

/* ÁREA DOS TEXTOS */

.header-text {

    flex: 1;

    min-width: 0;

    text-align: left;

}

.test-title {

    font-size: 14px;

    font-weight: bold;

}

.test-subtitle {

    font-size: 12px;

    margin-top: 2px;

}

.gd-descricao {
    font-size: 10px;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media(max-width:600px) {

    .canvas-container {
        width:90vw;
        height:90vw;
        max-height:calc(100dvh - 85px);
    }

    .menu-bar {
        width:calc(90vw - 0px);
    }

    .menu-columns {
        flex-direction:column;
        align-items:center;
    }

    .test-title {
        font-size:12px;
    }

    .test-subtitle {
        font-size:8px;
    }

    .gd-vitrine {
        gap:8px;
    }

    .gd-produto {
        padding:5px;
    }

    .gd-produto img {
        height:90px;
    }

    .gd-produto h3 {
        font-size:11px;
    }

    .gd-preco {
        font-size:14px;
    }

    .gd-botao {
        font-size:11px;
        padding:8px 4px;
    }

    .menu-bar .logo img {
        height:27px;
        max-width:75px;
    }

    .apps-menu-btn {
        padding:6px 8px;
        font-size:10px;
    }

}

@media(max-width:360px) {

    .gd-vitrine {
        grid-template-columns:1fr;
    }

    .canvas-container {
        height:calc(100dvh - 85px);
    }

}