/* ========================================================
   CATÁLOGO DE PRODUTOS MODERNO - SM MADEIRAS 2026
   ======================================================== */

.catalog-header-wrap {
    padding-top: 100px;
    padding-bottom: 24px;
}

.catalog-breadcrumb {
    font-size: 12px;
    color: #8C847E;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.catalog-breadcrumb a {
    color: #635C56;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-breadcrumb a:hover {
    color: var(--sm-primary);
}

.catalog-breadcrumb .sep {
    font-size: 10px;
    color: #C0B9B1;
}

.catalog-page-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    color: #1F1B18;
    letter-spacing: -0.5px;
    line-height: 1.25 !important;
    margin-bottom: 8px;
}

.catalog-page-subtitle {
    font-size: 14.5px;
    color: #6A635D;
    margin-bottom: 0;
    max-width: 650px;
    line-height: 1.5;
}

/* Botão Simples & Elegante para Baixar Catálogo */
.btn-catalog-simple {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sm-primary);
    border: 1.5px solid var(--sm-primary);
    background: transparent;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-catalog-simple .btn-catalog-icon {
    stroke: currentColor;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    vertical-align: middle;
}

.btn-catalog-simple:hover {
    background: var(--sm-primary);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(189, 87, 37, 0.25);
}

.btn-catalog-simple:hover .btn-catalog-icon {
    transform: translateY(2px);
}

/* ========================================================
   SIDEBAR STICKY DE FILTROS
   ======================================================== */
.sticky-filters-sidebar {
    position: sticky;
    top: 90px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(220, 214, 206, 0.65);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sticky-filters-sidebar::-webkit-scrollbar {
    width: 4px;
}
.sticky-filters-sidebar::-webkit-scrollbar-thumb {
    background: #D8D1C7;
    border-radius: 4px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0EBE4;
}

.sidebar-title {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1F1B18;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-sidebar-reset {
    font-size: 12px;
    font-weight: 600;
    color: #9C451B;
    background: transparent;
    border: none;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sidebar-reset:hover {
    background: rgba(189, 87, 37, 0.08);
    color: var(--sm-primary);
}

/* Busca Rápida na Sidebar */
.sidebar-search-box {
    position: relative;
    margin-bottom: 18px;
}

.sidebar-search-box input {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 34px;
    border-radius: 20px;
    border: 1px solid #DCD6CE;
    font-size: 12.5px;
    background: #FAF8F5;
    transition: all 0.2s;
    outline: none;
}

.sidebar-search-box input:focus {
    background: #FFF;
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(189, 87, 37, 0.12);
}

.sidebar-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8C847E;
    font-size: 12.5px;
    pointer-events: none;
}

.btn-clear-search-sidebar {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
}

/* Grupos de Filtros na Sidebar */
.filter-group-block {
    margin-bottom: 18px;
}

.filter-group-block:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #7A726C;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* FILTRO DE TONALIDADE CLEAN */
.sidebar-tone-clean-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-tone-clean-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #554D47;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.filter-tone-clean-btn .tone-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.filter-tone-clean-btn:hover {
    background: #FAF8F5;
    color: var(--sm-primary);
}

.filter-tone-clean-btn:hover .tone-dot {
    transform: scale(1.15);
}

.filter-tone-clean-btn.active {
    background: #FDF9F6;
    color: var(--sm-primary);
    font-weight: 700;
    border-color: rgba(189, 87, 37, 0.2);
}

.filter-tone-clean-btn.active .tone-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #FFF, 0 0 0 3.5px var(--sm-primary);
}

/* Chips para Áreas e Tipos */
.sidebar-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-chip-btn {
    background: #FAF8F5;
    border: 1px solid #E2DBD2;
    color: #554D47;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-chip-btn:hover {
    background: #FFF;
    border-color: var(--sm-forest);
    color: var(--sm-forest);
}

.filter-chip-btn.active {
    background: var(--sm-forest);
    color: #FFF;
    border-color: var(--sm-forest);
    box-shadow: 0 2px 8px rgba(11, 59, 50, 0.25);
}

/* ========================================================
   BARRA DE STATUS & GRADE DE CARDS
   ======================================================== */
.catalog-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count-text {
    font-size: 13.5px;
    color: #554D47;
    font-weight: 600;
}

.results-count-text strong {
    color: var(--sm-primary);
}

/* CARDS DE PRODUTOS */
.species-card {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.species-card:hover {
    transform: translateY(-5px);
    border-color: var(--sm-primary);
    box-shadow: 0 14px 28px rgba(189, 87, 37, 0.16);
}

.species-card .img-thumb-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #2D2824;
}

.species-card .img-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-card .img-thumb-wrap .img-environment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.5s ease;
    z-index: 1;
}

.species-card .img-thumb-wrap .img-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.5s ease;
    z-index: 2;
}

/* Hover: Transição fluida da 1ª foto da galeria para FotoPrincipal */
.species-card:hover .img-thumb-wrap .img-environment,
.species-card.hover-active .img-thumb-wrap .img-environment {
    transform: scale(1.10);
    opacity: 0 !important;
}

.species-card:hover .img-thumb-wrap .img-texture,
.species-card.hover-active .img-thumb-wrap .img-texture {
    transform: scale(1.10);
    opacity: 1 !important;
}

.species-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.species-title {
    font-family: var(--font-title);
    font-size: 19px;
    font-weight: 700;
    color: #1F1B18;
    margin-bottom: 6px;
    line-height: 1.2;
    transition: color 0.2s;
}

.species-card:hover .species-title {
    color: var(--sm-primary);
}

.species-desc {
    font-size: 12px;
    color: #635C56;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.species-uses-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.species-use-tag {
    font-size: 9.5px;
    background: #F4EFEB;
    color: #5D544E;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.species-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid #F0ECE7;
    padding-top: 10px;
}

.species-action-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--sm-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.species-card:hover .species-action-link {
    gap: 10px;
}

/* Estado vazio */
#noResultsMessage {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: #FFF;
    border-radius: 16px;
    border: 1px dashed #DCD6CE;
    margin-top: 10px;
}

/* Banner Consultivo */
.consulting-banner-section {
    background: linear-gradient(135deg, #06231D 0%, #0D3E34 55%, #082A23 100%);
    border-radius: 20px;
    padding: 38px 44px;
    color: #FFFFFF;
    margin-top: 48px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px -10px rgba(7, 37, 31, 0.35);
    isolation: isolate;
}

.consulting-badge {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #F5A623;
    margin-bottom: 14px;
}

.consulting-title {
    font-size: clamp(21px, 2.3vw, 26px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.28;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.consulting-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(240, 245, 243, 0.88);
    max-width: 660px;
    margin-bottom: 0;
}

.btn-consult-gold {
    background: linear-gradient(135deg, #BD5725 0%, #D8672D 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(189, 87, 37, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.btn-consult-gold:hover {
    background: linear-gradient(135deg, #CF612A 0%, #E87538 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(189, 87, 37, 0.45);
    color: #FFFFFF !important;
}

/* ========================================================
   RESPONSIVO MOBILE (<= 991px)
   ======================================================== */
@media (max-width: 991px) {
    .catalog-header-wrap {
        padding-top: 80px !important;
        padding-bottom: 12px !important;
    }

    .catalog-page-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    .catalog-page-subtitle {
        font-size: 13.5px !important;
    }

    .btn-catalog-simple {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 8px;
    }

    /* Barra de Ações Rápidas Mobile */
    .mobile-filter-bar {
        margin: 14px 0 16px 0;
    }

    .mobile-filter-actions-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn-open-mobile-filter {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #0B3B32;
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        padding: 9px 16px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 3px 12px rgba(11, 59, 50, 0.25);
        cursor: pointer;
    }

    .mobile-filter-badge {
        background: var(--sm-primary);
        color: #FFF;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 12px;
        margin-left: 2px;
    }

    .mobile-quick-search-box {
        flex-grow: 1;
        position: relative;
        display: flex;
        align-items: center;
    }

    .mobile-quick-search-box .search-ico {
        position: absolute;
        left: 14px;
        color: #A09890;
        font-size: 13px;
        pointer-events: none;
    }

    .mobile-quick-search-box input {
        width: 100%;
        background: #FFFFFF;
        border: 1px solid #DCD6CE;
        border-radius: 50px;
        padding: 9px 36px 9px 36px;
        font-size: 13px;
        color: #2D2825;
        outline: none;
    }

    .mobile-quick-search-box input:focus {
        border-color: var(--sm-primary);
        box-shadow: 0 0 0 3px rgba(189, 87, 37, 0.15);
    }

    .btn-clear-mobile {
        position: absolute;
        right: 12px;
        background: transparent;
        border: none;
        color: #A09890;
        font-size: 13px;
        padding: 4px;
        cursor: pointer;
    }

    /* Backdrop da Gaveta Mobile */
    .mobile-filters-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 28, 24, 0.65);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1075;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-filters-backdrop.backdrop-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Sidebar em Gaveta Deslizante (Off-Canvas) */
    .sticky-filters-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 320px !important;
        max-width: 88vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1080 !important;
        background: #0B3B32 !important;
        color: #FAF8F5 !important;
        border-radius: 20px 0 0 20px !important;
        border: none !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45) !important;
        transform: translateX(105%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 22px 20px 90px 20px !important;
        overflow-y: auto !important;
    }

    .sticky-filters-sidebar.drawer-open {
        transform: translateX(0) !important;
    }

    .sidebar-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .sidebar-title {
        color: #FFFFFF !important;
        font-size: 16px !important;
    }

    .btn-close-mobile-drawer {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #FFF;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        cursor: pointer;
    }

    .filter-group-title {
        color: #E0DDD8 !important;
    }

    .sidebar-tone-clean-list .filter-tone-clean-btn {
        color: #EDE7E1 !important;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .sidebar-tone-clean-list .filter-tone-clean-btn.active,
    .sidebar-tone-clean-list .filter-tone-clean-btn:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: #F5A623 !important;
        color: #FFFFFF !important;
    }

    .sidebar-chips-wrap .filter-chip-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #EDE7E1 !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    .sidebar-chips-wrap .filter-chip-btn.active {
        background: var(--sm-primary) !important;
        color: #FFF !important;
        border-color: var(--sm-primary) !important;
    }

    .mobile-drawer-footer {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 320px;
        max-width: 88vw;
        padding: 14px 20px;
        background: #082D26;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 1085;
    }

    .btn-apply-mobile-filters {
        width: 100%;
        background: var(--sm-primary);
        color: #FFF;
        border: none;
        border-radius: 50px;
        padding: 11px;
        font-size: 13.5px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(189, 87, 37, 0.35);
    }

    .consulting-banner-section {
        padding: 26px 20px !important;
        border-radius: 16px !important;
    }

    .btn-consult-gold {
        width: 100% !important;
        justify-content: center !important;
    }
}

