html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--card-font);
    background: var(--theme-gb); /* FUNDO DO SITE */
    color: var(--card-font-color);
}

/* =========================
   CARD
========================= */
.card {
    background: var(--card-gb); /* FUNDO DO CARD */
    background-repeat: no-repeat;
    background-size: cover;
}

.card-header {
    border-bottom: 0;
}

/* =========================
   ARTIGOS
========================= */
.article {
    background: transparent;
}

.article .article-details {
    background: transparent;
}

/* =========================
   MODAL
========================= */
.modal-content {
    background: var(--card-gb);
}

/* =========================
   INPUTS (CORRIGIDO)
========================= */
.form-control, 
.input-group-text, 
.custom-select, 
.custom-file-label {
    background-color: var(--card-gb); /* NÃO MAIS TRANSPARENTE */
    color: var(--card-font-color);
    border-color: rgba(255,255,255,0.1);
}

/* =========================
   ÍCONE
========================= */
.contact-details .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
}

.contact-details .icon-circle i {
    font-size: 21px !important;
    background: var(--card-gb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   TEXTOS
========================= */
.product-item .product-name,
.article .article-header .article-title h2 a,
.article.article-style-b .article-details p {
    color: var(--card-font-color);
}

.article .article-header .article-badge .article-badge-item {
    background: var(--card-gb);
    color: var(--card-font-color);
}

/* =========================
   BOTÕES
========================= */
.btn-outline-dark {
    color: var(--card-font-color);
    background-color: transparent;
    border-color: var(--card-font-color);
}

.btn-outline-dark:hover {
    opacity: 0.85;
}

/* =========================
   LISTA DE CONTATOS
========================= */
.contact-details {
    padding: 10px 0;
    list-style: none;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-details-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px;
    border-radius: 12px;

    color: var(--card-font-color);
    cursor: pointer;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-details-item:hover {
    opacity: 0.85;
}

.contact-details-item:active {
    transform: scale(0.98);
}

.contact-details a {
    text-decoration: none;
}

.contact-details-item h6 {
    font-size: 1.05rem;
    margin: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   GALERIA
========================= */
.gallery.gallery-md {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.gallery.gallery-md .gallery-item {
    width: 160px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.4s ease;
}

.gallery.gallery-md .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery.gallery-md .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.gallery.gallery-md .gallery-item:active {
    transform: scale(0.96);
}

.gallery.gallery-md .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery.gallery-md .gallery-item:hover::after {
    opacity: 1;
}

/* =========================
   ANIMAÇÃO
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   IDIOMA
========================= */
.float-lang {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 99999;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width:768px){

    .modal-body img,
    .ekko-lightbox img{
        max-height:70vh;
    }

    .gallery.gallery-md {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery.gallery-md .gallery-item {
        width: 100%;
        height: 140px;
    }
}