/* ========================================================================
   ESTILOS CATÁLOGO - TRAÇO
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');


:root {
    --dfc-font-family: 'Montserrat', sans-serif;
    --dfc-cor-principal: #000000;
    --dfc-cor-secundaria: #1a1a1a;
    --dfc-cor-destaque: #ffffff;
    --dfc-cor-detalhe: #f1c40f;
    --dfc-cor-fundo-lateral: #f8f8f8;
    --dfc-cor-texto: #000000;
    --dfc-cor-texto-secundario: #666666;
    --dfc-cor-borda: #f0f0f0;
    --dfc-borda-radius: 12px;
    --dfc-sombra: 0 4px 15px rgba(0, 0, 0, 0.05);
    --dfc-sombra-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.dfc-catalogo-wrapper * {
    font-family: var(--dfc-font-family);
}

/* ========================================================================
   LAYOUT GERAL E WRAPPER
   ======================================================================== */

.dfc-catalogo-wrapper {
    display: flex;
    gap: 30px;
    margin: 20px auto;
    position: relative;
    max-width: 1200px;
    padding: 0 15px;
}

.dfc-grid-produtos {
    flex-grow: 1;
    min-height: 400px;
    min-width: 0;
}

/* ========================================================================
   GRID DE PRODUTOS
   ======================================================================== */

.dfc-grid {
    display: grid !important;
    gap: 20px;
}

.dfc-colunas-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.dfc-colunas-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.dfc-produto-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px;
}

.dfc-produto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dfc-sombra-hover);
}

.dfc-produto-thumbnail {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 16px; /* Rounded thumbnail like in mockup */
}

.dfc-produto-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dfc-produto-card:hover .dfc-produto-thumbnail img {
    transform: scale(1.05);
}

/* Carrossel de Produtos */
.dfc-carrossel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 10px;
}

.dfc-carrossel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    scroll-behavior: smooth;
}

.dfc-carrossel-track .dfc-produto-card {
    flex: 0 0 calc((100% / 3) - 13.4px); /* Desktop: 3 itens */
}

.dfc-carrossel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.dfc-carrossel-nav:hover {
    background: var(--dfc-cor-principal);
    color: var(--dfc-cor-detalhe);
    border-color: var(--dfc-cor-principal);
}

.dfc-carrossel-prev { left: 10px; }
.dfc-carrossel-next { right: 10px; }

@media (max-width: 992px) {
    .dfc-carrossel-track .dfc-produto-card {
        flex: 0 0 calc(50% - 10px); /* Tablet: 2 itens */
    }
}

@media (max-width: 600px) {
    .dfc-carrossel-track .dfc-produto-card {
        flex: 0 0 100%; /* Mobile: 1 item */
    }
}
/* Badge Vendido */
.dfc-badge-vendido {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.dfc-selo-imagem {
    width: 150px;
    height: auto;
    transform: rotate(-15deg);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.dfc-badge-text {
    text-transform: uppercase;
}

.dfc-produto-info {
    padding: 20px 5px 5px 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.dfc-produto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dfc-produto-textos {
    flex: 1;
}

.dfc-produto-titulo {
    font-size: 26px;
    font-weight: 900;
    line-height: 0.9;
    margin: 0 !important;
    letter-spacing: -0.5px;
}

.dfc-produto-titulo a {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dfc-produto-titulo a:hover {
    color: var(--dfc-cor-detalhe) !important;
}

.dfc-produto-espec-label {
    display: block;
    font-size: 18px;
    color: #777;
    margin-top: 8px;
    font-weight: 500;
}

.dfc-produto-tatuagem {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    width: fit-content;
}

.dfc-produto-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}

.dfc-card-logo-direct {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ========================================================================
   BOTÕES
   ======================================================================== */

/* Botões */
.dfc-botao-detalhes, 
.dfc-botao-fila,
.dfc-load-more-btn {
    width: 100%;
    padding: 18px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    margin-top: auto;
}

.dfc-botao-detalhes {
    background: #222222;
    color: #ffffff !important;
}

.dfc-botao-detalhes:hover {
    background: #000000;
}

.dfc-botao-fila {
    background: #333333;
    color: #ffffff !important;
}

.dfc-load-more-btn {
    background: #000000;
    color: #ffffff !important;
    max-width: 300px;
    margin: 30px auto;
}



/* ========================================================================
   SIDEBAR / FILTROS
   ======================================================================== */

.dfc-sidebar-filtros {
    flex: 0 0 250px;
    background-color: var(--dfc-cor-fundo-lateral);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.dfc-busca-wrapper {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

#dfc-busca-produto {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--dfc-cor-borda);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

#dfc-busca-produto:focus {
    outline: none;
    border-color: var(--dfc-cor-destaque);
}

.dfc-lista-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dfc-filter-item {
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dfc-filter-item:hover {
    background-color: #f0f0f0;
}

.dfc-filter-item.ativo {
    background-color: #000000;
}

.dfc-filter-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.dfc-filter-link {
    text-decoration: none;
    color: var(--dfc-cor-texto-inativo);
    font-weight: 600;
    text-transform: uppercase;
.dfc-filter-item.ativo > .dfc-filter-link-wrapper {
    background-color: #000000;
}

.dfc-filter-item.ativo .dfc-filter-link {
    color: var(--dfc-cor-detalhe) !important;
}

.dfc-filter-link {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.dfc-filter-link:hover {
    color: #000;
}

.dfc-sub-menu {
    list-style: none;
    padding: 0;
    display: none;
    background: var(--dfc-cor-fundo-submenu);
}

.dfc-sub-menu .dfc-filter-link-wrapper {
    padding-left: 35px;
}

.dfc-filter-item.ativo > .dfc-sub-menu {
    display: block;
}

/* ========================================================================
   TAGS E MENSAGENS
   ======================================================================== */

.dfc-categoria-tag {
    background: var(--dfc-cor-destaque) !important;
    border-radius: 5px !important;
    color: #000000 !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    border: 0 !important;
    text-decoration: none;
}

.dfc-no-content {
    padding: 25px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    color: #777;
    font-style: italic;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    font-size: 13px;
}

.dfc-no-content i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #ccc;
}

/* ========================================================================
   GALERIA MOBILE
   ======================================================================== */

.dfc-ml-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dfc-ml-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 65px;
    flex-shrink: 0;
}

.dfc-ml-thumb-item {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.dfc-ml-thumb-item.active {
    border: 2px solid var(--dfc-cor-principal);
}

.dfc-ml-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dfc-ml-main {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: #fff;
    padding: 10px;
}

.dfc-ml-main img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* ========================================================================
   PRODUTOS RELACIONADOS
   ======================================================================== */

.dfc-relacionados-wrapper {
    margin-top: 40px;
    clear: both;
    width: 100%;
}

.dfc-relacionados-titulo {
    margin-bottom: 20px;
    border-bottom: 3px solid var(--dfc-cor-destaque);
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
}

/* ========================================================================
   DOCUMENTOS
   ======================================================================== */

.dfc-docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dfc-doc-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: 0.2s;
}

.dfc-doc-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dfc-doc-icon {
    width: 40px;
    height: 40px;
    background: #FDECEA;
    color: var(--dfc-cor-alerta);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.dfc-doc-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.dfc-doc-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
}

.dfc-doc-filename {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================================
   PAGINAÇÃO
   ======================================================================== */

.dfc-pagination-area {
    text-align: center;
    padding: 30px 0;
    width: 100%;
    clear: both;
}

/* ========================================================================
   RESPONSIVO
   ======================================================================== */

@media (max-width: 768px) {
    .dfc-catalogo-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .dfc-sidebar-filtros {
        flex: none;
        width: 100%;
    }

    .dfc-colunas-3,
    .dfc-colunas-4 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .dfc-ml-gallery {
        flex-direction: column-reverse;
    }

    .dfc-ml-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .dfc-ml-thumb-item {
        flex-shrink: 0;
    }

    .dfc-ml-main {
        min-height: 280px;
    }
}

/* ========================================================================
   VARIAÇÕES
   ======================================================================== */

.dfc-vars-wrapper {
    margin: 20px 0;
}

.dfc-vars-wrapper label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.dfc-select-variacao {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
}

.dfc-select-variacao.attention {
    border: 2px solid var(--dfc-cor-destaque);
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

/* ========================================================================
   CARREGAMENTO
   ======================================================================== */

.dfc-grid-produtos.dfc-loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.dfc-grid-produtos.dfc-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
}

.dfc-grid-produtos.dfc-loading::after {
    content: '\f110';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: var(--dfc-cor-principal);
    z-index: 11;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================================================
   ESPECIFICAÇÕES TÉCNICAS
   ======================================================================== */

.dfc-especificacoes-wrapper {
    margin: 20px 0;
    width: 100%;
}

.dfc-especificacoes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.dfc-especificacoes-table tbody {
    display: table-row-group;
}

.dfc-spec-row {
    display: table-row;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.dfc-spec-row:hover {
    background-color: #f9f9f9;
}

.dfc-spec-row:last-child {
    border-bottom: none;
}

.dfc-spec-titulo {
    padding: 14px 16px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    width: 30%;
    min-width: 150px;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}

.dfc-spec-valor {
    padding: 14px 16px;
    color: #555;
    font-size: 13px;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
}

/* ========================================================================
   ESPECIFICAÇÕES - RESPONSIVO
   ======================================================================== */

@media (max-width: 768px) {
    .dfc-especificacoes-table {
        border: none;
        border-spacing: 0;
    }

    .dfc-spec-row {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
    }

    .dfc-spec-titulo,
    .dfc-spec-valor {
        display: block;
        width: 100%;
        padding: 12px;
        border: none;
    }

    .dfc-spec-titulo {
        background: #f5f5f5;
        color: #333;
        font-size: 12px;
        padding: 10px 12px;
    }

    .dfc-spec-valor {
        background: #fff;
        color: #666;
    }
}

/* ========================================================================
   CARROSSEL DE GALERIA
   ======================================================================== */

.dfc-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dfc-carousel-slides {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfc-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dfc-carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.dfc-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Setas de Navegação */
.dfc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfc-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.dfc-carousel-arrow i {
    font-size: 18px;
}

.dfc-carousel-prev {
    left: 15px;
}

.dfc-carousel-next {
    right: 15px;
}

/* Indicadores de Página (Dots) */
.dfc-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.dfc-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dfc-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.dfc-carousel-dot.active {
    background: var(--dfc-cor-principal);
    width: 14px;
    height: 14px;
}

/* ========================================================================
   CARROSSEL - RESPONSIVO
   ======================================================================== */

@media (max-width: 768px) {
    .dfc-carousel-slides {
        height: 300px;
    }

    .dfc-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .dfc-carousel-arrow i {
        font-size: 14px;
    }

    .dfc-carousel-prev {
        left: 10px;
    }

    .dfc-carousel-next {
        right: 10px;
    }

    .dfc-carousel-dots {
        bottom: 10px;
        gap: 6px;
    }

    .dfc-carousel-dot {
        width: 10px;
        height: 10px;
    }

    .dfc-carousel-dot.active {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .dfc-carousel-slides {
        height: 250px;
    }

    .dfc-carousel-slide {
        padding: 10px;
    }

    .dfc-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .dfc-carousel-arrow i {
        font-size: 12px;
    }

    .dfc-carousel-prev {
        left: 8px;
    }

    .dfc-carousel-next {
        right: 8px;
    }
}
}
